@Deprecated public class Utf16TransformationStrategy extends Object implements TransformationStrategy<CharSequence>, Serializable
| Constructor and Description |
|---|
Utf16TransformationStrategy()
Deprecated.
Creates a prefix-free UTF16 transformation strategy.
|
| Modifier and Type | Method and Description |
|---|---|
TransformationStrategy<CharSequence> |
copy()
Deprecated.
Returns a copy of this transformation strategy.
|
long |
length(CharSequence s)
Deprecated.
Returns the length of the bit vector that would be computed by
TransformationStrategy.toBitVector(Object). |
long |
numBits()
Deprecated.
The (approximate) number of bits occupied by this transformation.
|
BitVector |
toBitVector(CharSequence s)
Deprecated.
Returns a bit vector representation of the given object.
|
public Utf16TransformationStrategy()
public long length(CharSequence s)
TransformationStrategyTransformationStrategy.toBitVector(Object).
The raison d'être of this method is that it is often easy to know the length of the representation without actually computing the representation.
length in interface TransformationStrategy<CharSequence>s - the object whose representation length is to be known.object (the one that would be returned by TransformationStrategy.toBitVector(Object)).public BitVector toBitVector(CharSequence s)
TransformationStrategytoBitVector in interface TransformationStrategy<CharSequence>s - the object to be turned into a bit-vector representation.object.public long numBits()
TransformationStrategynumBits in interface TransformationStrategy<CharSequence>public TransformationStrategy<CharSequence> copy()
TransformationStrategycopy in interface TransformationStrategy<CharSequence>