|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.bits.Utf16TransformationStrategy
TransformationStrategies.utf16()
and TransformationStrategies.prefixFreeUtf16()
.
@Deprecated public class Utf16TransformationStrategy
Constructor Summary | |
---|---|
Utf16TransformationStrategy()
Deprecated. Creates a prefix-free UTF16 transformation strategy. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utf16TransformationStrategy()
Method Detail |
---|
public long length(CharSequence s)
TransformationStrategy
TransformationStrategy.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)
TransformationStrategy
toBitVector
in interface TransformationStrategy<CharSequence>
s
- the object to be turned into a bit-vector representation.
object
.public long numBits()
TransformationStrategy
numBits
in interface TransformationStrategy<CharSequence>
public TransformationStrategy<CharSequence> copy()
TransformationStrategy
copy
in interface TransformationStrategy<CharSequence>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |