T
- the type of objects that are looked uppublic interface IntStorageSearch<T> extends StorageSearch<T>
ModifiableSearch
that supports getting
IntStorage
's address of the found object.Modifier and Type | Method and Description |
---|---|
IntAddress<T> |
getCurrentObjectAddress()
Returns the address of the object found by the last search.
|
int |
getCurrentObjectIntAddress()
Returns the address of the object found by the last search.
|
clone, close, getCurrentObject, next, previous, skip
getCurrentObject, remove
int getCurrentObjectIntAddress() throws java.lang.IllegalStateException
Search.next()
or Search.previous()
has returned true, this method returns the address of the matching
object. If false has been returned, this method throws an IllegalStateException
.
Note that even though the address can be used to retrieve the actual object,
the Search.getCurrentObject()
should be used instead, since it is usually faster.
java.lang.IllegalStateException
- if there is no current object (next/previous method was not called or returned false)IntAddress<T> getCurrentObjectAddress() throws java.lang.IllegalStateException
StorageSearch
Search.next()
or Search.previous()
has returned true, this method returns the address of the matching
object. If false has been returned, this method throws an IllegalStateException
.
Note that even though the address can be used to retrieve the actual object,
the Search.getCurrentObject()
should be used instead, since it is usually faster.
getCurrentObjectAddress
in interface StorageSearch<T>
java.lang.IllegalStateException
- if there is no current object (next/previous method was not called or returned false)