Annotation Type 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
      java.lang.Class<?>[] value  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean strict  
    • Element Detail

      • value

        java.lang.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