Module gg.xp.xivapi

Annotation Interface NullIfZero


@Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface NullIfZero
Applicable to a sheet reference type (i.e. nested object). Indicates that the getter method should return null if the primary key of the item is zero.

This can be applied to an interface, indicating that whenever it is used as a return type, a zero value should become null. It can also be applied to the getter itself to control this behavior on a per-field level.