Class SurjectiveConverter<S,T>

java.lang.Object
org.apache.sis.internal.converter.SurjectiveConverter<S,T>
Type Parameters:
S - the type of objects to convert.
T - the type of converted objects.
All Implemented Interfaces:
Function<S,T>, ObjectConverter<S,T>
Direct Known Subclasses:
DefaultMetadata.ToLocale, FormattedCharacterIterator.Filter, FormattedCharacterIterator.Selector, GeometryParser, PropertiesConverter, StringJoinOperation.ForFeature, SystemUnit.DimToUnit, TimeEncoding

public abstract class SurjectiveConverter<S,T> extends Object implements ObjectConverter<S,T>
Base class for (usually non-invertible) surjective ObjectConverters. Surjective converters are converters for which many different source values can produce the same target value. In many cases, the target value having many possible sources is the null value. This is the case in particular when the converter is used as a filter.

This base class is stateless. Consequently, sub-classes that choose to implement Serializable do not need to care about this base class.

Since:
0.3
Version:
0.3