Module gg.xp.xivapi

Class ArrayFieldMapper<X>

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[]>

public class ArrayFieldMapper<X> extends Object implements 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 Details

    • ArrayFieldMapper

      public ArrayFieldMapper(Class<X[]> cls, Method method, Type returnTypeFull, com.fasterxml.jackson.databind.ObjectMapper mapper)
  • Method Details