Class IntegerListUniqueIndex

  • All Implemented Interfaces:
    com.macrofocus.index.Index<java.lang.Integer>, UniqueIndex<java.lang.Integer>

    public class IntegerListUniqueIndex
    extends AbstractUniqueIndex<java.lang.Integer>
    • Constructor Detail

      • IntegerListUniqueIndex

        public IntegerListUniqueIndex​(int[] keys)
        Creates a new index with a set of keys. Note: the keys need to be unique
        Parameters:
        keys - the keys
    • Method Detail

      • contains

        public boolean contains​(java.lang.Integer key)
      • getAddress

        public int getAddress​(java.lang.Integer key)
      • keys

        public java.lang.Iterable<java.lang.Integer> keys()
        Specified by:
        keys in interface com.macrofocus.index.Index<java.lang.Integer>
        Overrides:
        keys in class AbstractUniqueIndex<java.lang.Integer>
      • getKey

        public java.lang.Integer getKey​(int i)
      • getSize

        public int getSize()
      • head

        public UniqueIndex<java.lang.Integer> head​(int count)
      • tail

        public UniqueIndex<java.lang.Integer> tail​(int count)
      • keepAddresses

        public UniqueIndex<java.lang.Integer> keepAddresses​(int[] addresses)