public interface Marker
extends java.io.Serializable
Markers can contain references to other markers, which in turn may contain references of their own.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANY_MARKER
This constant represents any marker, including a null marker.
|
static java.lang.String |
ANY_NON_NULL_MARKER
This constant represents any non-null marker.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Marker reference)
Add a reference to another Marker.
|
boolean |
contains(Marker other)
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(java.lang.String name)
Does this marker contain the marker named 'name'?
If 'name' is null the returned value is always false.
|
boolean |
equals(java.lang.Object o)
Markers are considered equal if they have the same name.
|
java.lang.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?
|
java.util.Iterator<Marker> |
iterator()
Returns an Iterator which can be used to iterate over the references of this
marker.
|
boolean |
remove(Marker reference)
Remove a marker reference.
|
static final java.lang.String ANY_MARKER
static final java.lang.String ANY_NON_NULL_MARKER
java.lang.String getName()
void add(Marker reference)
reference
- a reference to another markerjava.lang.IllegalArgumentException
- if 'reference' is nullboolean remove(Marker reference)
reference
- the marker reference to removeboolean hasChildren()
hasReferences()
.boolean hasReferences()
java.util.Iterator<Marker> iterator()
boolean contains(Marker other)
other
- The marker to test for inclusion.java.lang.IllegalArgumentException
- if 'other' is nullboolean contains(java.lang.String name)
name
- The marker name to test for inclusion.boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- int hashCode()
hashCode
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"