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 TypeMethodDescriptionvoidAdd a reference to another Marker.booleanThis method is mainly used with Expression Evaluators.booleanDoes 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).booleanMarkers are considered equal if they have the same name.getName()Get the name of this Marker.booleanDeprecated.inthashCode()Compute the hash code based on the name of this marker.booleanDoes this marker have any references?iterator()Returns an Iterator which can be used to iterate over the references of this marker.booleanRemove a marker reference.toString()
-
Method Details
-
getName
-
add
Description copied from interface:MarkerAdd 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:MarkerDoes this marker have any references?- Specified by:
hasReferencesin interfaceMarker- Returns:
- true if this marker has one or more references, false otherwise.
-
hasChildren
-
iterator
Description copied from interface:MarkerReturns 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:MarkerDoes 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
-