Class SegmentSequence.SegmentSequencePool

All Implemented Interfaces:
Serializable, Iterable<SegmentSequence>, Collection<SegmentSequence>, Set<SegmentSequence>, InterningSet<SegmentSequence>
Enclosing class:
SegmentSequence

protected static class SegmentSequence.SegmentSequencePool extends Pool<SegmentSequence>
A cached pool of weakly referenced segment sequences. There are several ways of interning instances, all of which seek to avoid creating new objects whenever possible. Note that we've carefully ensured that a segment sequence's hash code is the same as that of its string representation. This is exploited to allow fast lookup of strings against their already segmented representation.
See Also: