Class StyleKey

    • Constructor Detail

      • StyleKey

        protected StyleKey​(String name,
                           boolean trans,
                           boolean inherited,
                           int index,
                           int validity)
        Creates a new style key.
        Parameters:
        name - the name (never null).
    • Method Detail

      • getName

        public String getName()
        Returns the name of the key.
        Returns:
        the name.
      • getIndex

        public int getIndex()
      • isValidOn

        public boolean isValidOn​(int mask)
      • equals

        public boolean equals​(Object o)
        Indicates whether some other object is "equal to" this one.
        Overrides:
        equals in class Object
        Parameters:
        o - the reference object with which to compare.
        Returns:
        true if this object is the same as the obj argument; false otherwise.
      • isInherited

        public boolean isInherited()
      • hashCode

        public int hashCode()
        Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.

        Overrides:
        hashCode in class Object
        Returns:
        a hash code value for this object.
      • isTransient

        public boolean isTransient()
        Checks, whether this stylekey denotes a temporary computation result.
        Returns:
        true, if the key is transient, false otherwise.
      • toString

        public String toString()
        Returns a string representation of the object.
        Overrides:
        toString in class Object
        Returns:
        a string representation of the object.