Module nbbrd.design
Package nbbrd.design

Annotation Type RepresentableAsInt


@Target(TYPE) @Retention(SOURCE) public @interface RepresentableAsInt
Class that can be represented unambiguously by an int. Such class must have a static factory method that accepts unique int parameter and that doesn't throw a checked exception.
Author:
Philippe Charles
  • Element Details

    • parseMethodName

      String parseMethodName
      Default:
      "parse"
    • formatMethodName

      String formatMethodName
      Default:
      "toInt"