Class SparseIntVector

  • All Implemented Interfaces:
    IntVector, Serializable

    public class SparseIntVector
    extends Object
    implements IntVector, Serializable
    an int vector implementation designed for low occupancy. Note that get() from this vector is a binary search.

    This should only be used for small sets ... insertion and deletion are linear in size of set.

    See Also:
    Serialized Form
    • Constructor Detail

      • SparseIntVector

        public SparseIntVector​(int defaultValue)