Class AbstractCharAttributeValue

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      char getChar()
      Return the char used to represent this attribute
      java.lang.String getValue()
      Returns the value associated with the CharAttribute
      java.lang.StringBuffer writeTo​(java.lang.StringBuffer sb)
      Write the class information to the given StringBuffer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • value

        private final java.lang.String value
    • Constructor Detail

      • AbstractCharAttributeValue

        public AbstractCharAttributeValue​(CharAttribute charAttribute,
                                          java.lang.String value)
                                   throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
    • Method Detail

      • getChar

        public char getChar()
        Description copied from interface: CharAttribute
        Return the char used to represent this attribute
        Specified by:
        getChar in interface CharAttribute
        Returns:
        The character of the attribute
      • writeTo

        public java.lang.StringBuffer writeTo​(java.lang.StringBuffer sb)
        Description copied from interface: StringWritable
        Write the class information to the given StringBuffer.
        Specified by:
        writeTo in interface StringWritable
        Parameters:
        sb - Where to write the data.
        Returns:
        The same StringBuffer.