public interface TransformationStrategy<T> extends Serializable
Modifier and Type | Method and Description |
---|---|
TransformationStrategy<T> |
copy()
Returns a copy of this transformation strategy.
|
long |
length(T object)
Returns the length of the bit vector that would be computed by
toBitVector(Object) . |
long |
numBits()
The (approximate) number of bits occupied by this transformation.
|
BitVector |
toBitVector(T object)
Returns a bit vector representation of the given object.
|
BitVector toBitVector(T object)
object
- the object to be turned into a bit-vector representation.object
.long numBits()
TransformationStrategy<T> copy()
long length(T object)
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.
object
- the object whose representation length is to be known.object
(the one that would be returned by toBitVector(Object)
).