Class ImmutablePartition<K,V>
java.lang.Object
org.moeaframework.analysis.stream.ImmutablePartition<K,V>
- Type Parameters:
K
- the type of each keyV
- the type of each value
- All Implemented Interfaces:
Partition<K,
,V> Displayable
,Formattable<org.apache.commons.lang3.tuple.Pair<K,
V>>
- Direct Known Subclasses:
Groups
A partition storing the intermediate, materialized content of the stream.
-
Constructor Summary
ConstructorDescriptionConstructs a new, empty partition.ImmutablePartition
(Iterable<org.apache.commons.lang3.tuple.Pair<K, V>> iterable) Constructs a new partition with the given content.ImmutablePartition
(List<org.apache.commons.lang3.tuple.Pair<K, V>> list) Constructs a new partition with the given content.ImmutablePartition
(Stream<org.apache.commons.lang3.tuple.Pair<K, V>> stream) Constructs a new partition with the given content. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.moeaframework.util.format.Displayable
display
-
Constructor Details
-
ImmutablePartition
public ImmutablePartition()Constructs a new, empty partition. -
ImmutablePartition
Constructs a new partition with the given content.- Parameters:
list
- the list of key-value pairs
-
ImmutablePartition
Constructs a new partition with the given content.- Parameters:
stream
- the stream of key-value pairs
-
ImmutablePartition
Constructs a new partition with the given content.- Parameters:
iterable
- the iterable of key-value pairs
-
-
Method Details