Enum DefaultAnnotationUsage

    • Method Detail

      • values

        public static DefaultAnnotationUsage[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DefaultAnnotationUsage c : DefaultAnnotationUsage.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DefaultAnnotationUsage valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • set

        public AnnotationUsage set​(Type type)
        Sets the type of this model.

        Since this is a constant, the model will first be copied and the operation will then be performed on the copy.

        Specified by:
        set in interface HasType<AnnotationUsage>
        Parameters:
        type - the new type
        Returns:
        a reference to this
      • set

        public AnnotationUsage set​(Value<?> val)
        Sets the value of this model.

        Since this is a constant, the model will first be copied and the operation will then be performed on the copy.

        Specified by:
        set in interface HasValue<AnnotationUsage>
        Parameters:
        val - the new value
        Returns:
        a reference to this
      • put

        public AnnotationUsage put​(String key,
                                   Value<?> val)
        Use the specified key-value pair when referencing the annotation. If you only want to show a single value without any key, consider using the HasValue.set(Value) method.

        Since this is a constant, the model will first be copied and the operation will then be performed on the copy.

        Specified by:
        put in interface AnnotationUsage
        Parameters:
        key - the key
        val - the value
        Returns:
        a reference to this model
      • copy

        public AnnotationUsage copy()
        Description copied from interface: HasCopy
        Create a deep copy of this model if it is mutable. If this class is not mutable, then this method may return itself. If the model implements HasParent, then the parent property will not be copied. Instead it will be set to null.
        Specified by:
        copy in interface HasCopy<AnnotationUsage>
        Returns:
        the copy