Class ExactCollection<E>

java.lang.Object
java.util.AbstractCollection<E>
me.ahoo.cosid.sharding.ExactCollection<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, RandomAccess

public class ExactCollection<E> extends AbstractCollection<E> implements RandomAccess
Exact-size collection optimized for known node counts.

Used by Interval and Mod algorithms where the number of nodes is known in advance, avoiding the memory overhead of HashSet and unnecessary array expansion.