Annotation Interface MaxMindDbParameter


@Retention(RUNTIME) public @interface MaxMindDbParameter
Interface for a MaxMind DB parameter. This is used to mark a parameter that should be used to create an instance of a class when decoding a MaxMind DB file.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The default value as a string.
    boolean
    Whether to use a default when the value is missing in the database.
  • Element Details

    • name

      String name
      Returns:
      the name of the parameter in the MaxMind DB file
    • useDefault

      boolean useDefault
      Whether to use a default when the value is missing in the database.
      Default:
      false
    • defaultValue

      String defaultValue
      The default value as a string. Parsed according to the Java parameter type (e.g., "0", "false"). If empty and useDefault is true, the Java type's default is used (0, false, 0.0, and "" for String).
      Default:
      ""