Interface JsonKeySortOrderCallback

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface JsonKeySortOrderCallback
Provides a callback for setting the sort priority of object keys in generated JSON files.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(String key, int priority)
    Sets the sort priority for a given object key within generated JSON files.
  • Method Details

    • add

      void add(String key, int priority)
      Sets the sort priority for a given object key within generated JSON files.
      Parameters:
      key - the key to set priority for
      priority - the priority for the key, where keys with lower priority are sorted before keys with higher priority
      See Also:
      Implementation Note:
      The default priority is 2.