|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xqhs.graphs.util.ContentHolder<T>
T - the type of the content.public class ContentHolder<T>
The class serves as a mutable instance of type T. The user is able to get and set the content of the holder.
| Field Summary | |
|---|---|
protected T |
theContent
The content. |
| Constructor Summary | |
|---|---|
ContentHolder(T content)
Creates a new content holder for type T, containing the content. |
|
| Method Summary | |
|---|---|
T |
get()
Returns the current content of the instance. |
ContentHolder<T> |
set(T content)
Sets the current content of the instance. |
java.lang.String |
toString()
Returns the result of the toString() of the content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected T theContent
| Constructor Detail |
|---|
public ContentHolder(T content)
content.
content - - the content to be held by the instance.| Method Detail |
|---|
public T get()
public ContentHolder<T> set(T content)
content - - the content.
public java.lang.String toString()
toString() of the content.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||