|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metsci.glimpse.context.TargetStackUtil
public class TargetStackUtil
Utility method for manipulating GlimpseTargetStack
instances.
Constructor Summary | |
---|---|
TargetStackUtil()
|
Method Summary | |
---|---|
static boolean |
endsWith(GlimpseTargetStack query,
GlimpseTargetStack suffix)
Returns true if the query stack ends with the sequence of GlimpseTargets defined by the prefix stack. |
static GlimpseTargetStack |
newTargetStack(GlimpseTarget... targets)
Creates a new target stack which is the concatenation of the provided GlimpseTargets. |
static GlimpseTargetStack |
newTargetStack(GlimpseTargetStack stack)
Creates a new GlimpseTargetStack which is an exact copy of the given stack. |
static boolean |
startsWith(GlimpseTargetStack query,
GlimpseTargetStack prefix)
Returns true if the query stack starts with the sequence of GlimpseTargets defined by the prefix stack. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TargetStackUtil()
Method Detail |
---|
public static GlimpseTargetStack newTargetStack(GlimpseTargetStack stack)
stack
- the stack to copy
public static GlimpseTargetStack newTargetStack(GlimpseTarget... targets)
targets
- the GlimpseTargets to concatenate
public static boolean endsWith(GlimpseTargetStack query, GlimpseTargetStack suffix)
query
- the GlimpseTargetStack to investigatesuffix
- a GlimpseTargetStack to search for at the end of the query stack
public static boolean startsWith(GlimpseTargetStack query, GlimpseTargetStack prefix)
query
- the GlimpseTargetStack to investigateprefix
- a GlimpseTargetStack to search for at the start of the query stack
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |