Module gg.xp.xivapi

Class ListFieldMapper<X>

java.lang.Object
gg.xp.xivapi.mappers.objects.ListFieldMapper<X>
Type Parameters:
X - The list type (e.g. List of String, not String)
All Implemented Interfaces:
FieldMapper<List<X>>

public class ListFieldMapper<X> extends Object implements FieldMapper<List<X>>
Mapper for list types.

This respects the OmitZeroes annotation, either on the method or the parameter type. If provided, then the list 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.