Class IndexedTypeHierarchy<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, CodedHierarchy<T>

    public class IndexedTypeHierarchy<T>
    extends AbstractCodedHierarchyImpl<T>
    implements java.io.Externalizable
    This class should be for testing purposes only Use @see{TypeHierarchy} instead.
    See Also:
    Serialized Form
    • Field Detail

      • cache

        protected transient java.util.Map<T,​HierNode<T>> cache
    • Constructor Detail

      • IndexedTypeHierarchy

        public IndexedTypeHierarchy()
      • IndexedTypeHierarchy

        public IndexedTypeHierarchy​(T topElement,
                                    java.util.BitSet topKey,
                                    T bottomElement,
                                    java.util.BitSet bottomKey)
    • Method Detail

      • getTopCode

        public java.util.BitSet getTopCode()
      • getBottomCode

        public java.util.BitSet getBottomCode()
      • setBottomCode

        public void setBottomCode​(java.util.BitSet bottom)
      • setTopCode

        public void setTopCode​(java.util.BitSet top)
      • toString

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

        public void writeExternal​(java.io.ObjectOutput objectOutput)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class AbstractBitwiseHierarchyImpl<T,​HierNode<T>>
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput objectInput)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Overrides:
        readExternal in class AbstractBitwiseHierarchyImpl<T,​HierNode<T>>
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException