|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ggf.drmaa.Version
public class Version
This class is used to represent the DRM version info.
Constructor Summary | |
---|---|
Version(int major,
int minor)
Create a new Version instance |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a copy of this object. |
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object obj)
Test for equality between two Version objects. |
int |
getMajor()
Get the major version number. |
int |
getMinor()
Get the minor version number. |
int |
hashCode()
Get a hash code based on the major and minor version numbers. |
java.lang.String |
toString()
Converts this Version object into a printable String. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Version(int major, int minor)
major
- major version number (non-negative integer)minor
- minor version number (non-negative integer)Method Detail |
---|
public int getMajor()
public int getMinor()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object against which to test
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- the Object to be compared.
java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this Object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |