Class BreakPositionsList


  • public final class BreakPositionsList
    extends Object
    Creation-Date: 26.08.2007, 15:06:45
    Author:
    Thomas Morgner
    • Constructor Detail

      • BreakPositionsList

        public BreakPositionsList()
      • BreakPositionsList

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

      • clear

        public void clear()
      • size

        public int size()
      • getOwner

        public org.pentaho.reporting.engine.classic.core.util.InstanceID getOwner​(long key)
      • add

        public boolean add​(long key,
                           org.pentaho.reporting.engine.classic.core.util.InstanceID owner)
      • remove

        public boolean remove​(long key)
      • getNext

        public long getNext​(long key)
      • getPrevious

        public long getPrevious​(long key)
        Returns the entry that is either equal or less than this key.
        Parameters:
        key -
        Returns:
      • getKeys

        public long[] getKeys()
        Copys the list contents into a new array.
        Returns:
        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.
        Parameters:
        coordinate -
        greater -
        Returns:
      • 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.
        Parameters:
        cutArray -
      • offset

        public void offset​(long offset)