nl.lxtreme.ols.util
Enum NumberUtils.BitOrder

java.lang.Object
  extended by java.lang.Enum<NumberUtils.BitOrder>
      extended by nl.lxtreme.ols.util.NumberUtils.BitOrder
All Implemented Interfaces:
Serializable, Comparable<NumberUtils.BitOrder>
Enclosing class:
NumberUtils

public static enum NumberUtils.BitOrder
extends Enum<NumberUtils.BitOrder>

Denotes in which order bits are to be interpreted in a byte.


Enum Constant Summary
LSB_FIRST
          Denotes the least significant bit is to be read first and the most significant bit last (assuming you read from left to right).
MSB_FIRST
          Denotes the most significant bit is to be read first and the least significant bit last (assuming you read from left to right).
 
Method Summary
static NumberUtils.BitOrder valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NumberUtils.BitOrder[] 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

LSB_FIRST

public static final NumberUtils.BitOrder LSB_FIRST
Denotes the least significant bit is to be read first and the most significant bit last (assuming you read from left to right).


MSB_FIRST

public static final NumberUtils.BitOrder MSB_FIRST
Denotes the most significant bit is to be read first and the least significant bit last (assuming you read from left to right).

Method Detail

values

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

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

valueOf

public static NumberUtils.BitOrder 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 © 2012 L'Xtreme IT consultancy. All Rights Reserved.