net.obsearch.constants
Enum ByteConstants

java.lang.Object
  extended by java.lang.Enum<ByteConstants>
      extended by net.obsearch.constants.ByteConstants
All Implemented Interfaces:
Serializable, Comparable<ByteConstants>

public enum ByteConstants
extends Enum<ByteConstants>

ByteConstants holds the number of

Author:
Arnoldo Jose Muller Molina

Enum Constant Summary
Byte
           
Double
           
Float
           
Int
           
Long
           
Short
           
 
Method Summary
 int getBits()
           
 int getSize()
           
static ByteConstants valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ByteConstants[] 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

Byte

public static final ByteConstants Byte

Short

public static final ByteConstants Short

Int

public static final ByteConstants Int

Long

public static final ByteConstants Long

Double

public static final ByteConstants Double

Float

public static final ByteConstants Float
Method Detail

values

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

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

valueOf

public static ByteConstants 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

getSize

public int getSize()
Returns:
the size in bytes

getBits

public int getBits()
Returns:
The # of bits required to store each datatype


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.