net.obsearch.constants
Enum ByteConstants
java.lang.Object
java.lang.Enum<ByteConstants>
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
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
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.