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 int
Index 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, ornull
if 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, ornull
if none.- Specified by:
apply
in interfaceFunction<FormattedCharacterIterator.Entry,
Object> - Specified by:
apply
in interfaceObjectConverter<FormattedCharacterIterator.Entry,
Object> - Parameters:
entry
- the object to convert, ornull
.- Returns:
- the converted object, or
null
.
-
getSourceClass
Description copied from interface:ObjectConverter
Returns the type of objects to convert.- Specified by:
getSourceClass
in interfaceObjectConverter<FormattedCharacterIterator.Entry,
Object> - Returns:
- the type of objects to convert.
-
getTargetClass
Description copied from interface:ObjectConverter
Returns the type of converted objects.- Specified by:
getTargetClass
in interfaceObjectConverter<FormattedCharacterIterator.Entry,
Object> - Returns:
- the type of converted objects.
-