Package org.apache.sis.measure
Class FormattedCharacterIterator.Selector
java.lang.Object
org.apache.sis.internal.converter.SurjectiveConverter<FormattedCharacterIterator.Entry,Object>
org.apache.sis.measure.FormattedCharacterIterator.Selector
- All Implemented Interfaces:
Serializable,Function<FormattedCharacterIterator.Entry,,Object> ObjectConverter<FormattedCharacterIterator.Entry,Object>
- Enclosing class:
- FormattedCharacterIterator
private static final class FormattedCharacterIterator.Selector
extends SurjectiveConverter<FormattedCharacterIterator.Entry,Object>
implements Serializable
The object converter to use for extracting
FormattedCharacterIterator.Entry.value in the map returned
by FormattedCharacterIterator.getAttributes(). The value to extract depends
on the character index.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intIndex of the character for which the map of attributes is requested.private static final long -
Constructor Summary
ConstructorsConstructorDescriptionSelector(int index) Creates a new value converter for the character at the given index. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value for the given entry, ornullif none.Returns the type of objects to convert.Returns the type of converted objects.Methods inherited from class org.apache.sis.internal.converter.SurjectiveConverter
inverse, properties, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
index
private final int indexIndex of the character for which the map of attributes is requested.
-
-
Constructor Details
-
Selector
Selector(int index) Creates a new value converter for the character at the given index.
-
-
Method Details
-
apply
Returns the value for the given entry, ornullif none.- Specified by:
applyin interfaceFunction<FormattedCharacterIterator.Entry,Object> - Specified by:
applyin interfaceObjectConverter<FormattedCharacterIterator.Entry,Object> - Parameters:
entry- the object to convert, ornull.- Returns:
- the converted object, or
null.
-
getSourceClass
Description copied from interface:ObjectConverterReturns the type of objects to convert.- Specified by:
getSourceClassin interfaceObjectConverter<FormattedCharacterIterator.Entry,Object> - Returns:
- the type of objects to convert.
-
getTargetClass
Description copied from interface:ObjectConverterReturns the type of converted objects.- Specified by:
getTargetClassin interfaceObjectConverter<FormattedCharacterIterator.Entry,Object> - Returns:
- the type of converted objects.
-