java.lang.Object
com.aquima.interactions.foundation.security.util.Position

public final class Position extends Object
Utility class for storing. a position
Since:
5.1
Author:
m.hesselink
  • Constructor Details

    • Position

      public Position()
      Create a new empty position.
    • Position

      public Position(int startIndex, int endIndex)
      Create a position for the given start and end.
      Parameters:
      startIndex - index of the start position
      endIndex - index of the end position
  • Method Details

    • getStartIndex

      public int getStartIndex()
      Get the start index.
      Returns:
      the start index.
    • setStartIndex

      public void setStartIndex(int index)
      Set the start index.
      Parameters:
      index - index
    • getEndIndex

      public int getEndIndex()
      Get the end index.
      Returns:
      the end index.
    • setEndIndex

      public void setEndIndex(int intValue)
      set the end index.
      Parameters:
      intValue - the end index.
    • isUnknown

      public boolean isUnknown()
      Test if the position is unknown. A position is considered unknown if the start position == -1
      Returns:
      boolean indicating if the position is unknown.