com.northconcepts.datapipeline.transform.format
Enum Rounder.RoundingPolicy

java.lang.Object
  extended by java.lang.Enum<Rounder.RoundingPolicy>
      extended by com.northconcepts.datapipeline.transform.format.Rounder.RoundingPolicy
All Implemented Interfaces:
Serializable, Comparable<Rounder.RoundingPolicy>
Enclosing class:
Rounder

public static enum Rounder.RoundingPolicy
extends Enum<Rounder.RoundingPolicy>


Enum Constant Summary
CEILING
           
DOWN
           
FLOOR
           
HALF_DOWN
           
HALF_EVEN
           
HALF_ODD
           
HALF_UP
           
UNNECESSARY
           
UP
           
 
Method Summary
 int getPolicy()
           
static Rounder.RoundingPolicy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Rounder.RoundingPolicy[] 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

UP

public static final Rounder.RoundingPolicy UP

DOWN

public static final Rounder.RoundingPolicy DOWN

CEILING

public static final Rounder.RoundingPolicy CEILING

FLOOR

public static final Rounder.RoundingPolicy FLOOR

HALF_UP

public static final Rounder.RoundingPolicy HALF_UP

HALF_DOWN

public static final Rounder.RoundingPolicy HALF_DOWN

HALF_EVEN

public static final Rounder.RoundingPolicy HALF_EVEN

HALF_ODD

public static final Rounder.RoundingPolicy HALF_ODD

UNNECESSARY

public static final Rounder.RoundingPolicy UNNECESSARY
Method Detail

values

public static Rounder.RoundingPolicy[] 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 (Rounder.RoundingPolicy c : Rounder.RoundingPolicy.values())
    System.out.println(c);

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

valueOf

public static Rounder.RoundingPolicy 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

getPolicy

public int getPolicy()


Copyright (c) 2007-2009 North Concepts Inc. All Rights Reserved.