public interface Marker
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
Marker |
addParents(Marker... markers)
Adds a Marker as a parent to this Marker.
|
boolean |
equals(java.lang.Object obj)
Returns true if the given marker has the same name as this marker.
|
java.lang.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 m)
Checks whether this Marker is an instance of the specified Marker.
|
boolean |
isInstanceOf(java.lang.String name)
Checks whether this Marker is an instance of the specified Marker.
|
boolean |
remove(Marker marker)
Removes the specified Marker as a parent of this Marker.
|
Marker |
setParents(Marker... markers)
Replaces the set of parent Markers with the provided Markers.
|
Marker addParents(Marker... markers)
markers
- The parent markers to add.java.lang.IllegalArgumentException
- if the argument is null
boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.java.lang.String getName()
Marker[] getParents()
null
if this Marker has no parents.int hashCode()
hashCode
in class java.lang.Object
boolean hasParents()
true
if the Marker has parent Markersboolean isInstanceOf(Marker m)
m
- The Marker to check.true
if this Marker or one of its ancestors is the specified Marker, false
otherwise.java.lang.IllegalArgumentException
- if the argument is null
boolean isInstanceOf(java.lang.String name)
name
- The name of the Marker.true
if this Marker or one of its ancestors matches the specified name, false
otherwise.java.lang.IllegalArgumentException
- if the argument is null
boolean remove(Marker marker)
marker
- The marker to remove.true
if the marker was removed.java.lang.IllegalArgumentException
- if the argument is null