Class CollectionConverter<T>
java.lang.Object
org.apache.sis.internal.converter.ClassPair<Collection<?>,T>
org.apache.sis.internal.converter.SystemConverter<Collection<?>,T>
org.apache.sis.internal.converter.CollectionConverter<T>
- All Implemented Interfaces:
Serializable
,Function<Collection<?>,
,T> ObjectConverter<Collection<?>,
T>
- Direct Known Subclasses:
CollectionConverter.List
,CollectionConverter.Set
Handles conversions from
Collection
to various objects.
The source class is fixed to Collection
. The target class is determined
by the inner class which extends this CollectionConverter
class.
Immutability and thread safety
This base class is immutable, and thus inherently thread-safe. Subclasses should be immutable and thread-safe too if they are intended to be cached inConverterRegistry
.- Since:
- 0.3
- Version:
- 0.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Converter fromCollection
toList
.static final class
Converter fromCollection
toSet
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
For cross-version compatibility.Fields inherited from class org.apache.sis.internal.converter.ClassPair
sourceClass, targetClass
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.sis.internal.converter.SystemConverter
bijective, equals, formatErrorMessage, getSourceClass, getTargetClass, inverse, readResolve, unique
Methods inherited from class org.apache.sis.internal.converter.ClassPair
cast, hashCode, parentSource, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.sis.util.ObjectConverter
apply
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
-
Constructor Details
-
CollectionConverter
For inner classes only.
-
-
Method Details
-
properties
ReturnsFunctionProperty.SURJECTIVE
by default.- Returns:
- the manners in which source values are mapped to target values. May be an empty set, but never null.
-