org.geotoolkit.math
Enum NumberSet

Object
  extended by Enum<NumberSet>
      extended by NumberSet
All Implemented Interfaces:
Serializable, Comparable<NumberSet>

public enum NumberSet
extends Enum<NumberSet>

An enumeration for a few common number set (Natural, real). This enumeration is ordered: each set contains fully the set declared before.

Since:
3.10
Version:
3.10
Author:
Martin Desruisseaux (Geomatys)
Module:
utility/geotk-utility (download)    View source code for this class

Enum Constant Summary
INTEGER
          The set of positive and negative integers (ℤ).
NATURAL
          The set of positive integers (⅕), including zero.
RATIONAL
          The set of rational numbers (ℚ).
REAL
          The set of real numbers (ℝ).
 
Field Summary
 char symbol
          The symbol for this set (⅕, ℤ, ℚ or ℝ).
 
Method Summary
static NumberSet valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NumberSet[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NATURAL

public static final NumberSet NATURAL
The set of positive integers (⅕), including zero.


INTEGER

public static final NumberSet INTEGER
The set of positive and negative integers (ℤ).


RATIONAL

public static final NumberSet RATIONAL
The set of rational numbers (ℚ).


REAL

public static final NumberSet REAL
The set of real numbers (ℝ).

Field Detail

symbol

public final char symbol
The symbol for this set (⅕, ℤ, ℚ or ℝ).

Method Detail

values

public static NumberSet[] 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 c : NumberSet.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 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-2012 Geotoolkit.org. All Rights Reserved.