Class NamespaceDecoderKey<T>

    • Constructor Detail

      • NamespaceDecoderKey

        public NamespaceDecoderKey​(String namespace,
                                   T type)
    • Method Detail

      • setType

        protected abstract void setType​(T type)
        Set the type.
        Parameters:
        type - the type
      • getType

        public abstract T getType()
        Get the type.
        Returns:
        the type
      • getTypeName

        protected abstract String getTypeName()
        Get String representation of the type.
        Returns:
        String representation of the type.
      • getSimilarity

        protected abstract int getSimilarity​(DecoderKey key,
                                             T type)
        Check for similarity
        Parameters:
        key - DecoderKey to check
        type - Type to check
        Returns:
        0 for equality, -1 for non equality
      • getNamespace

        public String getNamespace()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object