Interface ValueSegment

All Known Implementing Classes:
BinaryValueSegment, BooleanValueSegment, DoubleValueSegment, FloatValueSegment, IntValueSegment, LongValueSegment, StringValueSegment

public interface ValueSegment
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(int pos, Value engValue)
     
     
    getRange(int posStart, int posStop, boolean ascending)
    returns an array containing the values in the range [posStart, posStop) if ascending or [posStop, posStart) if descending
    getValue(int index)
    returns Value at position index
    int
     
  • Method Details

    • getValue

      Value getValue(int index)
      returns Value at position index
      Parameters:
      index -
      Returns:
      the value at the index
    • add

      void add(int pos, Value engValue)
    • consolidate

      BaseSegment consolidate()
    • size

      int size()
    • getRange

      ValueArray getRange(int posStart, int posStop, boolean ascending)
      returns an array containing the values in the range [posStart, posStop) if ascending or [posStop, posStart) if descending
      Parameters:
      posStart -
      posStop -
      ascending -
      Returns:
      an array containing the values in the specified range