Oracle Security Developer Tools Crypto Java API Reference
10g Release 2 (10.1.2.0.2)

B15565-01


oracle.security.crypto.util
Class IntConstant

java.lang.Object
  extended byoracle.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 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.

Method Summary
int getValue()
Returns the internally held int value.

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

value

protected final int value
Value that this instance holds.

Constructor Detail

IntConstant

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

Method Detail

getValue

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

Oracle Security Developer Tools Crypto Java API Reference
10g Release 2 (10.1.2.0.2)

B15565-01


Copyright © 2005 , Oracle. All rights reserved.