public class ImmutableHashBag<T> extends AbstractImmutableBag<T> implements Serializable
| Constructor and Description |
|---|
ImmutableHashBag() |
ImmutableHashBag(com.gs.collections.api.bag.Bag<? extends T> source) |
ImmutableHashBag(Iterable<? extends T> source) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
allSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
anySatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
anySatisfyWith(com.gs.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) |
com.gs.collections.api.LazyIterable<T> |
asLazy() |
<V> com.gs.collections.api.bag.ImmutableBag<V> |
collect(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
<V,R extends Collection<V>> |
collect(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R target) |
<V> com.gs.collections.api.bag.ImmutableBag<V> |
collectIf(com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
<V,R extends Collection<V>> |
collectIf(com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.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(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
T |
detect(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
T |
detectIfNone(com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.function.Function0<? extends T> function) |
<P> T |
detectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
void |
each(com.gs.collections.api.block.procedure.Procedure<? super T> procedure) |
boolean |
equals(Object obj) |
<V> com.gs.collections.api.bag.ImmutableBag<V> |
flatCollect(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
<V,R extends Collection<V>> |
flatCollect(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function,
R target) |
void |
forEachWithIndex(com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
void |
forEachWithOccurrences(com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
T |
getFirst() |
T |
getLast() |
<V> com.gs.collections.api.multimap.bag.ImmutableBagMultimap<V,T> |
groupBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
<V,R extends com.gs.collections.api.multimap.MutableMultimap<V,T>> |
groupBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R target) |
<V> com.gs.collections.api.multimap.bag.ImmutableBagMultimap<V,T> |
groupByEach(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
<V,R extends com.gs.collections.api.multimap.MutableMultimap<V,T>> |
groupByEach(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function,
R target) |
<V> com.gs.collections.api.map.ImmutableMap<V,T> |
groupByUniqueKey(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
int |
hashCode() |
double |
injectInto(double injectedValue,
com.gs.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super T> function) |
float |
injectInto(float injectedValue,
com.gs.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super T> function) |
int |
injectInto(int injectedValue,
com.gs.collections.api.block.function.primitive.IntObjectToIntFunction<? super T> function) |
<IV> IV |
injectInto(IV injectedValue,
com.gs.collections.api.block.function.Function2<? super IV,? super T,? extends IV> function) |
long |
injectInto(long injectedValue,
com.gs.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(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
T |
min() |
T |
min(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
minBy(com.gs.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(com.gs.collections.api.bag.Bag<? extends T> bag) |
static <T> ImmutableHashBag<T> |
newBagWith(T... elements) |
com.gs.collections.api.bag.ImmutableBag<T> |
newWith(T element) |
com.gs.collections.api.bag.ImmutableBag<T> |
newWithAll(Iterable<? extends T> elements) |
com.gs.collections.api.bag.ImmutableBag<T> |
newWithout(T element) |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
noneSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
notEmpty() |
int |
occurrencesOf(Object item) |
com.gs.collections.api.partition.bag.PartitionImmutableBag<T> |
partition(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
com.gs.collections.api.bag.ImmutableBag<T> |
reject(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<R extends Collection<T>> |
reject(com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R target) |
com.gs.collections.api.bag.ImmutableBag<T> |
select(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<R extends Collection<T>> |
select(com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
R target) |
com.gs.collections.api.bag.ImmutableBag<T> |
selectByOccurrences(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate) |
<S> com.gs.collections.api.bag.ImmutableBag<S> |
selectInstancesOf(Class<S> clazz) |
int |
size() |
int |
sizeDistinct() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
com.gs.collections.api.bag.MutableBag<T> |
toBag() |
com.gs.collections.api.list.MutableList<T> |
toList() |
<K,V> com.gs.collections.api.map.MutableMap<K,V> |
toMap(com.gs.collections.api.block.function.Function<? super T,? extends K> keyFunction,
com.gs.collections.api.block.function.Function<? super T,? extends V> valueFunction) |
com.gs.collections.api.map.MutableMap<T,Integer> |
toMapOfItemToCount() |
com.gs.collections.api.set.MutableSet<T> |
toSet() |
com.gs.collections.api.bag.sorted.MutableSortedBag<T> |
toSortedBag() |
com.gs.collections.api.bag.sorted.MutableSortedBag<T> |
toSortedBag(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
toSortedBagBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
com.gs.collections.api.list.MutableList<T> |
toSortedList() |
com.gs.collections.api.list.MutableList<T> |
toSortedList(Comparator<? super T> comparator) |
<K,V> com.gs.collections.api.map.sorted.MutableSortedMap<K,V> |
toSortedMap(Comparator<? super K> comparator,
com.gs.collections.api.block.function.Function<? super T,? extends K> keyFunction,
com.gs.collections.api.block.function.Function<? super T,? extends V> valueFunction) |
<K,V> com.gs.collections.api.map.sorted.MutableSortedMap<K,V> |
toSortedMap(com.gs.collections.api.block.function.Function<? super T,? extends K> keyFunction,
com.gs.collections.api.block.function.Function<? super T,? extends V> valueFunction) |
com.gs.collections.api.set.sorted.MutableSortedSet<T> |
toSortedSet() |
com.gs.collections.api.set.sorted.MutableSortedSet<T> |
toSortedSet(Comparator<? super T> comparator) |
String |
toString()
Returns a string representation of this collection.
|
<S> com.gs.collections.api.bag.ImmutableBag<com.gs.collections.api.tuple.Pair<T,S>> |
zip(Iterable<S> that)
Deprecated.
in 6.0. Use
OrderedIterable.zip(Iterable) instead. |
<S,R extends Collection<com.gs.collections.api.tuple.Pair<T,S>>> |
zip(Iterable<S> that,
R target) |
com.gs.collections.api.set.ImmutableSet<com.gs.collections.api.tuple.Pair<T,Integer>> |
zipWithIndex()
Deprecated.
in 6.0. Use
OrderedIterable.zipWithIndex() instead. |
<R extends Collection<com.gs.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(com.gs.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(com.gs.collections.api.bag.Bag<? extends T> bag)
public com.gs.collections.api.bag.ImmutableBag<T> newWithAll(Iterable<? extends T> elements)
public int size()
size in interface com.gs.collections.api.RichIterable<T>size in interface Collection<T>public <V> com.gs.collections.api.multimap.bag.ImmutableBagMultimap<V,T> groupBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
groupBy in interface com.gs.collections.api.bag.Bag<T>groupBy in interface com.gs.collections.api.bag.ImmutableBag<T>groupBy in interface com.gs.collections.api.bag.ImmutableBagIterable<T>groupBy in interface com.gs.collections.api.bag.UnsortedBag<T>groupBy in interface com.gs.collections.api.collection.ImmutableCollection<T>groupBy in interface com.gs.collections.api.RichIterable<T>public <V,R extends com.gs.collections.api.multimap.MutableMultimap<V,T>> R groupBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function, R target)
groupBy in interface com.gs.collections.api.RichIterable<T>groupBy in class AbstractBag<T>public <V> com.gs.collections.api.multimap.bag.ImmutableBagMultimap<V,T> groupByEach(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
groupByEach in interface com.gs.collections.api.bag.Bag<T>groupByEach in interface com.gs.collections.api.bag.ImmutableBag<T>groupByEach in interface com.gs.collections.api.bag.ImmutableBagIterable<T>groupByEach in interface com.gs.collections.api.bag.UnsortedBag<T>groupByEach in interface com.gs.collections.api.collection.ImmutableCollection<T>groupByEach in interface com.gs.collections.api.RichIterable<T>public <V,R extends com.gs.collections.api.multimap.MutableMultimap<V,T>> R groupByEach(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function, R target)
groupByEach in interface com.gs.collections.api.RichIterable<T>groupByEach in class AbstractBag<T>public <V> com.gs.collections.api.map.ImmutableMap<V,T> groupByUniqueKey(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
groupByUniqueKey in interface com.gs.collections.api.collection.ImmutableCollection<T>groupByUniqueKey in interface com.gs.collections.api.RichIterable<T>groupByUniqueKey in class AbstractImmutableBag<T>public boolean isEmpty()
isEmpty in interface com.gs.collections.api.RichIterable<T>isEmpty in interface Collection<T>isEmpty in class AbstractRichIterable<T>public boolean notEmpty()
notEmpty in interface com.gs.collections.api.RichIterable<T>notEmpty in class AbstractRichIterable<T>public T getFirst()
getFirst in interface com.gs.collections.api.RichIterable<T>public T getLast()
getLast in interface com.gs.collections.api.RichIterable<T>public T min(Comparator<? super T> comparator)
min in interface com.gs.collections.api.RichIterable<T>min in class AbstractRichIterable<T>public T max(Comparator<? super T> comparator)
max in interface com.gs.collections.api.RichIterable<T>max in class AbstractRichIterable<T>public T min()
min in interface com.gs.collections.api.RichIterable<T>min in class AbstractRichIterable<T>public T max()
max in interface com.gs.collections.api.RichIterable<T>max in class AbstractRichIterable<T>public <V extends Comparable<? super V>> T minBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
minBy in interface com.gs.collections.api.RichIterable<T>minBy in class AbstractRichIterable<T>public <V extends Comparable<? super V>> T maxBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
maxBy in interface com.gs.collections.api.RichIterable<T>maxBy in class AbstractRichIterable<T>public boolean contains(Object object)
contains in interface com.gs.collections.api.RichIterable<T>contains in interface Collection<T>contains in class AbstractRichIterable<T>public boolean containsAllIterable(Iterable<?> source)
containsAllIterable in interface com.gs.collections.api.RichIterable<T>containsAllIterable in class AbstractRichIterable<T>public boolean containsAllArguments(Object... elements)
containsAllArguments in interface com.gs.collections.api.RichIterable<T>containsAllArguments in class AbstractRichIterable<T>public <K,V> com.gs.collections.api.map.MutableMap<K,V> toMap(com.gs.collections.api.block.function.Function<? super T,? extends K> keyFunction, com.gs.collections.api.block.function.Function<? super T,? extends V> valueFunction)
toMap in interface com.gs.collections.api.RichIterable<T>toMap in class AbstractRichIterable<T>public void each(com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
each in interface com.gs.collections.api.RichIterable<T>public void forEachWithIndex(com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface com.gs.collections.api.InternalIterable<T>forEachWithIndex in class AbstractRichIterable<T>public <S> com.gs.collections.api.bag.ImmutableBag<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface com.gs.collections.api.bag.Bag<T>selectInstancesOf in interface com.gs.collections.api.bag.ImmutableBag<T>selectInstancesOf in interface com.gs.collections.api.bag.ImmutableBagIterable<T>selectInstancesOf in interface com.gs.collections.api.bag.UnsortedBag<T>selectInstancesOf in interface com.gs.collections.api.collection.ImmutableCollection<T>selectInstancesOf in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.bag.ImmutableBag<T> selectByOccurrences(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate)
selectByOccurrences in interface com.gs.collections.api.bag.Bag<T>selectByOccurrences in interface com.gs.collections.api.bag.ImmutableBag<T>selectByOccurrences in interface com.gs.collections.api.bag.ImmutableBagIterable<T>selectByOccurrences in interface com.gs.collections.api.bag.UnsortedBag<T>public void forEachWithOccurrences(com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithOccurrences in interface com.gs.collections.api.bag.Bag<T>public int sizeDistinct()
sizeDistinct in interface com.gs.collections.api.bag.Bag<T>public int occurrencesOf(Object item)
occurrencesOf in interface com.gs.collections.api.bag.Bag<T>public com.gs.collections.api.list.MutableList<T> toList()
toList in interface com.gs.collections.api.RichIterable<T>toList in class AbstractBag<T>public com.gs.collections.api.list.MutableList<T> toSortedList()
toSortedList in interface com.gs.collections.api.RichIterable<T>toSortedList in class AbstractRichIterable<T>public com.gs.collections.api.list.MutableList<T> toSortedList(Comparator<? super T> comparator)
toSortedList in interface com.gs.collections.api.RichIterable<T>toSortedList in class AbstractBag<T>public com.gs.collections.api.set.sorted.MutableSortedSet<T> toSortedSet()
toSortedSet in interface com.gs.collections.api.RichIterable<T>toSortedSet in class AbstractBag<T>public com.gs.collections.api.set.sorted.MutableSortedSet<T> toSortedSet(Comparator<? super T> comparator)
toSortedSet in interface com.gs.collections.api.RichIterable<T>toSortedSet in class AbstractBag<T>public <K,V> com.gs.collections.api.map.sorted.MutableSortedMap<K,V> toSortedMap(com.gs.collections.api.block.function.Function<? super T,? extends K> keyFunction, com.gs.collections.api.block.function.Function<? super T,? extends V> valueFunction)
toSortedMap in interface com.gs.collections.api.RichIterable<T>toSortedMap in class AbstractRichIterable<T>public <K,V> com.gs.collections.api.map.sorted.MutableSortedMap<K,V> toSortedMap(Comparator<? super K> comparator, com.gs.collections.api.block.function.Function<? super T,? extends K> keyFunction, com.gs.collections.api.block.function.Function<? super T,? extends V> valueFunction)
toSortedMap in interface com.gs.collections.api.RichIterable<T>toSortedMap in class AbstractRichIterable<T>public com.gs.collections.api.bag.ImmutableBag<T> select(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
select in interface com.gs.collections.api.bag.Bag<T>select in interface com.gs.collections.api.bag.ImmutableBag<T>select in interface com.gs.collections.api.bag.ImmutableBagIterable<T>select in interface com.gs.collections.api.bag.UnsortedBag<T>select in interface com.gs.collections.api.collection.ImmutableCollection<T>select in interface com.gs.collections.api.RichIterable<T>public <R extends Collection<T>> R select(com.gs.collections.api.block.predicate.Predicate<? super T> predicate, R target)
select in interface com.gs.collections.api.RichIterable<T>select in class AbstractBag<T>public com.gs.collections.api.bag.ImmutableBag<T> reject(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
reject in interface com.gs.collections.api.bag.Bag<T>reject in interface com.gs.collections.api.bag.ImmutableBag<T>reject in interface com.gs.collections.api.bag.ImmutableBagIterable<T>reject in interface com.gs.collections.api.bag.UnsortedBag<T>reject in interface com.gs.collections.api.collection.ImmutableCollection<T>reject in interface com.gs.collections.api.RichIterable<T>public <R extends Collection<T>> R reject(com.gs.collections.api.block.predicate.Predicate<? super T> predicate, R target)
reject in interface com.gs.collections.api.RichIterable<T>reject in class AbstractBag<T>public com.gs.collections.api.partition.bag.PartitionImmutableBag<T> partition(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
partition in interface com.gs.collections.api.bag.Bag<T>partition in interface com.gs.collections.api.bag.ImmutableBag<T>partition in interface com.gs.collections.api.bag.ImmutableBagIterable<T>partition in interface com.gs.collections.api.bag.UnsortedBag<T>partition in interface com.gs.collections.api.collection.ImmutableCollection<T>partition in interface com.gs.collections.api.RichIterable<T>partition in class AbstractImmutableBag<T>public <V> com.gs.collections.api.bag.ImmutableBag<V> collect(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
collect in interface com.gs.collections.api.bag.ImmutableBag<T>collect in interface com.gs.collections.api.bag.UnsortedBag<T>collect in interface com.gs.collections.api.collection.ImmutableCollection<T>collect in interface com.gs.collections.api.RichIterable<T>public <V,R extends Collection<V>> R collect(com.gs.collections.api.block.function.Function<? super T,? extends V> function, R target)
collect in interface com.gs.collections.api.RichIterable<T>collect in class AbstractBag<T>public <V> com.gs.collections.api.bag.ImmutableBag<V> collectIf(com.gs.collections.api.block.predicate.Predicate<? super T> predicate, com.gs.collections.api.block.function.Function<? super T,? extends V> function)
collectIf in interface com.gs.collections.api.bag.ImmutableBag<T>collectIf in interface com.gs.collections.api.bag.UnsortedBag<T>collectIf in interface com.gs.collections.api.collection.ImmutableCollection<T>collectIf in interface com.gs.collections.api.RichIterable<T>public <V,R extends Collection<V>> R collectIf(com.gs.collections.api.block.predicate.Predicate<? super T> predicate, com.gs.collections.api.block.function.Function<? super T,? extends V> function, R target)
collectIf in interface com.gs.collections.api.RichIterable<T>collectIf in class AbstractBag<T>public <V> com.gs.collections.api.bag.ImmutableBag<V> flatCollect(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
flatCollect in interface com.gs.collections.api.bag.ImmutableBag<T>flatCollect in interface com.gs.collections.api.bag.UnsortedBag<T>flatCollect in interface com.gs.collections.api.collection.ImmutableCollection<T>flatCollect in interface com.gs.collections.api.RichIterable<T>public <V,R extends Collection<V>> R flatCollect(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function, R target)
flatCollect in interface com.gs.collections.api.RichIterable<T>flatCollect in class AbstractBag<T>public T detect(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
detect in interface com.gs.collections.api.RichIterable<T>detect in class AbstractRichIterable<T>public <P> T detectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
detectWith in interface com.gs.collections.api.RichIterable<T>detectWith in class AbstractRichIterable<T>public T detectIfNone(com.gs.collections.api.block.predicate.Predicate<? super T> predicate, com.gs.collections.api.block.function.Function0<? extends T> function)
detectIfNone in interface com.gs.collections.api.RichIterable<T>detectIfNone in class AbstractRichIterable<T>public int count(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
count in interface com.gs.collections.api.RichIterable<T>count in class AbstractBag<T>public boolean anySatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
anySatisfy in interface com.gs.collections.api.RichIterable<T>anySatisfy in class AbstractRichIterable<T>public <P> boolean anySatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
anySatisfyWith in interface com.gs.collections.api.RichIterable<T>anySatisfyWith in class AbstractRichIterable<T>public boolean allSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
allSatisfy in interface com.gs.collections.api.RichIterable<T>allSatisfy in class AbstractRichIterable<T>public <P> boolean allSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
allSatisfyWith in interface com.gs.collections.api.RichIterable<T>allSatisfyWith in class AbstractRichIterable<T>public boolean noneSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
noneSatisfy in interface com.gs.collections.api.RichIterable<T>noneSatisfy in class AbstractRichIterable<T>public <P> boolean noneSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
noneSatisfyWith in interface com.gs.collections.api.RichIterable<T>noneSatisfyWith in class AbstractRichIterable<T>public <IV> IV injectInto(IV injectedValue,
com.gs.collections.api.block.function.Function2<? super IV,? super T,? extends IV> function)
injectInto in interface com.gs.collections.api.RichIterable<T>injectInto in class AbstractBag<T>public int injectInto(int injectedValue,
com.gs.collections.api.block.function.primitive.IntObjectToIntFunction<? super T> function)
injectInto in interface com.gs.collections.api.RichIterable<T>injectInto in class AbstractBag<T>public long injectInto(long injectedValue,
com.gs.collections.api.block.function.primitive.LongObjectToLongFunction<? super T> function)
injectInto in interface com.gs.collections.api.RichIterable<T>injectInto in class AbstractBag<T>public double injectInto(double injectedValue,
com.gs.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super T> function)
injectInto in interface com.gs.collections.api.RichIterable<T>injectInto in class AbstractBag<T>public float injectInto(float injectedValue,
com.gs.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super T> function)
injectInto in interface com.gs.collections.api.RichIterable<T>injectInto in class AbstractBag<T>public boolean equals(Object obj)
public int hashCode()
public com.gs.collections.api.set.MutableSet<T> toSet()
toSet in interface com.gs.collections.api.RichIterable<T>toSet in class AbstractBag<T>public com.gs.collections.api.bag.MutableBag<T> toBag()
toBag in interface com.gs.collections.api.RichIterable<T>toBag in class AbstractBag<T>public com.gs.collections.api.bag.sorted.MutableSortedBag<T> toSortedBag()
toSortedBag in interface com.gs.collections.api.RichIterable<T>toSortedBag in class AbstractBag<T>public com.gs.collections.api.bag.sorted.MutableSortedBag<T> toSortedBag(Comparator<? super T> comparator)
toSortedBag in interface com.gs.collections.api.RichIterable<T>toSortedBag in class AbstractBag<T>public <V extends Comparable<? super V>> com.gs.collections.api.bag.sorted.MutableSortedBag<T> toSortedBagBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
toSortedBagBy in interface com.gs.collections.api.RichIterable<T>toSortedBagBy in class AbstractRichIterable<T>public com.gs.collections.api.LazyIterable<T> asLazy()
asLazy in interface com.gs.collections.api.RichIterable<T>asLazy in class AbstractRichIterable<T>public Object[] toArray()
toArray in interface com.gs.collections.api.RichIterable<T>toArray in interface Collection<T>toArray in class AbstractRichIterable<T>public <T> T[] toArray(T[] a)
toArray in interface com.gs.collections.api.RichIterable<T>toArray in interface Collection<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 com.gs.collections.api.RichIterable<T>toString in class AbstractRichIterable<T>public String makeString()
makeString in interface com.gs.collections.api.RichIterable<T>makeString in class AbstractRichIterable<T>public String makeString(String separator)
makeString in interface com.gs.collections.api.RichIterable<T>makeString in class AbstractRichIterable<T>public String makeString(String start, String separator, String end)
makeString in interface com.gs.collections.api.RichIterable<T>makeString in class AbstractRichIterable<T>public void appendString(Appendable appendable)
appendString in interface com.gs.collections.api.RichIterable<T>appendString in class AbstractRichIterable<T>public void appendString(Appendable appendable, String separator)
appendString in interface com.gs.collections.api.RichIterable<T>appendString in class AbstractRichIterable<T>public void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface com.gs.collections.api.RichIterable<T>appendString in class AbstractRichIterable<T>@Deprecated public <S> com.gs.collections.api.bag.ImmutableBag<com.gs.collections.api.tuple.Pair<T,S>> zip(Iterable<S> that)
OrderedIterable.zip(Iterable) instead.zip in interface com.gs.collections.api.bag.ImmutableBag<T>zip in interface com.gs.collections.api.bag.UnsortedBag<T>zip in interface com.gs.collections.api.collection.ImmutableCollection<T>zip in interface com.gs.collections.api.RichIterable<T>public <S,R extends Collection<com.gs.collections.api.tuple.Pair<T,S>>> R zip(Iterable<S> that, R target)
zip in interface com.gs.collections.api.RichIterable<T>zip in class AbstractRichIterable<T>@Deprecated public com.gs.collections.api.set.ImmutableSet<com.gs.collections.api.tuple.Pair<T,Integer>> zipWithIndex()
OrderedIterable.zipWithIndex() instead.zipWithIndex in interface com.gs.collections.api.bag.Bag<T>zipWithIndex in interface com.gs.collections.api.bag.ImmutableBag<T>zipWithIndex in interface com.gs.collections.api.bag.ImmutableBagIterable<T>zipWithIndex in interface com.gs.collections.api.bag.UnsortedBag<T>zipWithIndex in interface com.gs.collections.api.collection.ImmutableCollection<T>zipWithIndex in interface com.gs.collections.api.RichIterable<T>public <R extends Collection<com.gs.collections.api.tuple.Pair<T,Integer>>> R zipWithIndex(R target)
zipWithIndex in interface com.gs.collections.api.RichIterable<T>zipWithIndex in class AbstractRichIterable<T>Copyright © 2004–2016. All rights reserved.