public class ArrayStack<T> extends Object implements MutableStack<T>, Externalizable
| Constructor and Description |
|---|
ArrayStack() |
ArrayStack(int initialCapacity) |
ArrayStack(Iterable<T> items) |
ArrayStack(T... items) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(Predicate<? super T> predicate) |
<P> boolean |
allSatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
anySatisfy(Predicate<? super T> predicate) |
<P> boolean |
anySatisfyWith(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) |
LazyIterable<T> |
asLazy() |
MutableStack<T> |
asSynchronized() |
MutableStack<T> |
asUnmodifiable() |
RichIterable<RichIterable<T>> |
chunk(int size) |
void |
clear() |
<V> ArrayStack<V> |
collect(Function<? super T,? extends V> function) |
<V,R extends Collection<V>> |
collect(Function<? super T,? extends V> function,
R target) |
MutableBooleanStack |
collectBoolean(BooleanFunction<? super T> booleanFunction) |
<R extends MutableBooleanCollection> |
collectBoolean(BooleanFunction<? super T> booleanFunction,
R target) |
MutableByteStack |
collectByte(ByteFunction<? super T> byteFunction) |
<R extends MutableByteCollection> |
collectByte(ByteFunction<? super T> byteFunction,
R target) |
MutableCharStack |
collectChar(CharFunction<? super T> charFunction) |
<R extends MutableCharCollection> |
collectChar(CharFunction<? super T> charFunction,
R target) |
MutableDoubleStack |
collectDouble(DoubleFunction<? super T> doubleFunction) |
<R extends MutableDoubleCollection> |
collectDouble(DoubleFunction<? super T> doubleFunction,
R target) |
MutableFloatStack |
collectFloat(FloatFunction<? super T> floatFunction) |
<R extends MutableFloatCollection> |
collectFloat(FloatFunction<? super T> floatFunction,
R target) |
<V> ArrayStack<V> |
collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V,R extends Collection<V>> |
collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function,
R target) |
MutableIntStack |
collectInt(IntFunction<? super T> intFunction) |
<R extends MutableIntCollection> |
collectInt(IntFunction<? super T> intFunction,
R target) |
MutableLongStack |
collectLong(LongFunction<? super T> longFunction) |
<R extends MutableLongCollection> |
collectLong(LongFunction<? super T> longFunction,
R target) |
MutableShortStack |
collectShort(ShortFunction<? super T> shortFunction) |
<R extends MutableShortCollection> |
collectShort(ShortFunction<? super T> shortFunction,
R target) |
<P,V> ArrayStack<V> |
collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V,R extends Collection<V>> |
collectWith(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) |
<S> boolean |
corresponds(OrderedIterable<S> other,
Predicate2<? super T,? super S> predicate) |
int |
count(Predicate<? super T> predicate) |
<P> int |
countWith(Predicate2<? super T,? super P> predicate,
P parameter) |
T |
detect(Predicate<? super T> predicate) |
T |
detectIfNone(Predicate<? super T> predicate,
Function0<? extends T> function) |
int |
detectIndex(Predicate<? super T> predicate) |
Optional<T> |
detectOptional(Predicate<? super T> predicate) |
<P> T |
detectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> T |
detectWithIfNone(Predicate2<? super T,? super P> predicate,
P parameter,
Function0<? extends T> function) |
<P> Optional<T> |
detectWithOptional(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableStack<T> |
distinct() |
MutableStack<T> |
dropWhile(Predicate<? super T> predicate) |
void |
each(Procedure<? super T> procedure) |
boolean |
equals(Object o) |
<V> ArrayStack<V> |
flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V,R extends Collection<V>> |
flatCollect(Function<? super T,? extends Iterable<V>> function,
R target) |
<R extends MutableBooleanCollection> |
flatCollectBoolean(Function<? super T,? extends BooleanIterable> function,
R target) |
<R extends MutableByteCollection> |
flatCollectByte(Function<? super T,? extends ByteIterable> function,
R target) |
<R extends MutableCharCollection> |
flatCollectChar(Function<? super T,? extends CharIterable> function,
R target) |
<R extends MutableDoubleCollection> |
flatCollectDouble(Function<? super T,? extends DoubleIterable> function,
R target) |
<R extends MutableFloatCollection> |
flatCollectFloat(Function<? super T,? extends FloatIterable> function,
R target) |
<R extends MutableIntCollection> |
flatCollectInt(Function<? super T,? extends IntIterable> function,
R target) |
<R extends MutableLongCollection> |
flatCollectLong(Function<? super T,? extends LongIterable> function,
R target) |
<R extends MutableShortCollection> |
flatCollectShort(Function<? super T,? extends ShortIterable> function,
R target) |
void |
forEach(int startIndex,
int endIndex,
Procedure<? super T> procedure) |
<P> void |
forEachWith(Procedure2<? super T,? super P> procedure,
P parameter) |
void |
forEachWithIndex(int fromIndex,
int toIndex,
ObjectIntProcedure<? super T> objectIntProcedure) |
void |
forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure) |
T |
getFirst() |
T |
getLast() |
T |
getOnly() |
<V> MutableListMultimap<V,T> |
groupBy(Function<? super T,? extends V> function) |
<V,R extends MutableMultimap<V,T>> |
groupBy(Function<? super T,? extends V> function,
R target) |
<V> MutableListMultimap<V,T> |
groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V,R extends MutableMultimap<V,T>> |
groupByEach(Function<? super T,? extends Iterable<V>> function,
R target) |
<V> MutableMap<V,T> |
groupByUniqueKey(Function<? super T,? extends V> function) |
<V,R extends MutableMapIterable<V,T>> |
groupByUniqueKey(Function<? super T,? extends V> function,
R target) |
int |
hashCode() |
boolean |
hasSameElements(OrderedIterable<T> other) |
int |
indexOf(Object object) |
double |
injectInto(double injectedValue,
DoubleObjectToDoubleFunction<? super T> doubleObjectToDoubleFunction) |
float |
injectInto(float injectedValue,
FloatObjectToFloatFunction<? super T> floatObjectToFloatFunction) |
int |
injectInto(int injectedValue,
IntObjectToIntFunction<? super T> intObjectToIntFunction) |
<IV> IV |
injectInto(IV injectedValue,
Function2<? super IV,? super T,? extends IV> function) |
long |
injectInto(long injectedValue,
LongObjectToLongFunction<? super T> longObjectToLongFunction) |
<R extends Collection<T>> |
into(R target) |
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(Function<? super T,? extends V> function) |
T |
min() |
T |
min(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
minBy(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(Predicate<? super T> predicate) |
<P> boolean |
noneSatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
notEmpty() |
PartitionMutableStack<T> |
partition(Predicate<? super T> predicate) |
PartitionMutableStack<T> |
partitionWhile(Predicate<? super T> predicate) |
<P> PartitionMutableStack<T> |
partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
T |
peek() |
ListIterable<T> |
peek(int count) |
T |
peekAt(int index) |
T |
pop() |
ListIterable<T> |
pop(int count) |
<R extends Collection<T>> |
pop(int count,
R targetCollection) |
<R extends MutableStack<T>> |
pop(int count,
R targetStack) |
void |
push(T item) |
void |
readExternal(ObjectInput in) |
ArrayStack<T> |
reject(Predicate<? super T> predicate) |
<R extends Collection<T>> |
reject(Predicate<? super T> predicate,
R target) |
<P> ArrayStack<T> |
rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P,R extends Collection<T>> |
rejectWith(Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection) |
ArrayStack<T> |
select(Predicate<? super T> predicate) |
<R extends Collection<T>> |
select(Predicate<? super T> predicate,
R target) |
<S> ArrayStack<S> |
selectInstancesOf(Class<S> clazz) |
<P> ArrayStack<T> |
selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P,R extends Collection<T>> |
selectWith(Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection) |
int |
size() |
<V> MutableObjectDoubleMap<V> |
sumByDouble(Function<? super T,? extends V> groupBy,
DoubleFunction<? super T> function) |
<V> MutableObjectDoubleMap<V> |
sumByFloat(Function<? super T,? extends V> groupBy,
FloatFunction<? super T> function) |
<V> MutableObjectLongMap<V> |
sumByInt(Function<? super T,? extends V> groupBy,
IntFunction<? super T> function) |
<V> MutableObjectLongMap<V> |
sumByLong(Function<? super T,? extends V> groupBy,
LongFunction<? super T> function) |
double |
sumOfDouble(DoubleFunction<? super T> doubleFunction) |
double |
sumOfFloat(FloatFunction<? super T> floatFunction) |
long |
sumOfInt(IntFunction<? super T> intFunction) |
long |
sumOfLong(LongFunction<? super T> longFunction) |
MutableStack<T> |
takeWhile(Predicate<? super T> predicate) |
ArrayStack<T> |
tap(Procedure<? super T> procedure) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
MutableBag<T> |
toBag() |
<NK,NV> MutableBiMap<NK,NV> |
toBiMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
ImmutableStack<T> |
toImmutable() |
MutableList<T> |
toList() |
<NK,NV> MutableMap<NK,NV> |
toMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
<NK,NV,R extends Map<NK,NV>> |
toMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction,
R target) |
MutableSet<T> |
toSet() |
MutableSortedBag<T> |
toSortedBag() |
MutableSortedBag<T> |
toSortedBag(Comparator<? super T> comparator) |
MutableList<T> |
toSortedList() |
MutableList<T> |
toSortedList(Comparator<? super T> comparator) |
<NK,NV> MutableSortedMap<NK,NV> |
toSortedMap(Comparator<? super NK> comparator,
Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
<NK,NV> MutableSortedMap<NK,NV> |
toSortedMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
<KK extends Comparable<? super KK>,NK,NV> |
toSortedMapBy(Function<? super NK,KK> sortBy,
Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
MutableSortedSet<T> |
toSortedSet() |
MutableSortedSet<T> |
toSortedSet(Comparator<? super T> comparator) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
<S> ArrayStack<Pair<T,S>> |
zip(Iterable<S> that) |
<S,R extends Collection<Pair<T,S>>> |
zip(Iterable<S> that,
R target) |
ArrayStack<Pair<T,Integer>> |
zipWithIndex() |
<R extends Collection<Pair<T,Integer>>> |
zipWithIndex(R target) |
aggregateBy, aggregateInPlaceBy, collectWithIndex, countBy, countByEach, countByWith, flatCollectWithtoStackcollectWithIndex, getFirstOptional, getLastOptional, rejectWithIndex, selectWithIndexaggregateBy, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, countBy, countByEach, countByWith, flatCollectWith, forEach, getAny, groupByAndCollect, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, makeString, maxByOptional, maxOptional, maxOptional, minByOptional, minOptional, minOptional, reduce, reduceInPlace, reduceInPlace, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toSortedBagBy, toSortedListBy, toSortedSetByforEachspliteratorpublic 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 MutableStack<T>public T pop()
pop in interface MutableStack<T>public ListIterable<T> pop(int count)
pop in interface MutableStack<T>public <R extends Collection<T>> R pop(int count, R targetCollection)
pop in interface MutableStack<T>public <R extends MutableStack<T>> R pop(int count, R targetStack)
pop in interface MutableStack<T>public void clear()
clear in interface MutableStack<T>public T peek()
peek in interface StackIterable<T>public ListIterable<T> peek(int count)
peek in interface StackIterable<T>public T peekAt(int index)
peekAt in interface StackIterable<T>public int size()
size in interface RichIterable<T>public boolean isEmpty()
isEmpty in interface RichIterable<T>public boolean notEmpty()
notEmpty in interface RichIterable<T>public T getFirst()
getFirst in interface OrderedIterable<T>getFirst in interface RichIterable<T>getFirst in interface StackIterable<T>public T getLast()
getLast in interface OrderedIterable<T>getLast in interface RichIterable<T>getLast in interface StackIterable<T>public T getOnly()
getOnly in interface RichIterable<T>public boolean contains(Object object)
contains in interface RichIterable<T>public boolean containsAllIterable(Iterable<?> source)
containsAllIterable in interface RichIterable<T>public boolean containsAll(Collection<?> source)
containsAll in interface RichIterable<T>public boolean containsAllArguments(Object... elements)
containsAllArguments in interface RichIterable<T>public <V> ArrayStack<V> collect(Function<? super T,? extends V> function)
collect in interface OrderedIterable<T>collect in interface RichIterable<T>collect in interface MutableStack<T>collect in interface StackIterable<T>public MutableBooleanStack collectBoolean(BooleanFunction<? super T> booleanFunction)
collectBoolean in interface OrderedIterable<T>collectBoolean in interface RichIterable<T>collectBoolean in interface MutableStack<T>collectBoolean in interface StackIterable<T>public <R extends MutableBooleanCollection> R collectBoolean(BooleanFunction<? super T> booleanFunction, R target)
collectBoolean in interface RichIterable<T>public <R extends MutableBooleanCollection> R flatCollectBoolean(Function<? super T,? extends BooleanIterable> function, R target)
flatCollectBoolean in interface RichIterable<T>public MutableByteStack collectByte(ByteFunction<? super T> byteFunction)
collectByte in interface OrderedIterable<T>collectByte in interface RichIterable<T>collectByte in interface MutableStack<T>collectByte in interface StackIterable<T>public <R extends MutableByteCollection> R collectByte(ByteFunction<? super T> byteFunction, R target)
collectByte in interface RichIterable<T>public <R extends MutableByteCollection> R flatCollectByte(Function<? super T,? extends ByteIterable> function, R target)
flatCollectByte in interface RichIterable<T>public MutableCharStack collectChar(CharFunction<? super T> charFunction)
collectChar in interface OrderedIterable<T>collectChar in interface RichIterable<T>collectChar in interface MutableStack<T>collectChar in interface StackIterable<T>public <R extends MutableCharCollection> R collectChar(CharFunction<? super T> charFunction, R target)
collectChar in interface RichIterable<T>public <R extends MutableCharCollection> R flatCollectChar(Function<? super T,? extends CharIterable> function, R target)
flatCollectChar in interface RichIterable<T>public MutableDoubleStack collectDouble(DoubleFunction<? super T> doubleFunction)
collectDouble in interface OrderedIterable<T>collectDouble in interface RichIterable<T>collectDouble in interface MutableStack<T>collectDouble in interface StackIterable<T>public <R extends MutableDoubleCollection> R collectDouble(DoubleFunction<? super T> doubleFunction, R target)
collectDouble in interface RichIterable<T>public <R extends MutableDoubleCollection> R flatCollectDouble(Function<? super T,? extends DoubleIterable> function, R target)
flatCollectDouble in interface RichIterable<T>public MutableFloatStack collectFloat(FloatFunction<? super T> floatFunction)
collectFloat in interface OrderedIterable<T>collectFloat in interface RichIterable<T>collectFloat in interface MutableStack<T>collectFloat in interface StackIterable<T>public <R extends MutableFloatCollection> R collectFloat(FloatFunction<? super T> floatFunction, R target)
collectFloat in interface RichIterable<T>public <R extends MutableFloatCollection> R flatCollectFloat(Function<? super T,? extends FloatIterable> function, R target)
flatCollectFloat in interface RichIterable<T>public MutableIntStack collectInt(IntFunction<? super T> intFunction)
collectInt in interface OrderedIterable<T>collectInt in interface RichIterable<T>collectInt in interface MutableStack<T>collectInt in interface StackIterable<T>public <R extends MutableIntCollection> R collectInt(IntFunction<? super T> intFunction, R target)
collectInt in interface RichIterable<T>public <R extends MutableIntCollection> R flatCollectInt(Function<? super T,? extends IntIterable> function, R target)
flatCollectInt in interface RichIterable<T>public MutableLongStack collectLong(LongFunction<? super T> longFunction)
collectLong in interface OrderedIterable<T>collectLong in interface RichIterable<T>collectLong in interface MutableStack<T>collectLong in interface StackIterable<T>public <R extends MutableLongCollection> R collectLong(LongFunction<? super T> longFunction, R target)
collectLong in interface RichIterable<T>public <R extends MutableLongCollection> R flatCollectLong(Function<? super T,? extends LongIterable> function, R target)
flatCollectLong in interface RichIterable<T>public MutableShortStack collectShort(ShortFunction<? super T> shortFunction)
collectShort in interface OrderedIterable<T>collectShort in interface RichIterable<T>collectShort in interface MutableStack<T>collectShort in interface StackIterable<T>public <R extends MutableShortCollection> R collectShort(ShortFunction<? super T> shortFunction, R target)
collectShort in interface RichIterable<T>public <R extends MutableShortCollection> R flatCollectShort(Function<? super T,? extends ShortIterable> function, R target)
flatCollectShort in interface RichIterable<T>public <V,R extends Collection<V>> R collect(Function<? super T,? extends V> function, R target)
collect in interface RichIterable<T>public <P,V> ArrayStack<V> collectWith(Function2<? super T,? super P,? extends V> function, P parameter)
collectWith in interface OrderedIterable<T>collectWith in interface RichIterable<T>collectWith in interface MutableStack<T>collectWith in interface StackIterable<T>public <V> ArrayStack<V> collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function)
collectIf in interface OrderedIterable<T>collectIf in interface RichIterable<T>collectIf in interface MutableStack<T>collectIf in interface StackIterable<T>public <V,R extends Collection<V>> R collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function, R target)
collectIf in interface RichIterable<T>public <P,V,R extends Collection<V>> R collectWith(Function2<? super T,? super P,? extends V> function, P parameter, R targetCollection)
collectWith in interface RichIterable<T>public <V> ArrayStack<V> flatCollect(Function<? super T,? extends Iterable<V>> function)
flatCollect in interface OrderedIterable<T>flatCollect in interface RichIterable<T>flatCollect in interface MutableStack<T>flatCollect in interface StackIterable<T>public <V,R extends Collection<V>> R flatCollect(Function<? super T,? extends Iterable<V>> function, R target)
flatCollect in interface RichIterable<T>public ArrayStack<T> select(Predicate<? super T> predicate)
select in interface OrderedIterable<T>select in interface RichIterable<T>select in interface MutableStack<T>select in interface StackIterable<T>public <P> ArrayStack<T> selectWith(Predicate2<? super T,? super P> predicate, P parameter)
selectWith in interface OrderedIterable<T>selectWith in interface RichIterable<T>selectWith in interface MutableStack<T>selectWith in interface StackIterable<T>public <R extends Collection<T>> R select(Predicate<? super T> predicate, R target)
select in interface RichIterable<T>public <S> ArrayStack<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface OrderedIterable<T>selectInstancesOf in interface RichIterable<T>selectInstancesOf in interface MutableStack<T>selectInstancesOf in interface StackIterable<T>public <P,R extends Collection<T>> R selectWith(Predicate2<? super T,? super P> predicate, P parameter, R targetCollection)
selectWith in interface RichIterable<T>public ArrayStack<T> reject(Predicate<? super T> predicate)
reject in interface OrderedIterable<T>reject in interface RichIterable<T>reject in interface MutableStack<T>reject in interface StackIterable<T>public <R extends Collection<T>> R reject(Predicate<? super T> predicate, R target)
reject in interface RichIterable<T>public <P> ArrayStack<T> rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
rejectWith in interface OrderedIterable<T>rejectWith in interface RichIterable<T>rejectWith in interface MutableStack<T>rejectWith in interface StackIterable<T>public <P,R extends Collection<T>> R rejectWith(Predicate2<? super T,? super P> predicate, P parameter, R targetCollection)
rejectWith in interface RichIterable<T>public T detect(Predicate<? super T> predicate)
detect in interface RichIterable<T>public <P> T detectWith(Predicate2<? super T,? super P> predicate, P parameter)
detectWith in interface RichIterable<T>public Optional<T> detectOptional(Predicate<? super T> predicate)
detectOptional in interface RichIterable<T>public <P> Optional<T> detectWithOptional(Predicate2<? super T,? super P> predicate, P parameter)
detectWithOptional in interface RichIterable<T>public T detectIfNone(Predicate<? super T> predicate, Function0<? extends T> function)
detectIfNone in interface RichIterable<T>public <P> T detectWithIfNone(Predicate2<? super T,? super P> predicate, P parameter, Function0<? extends T> function)
detectWithIfNone in interface RichIterable<T>public PartitionMutableStack<T> partition(Predicate<? super T> predicate)
partition in interface OrderedIterable<T>partition in interface RichIterable<T>partition in interface MutableStack<T>partition in interface StackIterable<T>public <P> PartitionMutableStack<T> partitionWith(Predicate2<? super T,? super P> predicate, P parameter)
partitionWith in interface OrderedIterable<T>partitionWith in interface RichIterable<T>partitionWith in interface MutableStack<T>partitionWith in interface StackIterable<T>public <S> ArrayStack<Pair<T,S>> zip(Iterable<S> that)
zip in interface OrderedIterable<T>zip in interface RichIterable<T>zip in interface MutableStack<T>zip in interface StackIterable<T>public <S,R extends Collection<Pair<T,S>>> R zip(Iterable<S> that, R target)
zip in interface OrderedIterable<T>zip in interface RichIterable<T>public ArrayStack<Pair<T,Integer>> zipWithIndex()
zipWithIndex in interface OrderedIterable<T>zipWithIndex in interface RichIterable<T>zipWithIndex in interface MutableStack<T>zipWithIndex in interface StackIterable<T>public <R extends Collection<Pair<T,Integer>>> R zipWithIndex(R target)
zipWithIndex in interface OrderedIterable<T>zipWithIndex in interface RichIterable<T>public int count(Predicate<? super T> predicate)
count in interface RichIterable<T>public <P> int countWith(Predicate2<? super T,? super P> predicate, P parameter)
countWith in interface RichIterable<T>public boolean anySatisfy(Predicate<? super T> predicate)
anySatisfy in interface RichIterable<T>public <P> boolean anySatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
anySatisfyWith in interface RichIterable<T>public boolean allSatisfy(Predicate<? super T> predicate)
allSatisfy in interface RichIterable<T>public <P> boolean allSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
allSatisfyWith in interface RichIterable<T>public boolean noneSatisfy(Predicate<? super T> predicate)
noneSatisfy in interface RichIterable<T>public <P> boolean noneSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
noneSatisfyWith in interface RichIterable<T>public <IV> IV injectInto(IV injectedValue,
Function2<? super IV,? super T,? extends IV> function)
injectInto in interface RichIterable<T>public int injectInto(int injectedValue,
IntObjectToIntFunction<? super T> intObjectToIntFunction)
injectInto in interface RichIterable<T>public long injectInto(long injectedValue,
LongObjectToLongFunction<? super T> longObjectToLongFunction)
injectInto in interface RichIterable<T>public double injectInto(double injectedValue,
DoubleObjectToDoubleFunction<? super T> doubleObjectToDoubleFunction)
injectInto in interface RichIterable<T>public float injectInto(float injectedValue,
FloatObjectToFloatFunction<? super T> floatObjectToFloatFunction)
injectInto in interface RichIterable<T>public long sumOfInt(IntFunction<? super T> intFunction)
sumOfInt in interface RichIterable<T>public double sumOfFloat(FloatFunction<? super T> floatFunction)
sumOfFloat in interface RichIterable<T>public long sumOfLong(LongFunction<? super T> longFunction)
sumOfLong in interface RichIterable<T>public double sumOfDouble(DoubleFunction<? super T> doubleFunction)
sumOfDouble in interface RichIterable<T>public <V> MutableObjectLongMap<V> sumByInt(Function<? super T,? extends V> groupBy, IntFunction<? super T> function)
sumByInt in interface RichIterable<T>sumByInt in interface MutableStack<T>public <V> MutableObjectDoubleMap<V> sumByFloat(Function<? super T,? extends V> groupBy, FloatFunction<? super T> function)
sumByFloat in interface RichIterable<T>sumByFloat in interface MutableStack<T>public <V> MutableObjectLongMap<V> sumByLong(Function<? super T,? extends V> groupBy, LongFunction<? super T> function)
sumByLong in interface RichIterable<T>sumByLong in interface MutableStack<T>public <V> MutableObjectDoubleMap<V> sumByDouble(Function<? super T,? extends V> groupBy, DoubleFunction<? super T> function)
sumByDouble in interface RichIterable<T>sumByDouble in interface MutableStack<T>public T max()
max in interface OrderedIterable<T>max in interface RichIterable<T>public T max(Comparator<? super T> comparator)
max in interface RichIterable<T>public <V extends Comparable<? super V>> T maxBy(Function<? super T,? extends V> function)
maxBy in interface RichIterable<T>public T min()
min in interface OrderedIterable<T>min in interface RichIterable<T>public T min(Comparator<? super T> comparator)
min in interface RichIterable<T>public <V extends Comparable<? super V>> T minBy(Function<? super T,? extends V> function)
minBy in interface RichIterable<T>public String makeString()
makeString in interface RichIterable<T>public String makeString(String separator)
makeString in interface RichIterable<T>public String makeString(String start, String separator, String end)
makeString in interface RichIterable<T>public void appendString(Appendable appendable)
appendString in interface RichIterable<T>public void appendString(Appendable appendable, String separator)
appendString in interface RichIterable<T>public void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface RichIterable<T>public <V> MutableListMultimap<V,T> groupBy(Function<? super T,? extends V> function)
groupBy in interface OrderedIterable<T>groupBy in interface RichIterable<T>groupBy in interface MutableStack<T>groupBy in interface StackIterable<T>public <V,R extends MutableMultimap<V,T>> R groupBy(Function<? super T,? extends V> function, R target)
groupBy in interface RichIterable<T>public <V> MutableListMultimap<V,T> groupByEach(Function<? super T,? extends Iterable<V>> function)
groupByEach in interface OrderedIterable<T>groupByEach in interface RichIterable<T>groupByEach in interface MutableStack<T>groupByEach in interface StackIterable<T>public <V,R extends MutableMultimap<V,T>> R groupByEach(Function<? super T,? extends Iterable<V>> function, R target)
groupByEach in interface RichIterable<T>public <V> MutableMap<V,T> groupByUniqueKey(Function<? super T,? extends V> function)
groupByUniqueKey in interface RichIterable<T>groupByUniqueKey in interface MutableStack<T>public <V,R extends MutableMapIterable<V,T>> R groupByUniqueKey(Function<? super T,? extends V> function, R target)
groupByUniqueKey in interface RichIterable<T>public RichIterable<RichIterable<T>> chunk(int size)
chunk in interface RichIterable<T>public ArrayStack<T> tap(Procedure<? super T> procedure)
tap in interface OrderedIterable<T>tap in interface RichIterable<T>tap in interface MutableStack<T>tap in interface StackIterable<T>public void each(Procedure<? super T> procedure)
each in interface RichIterable<T>public <P> void forEachWith(Procedure2<? super T,? super P> procedure, P parameter)
forEachWith in interface InternalIterable<T>public void forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface InternalIterable<T>forEachWithIndex in interface OrderedIterable<T>public <R extends Collection<T>> R into(R target)
into in interface RichIterable<T>public MutableList<T> toList()
toList in interface RichIterable<T>public MutableList<T> toSortedList()
toSortedList in interface RichIterable<T>public MutableList<T> toSortedList(Comparator<? super T> comparator)
toSortedList in interface RichIterable<T>public MutableSet<T> toSet()
toSet in interface RichIterable<T>public MutableSortedSet<T> toSortedSet()
toSortedSet in interface RichIterable<T>public MutableSortedSet<T> toSortedSet(Comparator<? super T> comparator)
toSortedSet in interface RichIterable<T>public ImmutableStack<T> toImmutable()
toImmutable in interface StackIterable<T>public MutableBag<T> toBag()
toBag in interface RichIterable<T>public MutableSortedBag<T> toSortedBag()
toSortedBag in interface RichIterable<T>public MutableSortedBag<T> toSortedBag(Comparator<? super T> comparator)
toSortedBag in interface RichIterable<T>public <NK,NV> MutableMap<NK,NV> toMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
toMap in interface RichIterable<T>public <NK,NV,R extends Map<NK,NV>> R toMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction, R target)
toMap in interface RichIterable<T>public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
toSortedMap in interface RichIterable<T>public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Comparator<? super NK> comparator, Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
toSortedMap in interface RichIterable<T>public <KK extends Comparable<? super KK>,NK,NV> MutableSortedMap<NK,NV> toSortedMapBy(Function<? super NK,KK> sortBy, Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
toSortedMapBy in interface RichIterable<T>public <NK,NV> MutableBiMap<NK,NV> toBiMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
toBiMap in interface RichIterable<T>public LazyIterable<T> asLazy()
asLazy in interface RichIterable<T>public MutableStack<T> asUnmodifiable()
asUnmodifiable in interface MutableStack<T>public MutableStack<T> asSynchronized()
asSynchronized in interface MutableStack<T>public Object[] toArray()
toArray in interface RichIterable<T>public <T> T[] toArray(T[] a)
toArray in interface RichIterable<T>public boolean equals(Object o)
equals in interface StackIterable<T>equals in class Objectpublic String toString()
toString in interface RichIterable<T>toString in interface StackIterable<T>toString in class Objectpublic int hashCode()
hashCode in interface StackIterable<T>hashCode in class Objectpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic MutableStack<T> takeWhile(Predicate<? super T> predicate)
takeWhile in interface OrderedIterable<T>takeWhile in interface MutableStack<T>takeWhile in interface StackIterable<T>public MutableStack<T> dropWhile(Predicate<? super T> predicate)
dropWhile in interface OrderedIterable<T>dropWhile in interface MutableStack<T>dropWhile in interface StackIterable<T>public PartitionMutableStack<T> partitionWhile(Predicate<? super T> predicate)
partitionWhile in interface OrderedIterable<T>partitionWhile in interface MutableStack<T>partitionWhile in interface StackIterable<T>public MutableStack<T> distinct()
distinct in interface OrderedIterable<T>distinct in interface MutableStack<T>distinct in interface StackIterable<T>public int indexOf(Object object)
indexOf in interface OrderedIterable<T>public <S> boolean corresponds(OrderedIterable<S> other, Predicate2<? super T,? super S> predicate)
corresponds in interface OrderedIterable<T>public boolean hasSameElements(OrderedIterable<T> other)
public void forEach(int startIndex,
int endIndex,
Procedure<? super T> procedure)
forEach in interface OrderedIterable<T>public void forEachWithIndex(int fromIndex,
int toIndex,
ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface OrderedIterable<T>public int detectIndex(Predicate<? super T> predicate)
detectIndex in interface OrderedIterable<T>Copyright © 2004–2022. All rights reserved.