public class Version extends Object
| Constructor and Description |
|---|
Version(byte major,
byte minor)
Create a new Version object with the given major and minor
version.
|
Version(sun.security.pkcs11.wrapper.CK_VERSION ckVersion)
Constructor taking a CK_VERSION object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object otherObject)
Compares major and minor version number of this objects with the other
object.
|
byte |
getMajor()
Get the major version number.
|
byte |
getMinor()
Get the minor version number.
|
int |
hashCode()
The overriding of this method should ensure that the objects of this
class work correctly in a hashtable.
|
void |
setMajor(byte major)
Set the major version number.
|
void |
setMinor(byte minor)
Set the minor version number.
|
String |
toString()
Returns the string representation of this object.
|
public Version(byte major,
byte minor)
major - The major version number.minor - The minor version number.public Version(sun.security.pkcs11.wrapper.CK_VERSION ckVersion)
ckVersion - A CK_VERSION object.public void setMajor(byte major)
major - The major version number.public void setMinor(byte minor)
minor - The minor version number.public byte getMajor()
public byte getMinor()
public String toString()
public boolean equals(Object otherObject)
Copyright © 2018. All rights reserved.