Class AbstractCharAttributeValue<T extends CharSupplier>
java.lang.Object
com.ongres.scram.common.StringWritable
com.ongres.scram.common.AbstractCharAttributeValue<T>
- Direct Known Subclasses:
Gs2AttributeValue, ScramAttributeValue
Construct and write generic CharAttribute-Value pairs.
Concrete sub-classes should also provide a static parse(String) creation method.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCharAttributeValue(T charAttribute, @Nullable String value) -
Method Summary
Modifier and TypeMethodDescriptionfinal chargetChar()@Nullable StringgetValue()(package private) StringBuilderwriteTo(StringBuilder sb) Write the class information to the given StringBuffer.
-
Field Details
-
charAttribute
private final char charAttribute -
value
-
-
Constructor Details
-
AbstractCharAttributeValue
-
-
Method Details
-
getChar
public final char getChar() -
getValue
-
writeTo
Description copied from class:StringWritableWrite the class information to the given StringBuffer.- Specified by:
writeToin classStringWritable- Parameters:
sb- Where to write the data.- Returns:
- The same StringBuffer.
-