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 intIndex 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) Returnsattributeif it shall be included in the derived map, ornullotherwise.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
Returnsattributeif it shall be included in the derived map, ornullotherwise.- Specified by:
applyin interfaceFunction<AttributedCharacterIterator.Attribute,AttributedCharacterIterator.Attribute> - Specified by:
applyin interfaceObjectConverter<AttributedCharacterIterator.Attribute,AttributedCharacterIterator.Attribute> - Parameters:
attribute- 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<AttributedCharacterIterator.Attribute,AttributedCharacterIterator.Attribute> - Returns:
- the type of objects to convert.
-
getTargetClass
Description copied from interface:ObjectConverterReturns the type of converted objects.- Specified by:
getTargetClassin interfaceObjectConverter<AttributedCharacterIterator.Attribute,AttributedCharacterIterator.Attribute> - Returns:
- the type of converted objects.
-