mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-24 19:54:26 +00:00
14 lines
396 B
Java
14 lines
396 B
Java
package somehussar.gui.annotationHandling.constraints;
|
|
|
|
import somehussar.gui.annotationHandling.FieldConstraint;
|
|
|
|
import java.lang.reflect.Field;
|
|
|
|
public class NumericConstraintFactory implements ConstraintFactory<NumericConstraint> {
|
|
|
|
@Override
|
|
public FieldConstraint create(Field field, NumericConstraint ann) {
|
|
return new NumericRangeConstraint(ann.min(), ann.max());
|
|
}
|
|
}
|