java.lang.Object
org.seppiko.glf.event.BasicMarker
- All Implemented Interfaces:
Serializable,Marker
Basic Marker for default implementation
- Author:
- Leonard Woo
- See Also:
-
Field Summary
Fields inherited from interface org.seppiko.glf.api.Marker
ANY_MARKER, ANY_NON_NULL_MARKER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a reference to another Marker.booleanDoes this marker contain the marker named 'name'? If 'name' is null the returned value is always false.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.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()
-
Constructor Details
-
BasicMarker
-
-
Method Details
-
getName
Description copied from interface:MarkerGet the name of this Marker. -
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.
-
remove
Description copied from interface:MarkerRemove a marker reference. -
hasReferences
public boolean 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.
-
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. -
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
Description copied from interface:MarkerDoes this marker contain the marker named 'name'? If 'name' is null the returned value is always false. -
equals
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
-