|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.interact.Interactors
Constants and utilities related to interactors in general.
Nested Class Summary | |
static class |
Interactors.ImmutableInteractorState
Immutable wrapper for a target interactor state. |
static class |
Interactors.NoPickTarget
See NO_PICK_TARGET. |
Field Summary | |
static InteractorState |
EMPTY_INTERACTOR_STATE
A singleton instance of an empty and immutable interactor state. |
static Interactors.NoPickTarget |
NO_PICK_TARGET
A singleton immutable target interactor representing a valid (non-null) pick with no hit. |
Method Summary | |
static java.util.Collection |
findAllLeaves(java.util.Collection seeds,
java.util.Collection retVal)
Returns the leaf (non-group) interactors at and under a group of interactors. |
static java.util.Collection |
findLeaves(Interactor seed,
java.util.Collection retVal)
Returns the leaf (non-group) interactors at and under a given interactor. |
static boolean |
isLeaf(Interactor target)
Returns true if the target is a leaf (non-group) interactor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Interactors.NoPickTarget NO_PICK_TARGET
public static final InteractorState EMPTY_INTERACTOR_STATE
Method Detail |
public static boolean isLeaf(Interactor target)
target
- Target interactor. Never null.
public static java.util.Collection findLeaves(Interactor seed, java.util.Collection retVal)
seed
- Seed interactor. Never null.retVal
- Return value object. Leaf interactors (Interactor,
not InteractorGroup). If seed is a leaf then the collection will
contain only seed.
public static java.util.Collection findAllLeaves(java.util.Collection seeds, java.util.Collection retVal)
seeds
- Seed interactors (Interactor). Never null.retVal
- Return value object. Leaf interactors (Interactor,
not InteractorGroup). If seed is a leaf then the collection will
contain only seed. Can be seeds.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |