it.unimi.dsi.bits
Class Utf16TransformationStrategy

java.lang.Object
  extended by it.unimi.dsi.bits.Utf16TransformationStrategy
All Implemented Interfaces:
TransformationStrategy<java.lang.CharSequence>, java.io.Serializable

Deprecated. Use TransformationStrategies.utf16() and TransformationStrategies.prefixFreeUtf16().

@Deprecated
public class Utf16TransformationStrategy
extends java.lang.Object
implements TransformationStrategy<java.lang.CharSequence>, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Utf16TransformationStrategy()
          Deprecated. Creates a prefix-free UTF16 transformation strategy.
 
Method Summary
 TransformationStrategy<java.lang.CharSequence> copy()
          Deprecated. Returns a copy of this transformation strategy.
 long numBits()
          Deprecated. The (approximate) number of bits occupied by this transformation.
 BitVector toBitVector(java.lang.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

Utf16TransformationStrategy

public Utf16TransformationStrategy()
Deprecated. 
Creates a prefix-free UTF16 transformation strategy. The strategy will map a string to its natural UTF16 bit sequence, and the resulting set of binary words will be made prefix free by adding

Method Detail

toBitVector

public BitVector toBitVector(java.lang.CharSequence s)
Deprecated. 
Description copied from interface: TransformationStrategy
Returns a bit vector representation of the given object.

Specified by:
toBitVector in interface TransformationStrategy<java.lang.CharSequence>
Parameters:
s - the object to be turned into bit representation.
Returns:
a bit vector representation of object.

numBits

public long numBits()
Deprecated. 
Description copied from interface: TransformationStrategy
The (approximate) number of bits occupied by this transformation.

Specified by:
numBits in interface TransformationStrategy<java.lang.CharSequence>
Returns:
the (approximate) number of bits occupied by this transformation.

copy

public TransformationStrategy<java.lang.CharSequence> copy()
Deprecated. 
Description copied from interface: TransformationStrategy
Returns a copy of this transformation strategy.

Specified by:
copy in interface TransformationStrategy<java.lang.CharSequence>
Returns:
a copy of this transformation strategy.