|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.data.model.copier.ElementTransferContainer<E>
E
- the type of contained elementspublic class ElementTransferContainer<E extends IElement>
Container for transferring elements to data set. The elements cannot be attached to any data set.
IElement
,
IDataSet
Constructor Summary | |
---|---|
ElementTransferContainer(Type type)
Constructor. |
|
ElementTransferContainer(Type type,
List<E> elements)
Constructor. |
Method Summary | |
---|---|
void |
addElement(E element)
Adds given element. |
void |
addElements(Collection<E> elements)
Adds given collection of elements. |
void |
addElements(E... elements)
Adds given elements. |
Type |
getDataSetType()
Returns the type of data set (model) from which the contained elements originate. |
List<E> |
getElements()
Returns a modifiable list of contained elements. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElementTransferContainer(Type type)
type
- the type of data set (model) the elements are frompublic ElementTransferContainer(Type type, List<E> elements)
type
- the type of data set (model) the elements are fromelements
- the list of elements, if null
then an emty list is usedMethod Detail |
---|
public final Type getDataSetType()
public final List<E> getElements()
public final void addElement(E element)
element
- element to addpublic final void addElements(E... elements)
elements
- elements to addpublic final void addElements(Collection<E> elements)
elements
- collection of elements to addList.addAll(Collection)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |