Determine the smallest integer in this set-of-integer attribute that is
greater than the given value. If there are no integers in this
set-of-integer attribute greater than the given value,
-1
is
returned. (Since a set-of-integer attribute can only contain nonnegative
values,
-1
will never appear in the set.) You can use the
next()
method to iterate through the integer values in a
set-of-integer attribute in ascending order, like this:
SetOfIntegerSyntax attribute = . . .;
int i = -1;
while ((i = attribute.next (i)) != -1)
{
foo (i);
}
Returns:
The smallest integer in this set-of-integer attribute that is
greater than
x
, or
-1
if no integer in
this set-of-integer attribute is greater than
x
.
Parameters:
-
x - Integer value.