public interface Marker extends Serializable
Markers can contain references to other markers, which in turn may contain references of their own.
| Modifier and Type | Field and Description |
|---|---|
static String |
ANY_MARKER
This constant represents any marker, including a null marker.
|
static String |
ANY_NON_NULL_MARKER
This constant represents any non-null marker.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Marker
Add a reference to another Marker.
|
boolean |
contains(Marker
Does this marker contain a reference to the 'other' marker? Marker A is defined to contain marker B, if A == B or if B is referenced by A, or if B is referenced by any one of A's references (recursively).
|
boolean |
contains(String
Does this marker contain the marker named 'name'? If 'name' is null the returned value is always false.
|
boolean |
equals(Object
Markers are considered equal if they have the same name.
|
String |
getName()
Get the name of this Marker.
|
boolean |
hasChildren()
Deprecated.
Replaced by
hasReferences().
|
int |
hashCode()
Compute the hash code based on the name of this marker.
|
boolean |
hasReferences()
Does this marker have any references?
|
Iterator |
iterator()
Returns an Iterator which can be used to iterate over the references of this marker.
|
boolean |
remove(Marker
Remove a marker reference.
|
static final StringANY_MARKER
static final StringANY_NON_NULL_MARKER
StringgetName()
void add(Markerreference)
reference - a reference to another marker
IllegalArgumentException - if 'reference' is null
boolean remove(Markerreference)
reference - the marker reference to remove
@Deprecated boolean hasChildren()
hasReferences().
boolean hasReferences()
Iteratoriterator()
boolean contains(Markerother)
other - The marker to test for inclusion.
IllegalArgumentException - if 'other' is null
boolean contains(Stringname)
other - The marker to test for inclusion.
boolean equals(Objecto)