E
- the type of the elementspublic abstract class PluralPropertyContents<E> extends Object
PluralProperty
to use a common interface during import, independent of the actual
subtype.Modifier and Type | Class and Description |
---|---|
private static class |
PluralPropertyContents.ListCollection<E> |
private static class |
PluralPropertyContents.MapCollection<E> |
private static class |
PluralPropertyContents.SetCollection<E,V> |
Constructor and Description |
---|
PluralPropertyContents() |
Modifier and Type | Method and Description |
---|---|
void |
addElement(E element)
Adds an element to the end of the collection.
|
(package private) abstract void |
create() |
static <E,C,V> PluralPropertyContents<V> |
create(E entity,
PluralProperty<E,C,V> property)
Creates a wrapper around the contents of the given property in the given entity.
|
(package private) abstract Object |
getCollection() |
(package private) abstract void |
setCollection(Object value) |
abstract void |
setElement(int index,
Object key,
E element)
Sets an element in the collection resp. map.
|
public static <E,C,V> PluralPropertyContents<V> create(E entity, PluralProperty<E,C,V> property)
entity
- the entity that contains the propertyproperty
- the propertypublic void addElement(E element)
element
- the element to add to the end of the collectionabstract void create()
abstract Object getCollection()
abstract void setCollection(Object value)
Copyright © 2022 fastnate.org. All rights reserved.