Class RemappedStringMap

All Implemented Interfaces:
StringMap<CharSequence>, Function<CharSequence,​Long>, Object2LongFunction<CharSequence>, Size64, Serializable, Function<CharSequence,​Long>, ToLongFunction<CharSequence>

public class RemappedStringMap
extends AbstractObject2LongFunction<CharSequence>
implements StringMap<CharSequence>, Serializable
A StringMap that remaps values returned by another StringMap.

Instances of this class wrap a given minimal perfect hash and a given map (an integer array). Queries to getLong(Object) are solved by first inquiring the given map. If the result is -1, it is returned; otherwise, we use the result to index the map and return the corresponding element.

See Also:
Serialized Form