public class ImmutableHashBag<T> extends AbstractImmutableBag<T> implements Serializable
| Constructor and Description |
|---|
ImmutableHashBag() |
ImmutableHashBag(org.eclipse.collections.api.bag.Bag<? extends T> source) |
ImmutableHashBag(Iterable<? extends T> source) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
allSatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
anySatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.LazyIterable<T> |
asLazy() |
<V> org.eclipse.collections.api.bag.ImmutableBag<V> |
collect(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
<V,R extends Collection<V>> |
collect(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
R target) |
<V> org.eclipse.collections.api.bag.ImmutableBag<V> |
collectIf(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
<V,R extends Collection<V>> |
collectIf(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
R target) |
boolean |
contains(Object object) |
boolean |
containsAllArguments(Object... elements) |
boolean |
containsAllIterable(Iterable<?> source) |
int |
count(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
T |
detect(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
T |
detectIfNone(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
org.eclipse.collections.api.block.function.Function0<? extends T> function) |
<P> T |
detectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
void |
each(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure) |
boolean |
equals(Object obj) |
<V> org.eclipse.collections.api.bag.ImmutableBag<V> |
flatCollect(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
<V,R extends Collection<V>> |
flatCollect(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function,
R target) |
void |
forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
void |
forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
T |
getFirst() |
T |
getLast() |
<V> org.eclipse.collections.api.multimap.bag.ImmutableBagMultimap<V,T> |
groupBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
<V,R extends org.eclipse.collections.api.multimap.MutableMultimap<V,T>> |
groupBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function,
R target) |
<V> org.eclipse.collections.api.multimap.bag.ImmutableBagMultimap<V,T> |
groupByEach(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
<V,R extends org.eclipse.collections.api.multimap.MutableMultimap<V,T>> |
groupByEach(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function,
R target) |
<V> org.eclipse.collections.api.map.ImmutableMap<V,T> |
groupByUniqueKey(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
int |
hashCode() |
double |
injectInto(double injectedValue,
org.eclipse.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super T> function) |
float |
injectInto(float injectedValue,
org.eclipse.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super T> function) |
int |
injectInto(int injectedValue,
org.eclipse.collections.api.block.function.primitive.IntObjectToIntFunction<? super T> function) |
<IV> IV |
injectInto(IV injectedValue,
org.eclipse.collections.api.block.function.Function2<? super IV,? super T,? extends IV> function) |
long |
injectInto(long injectedValue,
org.eclipse.collections.api.block.function.primitive.LongObjectToLongFunction<? super T> function) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
T |
max() |
T |
max(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
maxBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
T |
min() |
T |
min(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
minBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
static <T> ImmutableHashBag<T> |
newBag() |
static <T> ImmutableHashBag<T> |
newBag(Iterable<? extends T> source) |
static <T> ImmutableHashBag<T> |
newBagWith(org.eclipse.collections.api.bag.Bag<? extends T> bag) |
static <T> ImmutableHashBag<T> |
newBagWith(T... elements) |
org.eclipse.collections.api.bag.ImmutableBag<T> |
newWith(T element) |
org.eclipse.collections.api.bag.ImmutableBag<T> |
newWithAll(Iterable<? extends T> elements) |
org.eclipse.collections.api.bag.ImmutableBag<T> |
newWithout(T element) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
noneSatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
notEmpty() |
int |
occurrencesOf(Object item) |
org.eclipse.collections.api.partition.bag.PartitionImmutableBag<T> |
partition(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
org.eclipse.collections.api.bag.ImmutableBag<T> |
reject(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<R extends Collection<T>> |
reject(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
R target) |
org.eclipse.collections.api.bag.ImmutableBag<T> |
select(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<R extends Collection<T>> |
select(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
R target) |
org.eclipse.collections.api.bag.ImmutableBag<T> |
selectByOccurrences(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
<S> org.eclipse.collections.api.bag.ImmutableBag<S> |
selectInstancesOf(Class<S> clazz) |
int |
size() |
int |
sizeDistinct() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
org.eclipse.collections.api.bag.MutableBag<T> |
toBag() |
org.eclipse.collections.api.list.MutableList<T> |
toList() |
<K,V> org.eclipse.collections.api.map.MutableMap<K,V> |
toMap(org.eclipse.collections.api.block.function.Function<? super T,? extends K> keyFunction,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> valueFunction) |
org.eclipse.collections.api.map.MutableMap<T,Integer> |
toMapOfItemToCount() |
org.eclipse.collections.api.set.MutableSet<T> |
toSet() |
org.eclipse.collections.api.bag.sorted.MutableSortedBag<T> |
toSortedBag() |
org.eclipse.collections.api.bag.sorted.MutableSortedBag<T> |
toSortedBag(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
toSortedBagBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
org.eclipse.collections.api.list.MutableList<T> |
toSortedList() |
org.eclipse.collections.api.list.MutableList<T> |
toSortedList(Comparator<? super T> comparator) |
<K,V> org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> |
toSortedMap(Comparator<? super K> comparator,
org.eclipse.collections.api.block.function.Function<? super T,? extends K> keyFunction,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> valueFunction) |
<K,V> org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> |
toSortedMap(org.eclipse.collections.api.block.function.Function<? super T,? extends K> keyFunction,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> valueFunction) |
org.eclipse.collections.api.set.sorted.MutableSortedSet<T> |
toSortedSet() |
org.eclipse.collections.api.set.sorted.MutableSortedSet<T> |
toSortedSet(Comparator<? super T> comparator) |
String |
toString()
Returns a string representation of this collection.
|
<S> org.eclipse.collections.api.bag.ImmutableBag<org.eclipse.collections.api.tuple.Pair<T,S>> |
zip(Iterable<S> that)
Deprecated.
in 6.0. Use
OrderedIterable.zip(Iterable) instead. |
<S,R extends Collection<org.eclipse.collections.api.tuple.Pair<T,S>>> |
zip(Iterable<S> that,
R target) |
org.eclipse.collections.api.set.ImmutableSet<org.eclipse.collections.api.tuple.Pair<T,Integer>> |
zipWithIndex()
Deprecated.
in 6.0. Use
OrderedIterable.zipWithIndex() instead. |
<R extends Collection<org.eclipse.collections.api.tuple.Pair<T,Integer>>> |
zipWithIndex(R target) |
bottomOccurrences, chunk, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, collectWith, newWithoutAll, partitionWith, rejectWith, selectWith, tap, toImmutable, topOccurrencesadd, addAll, aggregateBy, aggregateInPlaceBy, clear, remove, removeAll, retainAllcollectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, collectWith, injectIntoWith, rejectWith, selectWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toStringOfItemToCountcontainsAll, countWith, detectWithIfNone, forEach, forEachWith, groupByUniqueKey, sumByDouble, sumByFloat, sumByInt, sumByLong, toSortedListBy, toSortedSetByaggregateBy, aggregateInPlaceBycollectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, collectWith, containsAll, countWith, detectWithIfNone, groupByUniqueKey, rejectWith, selectWith, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toSortedListBy, toSortedSetByforEach, spliteratorcontainsAll, parallelStream, removeIf, spliterator, streampublic ImmutableHashBag()
public ImmutableHashBag(org.eclipse.collections.api.bag.Bag<? extends T> source)
public static <T> ImmutableHashBag<T> newBag()
public static <T> ImmutableHashBag<T> newBag(Iterable<? extends T> source)
public static <T> ImmutableHashBag<T> newBagWith(T... elements)
public static <T> ImmutableHashBag<T> newBagWith(org.eclipse.collections.api.bag.Bag<? extends T> bag)
public org.eclipse.collections.api.bag.ImmutableBag<T> newWithAll(Iterable<? extends T> elements)
public int size()
size in interface Collection<T>size in interface org.eclipse.collections.api.RichIterable<T>public <V> org.eclipse.collections.api.multimap.bag.ImmutableBagMultimap<V,T> groupBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
groupBy in interface org.eclipse.collections.api.bag.Bag<T>groupBy in interface org.eclipse.collections.api.bag.ImmutableBag<T>groupBy in interface org.eclipse.collections.api.bag.ImmutableBagIterable<T>groupBy in interface org.eclipse.collections.api.bag.UnsortedBag<T>groupBy in interface org.eclipse.collections.api.collection.ImmutableCollection<T>groupBy in interface org.eclipse.collections.api.RichIterable<T>public <V,R extends org.eclipse.collections.api.multimap.MutableMultimap<V,T>> R groupBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, R target)
groupBy in interface org.eclipse.collections.api.RichIterable<T>groupBy in class AbstractBag<T>public <V> org.eclipse.collections.api.multimap.bag.ImmutableBagMultimap<V,T> groupByEach(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
groupByEach in interface org.eclipse.collections.api.bag.Bag<T>groupByEach in interface org.eclipse.collections.api.bag.ImmutableBag<T>groupByEach in interface org.eclipse.collections.api.bag.ImmutableBagIterable<T>groupByEach in interface org.eclipse.collections.api.bag.UnsortedBag<T>groupByEach in interface org.eclipse.collections.api.collection.ImmutableCollection<T>groupByEach in interface org.eclipse.collections.api.RichIterable<T>public <V,R extends org.eclipse.collections.api.multimap.MutableMultimap<V,T>> R groupByEach(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function, R target)
groupByEach in interface org.eclipse.collections.api.RichIterable<T>groupByEach in class AbstractBag<T>public <V> org.eclipse.collections.api.map.ImmutableMap<V,T> groupByUniqueKey(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
groupByUniqueKey in interface org.eclipse.collections.api.collection.ImmutableCollection<T>groupByUniqueKey in interface org.eclipse.collections.api.RichIterable<T>groupByUniqueKey in class AbstractImmutableBag<T>public boolean isEmpty()
isEmpty in interface Collection<T>isEmpty in interface org.eclipse.collections.api.RichIterable<T>isEmpty in class AbstractRichIterable<T>public boolean notEmpty()
notEmpty in interface org.eclipse.collections.api.RichIterable<T>notEmpty in class AbstractRichIterable<T>public T getFirst()
getFirst in interface org.eclipse.collections.api.RichIterable<T>public T getLast()
getLast in interface org.eclipse.collections.api.RichIterable<T>public T min(Comparator<? super T> comparator)
min in interface org.eclipse.collections.api.RichIterable<T>min in class AbstractRichIterable<T>public T max(Comparator<? super T> comparator)
max in interface org.eclipse.collections.api.RichIterable<T>max in class AbstractRichIterable<T>public T min()
min in interface org.eclipse.collections.api.RichIterable<T>min in class AbstractRichIterable<T>public T max()
max in interface org.eclipse.collections.api.RichIterable<T>max in class AbstractRichIterable<T>public <V extends Comparable<? super V>> T minBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
minBy in interface org.eclipse.collections.api.RichIterable<T>minBy in class AbstractRichIterable<T>public <V extends Comparable<? super V>> T maxBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
maxBy in interface org.eclipse.collections.api.RichIterable<T>maxBy in class AbstractRichIterable<T>public boolean contains(Object object)
contains in interface Collection<T>contains in interface org.eclipse.collections.api.RichIterable<T>contains in class AbstractRichIterable<T>public boolean containsAllIterable(Iterable<?> source)
containsAllIterable in interface org.eclipse.collections.api.RichIterable<T>containsAllIterable in class AbstractRichIterable<T>public boolean containsAllArguments(Object... elements)
containsAllArguments in interface org.eclipse.collections.api.RichIterable<T>containsAllArguments in class AbstractRichIterable<T>public <K,V> org.eclipse.collections.api.map.MutableMap<K,V> toMap(org.eclipse.collections.api.block.function.Function<? super T,? extends K> keyFunction, org.eclipse.collections.api.block.function.Function<? super T,? extends V> valueFunction)
toMap in interface org.eclipse.collections.api.RichIterable<T>toMap in class AbstractRichIterable<T>public void each(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure)
each in interface org.eclipse.collections.api.RichIterable<T>public void forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface org.eclipse.collections.api.InternalIterable<T>forEachWithIndex in class AbstractRichIterable<T>public <S> org.eclipse.collections.api.bag.ImmutableBag<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface org.eclipse.collections.api.bag.Bag<T>selectInstancesOf in interface org.eclipse.collections.api.bag.ImmutableBag<T>selectInstancesOf in interface org.eclipse.collections.api.bag.ImmutableBagIterable<T>selectInstancesOf in interface org.eclipse.collections.api.bag.UnsortedBag<T>selectInstancesOf in interface org.eclipse.collections.api.collection.ImmutableCollection<T>selectInstancesOf in interface org.eclipse.collections.api.RichIterable<T>public org.eclipse.collections.api.bag.ImmutableBag<T> selectByOccurrences(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
selectByOccurrences in interface org.eclipse.collections.api.bag.Bag<T>selectByOccurrences in interface org.eclipse.collections.api.bag.ImmutableBag<T>selectByOccurrences in interface org.eclipse.collections.api.bag.ImmutableBagIterable<T>selectByOccurrences in interface org.eclipse.collections.api.bag.UnsortedBag<T>public void forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithOccurrences in interface org.eclipse.collections.api.bag.Bag<T>public int sizeDistinct()
sizeDistinct in interface org.eclipse.collections.api.bag.Bag<T>public int occurrencesOf(Object item)
occurrencesOf in interface org.eclipse.collections.api.bag.Bag<T>public org.eclipse.collections.api.list.MutableList<T> toList()
toList in interface org.eclipse.collections.api.RichIterable<T>toList in class AbstractBag<T>public org.eclipse.collections.api.list.MutableList<T> toSortedList()
toSortedList in interface org.eclipse.collections.api.RichIterable<T>toSortedList in class AbstractRichIterable<T>public org.eclipse.collections.api.list.MutableList<T> toSortedList(Comparator<? super T> comparator)
toSortedList in interface org.eclipse.collections.api.RichIterable<T>toSortedList in class AbstractBag<T>public org.eclipse.collections.api.set.sorted.MutableSortedSet<T> toSortedSet()
toSortedSet in interface org.eclipse.collections.api.RichIterable<T>toSortedSet in class AbstractBag<T>public org.eclipse.collections.api.set.sorted.MutableSortedSet<T> toSortedSet(Comparator<? super T> comparator)
toSortedSet in interface org.eclipse.collections.api.RichIterable<T>toSortedSet in class AbstractBag<T>public <K,V> org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> toSortedMap(org.eclipse.collections.api.block.function.Function<? super T,? extends K> keyFunction, org.eclipse.collections.api.block.function.Function<? super T,? extends V> valueFunction)
toSortedMap in interface org.eclipse.collections.api.RichIterable<T>toSortedMap in class AbstractRichIterable<T>public <K,V> org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> toSortedMap(Comparator<? super K> comparator, org.eclipse.collections.api.block.function.Function<? super T,? extends K> keyFunction, org.eclipse.collections.api.block.function.Function<? super T,? extends V> valueFunction)
toSortedMap in interface org.eclipse.collections.api.RichIterable<T>toSortedMap in class AbstractRichIterable<T>public org.eclipse.collections.api.bag.ImmutableBag<T> select(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
select in interface org.eclipse.collections.api.bag.Bag<T>select in interface org.eclipse.collections.api.bag.ImmutableBag<T>select in interface org.eclipse.collections.api.bag.ImmutableBagIterable<T>select in interface org.eclipse.collections.api.bag.UnsortedBag<T>select in interface org.eclipse.collections.api.collection.ImmutableCollection<T>select in interface org.eclipse.collections.api.RichIterable<T>public <R extends Collection<T>> R select(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, R target)
select in interface org.eclipse.collections.api.RichIterable<T>select in class AbstractBag<T>public org.eclipse.collections.api.bag.ImmutableBag<T> reject(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
reject in interface org.eclipse.collections.api.bag.Bag<T>reject in interface org.eclipse.collections.api.bag.ImmutableBag<T>reject in interface org.eclipse.collections.api.bag.ImmutableBagIterable<T>reject in interface org.eclipse.collections.api.bag.UnsortedBag<T>reject in interface org.eclipse.collections.api.collection.ImmutableCollection<T>reject in interface org.eclipse.collections.api.RichIterable<T>public <R extends Collection<T>> R reject(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, R target)
reject in interface org.eclipse.collections.api.RichIterable<T>reject in class AbstractBag<T>public org.eclipse.collections.api.partition.bag.PartitionImmutableBag<T> partition(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
partition in interface org.eclipse.collections.api.bag.Bag<T>partition in interface org.eclipse.collections.api.bag.ImmutableBag<T>partition in interface org.eclipse.collections.api.bag.ImmutableBagIterable<T>partition in interface org.eclipse.collections.api.bag.UnsortedBag<T>partition in interface org.eclipse.collections.api.collection.ImmutableCollection<T>partition in interface org.eclipse.collections.api.RichIterable<T>partition in class AbstractImmutableBag<T>public <V> org.eclipse.collections.api.bag.ImmutableBag<V> collect(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
collect in interface org.eclipse.collections.api.bag.ImmutableBag<T>collect in interface org.eclipse.collections.api.bag.UnsortedBag<T>collect in interface org.eclipse.collections.api.collection.ImmutableCollection<T>collect in interface org.eclipse.collections.api.RichIterable<T>public <V,R extends Collection<V>> R collect(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, R target)
collect in interface org.eclipse.collections.api.RichIterable<T>collect in class AbstractBag<T>public <V> org.eclipse.collections.api.bag.ImmutableBag<V> collectIf(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
collectIf in interface org.eclipse.collections.api.bag.ImmutableBag<T>collectIf in interface org.eclipse.collections.api.bag.UnsortedBag<T>collectIf in interface org.eclipse.collections.api.collection.ImmutableCollection<T>collectIf in interface org.eclipse.collections.api.RichIterable<T>public <V,R extends Collection<V>> R collectIf(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, org.eclipse.collections.api.block.function.Function<? super T,? extends V> function, R target)
collectIf in interface org.eclipse.collections.api.RichIterable<T>collectIf in class AbstractBag<T>public <V> org.eclipse.collections.api.bag.ImmutableBag<V> flatCollect(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
flatCollect in interface org.eclipse.collections.api.bag.ImmutableBag<T>flatCollect in interface org.eclipse.collections.api.bag.UnsortedBag<T>flatCollect in interface org.eclipse.collections.api.collection.ImmutableCollection<T>flatCollect in interface org.eclipse.collections.api.RichIterable<T>public <V,R extends Collection<V>> R flatCollect(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function, R target)
flatCollect in interface org.eclipse.collections.api.RichIterable<T>flatCollect in class AbstractBag<T>public T detect(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
detect in interface org.eclipse.collections.api.RichIterable<T>detect in class AbstractRichIterable<T>public <P> T detectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
detectWith in interface org.eclipse.collections.api.RichIterable<T>detectWith in class AbstractRichIterable<T>public T detectIfNone(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, org.eclipse.collections.api.block.function.Function0<? extends T> function)
detectIfNone in interface org.eclipse.collections.api.RichIterable<T>detectIfNone in class AbstractRichIterable<T>public int count(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
count in interface org.eclipse.collections.api.RichIterable<T>count in class AbstractBag<T>public boolean anySatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
anySatisfy in interface org.eclipse.collections.api.RichIterable<T>anySatisfy in class AbstractRichIterable<T>public <P> boolean anySatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
anySatisfyWith in interface org.eclipse.collections.api.RichIterable<T>anySatisfyWith in class AbstractRichIterable<T>public boolean allSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
allSatisfy in interface org.eclipse.collections.api.RichIterable<T>allSatisfy in class AbstractRichIterable<T>public <P> boolean allSatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
allSatisfyWith in interface org.eclipse.collections.api.RichIterable<T>allSatisfyWith in class AbstractRichIterable<T>public boolean noneSatisfy(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
noneSatisfy in interface org.eclipse.collections.api.RichIterable<T>noneSatisfy in class AbstractRichIterable<T>public <P> boolean noneSatisfyWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
noneSatisfyWith in interface org.eclipse.collections.api.RichIterable<T>noneSatisfyWith in class AbstractRichIterable<T>public <IV> IV injectInto(IV injectedValue,
org.eclipse.collections.api.block.function.Function2<? super IV,? super T,? extends IV> function)
injectInto in interface org.eclipse.collections.api.RichIterable<T>injectInto in class AbstractBag<T>public int injectInto(int injectedValue,
org.eclipse.collections.api.block.function.primitive.IntObjectToIntFunction<? super T> function)
injectInto in interface org.eclipse.collections.api.RichIterable<T>injectInto in class AbstractBag<T>public long injectInto(long injectedValue,
org.eclipse.collections.api.block.function.primitive.LongObjectToLongFunction<? super T> function)
injectInto in interface org.eclipse.collections.api.RichIterable<T>injectInto in class AbstractBag<T>public double injectInto(double injectedValue,
org.eclipse.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super T> function)
injectInto in interface org.eclipse.collections.api.RichIterable<T>injectInto in class AbstractBag<T>public float injectInto(float injectedValue,
org.eclipse.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super T> function)
injectInto in interface org.eclipse.collections.api.RichIterable<T>injectInto in class AbstractBag<T>public boolean equals(Object obj)
public int hashCode()
public org.eclipse.collections.api.map.MutableMap<T,Integer> toMapOfItemToCount()
public org.eclipse.collections.api.set.MutableSet<T> toSet()
toSet in interface org.eclipse.collections.api.RichIterable<T>toSet in class AbstractBag<T>public org.eclipse.collections.api.bag.MutableBag<T> toBag()
toBag in interface org.eclipse.collections.api.RichIterable<T>toBag in class AbstractBag<T>public org.eclipse.collections.api.bag.sorted.MutableSortedBag<T> toSortedBag()
toSortedBag in interface org.eclipse.collections.api.RichIterable<T>toSortedBag in class AbstractBag<T>public org.eclipse.collections.api.bag.sorted.MutableSortedBag<T> toSortedBag(Comparator<? super T> comparator)
toSortedBag in interface org.eclipse.collections.api.RichIterable<T>toSortedBag in class AbstractBag<T>public <V extends Comparable<? super V>> org.eclipse.collections.api.bag.sorted.MutableSortedBag<T> toSortedBagBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
toSortedBagBy in interface org.eclipse.collections.api.RichIterable<T>toSortedBagBy in class AbstractRichIterable<T>public org.eclipse.collections.api.LazyIterable<T> asLazy()
asLazy in interface org.eclipse.collections.api.RichIterable<T>asLazy in class AbstractRichIterable<T>public Object[] toArray()
toArray in interface Collection<T>toArray in interface org.eclipse.collections.api.RichIterable<T>toArray in class AbstractRichIterable<T>public <T> T[] toArray(T[] a)
toArray in interface Collection<T>toArray in interface org.eclipse.collections.api.RichIterable<T>toArray in class AbstractRichIterable<T>public String toString()
AbstractRichIterable
This implementation creates an empty string buffer, appends a left square bracket, and iterates over the collection appending the string representation of each element in turn. After appending each element except the last, the string ", " is appended. Finally a right bracket is appended. A string is obtained from the string buffer, and returned.
toString in interface org.eclipse.collections.api.RichIterable<T>toString in class AbstractRichIterable<T>public String makeString()
makeString in interface org.eclipse.collections.api.RichIterable<T>makeString in class AbstractRichIterable<T>public String makeString(String separator)
makeString in interface org.eclipse.collections.api.RichIterable<T>makeString in class AbstractRichIterable<T>public String makeString(String start, String separator, String end)
makeString in interface org.eclipse.collections.api.RichIterable<T>makeString in class AbstractRichIterable<T>public void appendString(Appendable appendable)
appendString in interface org.eclipse.collections.api.RichIterable<T>appendString in class AbstractRichIterable<T>public void appendString(Appendable appendable, String separator)
appendString in interface org.eclipse.collections.api.RichIterable<T>appendString in class AbstractRichIterable<T>public void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.RichIterable<T>appendString in class AbstractRichIterable<T>@Deprecated public <S> org.eclipse.collections.api.bag.ImmutableBag<org.eclipse.collections.api.tuple.Pair<T,S>> zip(Iterable<S> that)
OrderedIterable.zip(Iterable) instead.zip in interface org.eclipse.collections.api.bag.ImmutableBag<T>zip in interface org.eclipse.collections.api.bag.UnsortedBag<T>zip in interface org.eclipse.collections.api.collection.ImmutableCollection<T>zip in interface org.eclipse.collections.api.RichIterable<T>public <S,R extends Collection<org.eclipse.collections.api.tuple.Pair<T,S>>> R zip(Iterable<S> that, R target)
zip in interface org.eclipse.collections.api.RichIterable<T>zip in class AbstractRichIterable<T>@Deprecated public org.eclipse.collections.api.set.ImmutableSet<org.eclipse.collections.api.tuple.Pair<T,Integer>> zipWithIndex()
OrderedIterable.zipWithIndex() instead.zipWithIndex in interface org.eclipse.collections.api.bag.Bag<T>zipWithIndex in interface org.eclipse.collections.api.bag.ImmutableBag<T>zipWithIndex in interface org.eclipse.collections.api.bag.ImmutableBagIterable<T>zipWithIndex in interface org.eclipse.collections.api.bag.UnsortedBag<T>zipWithIndex in interface org.eclipse.collections.api.collection.ImmutableCollection<T>zipWithIndex in interface org.eclipse.collections.api.RichIterable<T>public <R extends Collection<org.eclipse.collections.api.tuple.Pair<T,Integer>>> R zipWithIndex(R target)
zipWithIndex in interface org.eclipse.collections.api.RichIterable<T>zipWithIndex in class AbstractRichIterable<T>Copyright © 2004–2017. All rights reserved.