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