Package net.shibboleth.utilities.java.support.annotation.constraint

A set of annotations used to document constraints on methods, fields, parameters, etc. Note, these annotations are for documentation purposes only. They do not have any effect on the executing code. Use a JSR-303 implementation if that's what you're after.
  • Annotation Types Summary
    Annotation Type Description
    Live
    Indicates that the annotated object is "live" and that changes made to it will be reflected in its "owner" and vice versa.
    Negative
    Indicates that the annotated item will be negative (i.e., less than zero).
    NonNegative
    Indicates that the annotated item will be non-negative (i.e., greater than or equal to zero).
    NonnullAfterInit
    Indicates that the annotated item will not be null after initialization of its containing component.
    NonnullElements
    Indicates that the annotated collection cannot contain any null elements: Input collections as parameters MUST NOT contain any null elements. Collections returned by methods WILL NOT contain any null elements, and if mutable, callers MUST NOT add a null element.
    NonPositive
    Indicates that the annotated item will be non-positive (i.e., less than or equal to zero).
    NotEmpty
    Indicates that the annotated array, string, collection, or other object is not empty.
    NotLive
    Indicates that the annotated object is not "live" and that changes made to it will not be reflected in its "owner" and vice versa.
    NullableElements
    Indicates that the annotated collection may contain null elements and, if mutable, null elements may be added to it safely.
    Positive
    Indicates that the annotated item will be positive (i.e., greater than zero).
    ThreadSafeAfterInit
    Indicates that the annotated class will meet the definition of the ThreadSafe annotation after its initialization and before its destruction.
    Unmodifiable
    Indicates that the annotated object cannot be modified.