edu.nrao.sss.math
Enum NumberSet.LookupMethod

java.lang.Object
  extended by java.lang.Enum<NumberSet.LookupMethod>
      extended by edu.nrao.sss.math.NumberSet.LookupMethod
All Implemented Interfaces:
Serializable, Comparable<NumberSet.LookupMethod>
Enclosing interface:
NumberSet

public static enum NumberSet.LookupMethod
extends Enum<NumberSet.LookupMethod>

A set of instructions for number sets that helps the sets find values.


Enum Constant Summary
EQUAL
          Tells a number set to return a value equal to the one given to NumberSet.getBestMatchFor(Number).
LARGEST_LESS_THAN_OR_EQUAL
          Tells a number set to return the largest value that is less than or equal to the one given to NumberSet.getBestMatchFor(Number).
SMALLEST_GREATER_THAN_OR_EQUAL
          Tells a number set to return the smallest value that is greater than or equal to the one given to NumberSet.getBestMatchFor(Number).
 
Method Summary
static NumberSet.LookupMethod valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NumberSet.LookupMethod[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EQUAL

public static final NumberSet.LookupMethod EQUAL
Tells a number set to return a value equal to the one given to NumberSet.getBestMatchFor(Number). That method will return either the given number, or null if the given number is not in the set.


LARGEST_LESS_THAN_OR_EQUAL

public static final NumberSet.LookupMethod LARGEST_LESS_THAN_OR_EQUAL
Tells a number set to return the largest value that is less than or equal to the one given to NumberSet.getBestMatchFor(Number).


SMALLEST_GREATER_THAN_OR_EQUAL

public static final NumberSet.LookupMethod SMALLEST_GREATER_THAN_OR_EQUAL
Tells a number set to return the smallest value that is greater than or equal to the one given to NumberSet.getBestMatchFor(Number).

Method Detail

values

public static NumberSet.LookupMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NumberSet.LookupMethod c : NumberSet.LookupMethod.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NumberSet.LookupMethod valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2009. All Rights Reserved.