Class GroupedStreamable<K,T>

java.lang.Object
io.reactivex.rxjava4.core.GroupedStreamable<K,T>
Type Parameters:
K - the type of the key, can be null
T - the type of the items emitted by the GroupedStreamable
All Implemented Interfaces:
Streamable<T>

public abstract class GroupedStreamable<@Nullable K, @NonNull T> extends Object implements Streamable<T>
An Streamable that has been grouped by key, the value of which can be obtained with getKey().
Since:
4.0.0
See Also:
  • Constructor Details

    • GroupedStreamable

      protected GroupedStreamable(@Nullable @Nullable K key)
      Constructs a GroupedStreamable with the given key.
      Parameters:
      key - the key
  • Method Details

    • getKey

      @Nullable public K getKey()
      Returns the key that identifies the group of items emitted by this GroupedStreamable.
      Returns:
      the key that the items emitted by this GroupedStreamable were grouped by