Annotation Type YAPIONOptimize


  • @Retention(RUNTIME)
    @Target(FIELD)
    @Repeatable(YAPIONOptimizes.class)
    public @interface YAPIONOptimize
    This annotation is for optimizing the YAPIONObject to remove Objects that are null. This is for preventing clutter in the serialization. Only use this if you can handle the edge case that, in the deserialization, the field can be after deserialization null.

    The context describes the state in which the YAPIONSerializer should be for this annotation to take effect.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] context  
    • Element Detail

      • context

        java.lang.String[] context
        Default:
        {}