Class Position
java.lang.Object
com.aquima.interactions.foundation.security.util.Position
Utility class for storing. a position
- Since:
- 5.1
- Author:
- m.hesselink
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Get the end index.int
Get the start index.boolean
Test if the position is unknown.void
setEndIndex
(int intValue) set the end index.void
setStartIndex
(int index) Set the start index.
-
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 positionendIndex
- 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.
-