Annotation Interface SpecClassInArray


@Retention(RUNTIME) @Target(FIELD) public @interface SpecClassInArray
Specifies that the value of a field must have a specific class.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<?>[]
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
  • Element Details

    • value

      Class<?>[] value
      Returns:
      the classes that are allowed
    • strict

      boolean strict
      Returns:
      true to allow only the acceptable classes, false to allow their subclasses too. Default is false.
      Default:
      false