Markers can contain references to nested markers, which in turn may contain references of their own. Note that the fluent API (new in 2.0) allows adding multiple markers to a logging statement. It is often preferable to use multiple markers instead of nested markers.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ANY_MARKER
This constant represents any marker, including a null marker. |
| public static final String | ANY_NON_NULL_MARKER
This constant represents any non-null marker. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public String | |
| public boolean | |
| public int | |
| public boolean | Returns: true if this marker has one or more references, false otherwise.Does this marker have any references? |
| public Iterator | Returns: Iterator over the references of this markerReturns an Iterator which can be used to iterate over the references of this marker. |
| public boolean |
| ANY_MARKER | back to summary |
|---|---|
| public static final String ANY_MARKER This constant represents any marker, including a null marker. | |
| ANY_NON_NULL_MARKER | back to summary |
|---|---|
| public static final String ANY_NON_NULL_MARKER This constant represents any non-null marker. | |
| add | back to summary |
|---|---|
| public void add(Marker reference) 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.
| |
| contains | back to summary |
|---|---|
| public boolean contains(Marker other) 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 | back to summary |
|---|---|
| public boolean contains(String name) Does this marker contain the marker named 'name'? If 'name' is null the returned value is always false.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Markers are considered equal if they have the same name.
| |
| getName | back to summary |
|---|---|
| public String getName() Get the name of this Marker.
| |
| hasChildren | back to summary |
|---|---|
| public boolean hasChildren()
Deprecated Replaced by
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Compute the hash code based on the name of this marker. Note that markers are considered equal if they have the same name.
| |
| hasReferences | back to summary |
|---|---|
| public boolean hasReferences() Does this marker have any references?
| |
| iterator | back to summary |
|---|---|
| public Iterator 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 | back to summary |
|---|---|
| public boolean remove(Marker reference) Remove a marker reference.
| |