Module com.legyver.utils.mapqua
Class MapBackedNativeCollection<U extends java.util.Collection<T>,T>
- java.lang.Object
-
- com.legyver.utils.mapqua.mapbacked.MapBackedProperty<java.util.Collection>
-
- com.legyver.utils.mapqua.mapbacked.MapBackedCollection<java.util.Collection<T>,T>
-
- com.legyver.utils.mapqua.mapbacked.MapBackedNativeCollection<U,T>
-
- Type Parameters:
U- Type of Collection (ie: List, Set)T- Type of component (ie: Java Primitives and things like Strings; NOT entities)
public class MapBackedNativeCollection<U extends java.util.Collection<T>,T> extends MapBackedCollection<java.util.Collection<T>,T>
For Java Primitives and things like Strings (ie: NOT entities)
-
-
Field Summary
-
Fields inherited from class com.legyver.utils.mapqua.mapbacked.MapBackedProperty
property, sourceMap, valueIfMissing
-
-
Constructor Summary
Constructors Constructor Description MapBackedNativeCollection(java.util.Map sourceMap, java.lang.String property)Construct a MapBackedNativeCollection with a certain property nameMapBackedNativeCollection(java.util.Map sourceMap, java.lang.String property, java.util.Collection valueIfMissing)Construct a MapBackedNativeCollection with a certain property name and default value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjecttoMap(T o)Return the internal map where the MapBackedCollection is stored-
Methods inherited from class com.legyver.utils.mapqua.mapbacked.MapBackedCollection
add, deTransform, get, map, queryOption, remove, sync, transform
-
Methods inherited from class com.legyver.utils.mapqua.mapbacked.MapBackedProperty
set
-
-
-
-
Constructor Detail
-
MapBackedNativeCollection
public MapBackedNativeCollection(java.util.Map sourceMap, java.lang.String property, java.util.Collection valueIfMissing)Construct a MapBackedNativeCollection with a certain property name and default value- Parameters:
sourceMap- Map to store the Collection inproperty- Key name of the propertyvalueIfMissing- value to set if missing
-
MapBackedNativeCollection
public MapBackedNativeCollection(java.util.Map sourceMap, java.lang.String property)Construct a MapBackedNativeCollection with a certain property name- Parameters:
sourceMap- Map to store the Collection inproperty- Key name of the property
-
-
Method Detail
-
toMap
protected java.lang.Object toMap(T o)
Description copied from class:MapBackedCollectionReturn the internal map where the MapBackedCollection is stored- Specified by:
toMapin classMapBackedCollection<java.util.Collection<T>,T>- Parameters:
o- the object whose map will be returned- Returns:
- the raw map for the passed in Object
-
-