- java.lang.Object
-
- javax.annotation.Nonnegative.Checker
-
- All Implemented Interfaces:
javax.annotation.meta.TypeQualifierValidator<Nonnegative>
- Enclosing class:
- Nonnegative
public static class Nonnegative.Checker extends java.lang.Object implements javax.annotation.meta.TypeQualifierValidator<Nonnegative>
-
-
Constructor Summary
Constructors Constructor Description Checker()
-
Method Summary
Modifier and Type Method Description javax.annotation.meta.When
forConstantValue(Nonnegative annotation, java.lang.Object v)
Given a type qualifier, check to see if a known specific constant value is an instance of the set of values denoted by the qualifier.
-
-
-
Method Detail
-
forConstantValue
public javax.annotation.meta.When forConstantValue(Nonnegative annotation, java.lang.Object v)
Description copied from interface:javax.annotation.meta.TypeQualifierValidator
Given a type qualifier, check to see if a known specific constant value is an instance of the set of values denoted by the qualifier.- Specified by:
forConstantValue
in interfacejavax.annotation.meta.TypeQualifierValidator<Nonnegative>
- Parameters:
annotation
- the type qualifierv
- the value to check- Returns:
- a value indicating whether or not the value is an member of the values denoted by the type qualifier
-
-