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