Package org.slf4j.helpers
Class BasicMarker
java.lang.Object
org.slf4j.helpers.BasicMarker
- All Implemented Interfaces:
Serializable
,Marker
A simple implementation of the
Marker
interface.- Author:
- Ceki Gülcü, Joern Huxhorn
- See Also:
-
Field Summary
Fields inherited from interface org.slf4j.Marker
ANY_MARKER, ANY_NON_NULL_MARKER
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a reference to another Marker.boolean
This method is mainly used with Expression Evaluators.boolean
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
Markers are considered equal if they have the same name.getName()
Get the name of this Marker.boolean
Deprecated.int
hashCode()
Compute the hash code based on the name of this marker.boolean
Does this marker have any references?iterator()
Returns an Iterator which can be used to iterate over the references of this marker.boolean
Remove a marker reference.toString()
-
Method Details
-
getName
-
add
Description copied from interface:Marker
Add a reference to another Marker.Note that the fluent API allows adding multiple markers to a logging statement. It is often preferable to use multiple markers instead of nested markers.
-
hasReferences
Description copied from interface:Marker
Does this marker have any references?- Specified by:
hasReferences
in interfaceMarker
- Returns:
- true if this marker has one or more references, false otherwise.
-
hasChildren
-
iterator
Description copied from interface:Marker
Returns an Iterator which can be used to iterate over the references of this marker. An empty iterator is returned when this marker has no references. -
remove
-
contains
Description copied from interface:Marker
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). -
contains
-
equals
-
hashCode
-
toString
-