mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
47 lines
831 B
Java
47 lines
831 B
Java
package com.mysema.codegen;
|
|
|
|
import java.lang.annotation.Annotation;
|
|
|
|
import javax.validation.ConstraintPayload;
|
|
import javax.validation.constraints.*;
|
|
|
|
/**
|
|
* @author tiwe
|
|
*
|
|
*/
|
|
@SuppressWarnings("all")
|
|
public class MaxImpl implements Max{
|
|
|
|
private final long value;
|
|
|
|
public MaxImpl(long value) {
|
|
this.value = value;
|
|
}
|
|
|
|
@Override
|
|
public Class<?>[] groups() {
|
|
return new Class[0];
|
|
}
|
|
|
|
@Override
|
|
public String message() {
|
|
return "{javax.validation.constraints.Max.message}";
|
|
}
|
|
|
|
@Override
|
|
public Class<? extends ConstraintPayload>[] payload() {
|
|
return new Class[0];
|
|
}
|
|
|
|
@Override
|
|
public long value() {
|
|
return value;
|
|
}
|
|
|
|
@Override
|
|
public Class<? extends Annotation> annotationType() {
|
|
return Max.class;
|
|
}
|
|
|
|
}
|