public class AbstractCharAttributeValue extends AbstractStringWritable implements CharAttributeValue
Constructor and Description |
---|
AbstractCharAttributeValue(CharAttribute charAttribute,
String value) |
Modifier and Type | Method and Description |
---|---|
char |
getChar()
Return the char used to represent this attribute
|
String |
getValue()
Returns the value associated with the
CharAttribute |
StringBuffer |
writeTo(StringBuffer sb)
Write the class information to the given StringBuffer.
|
toString
public AbstractCharAttributeValue(CharAttribute charAttribute, String value) throws IllegalArgumentException
IllegalArgumentException
public char getChar()
CharAttribute
getChar
in interface CharAttribute
public String getValue()
CharAttributeValue
CharAttribute
getValue
in interface CharAttributeValue
public StringBuffer writeTo(StringBuffer sb)
StringWritable
writeTo
in interface StringWritable
sb
- Where to write the data.Copyright © 2017–2020. All rights reserved.