Package one.microstream.bytes
Class XBytes
- java.lang.Object
-
- one.microstream.bytes.XBytes
-
public final class XBytes extends Object
-
-
Constructor Summary
Constructors Constructor Description XBytes()
-
Method Summary
Modifier and Type Method Description static ByteOrder
parseByteOrder(String byteOrder)
Parses aString
instance to aByteOrder
instance according toByteOrder#toString()
or throws anIllegalArgumentException
if the passed string does not match exactely one of theByteOrder
constant instances' string representation.
-
-
-
Method Detail
-
parseByteOrder
public static final ByteOrder parseByteOrder(String byteOrder) throws IllegalArgumentException
Parses aString
instance to aByteOrder
instance according toByteOrder#toString()
or throws anIllegalArgumentException
if the passed string does not match exactely one of theByteOrder
constant instances' string representation.- Parameters:
byteOrder
- the string representing theByteOrder
instance to be parsed.- Returns:
- the recognized
ByteOrder
- Throws:
IllegalArgumentException
- if the string can't be recognized as aByteOrder
constant instance.- See Also:
ByteOrder.toString()
-
-