Package org.apache.sis.measure
Class FormattedCharacterIterator.Filter
java.lang.Object
org.apache.sis.internal.converter.SurjectiveConverter<AttributedCharacterIterator.Attribute,AttributedCharacterIterator.Attribute>
org.apache.sis.measure.FormattedCharacterIterator.Filter
- All Implemented Interfaces:
Serializable
,Function<AttributedCharacterIterator.Attribute,
,AttributedCharacterIterator.Attribute> ObjectConverter<AttributedCharacterIterator.Attribute,
AttributedCharacterIterator.Attribute>
- Enclosing class:
- FormattedCharacterIterator
private static class FormattedCharacterIterator.Filter
extends SurjectiveConverter<AttributedCharacterIterator.Attribute,AttributedCharacterIterator.Attribute>
implements Serializable
The object converter to use for filtering the keys in the map returned by
FormattedCharacterIterator.getAttributes()
.-
Field Summary
FieldsModifier and TypeFieldDescriptionA reference toFormattedCharacterIterator.attributes
.private final int
Index of the character for which the map of attribute is requested.private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionFilter
(Map<AttributedCharacterIterator.Attribute, FormattedCharacterIterator.Entry> attributes, int index) Creates a new key filter for the character at the given index. -
Method Summary
Modifier and TypeMethodDescriptionapply
(AttributedCharacterIterator.Attribute attribute) Returnsattribute
if it shall be included in the derived map, ornull
otherwise.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:
-
attributes
private final Map<AttributedCharacterIterator.Attribute,FormattedCharacterIterator.Entry> attributesA reference toFormattedCharacterIterator.attributes
. -
index
private final int indexIndex of the character for which the map of attribute is requested.
-
-
Constructor Details
-
Filter
Filter(Map<AttributedCharacterIterator.Attribute, FormattedCharacterIterator.Entry> attributes, int index) Creates a new key filter for the character at the given index.
-
-
Method Details
-
apply
Returnsattribute
if it shall be included in the derived map, ornull
otherwise.- Specified by:
apply
in interfaceFunction<AttributedCharacterIterator.Attribute,
AttributedCharacterIterator.Attribute> - Specified by:
apply
in interfaceObjectConverter<AttributedCharacterIterator.Attribute,
AttributedCharacterIterator.Attribute> - Parameters:
attribute
- 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<AttributedCharacterIterator.Attribute,
AttributedCharacterIterator.Attribute> - Returns:
- the type of objects to convert.
-
getTargetClass
Description copied from interface:ObjectConverter
Returns the type of converted objects.- Specified by:
getTargetClass
in interfaceObjectConverter<AttributedCharacterIterator.Attribute,
AttributedCharacterIterator.Attribute> - Returns:
- the type of converted objects.
-