C
- the generic typepublic class CollectionElement<C>
extends java.lang.Object
Constructor and Description |
---|
CollectionElement()
Instantiates a new collection element.
|
CollectionElement(C content)
Instantiates a new collection element.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
C |
getContent()
Gets the content.
|
int |
hashCode() |
void |
setContent(C content)
Sets the content.
|
java.lang.String |
toString() |
protected C content
public CollectionElement(C content)
content
- the contentpublic CollectionElement()
public C getContent()
public void setContent(C content)
content
- the new contentpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object