public static class Location.DefaultLocationHandle extends java.lang.Object implements Location.Handle
Location.Handle implementation for simple file offsets| Constructor and Description |
|---|
DefaultLocationHandle(Context context,
int startOffset,
int endOffset)
Constructs a new
Location.DefaultLocationHandle |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getClientData()
Returns the client data associated with this location - an optional field
which can be used by the creator of the
Location to store
temporary state associated with the location. |
Location |
resolve()
Compute a full location for the given handle
|
void |
setClientData(java.lang.Object clientData)
Sets the client data associated with this location.
|
public DefaultLocationHandle(@NonNull
Context context,
int startOffset,
int endOffset)
Location.DefaultLocationHandlecontext - the context pointing to the file and its contentsstartOffset - the start offset within the fileendOffset - the end offset within the file@NonNull public Location resolve()
Location.Handleresolve in interface Location.Handlepublic void setClientData(@Nullable
java.lang.Object clientData)
Location.HandleLocation to store
temporary state associated with the location.setClientData in interface Location.HandleclientData - the data to store with this location@Nullable public java.lang.Object getClientData()
Location.HandleLocation to store
temporary state associated with the location.getClientData in interface Location.Handle