electric.util
Class Hex

java.lang.Object
  extended byelectric.util.Hex

public final class Hex
extends java.lang.Object

Hex.

Author:
webMethods

Constructor Summary
Hex()
           
Hex(int value)
           
Hex(java.lang.String string)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 java.lang.String getValue()
           
 int hashCode()
           
static boolean isHex(char ch)
          Return true if the character is a valid hex digit.
static boolean isHex(java.lang.String string)
           
 void setValue(java.lang.String string)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Hex

public Hex()

Hex

public Hex(int value)
Parameters:
value -

Hex

public Hex(java.lang.String string)
    throws java.lang.NumberFormatException
Parameters:
string -
Throws:
java.lang.NumberFormatException
Method Detail

toString

public java.lang.String toString()

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object object)
Parameters:
object -

getValue

public java.lang.String getValue()

setValue

public void setValue(java.lang.String string)
              throws java.lang.NumberFormatException
Parameters:
string -
Throws:
java.lang.NumberFormatException

isHex

public static boolean isHex(java.lang.String string)
Parameters:
string -

isHex

public static boolean isHex(char ch)
Return true if the character is a valid hex digit.

Parameters:
ch -


copyright© 2001-2004 by webMethods All Rights Reserved.