Class TableCutList

    • Field Detail

      • bin

        public static long bin
      • lin

        public static long lin
    • Constructor Detail

      • TableCutList

        public TableCutList​(int increment,
                            boolean enableQuickLookup)
    • Method Detail

      • clear

        public void clear()
      • isEnableQuickLookup

        public boolean isEnableQuickLookup()
      • setEnableQuickLookup

        public void setEnableQuickLookup​(boolean enableQuickLookup)
      • size

        public int size()
      • put

        public boolean put​(long key,
                           Boolean entry)
      • remove

        public boolean remove​(long key)
      • get

        public Boolean get​(long key)
      • getPrevious

        public Boolean getPrevious​(long key)
      • containsKey

        public boolean containsKey​(long key)
      • getRawEntries

        public Boolean[] getRawEntries()
      • getKeys

        public long[] getKeys()
        Always provide a buffer for performance reasons.
        Copys the list contents into a new array.
        the list contents as array.
      • getKeys

        public long[] getKeys​(long[] retval)
      • findKeyPosition

        public int findKeyPosition​(long coordinate,
                                   boolean greater)
        Tries to locate the key that matches the given key-parameter as closely as possible. If greater is set to true, then - if the coordinate is not contained in the list - the next coordinate is given, else the previous one is returned.
        coordinate -
        greater -
      • findKeyPosition

        public int findKeyPosition​(long coordinate,
                                   boolean greater,
                                   int lastFoundPos)
      • getKeyAt

        public long getKeyAt​(int indexPosition)
      • getValueAt

        public Boolean getValueAt​(int indexPosition)
      • findKey

        public long findKey​(long key,
                            boolean upperBounds)
      • removeAll

        public void removeAll​(long[] cutArray,
                              long cutSize)
        Expects a sorted (ascending) list of cut-entries that should be removed. You will run into troubles if the list is not sorted.
        cutArray -