Top Description Inners Methods
org.hibernate.validator.constraints.time

public @Interface DurationMin

extends Annotation
Annotations
@Documented
@Constraint
validatedBy:
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Repeatable:List
@ReportAsSingleViolation
@Incubating
Static Imports
java.lang.annotation.ElementType.ANNOTATION_TYPE, .ElementType.CONSTRUCTOR, .ElementType.FIELD, .ElementType.METHOD, .ElementType.PARAMETER, .ElementType.TYPE_USE, .RetentionPolicy.RUNTIME

The annotated Duration element must be longer than or equal to the one constructed as a sum of DurationMin#nanos(), DurationMin#millis(), DurationMin#seconds(), DurationMin#minutes(), DurationMin#hours(), DurationMin#days().
Author
Marko Bekhta

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static @interface
DurationMin.List

Defines several @DurationMin annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public long
days()

public Class<?>[]
public long
public boolean

Returns:

true if the value must be higher or equal to the specified minimum, false if the value must be higher
inclusive
()

Specifies whether the specified minimum is inclusive or exclusive.

public String
public long
public long
public long
public Class<? extends Payload>[]
public long
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

daysback to summary
public long days()
groupsback to summary
public Class<?>[] groups()
hoursback to summary
public long hours()
inclusiveback to summary
public boolean inclusive()

Specifies whether the specified minimum is inclusive or exclusive. By default, it is inclusive.

Returns:boolean

true if the value must be higher or equal to the specified minimum, false if the value must be higher

messageback to summary
public String message()
millisback to summary
public long millis()
minutesback to summary
public long minutes()
nanosback to summary
public long nanos()
payloadback to summary
public Class<? extends Payload>[] payload()
secondsback to summary
public long seconds()
org.hibernate.validator.constraints.time back to summary

public @Interface DurationMin.List

extends Annotation
Annotations
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Documented

Defines several @DurationMin annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public DurationMin[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public DurationMin[] value()