|
org.eclipse.emf.query.conditions.numbers
Class NumberCondition.ByteValue
java.lang.Object
org.eclipse.emf.query.conditions.Condition
org.eclipse.emf.query.conditions.DataTypeCondition<N>
org.eclipse.emf.query.conditions.numbers.NumberCondition<
Byte>
org.eclipse.emf.query.conditions.numbers.NumberCondition.ByteValue
-
Enclosing class:
-
NumberCondition<
N extends
Number &
Comparable<? super
N>>
-
public static class NumberCondition.ByteValue
- extends
NumberCondition<
Byte>
A subclass of NumberCondition to be used to test for byte
values Clients can either use the default implementation supplied or have
their own.
Fields inherited from class org.eclipse.emf.query.conditions.numbers.
NumberCondition
|
BETWEEN,
EQUAL_TO,
GREATER_THAN,
GREATER_THAN_OR_EQUAL_TO,
LESS_THAN,
LESS_THAN_OR_EQUAL_TO,
lowerBound,
lowerInclusive,
NOT_EQUAL_TO,
operator,
upperBound,
upperInclusive
|
Constructor Summary
|
NumberCondition.ByteValue
(
Byte number)
A simple constructor, it takes only one Byte argument
which means in its evaluation the values passed to it must be equal
to this Byte value passed. |
NumberCondition.ByteValue
(
Byte lowerBound,
Byte upperBound)
A constructor, it takes two Byte arguments, a
lowerBound and an upperBound, which means in its evaluation the
values passed to it must be equal to any these two Byte
values passed or fall in between. |
NumberCondition.ByteValue
(
Byte lowerBound,
Byte upperBound,
NumberAdapter.ByteAdapter adapter)
A constructor, besides the NumberAdapter.ByteAdapter ,
it also takes two Byte arguments, a lowerBound and an
upperBound, which means in its evaluation the values passed to it
must be equal to any these two Byte values passed or
fall in between. |
NumberCondition.ByteValue
(
Byte number,
NumberAdapter.ByteAdapter adapter)
A simple constructor, it takes only one Byte argument
which means in its evaluation the values passed to it must be equal
to this Byte value passed. |
Method Summary
|
boolean
|
isSatisfied
(
Object object)
This operation is the evaluation operation of this Condition
in regard to the argument Object. |
Methods inherited from class org.eclipse.emf.query.conditions.numbers.
NumberCondition
|
between,
between,
equals,
greaterThan,
greaterThanOrEquals,
isSatisfied,
isSatisfied,
isSatisfied,
isSatisfied,
isSatisfied,
isSatisfied,
isSatisfied,
isSatisfied,
isSatisfied,
isSatisfied,
isSatisfied,
isSatisfied,
lessThan,
lessThanOrEquals,
notEquals
|
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
NumberCondition.ByteValue
public NumberCondition.ByteValue(
Byte number)
- A simple constructor, it takes only one
Byte argument
which means in its evaluation the values passed to it must be equal
to this Byte value passed. It defaults to using the
NumberAdapter.ByteAdapter.DEFAULT for adapting the objects being
evaluated to a byte value.
-
Parameters:
-
number - the Byte object to use for equality testing
NumberCondition.ByteValue
public NumberCondition.ByteValue(
Byte number,
NumberAdapter.ByteAdapter adapter)
- A simple constructor, it takes only one
Byte argument
which means in its evaluation the values passed to it must be equal
to this Byte value passed.
-
Parameters:
-
number - the Byte object to use for equality testing -
adapter - the NumberAdapter.ByteAdapter to use to
extract byte values from objects being evaluated.
NumberCondition.ByteValue
public NumberCondition.ByteValue(
Byte lowerBound,
Byte upperBound)
- A constructor, it takes two
Byte arguments, a
lowerBound and an upperBound, which means in its evaluation the
values passed to it must be equal to any these two Byte
values passed or fall in between. It defaults to using the
NumberAdapter.ByteAdapter.DEFAULT for adapting the objects being
evaluated to a byte value.
-
Parameters:
-
lowerBound - the Byte value representing the lower-bound
in range testing -
upperBound - the Byte value representing the upper-bound
in range testing
NumberCondition.ByteValue
public NumberCondition.ByteValue(
Byte lowerBound,
Byte upperBound,
NumberAdapter.ByteAdapter adapter)
- A constructor, besides the
NumberAdapter.ByteAdapter ,
it also takes two Byte arguments, a lowerBound and an
upperBound, which means in its evaluation the values passed to it
must be equal to any these two Byte values passed or
fall in between.
-
Parameters:
-
lowerBound - the Byte value representing the lower-bound
in range testing -
upperBound - the Byte value representing the upper-bound
in range testing -
adapter - the NumberAdapter.ByteAdapter to use to
extract byte values from objects being evaluated.
isSatisfied
public boolean isSatisfied(
Object object)
-
Description copied from class:
Condition
- This operation is the evaluation operation of this
Condition
in regard to the argument Object. In other words, the operation answers
whether the argument Object satisfied this Condition or
not.
-
-
Overrides:
-
isSatisfied
in class
NumberCondition<
Byte>
-
-
Parameters:
-
object - an Object to check if it satisfies this Condition
-
Returns:
-
true if the argument Object satisfies this
Condition ,false otherwise.
|
|