public abstract class AbstractWrapper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
handle |
protected java.lang.Class<?> |
handleType |
| Constructor and Description |
|---|
AbstractWrapper(java.lang.Class<?> handleType)
Construct a new NMS wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getHandle()
Retrieves the underlying NMS object.
|
java.lang.Class<?> |
getHandleType()
Retrieve the type of the handle.
|
protected void |
setHandle(java.lang.Object handle)
Set the underlying NMS object.
|
protected java.lang.Object handle
protected java.lang.Class<?> handleType
public AbstractWrapper(java.lang.Class<?> handleType)
handle - - the wrapped NMS object.protected void setHandle(java.lang.Object handle)
handle - - the NMS object.java.lang.IllegalArgumentException - If the handle is NULL.java.lang.IllegalArgumentException - If the handle is not assignable to getHandleType().public java.lang.Object getHandle()
public java.lang.Class<?> getHandleType()