Annotation Interface Configuration.Check

Enclosing class:
Configuration

@Documented @Target(METHOD) @Retention(CLASS) public static @interface Configuration.Check
The annotated method will be invoked internally to validate invariants after instance has been created, but before returned to a client. The method must
  • be parameter-less
  • be non-private
  • have a void return type
  • not throw a checked exception

Can also be used to compute a normalized variant by specifying a non-void return type. This is probably not what you want.

See org.immutables.value.Value.Check.