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 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(String name)
Does this marker contain the marker named 'name'?
 
 If 'name' is null the returned value is always false. 
 | 
boolean | 
equals(Object o)
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<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 String ANY_MARKER
static final String ANY_NON_NULL_MARKER
void add(Marker reference)
reference - a reference to another markerIllegalArgumentException - if 'reference' is nullboolean remove(Marker reference)
reference - the marker reference to remove@Deprecated boolean hasChildren()
hasReferences().boolean hasReferences()
Iterator<Marker> iterator()
boolean contains(Marker other)
other - The marker to test for inclusion.IllegalArgumentException - if 'other' is nullboolean contains(String name)
name - The marker name to test for inclusion.Copyright © 2005–2022 QOS.ch. All rights reserved.