Interface LogEntrySet.Cursor
- All Superinterfaces:
LogEntry,Serializable
- Enclosing interface:
- LogEntrySet
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longGenerated ID for serialisation. -
Method Summary
Modifier and TypeMethodDescriptionvoidPosition the cursor directly after the last entry.voidPosition the cursor directly before the first entry.intReturns the current cursor position which lies in the closed interval[ -1, <entryCount> ].booleanAdvances the cursor position to the next entry (or at most to the cursor position directly after the last entry) and returns whether the new cursor position points to an accessible log entry.booleanMoves the cursor position to the previous entry (or at most to the cursor position directly before the first entry) and returns whether the new cursor position points to an accessible log entry.voidsetPosition(int cursorPos) Sets the cursor to the specified position, either an entry or one before first or one after last entry.Methods inherited from interface de.aristaflow.adept2.model.logmanagement.LogEntry
get, get, getBoolean, getBoolean, getByte, getByte, getDouble, getDouble, getEntrySet, getEntrySet, getFloat, getFloat, getID, getInteger, getInteger, getLong, getLong, getSchema, getShort, getShort, getString, getString, getTimestamp, getTimestamp, getUUID, getUUID, isNull, isNull, setBoolean, setBoolean, setByte, setByte, setDouble, setDouble, setEntrySet, setEntrySet, setFloat, setFloat, setID, setInteger, setInteger, setLong, setLong, setNull, setNull, setShort, setShort, setString, setString, setTimestamp, setTimestamp, setUUID, setUUID
-
Field Details
-
serialVersionUID
static final long serialVersionUIDGenerated ID for serialisation.- See Also:
-
-
Method Details
-
setPosition
void setPosition(int cursorPos) Sets the cursor to the specified position, either an entry or one before first or one after last entry.- Parameters:
cursorPos- the new cursor position
-
getPosition
int getPosition()Returns the current cursor position which lies in the closed interval[ -1, <entryCount> ].- Returns:
- the current cursor position
-
nextEntry
boolean nextEntry()Advances the cursor position to the next entry (or at most to the cursor position directly after the last entry) and returns whether the new cursor position points to an accessible log entry.- Returns:
- whether the new cursor position points to an accessible log entry
-
prevEntry
boolean prevEntry()Moves the cursor position to the previous entry (or at most to the cursor position directly before the first entry) and returns whether the new cursor position points to an accessible log entry.- Returns:
- whether the new cursor position points to an accessible log entry
-
beforeFirstEntry
void beforeFirstEntry()Position the cursor directly before the first entry. -
afterLastEntry
void afterLastEntry()Position the cursor directly after the last entry.
-