public class DesireChain extends AbstractChain<Desire>
When iterating a desire chain the initial desire is first and the most recent desire is last.
length, previous, tailValuemodCount| Modifier and Type | Method and Description |
|---|---|
DesireChain |
extend(Desire d)
Extend this chain with a new desire.
|
Desire |
getCurrentDesire() |
Desire |
getInitialDesire() |
Object |
getKey()
Get this chain's key.
|
DesireChain |
getPreviousDesireChain()
Return the desire chain up to, but not including, the current desire.
|
List<Desire> |
getPreviousDesires()
Return the list of desires up to, but not including, the current desire.
|
static com.google.common.base.Predicate<DesireChain> |
hasInitialDesire(Desire d) |
static DesireChain |
singleton(Desire desire) |
equals, get, getTailValue, hashCode, iterator, reverse, reverseIterator, sizeadd, add, addAll, clear, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic static DesireChain singleton(Desire desire)
public static com.google.common.base.Predicate<DesireChain> hasInitialDesire(Desire d)
@Nonnull public List<Desire> getPreviousDesires()
@Nonnull public DesireChain getPreviousDesireChain()
public Object getKey()
singleton(org.grouplens.grapht.reflect.Desire)), and preserved through
extend(org.grouplens.grapht.reflect.Desire) operations. It can be used to remember
state across invocations of a binding function as a desire chain is built up.@Nonnull public DesireChain extend(@Nonnull Desire d)
d - The new current desire.Copyright © 2016 GroupLens Research. All rights reserved.