|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.utility.Wrapper<T>
T
- type that is wrappedpublic class Wrapper<T>
Generic mutatble Wrapper class - allows non-mutatable class to be wrapped in mutatable classes, and re-accessed later.
Nested Class Summary | |
---|---|
static class |
Wrapper.IntObjectWrapper<K>
IntObjectWrapper class |
Field Summary | |
---|---|
protected T |
o
|
Constructor Summary | |
---|---|
Wrapper()
default constructor |
|
Wrapper(T O)
constructor |
Method Summary | |
---|---|
Wrapper<T> |
createWrapper(T O)
get created wrapper |
T |
getObject()
return object |
void |
setObject(T O)
set object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected T o
Constructor Detail |
---|
public Wrapper()
public Wrapper(T O)
O
- Method Detail |
---|
public T getObject()
public void setObject(T O)
O
- public Wrapper<T> createWrapper(T O)
O
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |