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