Class ReferencedContext<REF_TYPE,​CONTEXT_TYPE>

  • Type Parameters:
    REF_TYPE - the reference type.
    CONTEXT_TYPE - the context type.

    public final class ReferencedContext<REF_TYPE,​CONTEXT_TYPE>
    extends java.lang.Object
    Reference and its context. Which is a one-to-many mapping, hashcode and equals are implemented on the reference.
    • Constructor Detail

      • ReferencedContext

        @SafeVarargs
        public ReferencedContext​(REF_TYPE reference,
                                 CONTEXT_TYPE... context)
      • ReferencedContext

        public ReferencedContext​(REF_TYPE reference,
                                 java.util.Collection<CONTEXT_TYPE> context)
    • Method Detail

      • getReference

        public REF_TYPE getReference()
      • getContext

        public java.util.Collection<CONTEXT_TYPE> getContext()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object