Skip navigation links

Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10668-04


oracle.security.crypto.util
Class IntConstant

java.lang.Object
  extended by oracle.security.crypto.util.IntConstant

Direct Known Subclasses:
Padding.ID

public class IntConstant
extends java.lang.Object

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.

Since:
2.2

Field Summary
protected  java.lang.String description
          String description of this instance.
protected  int value
          Value 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

value

protected final int value
Value that this instance holds.

description

protected final java.lang.String description
String description of this instance.

Constructor Detail

IntConstant

public IntConstant(int value)
Constructor that takes an int and sets it as the internally held value.

IntConstant

public 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 Detail

getValue

public int getValue()
Returns the internally held int value.

getDescription

public java.lang.String getDescription()
Returns the string description of this IntConstant, or null if none is set.

toString

public java.lang.String toString()
Returns a string representation of this object, of the form "description(value)".
Overrides:
toString in class java.lang.Object

Skip navigation links

Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10668-04


Copyright © 2005, 2011 , Oracle. All rights reserved.