Class ByteString

java.lang.Object
org.infinispan.util.ByteString
All Implemented Interfaces:
Comparable<ByteString>

@ProtoTypeId(3) public final class ByteString extends Object implements Comparable<ByteString>
A simple class which encapsulates a byte[] representation of a String using a predefined encoding (currently UTF-8). This avoids repeated invocation of the expensive DataOutput.writeUTF(String) on marshalling
Since:
9.0
Author:
Tristan Tarrant