public class NetworkedObjectCache.ServerView
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
getId(T value)
Gets the ID for the given object, or -1 if this was not stored in the cache.
|
int |
store(T value)
Stores the given object in this cache, returning its ID.
|
public int store(T value)
value
- The object to storepublic int getId(T value)
store(Object)
is
preferred to this, as most uses (such as network sending) want the value to be stored and get a valid ID.value
- The value to get an id for