类 FastStream.Grouped<T,K,V>

java.lang.Object
committee.nova.mods.avaritia.api.util.java.FastStream.Grouped<T,K,V>
所有已实现的接口:
FastStream<FastStream.Group<K,V>>, Iterable<FastStream.Group<K,V>>
封闭接口:
FastStream<T>

public static final class FastStream.Grouped<T,K,V> extends Object implements FastStream<FastStream.Group<K,V>>
A FastStream of elements grouped by a specific key.
  • 构造器详细资料

  • 方法详细资料

    • iterator

      @NotNull public @NotNull Iterator<FastStream.Group<K,V>> iterator()
      指定者:
      iterator 在接口中 Iterable<T>
    • forEach

      public void forEach(Consumer<? super FastStream.Group<K,V>> action)
      指定者:
      forEach 在接口中 Iterable<T>
    • knownLength

      public int knownLength(boolean consumeToCalculate)
      从接口复制的说明: FastStream
      Returns the known length for the stream.

      If true is specified to consumeToCalculate causes operations which would not normally know their length prior to a terminal operation being applied, to cache their result under the assumption that the stream is about to be fully consumed.

      指定者:
      knownLength 在接口中 FastStream<T>
      参数:
      consumeToCalculate - If the caller intends to consume the entire stream via Iterable.forEach(java.util.function.Consumer<? super T>) after calling.
      返回:
      The known length for the stream. {code -1} if the length is not known.