Class AbstractContainerMarker

  • All Implemented Interfaces:
    Serializable, org.slf4j.Marker, ContainerMarker
    Direct Known Subclasses:
    TranslationMarker

    public abstract class AbstractContainerMarker
    extends Object
    implements ContainerMarker
    Base class to use for custom Markers which contains values (so which are a bit more than Marker as defined by SLF4J). For "real" marker use MarkerFactory.getMarker(String).
    Since:
    5.4M1
    Version:
    $Id: 6747d3702aeedf3c66c6185705d45f6dbecba439 $
    See Also:
    Serialized Form
    • Constructor Detail

      • AbstractContainerMarker

        public AbstractContainerMarker​(String name,
                                       org.slf4j.Marker... references)
        Parameters:
        name - the name of the Marker
        references - the other associated markers
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface org.slf4j.Marker
      • get

        public <M extends org.slf4j.Marker> M get​(String name)
        Specified by:
        get in interface ContainerMarker
        Type Parameters:
        M - the type of the marker
        Parameters:
        name - the name of the marker
        Returns:
        the marker of null if none could be found
      • add

        public void add​(org.slf4j.Marker reference)
        Specified by:
        add in interface org.slf4j.Marker
      • hasReferences

        public boolean hasReferences()
        Specified by:
        hasReferences in interface org.slf4j.Marker
      • hasChildren

        public boolean hasChildren()
        Specified by:
        hasChildren in interface org.slf4j.Marker
      • iterator

        public Iterator<org.slf4j.Marker> iterator()
        Specified by:
        iterator in interface org.slf4j.Marker
      • remove

        public boolean remove​(org.slf4j.Marker referenceToRemove)
        Specified by:
        remove in interface org.slf4j.Marker
      • contains

        public boolean contains​(org.slf4j.Marker other)
        Specified by:
        contains in interface org.slf4j.Marker
      • contains

        public boolean contains​(String name)
        Specified by:
        contains in interface org.slf4j.Marker
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface org.slf4j.Marker
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface org.slf4j.Marker
        Overrides:
        hashCode in class Object