public interface Marker extends Serializable
| Modifier and Type | Method and Description |
|---|---|
Marker |
addParents(Marker
Adds a Marker as a parent to this Marker.
|
boolean |
equals(Object
Returns true if the given marker has the same name as this marker.
|
String |
getName()
Returns the name of this Marker.
|
Marker |
getParents()
Returns a list of parents of this Marker.
|
int |
hashCode()
Returns a hash code value based on the name of this marker.
|
boolean |
hasParents()
Indicates whether this Marker has references to any other Markers.
|
boolean |
isInstanceOf(Marker
Checks whether this Marker is an instance of the specified Marker.
|
boolean |
isInstanceOf(String
Checks whether this Marker is an instance of the specified Marker.
|
boolean |
remove(Marker
Removes the specified Marker as a parent of this Marker.
|
Marker |
setParents(Marker
Replaces the set of parent Markers with the provided Markers.
|
MarkeraddParents(Marker ... markers)
markers - The parent markers to add.
IllegalArgumentException - if the argument is
null
boolean equals(Objectobj)
StringgetName()
Marker[] getParents()
null if this Marker has no parents.
int hashCode()
boolean hasParents()
true if the Marker has parent Markers
boolean isInstanceOf(Markerm)
m - The Marker to check.
true if this Marker or one of its ancestors is the specified Marker,
false otherwise.
IllegalArgumentException - if the argument is
null
boolean isInstanceOf(Stringname)
name - The name of the Marker.
true if this Marker or one of its ancestors matches the specified name,
false otherwise.
IllegalArgumentException - if the argument is
null
boolean remove(Markermarker)
marker - The marker to remove.
true if the marker was removed.
IllegalArgumentException - if the argument is
null