Package org.slf4j.helpers
Class BasicMarker
- java.lang.Object
-
- org.slf4j.helpers.BasicMarker
-
- All Implemented Interfaces:
java.io.Serializable,Marker
public class BasicMarker extends java.lang.Object implements Marker
A simple implementation of theMarkerinterface.- Author:
- Ceki Gülcü, Joern Huxhorn
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.slf4j.Marker
ANY_MARKER, ANY_NON_NULL_MARKER
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(Marker reference)Deprecated.Markers are now immutable and no longer support children.booleancontains(java.lang.String name)This method is mainly used with Expression Evaluators.booleancontains(Marker other)Deprecated.Markers are now immutable and no longer support children.booleanequals(java.lang.Object obj)Markers are considered equal if they have the same name.java.lang.StringgetName()Get the name of this Marker.booleanhasChildren()Deprecated.Markers are now immutable and no longer support children.inthashCode()Compute the hash code based on the name of this marker.booleanhasReferences()Deprecated.Markers are now immutable and no longer support children.java.util.Iterator<Marker>iterator()Deprecated.Markers are now immutable and no longer support children.booleanremove(Marker referenceToRemove)Deprecated.Markers are now immutable and no longer support children.java.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:MarkerGet the name of this Marker.
-
add
@Deprecated public void add(Marker reference)
Deprecated.Markers are now immutable and no longer support children.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
@Deprecated public boolean hasReferences()
Deprecated.Markers are now immutable and no longer support children.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
@Deprecated public boolean hasChildren()
Deprecated.Markers are now immutable and no longer support children.- Specified by:
hasChildrenin interfaceMarker
-
iterator
@Deprecated public java.util.Iterator<Marker> iterator()
Deprecated.Markers are now immutable and no longer support children.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
@Deprecated public boolean remove(Marker referenceToRemove)
Deprecated.Markers are now immutable and no longer support children.Description copied from interface:MarkerRemove a marker reference.
-
contains
@Deprecated public boolean contains(Marker other)
Deprecated.Markers are now immutable and no longer support children.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
public boolean contains(java.lang.String name)
This method is mainly used with Expression Evaluators.
-
equals
public boolean equals(java.lang.Object obj)
Description copied from interface:MarkerMarkers are considered equal if they have the same name.
-
hashCode
public int hashCode()
Description copied from interface:MarkerCompute the hash code based on the name of this marker. Note that markers are considered equal if they have the same name.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-