Top Description Inners Methods
javax.annotation

public @Interface Nonnegative

extends Annotation
Annotations
@Documented
@TypeQualifier
applicableTo:Number
@Retention:RUNTIME
Imports
java.lang.annotation.Documented, .Retention, .RetentionPolicy, javax.annotation.meta.TypeQualifier, .TypeQualifierValidator, .When

This annotation is used to annotate a value that should only contain nonnegative values.

When this annotation is applied to a method it applies to the method return value.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Method Summary

Modifier and TypeMethod and Description
public When
when()

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

whenback to summary
public When when()
javax.annotation back to summary

public Class Nonnegative.Checker

extends Object
implements TypeQualifierValidator<Nonnegative>
Class Inheritance
All Implemented Interfaces
javax.annotation.meta.TypeQualifierValidator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public When
forConstantValue(Nonnegative
the type qualifier
annotation
,
Object
the value to check
v
)

Implements javax.annotation.meta.TypeQualifierValidator.forConstantValue.

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.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Checkerback to summary
public Checker()

Method Detail

forConstantValueback to summary
public When forConstantValue(Nonnegative annotation, Object v)

Implements javax.annotation.meta.TypeQualifierValidator.forConstantValue.

Doc from javax.annotation.meta.TypeQualifierValidator.forConstantValue.

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.

Parameters
annotation:Nonnegative

the type qualifier

v:Object

the value to check

Returns:When

a value indicating whether or not the value is an member of the values denoted by the type qualifier