Class TextViewer.TextHoverKey

  • Enclosing class:
    TextViewer

    protected class TextViewer.TextHoverKey
    extends java.lang.Object
    Value object used as key in the text hover configuration table. It is modifiable only inside this compilation unit to allow the reuse of created objects for efficiency reasons
    Since:
    2.1
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TextHoverKey​(java.lang.String contentType, int stateMask)
      Creates a new text hover key for the given content type and state mask.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TextHoverKey

        protected TextHoverKey​(java.lang.String contentType,
                               int stateMask)
        Creates a new text hover key for the given content type and state mask.
        Parameters:
        contentType - the content type
        stateMask - the state mask
    • Method Detail

      • equals

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

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