Annotation Type JohnzonRecord


@Target(TYPE) @Retention(RUNTIME) public @interface JohnzonRecord
Forces method named as properties to be used as getters (String foo() will match the attribute foo). Also enables a constructor with all properties even if not marked as @ConstructorProperties or equivalent. It simulates Java 14+ records.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    When not using -parameters compiler argument, enables to customize parameter names.