| Modifier and Type | Method and Description |
|---|---|
Optional<Payload> |
Sequence.removeFirst(Payload reference)
Removes the first occurrence, by
equality,
of the given reference payload value. |
Optional<Payload> |
AbstractSequence.removeFirst(Payload reference) |
Optional<Payload> |
Sequence.removeFirstMatch(Predicate<? super Payload> predicate)
Removes the first payload value that satisfies the given
Predicate |
Optional<Payload> |
AbstractSequence.removeFirstMatch(Predicate<? super Payload> predicate) |
Optional<Payload> |
Sequence.removeLast(Payload reference)
Removes the last occurrence, by
equality,
of the given payload value. |
Optional<Payload> |
AbstractSequence.removeLast(Payload reference) |
Optional<Payload> |
Sequence.removeLastMatch(Predicate<? super Payload> predicate)
Removes the last payload value that satisfies the given
Predicate |
Optional<Payload> |
AbstractSequence.removeLastMatch(Predicate<? super Payload> predicate) |
Optional<Payload> |
Sequence.replaceFirst(Payload reference,
Payload replacement)
Replaces the first occurrence of the given reference payload value with
the given replacement payload value.
|
Optional<Payload> |
AbstractSequence.replaceFirst(Payload reference,
Payload replacement) |
Optional<Payload> |
Sequence.replaceFirstMatch(Predicate<? super Payload> predicate,
Payload replacement)
Replaces the first payload value that satisfy the given
Predicate
with the given replacement payload value. |
Optional<Payload> |
AbstractSequence.replaceFirstMatch(Predicate<? super Payload> predicate,
Payload replacement) |
Optional<Payload> |
Sequence.replaceLast(Payload reference,
Payload replacement)
Replaces last occurrence of the the given reference payload value with
the given replacement payload value.
|
Optional<Payload> |
AbstractSequence.replaceLast(Payload reference,
Payload replacement) |
Optional<Payload> |
Sequence.replaceLastMatch(Predicate<? super Payload> predicate,
Payload replacement)
Replaces the last payload value that satisfy the given
Predicate
with the given replacement payload value. |
Optional<Payload> |
AbstractSequence.replaceLastMatch(Predicate<? super Payload> predicate,
Payload replacement) |
| Modifier and Type | Method and Description |
|---|---|
protected static <Payload> Optional<Integer> |
AbstractSource.firstIndexOf(Iterator<? extends Payload> iterator,
Predicate<? super Payload> predicate)
Returns the index of the first payload value that satisfies the give
Predicate. |
Optional<Integer> |
IndexedSource.firstIndexOf(Payload payload)
Returns index, of the first occurrence, by
Object#equals(Object) equality, of the given reference payload
value.
|
Optional<Integer> |
AbstractIndexedSource.firstIndexOf(Payload reference) |
Optional<Integer> |
IndexedSource.firstIndexOfMatch(Predicate<? super Payload> predicate)
Returns index, of the first occurrence of a payload value that satisfies
the given
Predicate. |
Optional<Integer> |
AbstractIndexedSource.firstIndexOfMatch(Predicate<? super Payload> predicate) |
Optional<Payload> |
IndexedSource.getFirst(Payload reference)
Returns the first occurrences, by
equality,
of the given reference payload value. |
Optional<Payload> |
AbstractSource.getFirst(Payload reference) |
Optional<Payload> |
Source.getFirst(Payload reference)
Returns the first (i.e.
|
Optional<Payload> |
IndexedSource.getFirstMatch(Predicate<? super Payload> predicate)
Returns the first payload value that satisfies the given
Predicate . |
Optional<Payload> |
AbstractSource.getFirstMatch(Predicate<? super Payload> predicate) |
Optional<Payload> |
Source.getFirstMatch(Predicate<? super Payload> predicate)
Returns the first (i.e.
|
Optional<Payload> |
IndexedSource.getLast(Payload reference)
Returns the first occurrences, by
equality,
of the given reference payload value. |
Optional<Payload> |
AbstractIndexedSource.getLast(Payload reference) |
Optional<Payload> |
IndexedSource.getLastMatch(Predicate<? super Payload> predicate)
Returns the last payload value that satisfies the given
Predicate
. |
Optional<Payload> |
AbstractIndexedSource.getLastMatch(Predicate<? super Payload> predicate) |
Optional<Payload> |
OptionalSource.getOptional()
Returns the
Optional this OptionalSource has been created
with. |
Optional<Integer> |
IndexedSource.lastIndexOf(Payload payload)
Returns index, of the last occurrence, by
Object#equals(Object) equality, of the given reference payload
value.
|
Optional<Integer> |
AbstractIndexedSource.lastIndexOf(Payload reference) |
Optional<Integer> |
IndexedSource.lastIndexOfMatch(Predicate<? super Payload> predicate)
Returns index, of the last occurrence of a payload value that satisfies
the given
Predicate. |
Optional<Integer> |
AbstractIndexedSource.lastIndexOfMatch(Predicate<? super Payload> predicate) |
| Constructor and Description |
|---|
OptionalSource(Optional<Payload> optional)
Creates a new
OptionalSource. |
| Modifier and Type | Method and Description |
|---|---|
Optional<Integer> |
Stack.firstIndexOf(Payload reference)
|
Optional<Integer> |
AbstractStack.firstIndexOf(Payload reference) |
Optional<Integer> |
Stack.firstIndexOfMatch(Predicate<? super Payload> predicate)
|
Optional<Integer> |
AbstractStack.firstIndexOfMatch(Predicate<? super Payload> predicate) |
Optional<Payload> |
Stack.getFirst(Payload reference)
Returns the first (i.e.
|
Optional<Payload> |
Stack.getFirstMatch(Predicate<? super Payload> predicate)
Returns the first i.e.
|
| Modifier and Type | Method and Description |
|---|---|
<Result> Optional<Result> |
Optional.convert(Converter<? super Payload,? extends Result> converter)
|
Optional<Result> |
AbstractConvertingOptionalSelection.onNoValue() |
Optional<Result> |
AbstractConvertingOptionalSelection.onValue(Payload payload) |
| Constructor and Description |
|---|
OptionalIterable(Optional<Payload> optional)
Creates a new
OptionalIterable. |
| Constructor and Description |
|---|
OptionalIterator(Optional<Payload> value)
Creates a new
OptionalIterator. |
Copyright © 2016–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.