| 
Oracle Security Developer Tools Crypto Java API Reference 11g (11.1.1) E10668-02  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  
oracle.security.crypto.util.IntConstant
public class IntConstant
This class can be extended and used to hold a list of constant int values that have "meaning". Typically this class would be extended by an inner class of a class wishing to represent a fixed set of possible values for a particular property.
For an example on the correct usage of this pattern, see the Padding.ID class.
| Field Summary | |
|---|---|
protected  java.lang.String | 
descriptionString description of this instance.  | 
protected  int | 
valueValue that this instance holds.  | 
| Constructor Summary | |
|---|---|
IntConstant(int value)Constructor that takes an int and sets it as the internally held value.  | 
|
IntConstant(int value, java.lang.String description)Constructor that takes an int and sets it as the internally held value, as well as a description.  | 
|
| Method Summary | |
|---|---|
 java.lang.String | 
getDescription()Returns the string description of this IntConstant, or null if none is set. | 
 int | 
getValue()Returns the internally held int value.  | 
 java.lang.String | 
toString()Returns a string representation of this object, of the form "description(value)".  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected final int value
protected final java.lang.String description
| Constructor Detail | 
|---|
public IntConstant(int value)
public IntConstant(int value,
                   java.lang.String description)
| Method Detail | 
|---|
public int getValue()
public java.lang.String getDescription()
IntConstant, or null if none is set.public java.lang.String toString()
toString in class java.lang.Object
  | 
Oracle Security Developer Tools Crypto Java API Reference 11g (11.1.1) E10668-02  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||