Package org.openxava.calculators
Class UUIDCalculator
- java.lang.Object
-
- org.openxava.calculators.UUIDCalculator
-
- All Implemented Interfaces:
java.io.Serializable
,ICalculator
,IModelCalculator
public class UUIDCalculator extends java.lang.Object implements IModelCalculator
It generate a Universal Unic IDentifier of 32 alphanumeric characters.- Author:
- Javier Paniza
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UUIDCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
calculate()
java.lang.String
hexFormat(byte[] number)
java.lang.String
hexFormat(long n)
boolean
isLowerCase()
void
setLowerCase(boolean b)
void
setModel(java.lang.Object object)
The model object that contains the member that uses the calculator.
-
-
-
Method Detail
-
calculate
public java.lang.Object calculate() throws java.lang.Exception
- Specified by:
calculate
in interfaceICalculator
- Throws:
java.lang.Exception
-
hexFormat
public java.lang.String hexFormat(long n)
-
hexFormat
public java.lang.String hexFormat(byte[] number)
-
setModel
public void setModel(java.lang.Object object)
Description copied from interface:IModelCalculator
The model object that contains the member that uses the calculator.- Specified by:
setModel
in interfaceIModelCalculator
-
isLowerCase
public boolean isLowerCase()
-
setLowerCase
public void setLowerCase(boolean b)
-
-