java.lang.Object
gg.xp.xivapi.mappers.objects.ArrayFieldMapper<X>
- Type Parameters:
X- The list type (e.g. List of String, not String)
- All Implemented Interfaces:
FieldMapper<X[]>
Mapper for array types.
This respects the OmitZeroes annotation on the method. If provided, then the
array will not contain any elements for which their XivApiObject.isZero() method returns true. By default,
this is when the row_id is zero. Note that using this with a non XivApiObject type will throw an exception.
-
Constructor Summary
ConstructorsConstructorDescriptionArrayFieldMapper(Class<X[]> cls, Method method, Type returnTypeFull, com.fasterxml.jackson.databind.ObjectMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildQueryFields(QueryFieldsBuilder parent) X[]getValue(com.fasterxml.jackson.databind.JsonNode current, XivApiContext context)
-
Constructor Details
-
ArrayFieldMapper
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceFieldMapper<X>
-
buildQueryFields
- Specified by:
buildQueryFieldsin interfaceFieldMapper<X>
-