Class JBBPFieldString

java.lang.Object
com.igormaznitsa.jbbp.model.JBBPAbstractField
com.igormaznitsa.jbbp.model.JBBPFieldString
All Implemented Interfaces:
JBBPNamedField, Serializable

public final class JBBPFieldString extends JBBPAbstractField
Describes a java string object.
Since:
1.4.0
See Also:
  • Field Details

  • Constructor Details

    • JBBPFieldString

      public JBBPFieldString(JBBPNamedFieldInfo name, String nullableValue)
      A Constructor.
      Parameters:
      name - a field name info, it can be null
      nullableValue - a value, it can be null
  • Method Details

    • reverseBits

      public static String reverseBits(String value)
      Get the reversed bit representation of the value.
      Parameters:
      value - the value to be reversed, can be null
      Returns:
      the reversed value
    • getAsString

      public String getAsString()
      Get the saved value.
      Returns:
      the value as String, it can be null
    • getTypeAsString

      public String getTypeAsString()
      Description copied from class: JBBPAbstractField
      Get the field type in string representation.
      Specified by:
      getTypeAsString in class JBBPAbstractField
      Returns:
      the string representation of field type, like 'int', 'long', 'bool [123]'