Class CharacterProperty


  • public final class CharacterProperty
    extends Property
    Superclass for properties that wrap a character value TODO convert character value to int in order to denote unicode scalar value instead of a single UTF-16 code element
    • Method Detail

      • getInstance

        public static CharacterProperty getInstance​(char character)
        Get character property instance for character.
        Parameters:
        character - the character
        Returns:
        the character property instance
      • getObject

        public java.lang.Object getObject()
        Description copied from class: Property
        This method expects to be overridden by subclasses
        Overrides:
        getObject in class Property
        Returns:
        this.character cast as an Object
      • getCharacter

        public char getCharacter()
        Description copied from class: Property
        This method expects to be overridden by subclasses
        Overrides:
        getCharacter in class Property
        Returns:
        this.character
      • getString

        public java.lang.String getString()
        Description copied from class: Property
        This method expects to be overridden by subclasses.
        Overrides:
        getString in class Property
        Returns:
        this.character cast as a String
      • 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