public class IntProperty extends AbstractInventoryProperty<String,Integer>
Property.Operator
operator, value
Constructor and Description |
---|
IntProperty(int value)
Create a new integer property with the specified value.
|
IntProperty(int value,
Property.Operator operator)
Create a new integer property with the specified value and logical
operator.
|
IntProperty(Object value,
Property.Operator operator)
Create a new integer property with the specified value and logical
operator.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Property<?,?> other) |
static IntProperty |
greaterThan(Object value)
Create an
IntProperty property which matches IntProperty
properties with value greater than this value. |
static IntProperty |
greaterThanOrEqual(Object value)
Create an
IntProperty property which matches IntProperty
properties with value greater than or equal to this value. |
static IntProperty |
lessThan(Object value)
Create an
IntProperty property which matches IntProperty
properties with value less than this value. |
static IntProperty |
lessThanOrEqual(Object value)
Create an
IntProperty property which matches IntProperty
properties with value less than or equal to this value. |
static IntProperty |
not(Object value)
Create an
IntProperty property which matches IntProperty
properties with unequal value. |
static IntProperty |
of(Object value)
Create an
IntProperty property which matches IntProperty
properties with equal value. |
equals, getDefaultKey, getDefaultKey, getDefaultOperator, getKey, getOperator, getValue, hashCode, hashCodeOf, matches
public IntProperty(int value)
value
- value to matchpublic IntProperty(int value, Property.Operator operator)
value
- value to matchoperator
- logical operator to use when comparing to other
propertiespublic IntProperty(Object value, Property.Operator operator)
value
- value to matchoperator
- logical operator to use when comparing to other
propertiespublic int compareTo(Property<?,?> other)
public static IntProperty of(Object value)
IntProperty
property which matches IntProperty
properties with equal value.value
- value to matchpublic static IntProperty not(Object value)
IntProperty
property which matches IntProperty
properties with unequal value.value
- value to matchpublic static IntProperty greaterThan(Object value)
IntProperty
property which matches IntProperty
properties with value greater than this value.value
- value to matchpublic static IntProperty greaterThanOrEqual(Object value)
IntProperty
property which matches IntProperty
properties with value greater than or equal to this value.value
- value to matchpublic static IntProperty lessThan(Object value)
IntProperty
property which matches IntProperty
properties with value less than this value.value
- value to matchpublic static IntProperty lessThanOrEqual(Object value)
IntProperty
property which matches IntProperty
properties with value less than or equal to this value.value
- value to match