public class ArrayStack<T> extends Object implements com.gs.collections.api.stack.MutableStack<T>, Externalizable
| Constructor and Description |
|---|
ArrayStack() |
ArrayStack(int initialCapacity) |
ArrayStack(Iterable<T> items) |
ArrayStack(T... items) |
| Modifier and Type | Method and Description |
|---|---|
<K,V> com.gs.collections.api.map.MutableMap<K,V> |
aggregateBy(com.gs.collections.api.block.function.Function<? super T,? extends K> groupBy,
com.gs.collections.api.block.function.Function0<? extends V> zeroValueFactory,
com.gs.collections.api.block.function.Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
<K,V> com.gs.collections.api.map.MutableMap<K,V> |
aggregateInPlaceBy(com.gs.collections.api.block.function.Function<? super T,? extends K> groupBy,
com.gs.collections.api.block.function.Function0<? extends V> zeroValueFactory,
com.gs.collections.api.block.procedure.Procedure2<? super V,? super T> mutatingAggregator) |
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() |
com.gs.collections.api.stack.MutableStack<T> |
asSynchronized() |
com.gs.collections.api.stack.MutableStack<T> |
asUnmodifiable() |
com.gs.collections.api.RichIterable<com.gs.collections.api.RichIterable<T>> |
chunk(int size) |
void |
clear() |
<V> ArrayStack<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) |
com.gs.collections.api.stack.primitive.MutableBooleanStack |
collectBoolean(com.gs.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction) |
<R extends com.gs.collections.api.collection.primitive.MutableBooleanCollection> |
collectBoolean(com.gs.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction,
R target) |
com.gs.collections.api.stack.primitive.MutableByteStack |
collectByte(com.gs.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction) |
<R extends com.gs.collections.api.collection.primitive.MutableByteCollection> |
collectByte(com.gs.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction,
R target) |
com.gs.collections.api.stack.primitive.MutableCharStack |
collectChar(com.gs.collections.api.block.function.primitive.CharFunction<? super T> charFunction) |
<R extends com.gs.collections.api.collection.primitive.MutableCharCollection> |
collectChar(com.gs.collections.api.block.function.primitive.CharFunction<? super T> charFunction,
R target) |
com.gs.collections.api.stack.primitive.MutableDoubleStack |
collectDouble(com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction) |
<R extends com.gs.collections.api.collection.primitive.MutableDoubleCollection> |
collectDouble(com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction,
R target) |
com.gs.collections.api.stack.primitive.MutableFloatStack |
collectFloat(com.gs.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction) |
<R extends com.gs.collections.api.collection.primitive.MutableFloatCollection> |
collectFloat(com.gs.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction,
R target) |
<V> ArrayStack<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) |
com.gs.collections.api.stack.primitive.MutableIntStack |
collectInt(com.gs.collections.api.block.function.primitive.IntFunction<? super T> intFunction) |
<R extends com.gs.collections.api.collection.primitive.MutableIntCollection> |
collectInt(com.gs.collections.api.block.function.primitive.IntFunction<? super T> intFunction,
R target) |
com.gs.collections.api.stack.primitive.MutableLongStack |
collectLong(com.gs.collections.api.block.function.primitive.LongFunction<? super T> longFunction) |
<R extends com.gs.collections.api.collection.primitive.MutableLongCollection> |
collectLong(com.gs.collections.api.block.function.primitive.LongFunction<? super T> longFunction,
R target) |
com.gs.collections.api.stack.primitive.MutableShortStack |
collectShort(com.gs.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction) |
<R extends com.gs.collections.api.collection.primitive.MutableShortCollection> |
collectShort(com.gs.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction,
R target) |
<P,V> ArrayStack<V> |
collectWith(com.gs.collections.api.block.function.Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V,R extends Collection<V>> |
collectWith(com.gs.collections.api.block.function.Function2<? super T,? super P,? extends V> function,
P parameter,
R targetCollection) |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> source) |
boolean |
containsAllArguments(Object... elements) |
boolean |
containsAllIterable(Iterable<?> source) |
int |
count(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> int |
countWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
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) |
<P> T |
detectWithIfNone(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
com.gs.collections.api.block.function.Function0<? extends T> function) |
void |
each(com.gs.collections.api.block.procedure.Procedure<? super T> procedure) |
boolean |
equals(Object o) |
<V> ArrayStack<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 |
forEach(com.gs.collections.api.block.procedure.Procedure<? super T> procedure) |
<P> void |
forEachWith(com.gs.collections.api.block.procedure.Procedure2<? super T,? super P> procedure,
P parameter) |
void |
forEachWithIndex(com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
T |
getFirst() |
T |
getLast() |
<V> com.gs.collections.api.multimap.list.MutableListMultimap<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.list.MutableListMultimap<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.MutableMap<V,T> |
groupByUniqueKey(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
<V,R extends com.gs.collections.api.map.MutableMap<V,T>> |
groupByUniqueKey(com.gs.collections.api.block.function.Function<? super T,? extends V> function,
R target) |
int |
hashCode() |
double |
injectInto(double injectedValue,
com.gs.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super T> doubleObjectToDoubleFunction) |
float |
injectInto(float injectedValue,
com.gs.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super T> floatObjectToFloatFunction) |
int |
injectInto(int injectedValue,
com.gs.collections.api.block.function.primitive.IntObjectToIntFunction<? super T> intObjectToIntFunction) |
<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> longObjectToLongFunction) |
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> ArrayStack<T> |
newStack() |
static <T> ArrayStack<T> |
newStack(Iterable<? extends T> items) |
static <T> ArrayStack<T> |
newStackFromTopToBottom(Iterable<? extends T> items) |
static <T> ArrayStack<T> |
newStackFromTopToBottom(T... items) |
static <T> ArrayStack<T> |
newStackWith(T... items) |
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() |
com.gs.collections.api.partition.stack.PartitionMutableStack<T> |
partition(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> com.gs.collections.api.partition.stack.PartitionMutableStack<T> |
partitionWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
T |
peek() |
com.gs.collections.api.list.ListIterable<T> |
peek(int count) |
T |
peekAt(int index) |
T |
pop() |
com.gs.collections.api.list.ListIterable<T> |
pop(int count) |
<R extends com.gs.collections.api.stack.MutableStack<T>> |
pop(int count,
R targetStack) |
<R extends Collection<T>> |
pop(int count,
R targetCollection) |
void |
push(T item) |
void |
readExternal(ObjectInput in) |
ArrayStack<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) |
<P> ArrayStack<T> |
rejectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
<P,R extends Collection<T>> |
rejectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection) |
ArrayStack<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) |
<S> ArrayStack<S> |
selectInstancesOf(Class<S> clazz) |
<P> ArrayStack<T> |
selectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
<P,R extends Collection<T>> |
selectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection) |
int |
size() |
<V> com.gs.collections.api.map.primitive.ObjectDoubleMap<V> |
sumByDouble(com.gs.collections.api.block.function.Function<T,V> groupBy,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> function) |
<V> com.gs.collections.api.map.primitive.ObjectDoubleMap<V> |
sumByFloat(com.gs.collections.api.block.function.Function<T,V> groupBy,
com.gs.collections.api.block.function.primitive.FloatFunction<? super T> function) |
<V> com.gs.collections.api.map.primitive.ObjectLongMap<V> |
sumByInt(com.gs.collections.api.block.function.Function<T,V> groupBy,
com.gs.collections.api.block.function.primitive.IntFunction<? super T> function) |
<V> com.gs.collections.api.map.primitive.ObjectLongMap<V> |
sumByLong(com.gs.collections.api.block.function.Function<T,V> groupBy,
com.gs.collections.api.block.function.primitive.LongFunction<? super T> function) |
double |
sumOfDouble(com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction) |
double |
sumOfFloat(com.gs.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction) |
long |
sumOfInt(com.gs.collections.api.block.function.primitive.IntFunction<? super T> intFunction) |
long |
sumOfLong(com.gs.collections.api.block.function.primitive.LongFunction<? super T> longFunction) |
ArrayStack<T> |
tap(com.gs.collections.api.block.procedure.Procedure<? super T> procedure) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
com.gs.collections.api.bag.MutableBag<T> |
toBag() |
com.gs.collections.api.stack.ImmutableStack<T> |
toImmutable() |
com.gs.collections.api.list.MutableList<T> |
toList() |
<NK,NV> com.gs.collections.api.map.MutableMap<NK,NV> |
toMap(com.gs.collections.api.block.function.Function<? super T,? extends NK> keyFunction,
com.gs.collections.api.block.function.Function<? super T,? extends NV> valueFunction) |
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) |
<V extends Comparable<? super V>> |
toSortedListBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
<NK,NV> com.gs.collections.api.map.sorted.MutableSortedMap<NK,NV> |
toSortedMap(Comparator<? super NK> comparator,
com.gs.collections.api.block.function.Function<? super T,? extends NK> keyFunction,
com.gs.collections.api.block.function.Function<? super T,? extends NV> valueFunction) |
<NK,NV> com.gs.collections.api.map.sorted.MutableSortedMap<NK,NV> |
toSortedMap(com.gs.collections.api.block.function.Function<? super T,? extends NK> keyFunction,
com.gs.collections.api.block.function.Function<? super T,? extends NV> valueFunction) |
com.gs.collections.api.set.sorted.MutableSortedSet<T> |
toSortedSet() |
com.gs.collections.api.set.sorted.MutableSortedSet<T> |
toSortedSet(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
toSortedSetBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
com.gs.collections.api.stack.MutableStack<T> |
toStack() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
<S> ArrayStack<com.gs.collections.api.tuple.Pair<T,S>> |
zip(Iterable<S> that) |
<S,R extends Collection<com.gs.collections.api.tuple.Pair<T,S>>> |
zip(Iterable<S> that,
R target) |
ArrayStack<com.gs.collections.api.tuple.Pair<T,Integer>> |
zipWithIndex() |
<R extends Collection<com.gs.collections.api.tuple.Pair<T,Integer>>> |
zipWithIndex(R target) |
forEach, spliteratorpublic ArrayStack()
public ArrayStack(int initialCapacity)
public ArrayStack(T... items)
public static <T> ArrayStack<T> newStack()
public static <T> ArrayStack<T> newStack(Iterable<? extends T> items)
public static <T> ArrayStack<T> newStackWith(T... items)
public static <T> ArrayStack<T> newStackFromTopToBottom(T... items)
public static <T> ArrayStack<T> newStackFromTopToBottom(Iterable<? extends T> items)
public void push(T item)
push in interface com.gs.collections.api.stack.MutableStack<T>public com.gs.collections.api.list.ListIterable<T> pop(int count)
pop in interface com.gs.collections.api.stack.MutableStack<T>public <R extends Collection<T>> R pop(int count, R targetCollection)
pop in interface com.gs.collections.api.stack.MutableStack<T>public <R extends com.gs.collections.api.stack.MutableStack<T>> R pop(int count, R targetStack)
pop in interface com.gs.collections.api.stack.MutableStack<T>public void clear()
clear in interface com.gs.collections.api.stack.MutableStack<T>public com.gs.collections.api.list.ListIterable<T> peek(int count)
peek in interface com.gs.collections.api.stack.StackIterable<T>public T peekAt(int index)
peekAt in interface com.gs.collections.api.stack.StackIterable<T>public int size()
size in interface com.gs.collections.api.RichIterable<T>public boolean isEmpty()
isEmpty in interface com.gs.collections.api.RichIterable<T>public boolean notEmpty()
notEmpty in interface com.gs.collections.api.RichIterable<T>public T getFirst()
public T getLast()
public boolean contains(Object object)
contains in interface com.gs.collections.api.RichIterable<T>public boolean containsAllIterable(Iterable<?> source)
containsAllIterable in interface com.gs.collections.api.RichIterable<T>public boolean containsAll(Collection<?> source)
containsAll in interface com.gs.collections.api.RichIterable<T>public boolean containsAllArguments(Object... elements)
containsAllArguments in interface com.gs.collections.api.RichIterable<T>public <V> ArrayStack<V> collect(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
public com.gs.collections.api.stack.primitive.MutableBooleanStack collectBoolean(com.gs.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction)
public <R extends com.gs.collections.api.collection.primitive.MutableBooleanCollection> R collectBoolean(com.gs.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction, R target)
collectBoolean in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.stack.primitive.MutableByteStack collectByte(com.gs.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction)
public <R extends com.gs.collections.api.collection.primitive.MutableByteCollection> R collectByte(com.gs.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction, R target)
collectByte in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.stack.primitive.MutableCharStack collectChar(com.gs.collections.api.block.function.primitive.CharFunction<? super T> charFunction)
public <R extends com.gs.collections.api.collection.primitive.MutableCharCollection> R collectChar(com.gs.collections.api.block.function.primitive.CharFunction<? super T> charFunction, R target)
collectChar in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.stack.primitive.MutableDoubleStack collectDouble(com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction)
public <R extends com.gs.collections.api.collection.primitive.MutableDoubleCollection> R collectDouble(com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction, R target)
collectDouble in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.stack.primitive.MutableFloatStack collectFloat(com.gs.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction)
public <R extends com.gs.collections.api.collection.primitive.MutableFloatCollection> R collectFloat(com.gs.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction, R target)
collectFloat in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.stack.primitive.MutableIntStack collectInt(com.gs.collections.api.block.function.primitive.IntFunction<? super T> intFunction)
public <R extends com.gs.collections.api.collection.primitive.MutableIntCollection> R collectInt(com.gs.collections.api.block.function.primitive.IntFunction<? super T> intFunction, R target)
collectInt in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.stack.primitive.MutableLongStack collectLong(com.gs.collections.api.block.function.primitive.LongFunction<? super T> longFunction)
public <R extends com.gs.collections.api.collection.primitive.MutableLongCollection> R collectLong(com.gs.collections.api.block.function.primitive.LongFunction<? super T> longFunction, R target)
collectLong in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.stack.primitive.MutableShortStack collectShort(com.gs.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction)
public <R extends com.gs.collections.api.collection.primitive.MutableShortCollection> R collectShort(com.gs.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction, R target)
collectShort 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>public <P,V> ArrayStack<V> collectWith(com.gs.collections.api.block.function.Function2<? super T,? super P,? extends V> function, P parameter)
public <V> ArrayStack<V> collectIf(com.gs.collections.api.block.predicate.Predicate<? super T> predicate, com.gs.collections.api.block.function.Function<? super T,? extends V> function)
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>public <P,V,R extends Collection<V>> R collectWith(com.gs.collections.api.block.function.Function2<? super T,? super P,? extends V> function, P parameter, R targetCollection)
collectWith in interface com.gs.collections.api.RichIterable<T>public <V> ArrayStack<V> flatCollect(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
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>public ArrayStack<T> select(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public <P> ArrayStack<T> selectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
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>public <S> ArrayStack<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface com.gs.collections.api.RichIterable<T>public <P,R extends Collection<T>> R selectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter, R targetCollection)
selectWith in interface com.gs.collections.api.RichIterable<T>public ArrayStack<T> reject(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
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>public <P> ArrayStack<T> rejectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
public <P,R extends Collection<T>> R rejectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter, R targetCollection)
rejectWith in interface com.gs.collections.api.RichIterable<T>public T detect(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
detect in interface com.gs.collections.api.RichIterable<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>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>public <P> T detectWithIfNone(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter, com.gs.collections.api.block.function.Function0<? extends T> function)
detectWithIfNone in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.partition.stack.PartitionMutableStack<T> partition(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public <P> com.gs.collections.api.partition.stack.PartitionMutableStack<T> partitionWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
public <S> ArrayStack<com.gs.collections.api.tuple.Pair<T,S>> zip(Iterable<S> that)
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>public ArrayStack<com.gs.collections.api.tuple.Pair<T,Integer>> zipWithIndex()
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>public int count(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
count in interface com.gs.collections.api.RichIterable<T>public <P> int countWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
countWith in interface com.gs.collections.api.RichIterable<T>public boolean anySatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
anySatisfy in interface com.gs.collections.api.RichIterable<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>public boolean allSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
allSatisfy in interface com.gs.collections.api.RichIterable<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>public boolean noneSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
noneSatisfy in interface com.gs.collections.api.RichIterable<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>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>public int injectInto(int injectedValue,
com.gs.collections.api.block.function.primitive.IntObjectToIntFunction<? super T> intObjectToIntFunction)
injectInto in interface com.gs.collections.api.RichIterable<T>public long injectInto(long injectedValue,
com.gs.collections.api.block.function.primitive.LongObjectToLongFunction<? super T> longObjectToLongFunction)
injectInto in interface com.gs.collections.api.RichIterable<T>public double injectInto(double injectedValue,
com.gs.collections.api.block.function.primitive.DoubleObjectToDoubleFunction<? super T> doubleObjectToDoubleFunction)
injectInto in interface com.gs.collections.api.RichIterable<T>public float injectInto(float injectedValue,
com.gs.collections.api.block.function.primitive.FloatObjectToFloatFunction<? super T> floatObjectToFloatFunction)
injectInto in interface com.gs.collections.api.RichIterable<T>public long sumOfInt(com.gs.collections.api.block.function.primitive.IntFunction<? super T> intFunction)
sumOfInt in interface com.gs.collections.api.RichIterable<T>public double sumOfFloat(com.gs.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction)
sumOfFloat in interface com.gs.collections.api.RichIterable<T>public long sumOfLong(com.gs.collections.api.block.function.primitive.LongFunction<? super T> longFunction)
sumOfLong in interface com.gs.collections.api.RichIterable<T>public double sumOfDouble(com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction)
sumOfDouble in interface com.gs.collections.api.RichIterable<T>public <V> com.gs.collections.api.map.primitive.ObjectLongMap<V> sumByInt(com.gs.collections.api.block.function.Function<T,V> groupBy, com.gs.collections.api.block.function.primitive.IntFunction<? super T> function)
sumByInt in interface com.gs.collections.api.RichIterable<T>public <V> com.gs.collections.api.map.primitive.ObjectDoubleMap<V> sumByFloat(com.gs.collections.api.block.function.Function<T,V> groupBy, com.gs.collections.api.block.function.primitive.FloatFunction<? super T> function)
sumByFloat in interface com.gs.collections.api.RichIterable<T>public <V> com.gs.collections.api.map.primitive.ObjectLongMap<V> sumByLong(com.gs.collections.api.block.function.Function<T,V> groupBy, com.gs.collections.api.block.function.primitive.LongFunction<? super T> function)
sumByLong in interface com.gs.collections.api.RichIterable<T>public <V> com.gs.collections.api.map.primitive.ObjectDoubleMap<V> sumByDouble(com.gs.collections.api.block.function.Function<T,V> groupBy, com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> function)
sumByDouble in interface com.gs.collections.api.RichIterable<T>public T max(Comparator<? super T> comparator)
max in interface com.gs.collections.api.RichIterable<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>public T min(Comparator<? super T> comparator)
min in interface com.gs.collections.api.RichIterable<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>public String makeString()
makeString in interface com.gs.collections.api.RichIterable<T>public String makeString(String separator)
makeString in interface com.gs.collections.api.RichIterable<T>public String makeString(String start, String separator, String end)
makeString in interface com.gs.collections.api.RichIterable<T>public void appendString(Appendable appendable)
appendString in interface com.gs.collections.api.RichIterable<T>public void appendString(Appendable appendable, String separator)
appendString in interface com.gs.collections.api.RichIterable<T>public void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface com.gs.collections.api.RichIterable<T>public <V> com.gs.collections.api.multimap.list.MutableListMultimap<V,T> groupBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
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>public <V> com.gs.collections.api.multimap.list.MutableListMultimap<V,T> groupByEach(com.gs.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
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>public <V> com.gs.collections.api.map.MutableMap<V,T> groupByUniqueKey(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
public <V,R extends com.gs.collections.api.map.MutableMap<V,T>> R groupByUniqueKey(com.gs.collections.api.block.function.Function<? super T,? extends V> function, R target)
groupByUniqueKey in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.RichIterable<com.gs.collections.api.RichIterable<T>> chunk(int size)
chunk in interface com.gs.collections.api.RichIterable<T>public ArrayStack<T> tap(com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
public void forEach(com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
forEach in interface com.gs.collections.api.InternalIterable<T>public void each(com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
each in interface com.gs.collections.api.RichIterable<T>public <P> void forEachWith(com.gs.collections.api.block.procedure.Procedure2<? super T,? super P> procedure, P parameter)
forEachWith in interface com.gs.collections.api.InternalIterable<T>public void forEachWithIndex(com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface com.gs.collections.api.InternalIterable<T>public com.gs.collections.api.list.MutableList<T> toList()
toList in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.list.MutableList<T> toSortedList()
toSortedList in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.list.MutableList<T> toSortedList(Comparator<? super T> comparator)
toSortedList in interface com.gs.collections.api.RichIterable<T>public <V extends Comparable<? super V>> com.gs.collections.api.list.MutableList<T> toSortedListBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
toSortedListBy in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.set.MutableSet<T> toSet()
toSet in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.set.sorted.MutableSortedSet<T> toSortedSet()
toSortedSet in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.set.sorted.MutableSortedSet<T> toSortedSet(Comparator<? super T> comparator)
toSortedSet in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.stack.MutableStack<T> toStack()
toStack in interface com.gs.collections.api.stack.StackIterable<T>public com.gs.collections.api.stack.ImmutableStack<T> toImmutable()
toImmutable in interface com.gs.collections.api.stack.StackIterable<T>public <V extends Comparable<? super V>> com.gs.collections.api.set.sorted.MutableSortedSet<T> toSortedSetBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
toSortedSetBy in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.bag.MutableBag<T> toBag()
toBag in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.bag.sorted.MutableSortedBag<T> toSortedBag()
toSortedBag in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.bag.sorted.MutableSortedBag<T> toSortedBag(Comparator<? super T> comparator)
toSortedBag in interface com.gs.collections.api.RichIterable<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>public <NK,NV> com.gs.collections.api.map.MutableMap<NK,NV> toMap(com.gs.collections.api.block.function.Function<? super T,? extends NK> keyFunction, com.gs.collections.api.block.function.Function<? super T,? extends NV> valueFunction)
toMap in interface com.gs.collections.api.RichIterable<T>public <NK,NV> com.gs.collections.api.map.sorted.MutableSortedMap<NK,NV> toSortedMap(com.gs.collections.api.block.function.Function<? super T,? extends NK> keyFunction, com.gs.collections.api.block.function.Function<? super T,? extends NV> valueFunction)
toSortedMap in interface com.gs.collections.api.RichIterable<T>public <NK,NV> com.gs.collections.api.map.sorted.MutableSortedMap<NK,NV> toSortedMap(Comparator<? super NK> comparator, com.gs.collections.api.block.function.Function<? super T,? extends NK> keyFunction, com.gs.collections.api.block.function.Function<? super T,? extends NV> valueFunction)
toSortedMap in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.LazyIterable<T> asLazy()
asLazy in interface com.gs.collections.api.RichIterable<T>public com.gs.collections.api.stack.MutableStack<T> asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.stack.MutableStack<T>public com.gs.collections.api.stack.MutableStack<T> asSynchronized()
asSynchronized in interface com.gs.collections.api.stack.MutableStack<T>public Object[] toArray()
toArray in interface com.gs.collections.api.RichIterable<T>public <T> T[] toArray(T[] a)
toArray in interface com.gs.collections.api.RichIterable<T>public boolean equals(Object o)
public String toString()
public int hashCode()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic <K,V> com.gs.collections.api.map.MutableMap<K,V> aggregateInPlaceBy(com.gs.collections.api.block.function.Function<? super T,? extends K> groupBy, com.gs.collections.api.block.function.Function0<? extends V> zeroValueFactory, com.gs.collections.api.block.procedure.Procedure2<? super V,? super T> mutatingAggregator)
aggregateInPlaceBy in interface com.gs.collections.api.RichIterable<T>public <K,V> com.gs.collections.api.map.MutableMap<K,V> aggregateBy(com.gs.collections.api.block.function.Function<? super T,? extends K> groupBy, com.gs.collections.api.block.function.Function0<? extends V> zeroValueFactory, com.gs.collections.api.block.function.Function2<? super V,? super T,? extends V> nonMutatingAggregator)
aggregateBy in interface com.gs.collections.api.RichIterable<T>Copyright © 2004–2016. All rights reserved.