Package com.igormaznitsa.jbbp.model
Class JBBPFieldString
java.lang.Object
com.igormaznitsa.jbbp.model.JBBPAbstractField
com.igormaznitsa.jbbp.model.JBBPFieldString
- All Implemented Interfaces:
JBBPNamedField,Serializable
Describes a java string object.
- Since:
- 1.4.0
- See Also:
-
Field Summary
FieldsFields inherited from class com.igormaznitsa.jbbp.model.JBBPAbstractField
fieldNameInfo, payload -
Constructor Summary
ConstructorsConstructorDescriptionJBBPFieldString(JBBPNamedFieldInfo name, String nullableValue) A Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the saved value.Get the field type in string representation.static StringreverseBits(String value) Get the reversed bit representation of the value.Methods inherited from class com.igormaznitsa.jbbp.model.JBBPAbstractField
getFieldName, getFieldPath, getNameInfo, getPayload, setPayload
-
Field Details
-
TYPE_NAME
- See Also:
-
-
Constructor Details
-
JBBPFieldString
A Constructor.- Parameters:
name- a field name info, it can be nullnullableValue- a value, it can be null
-
-
Method Details
-
reverseBits
Get the reversed bit representation of the value.- Parameters:
value- the value to be reversed, can be null- Returns:
- the reversed value
-
getAsString
Get the saved value.- Returns:
- the value as String, it can be null
-
getTypeAsString
Description copied from class:JBBPAbstractFieldGet the field type in string representation.- Specified by:
getTypeAsStringin classJBBPAbstractField- Returns:
- the string representation of field type, like 'int', 'long', 'bool [123]'
-