| Modifier and Type | Field and Description |
|---|---|
| private final T | |
| private final ImmutableStack | |
| private static final long | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private boolean | |
| public RichIterable | chunk(int size)
Implements org. Partitions elements in fixed size chunks. |
| public <V> ImmutableStack | collect(Function<? super T, ? extends V> function)
Implements org. Returns a new collection with the results of applying the specified function on each element of the source collection. |
| public ImmutableBooleanStack | collectBoolean(BooleanFunction<? super T> function)
Implements org. Returns a new primitive |
| public ImmutableByteStack | collectByte(ByteFunction<? super T> function)
Implements org. Returns a new primitive |
| public ImmutableCharStack | collectChar(CharFunction<? super T> function)
Implements org. Returns a new primitive |
| public ImmutableDoubleStack | collectDouble(DoubleFunction<? super T> function)
Implements org. Returns a new primitive |
| public ImmutableFloatStack | collectFloat(FloatFunction<? super T> function)
Implements org. Returns a new primitive |
| public <V> ImmutableStack | collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function)
Implements org. Returns a new collection with the results of applying the specified function on each element of the source collection, but only for those elements which return true upon evaluation of the predicate. |
| public ImmutableIntStack | collectInt(IntFunction<? super T> function)
Implements org. Returns a new primitive |
| public ImmutableLongStack | collectLong(LongFunction<? super T> function)
Implements org. Returns a new primitive |
| public ImmutableShortStack | collectShort(ShortFunction<? super T> function)
Implements org. Returns a new primitive |
| public <P, V> ImmutableStack | collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter)
Implements org. Same as |
| public <S> boolean | corresponds(OrderedIterable<S> other, Predicate2<? super T, ? super S> predicate)
Implements org. Returns true if both OrderedIterables have the same length
and |
| public <V> ImmutableBag | countByEach(Function<? super T, ? extends Iterable<V>> function)
Overrides org. Overrides default org. This method will count the number of occurrences of each value calculated by applying the function to each element of the collection. |
| public int | detectIndex(Predicate<? super T> predicate)
Implements org. Returns the index of the first element of the |
| public ImmutableStack | distinct()
Implements org. Returns a new |
| public ImmutableStack | dropWhile(Predicate<? super T> predicate)
Implements org. Returns the final elements that do not satisfy the Predicate. |
| public void | each(Procedure<? super T> procedure)
Implements org. The procedure is executed for each element in the iterable. |
| public boolean | equals(Object o)
Overrides java. Implements org. Follows the same general contract as |
| public <V> ImmutableStack | flatCollect(Function<? super T, ? extends Iterable<V>> function)
Implements org.
|
| public void | forEach(int startIndex, int endIndex, Procedure<? super T> procedure)
Implements org. Iterates over the section of the iterable covered by the specified inclusive indexes. |
| public void | forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure)
Implements org. Iterates over the section of the iterable covered by the specified inclusive indexes. |
| public T | getFirst()
Overrides default org. Implements org. Should return the same value as peek(). |
| public T | getLast()
Implements org. Should not work as it violates the contract of a Stack. |
| public <V> ImmutableListMultimap | groupBy(Function<? super T, ? extends V> function)
Implements org. For each element of the iterable, the function is evaluated and the results of these evaluations are collected into a new multimap, where the transformed value is the key and the original values are added to the same (or similar) species of collection as the source iterable. |
| public <V> ImmutableListMultimap | groupByEach(Function<? super T, ? extends Iterable<V>> function)
Implements org. Similar to |
| public <V> ImmutableMap | groupByUniqueKey(Function<? super T, ? extends V> function)
Overrides default org. Implements org. For each element of the iterable, the function is evaluated, and the results of these evaluations are collected into a new map, where the transformed value is the key. |
| public int | hashCode()
Overrides java. Implements org. Follows the same general contract as |
| public boolean | |
| public boolean | isEmpty()
Overrides org. Implements org. Returns true if this iterable has zero items. |
| public Iterator | |
| public boolean | notEmpty()
Overrides default org. The English equivalent of !this.isEmpty() |
| public PartitionImmutableStack | partition(Predicate<? super T> predicate)
Implements org. Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| public PartitionImmutableStack | partitionWhile(Predicate<? super T> predicate)
Implements org. Returns a Partition of the initial elements that satisfy the Predicate and the remaining elements. |
| public <P> PartitionImmutableStack | partitionWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Filters a collection into a PartitionIterable based on the evaluation of the predicate. |
| public T | peek()
Implements org. Returns the element at the top of the stack, without removing it from the stack. |
| public ListIterable | |
| public Pair | |
| public Pair | |
| public T | peekAt(int index)
Implements org. Returns the element at a specific index, without removing it from the stack. |
| public ImmutableStack | |
| public ImmutableStack | |
| public ImmutableStack | |
| public ImmutableStack | reject(Predicate<? super T> predicate)
Implements org. Returns all elements of the source collection that return false when evaluating of the predicate. |
| public <P> ImmutableStack | rejectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Similar to |
| public ImmutableStack | select(Predicate<? super T> predicate)
Implements org. Returns all elements of the source collection that return true when evaluating the predicate. |
| public <S> ImmutableStack | selectInstancesOf(Class<S> clazz)
Implements org. Returns all elements of the source collection that are instances of the Class |
| public <P> ImmutableStack | selectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Similar to |
| public int | size()
Implements org. Size takes linear time on ImmutableStacks. |
| public <V> ImmutableObjectDoubleMap | sumByDouble(Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function)
Implements org. Groups and sums the values using the two specified functions. |
| public <V> ImmutableObjectDoubleMap | sumByFloat(Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function)
Implements org. Groups and sums the values using the two specified functions. |
| public <V> ImmutableObjectLongMap | sumByInt(Function<? super T, ? extends V> groupBy, IntFunction<? super T> function)
Implements org. Groups and sums the values using the two specified functions. |
| public <V> ImmutableObjectLongMap | sumByLong(Function<? super T, ? extends V> groupBy, LongFunction<? super T> function)
Implements org. Groups and sums the values using the two specified functions. |
| public ImmutableStack | takeWhile(Predicate<? super T> predicate)
Implements org. Returns the initial elements that satisfy the Predicate. |
| public ImmutableStack | tap(Procedure<? super T> procedure)
Implements org. Executes the Procedure for each element in the iterable and returns |
| public ImmutableStack | toImmutable()
Implements org. Converts the StackIterable to an immutable implementation. |
| private Object | |
| public <S> ImmutableStack | zip(Iterable<S> that)
Implements org. Returns a |
| public ImmutableStack | zipWithIndex()
Implements org. Zips this |