public class ErlangValueBitString extends ErlangValue
String
storage mechanism using erlang bitstrings.
Run a benchmark of the different String implementations with
java -cp scalaris-examples.jar de.zib.scalaris.examples.FastStringBenchmark
ErlangValue.ListElementConverter<T>, ErlangValue.StringListElementConverter
Constructor and Description |
---|
ErlangValueBitString(ErlangValue value)
Creates an object with the given (erlang) value.
|
ErlangValueBitString(OtpErlangObject otpValue)
Creates an object with the given (erlang) value.
|
ErlangValueBitString(String value)
Creates an object with the given (Java) value.
|
Modifier and Type | Method and Description |
---|---|
String |
stringValue()
Converts the stored erlang value created by this object to a Java
String . |
bigIntValue, binaryListValue, binaryValue, boolValue, compareTo, convertToErlang, doubleListValue, doubleValue, equals, hashCode, intValue, jsonListValue, jsonValue, jsonValue, listCollectionValue, listCollectionValue, listValue, listValue, longListValue, longValue, otpObjectToOtpList, stringListValue, toString, value
public ErlangValueBitString(String value)
value
- the value to usepublic ErlangValueBitString(OtpErlangObject otpValue)
otpValue
- the value to usepublic ErlangValueBitString(ErlangValue value)
value
- the value to useErlangValue
public String stringValue()
String
.stringValue
in class ErlangValue
ClassCastException
- if the conversion fails