org.slf4j
public interface Marker extends Serializable
Markers can contain references to other markers, which in turn may contain references of their own.
Field Summary | |
---|---|
String | ANY_MARKER
This constant represents any marker, including a null marker. |
String | ANY_NON_NULL_MARKER
This constant represents any non-null marker. |
Method Summary | |
---|---|
void | add(Marker reference)
Add a reference to another Marker.
|
boolean | contains(Marker other)
Does this marker contain a reference to the 'other' marker? |
boolean | contains(String name)
Does this marker contain the marker named 'name'?
|
boolean | equals(Object o)
Markers are considered equal if they have the same name.
|
String | getName()
Get the name of this Marker.
|
boolean | hasChildren() |
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 reference)
Remove a marker reference.
|
Parameters: reference a reference to another marker
Throws: IllegalArgumentException if 'reference' is null
Parameters: other The marker to test for inclusion.
Returns: Whether this marker contains the other marker.
Throws: IllegalArgumentException if 'other' is null
Parameters: other The marker to test for inclusion.
Returns: Whether this marker contains the other marker.
Parameters: o
Returns: true, if this.name equals o.name
Since: 1.5.1
Returns: name of marker
Deprecated: Replaced by hasReferences.
Returns: the computed hashCode
Since: 1.5.1
Returns: true if this marker has one or more references, false otherwise.
Returns: Iterator over the references of this marker
Parameters: reference the marker reference to remove
Returns: true if reference could be found and removed, false otherwise.