Class AbstractSimpleEventContextElement<T>

  • Type Parameters:
    T - The type of the parameter.
    All Implemented Interfaces:
    EventContextElement

    public abstract class AbstractSimpleEventContextElement<T>
    extends Object
    implements EventContextElement
    An abstract base for simple event context elements based on a single parameter passed to a rendering function.
    • Constructor Detail

      • AbstractSimpleEventContextElement

        protected AbstractSimpleEventContextElement​(T param)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • render

        public String render()
        Specified by:
        render in interface EventContextElement
        Returns:
        A human-readable representation of this context. The representation should use brief, natural language to refer to objects rather than class names, e.g. "index 'myIndexName'" rather than "ElasticsearchIndexManager{name = 'myIndexName'}". The representation may change without prior notice in new versions of Hibernate Search: callers should not try to parse it.
      • render

        protected abstract String render​(T param)