private static class ForgeConfigSpec.Range<V extends java.lang.Comparable<? super V>>
extends java.lang.Object
implements java.util.function.Predicate<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<? extends V> |
clazz |
private V |
max |
private V |
min |
Modifier | Constructor and Description |
---|---|
private |
Range(java.lang.Class<V> clazz,
V min,
V max) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
correct(java.lang.Object value,
java.lang.Object def) |
java.lang.Class<? extends V> |
getClazz() |
V |
getMax() |
V |
getMin() |
private boolean |
isNumber(java.lang.Object other) |
boolean |
test(java.lang.Object t) |
java.lang.String |
toString() |
public java.lang.Class<? extends V> getClazz()
public V getMin()
public V getMax()
private boolean isNumber(java.lang.Object other)
public boolean test(java.lang.Object t)
test
in interface java.util.function.Predicate<java.lang.Object>
public java.lang.Object correct(java.lang.Object value, java.lang.Object def)
public java.lang.String toString()
toString
in class java.lang.Object