Class CollectionConverter<T>
java.lang.Object
org.apache.sis.internal.converter.ClassPair<S,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 classConverter fromCollectiontoList.static final classConverter fromCollectiontoSet. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longFor 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, uniqueMethods inherited from class org.apache.sis.internal.converter.ClassPair
cast, hashCode, parentSource, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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.SURJECTIVEby default.- Returns:
- the manners in which source values are mapped to target values. May be an empty set, but never null.
-