public final class HyperServiceVersion
extends Object
A Hyper Service version number of the form 'major.minor'.
-
Field Summary 
Fields
int
The major part of the version number.
int
The minor part of the version number.
-
Constructor Summary 
Constructors
Constructs a HyperServiceVersion
-
Method Summary 
boolean
Checks two HyperServiceVersions for equality.
int
Get the string representation of the version number
-
Field Details 
-
major 
public int major
The major part of the version number.
-
minor 
public int minor
The minor part of the version number.
-
Constructor Details 
-
HyperServiceVersion 
public HyperServiceVersion(int major,
int minor)
Constructs a HyperServiceVersion
- Parameters:
major
- the major part of the version
minor
- the minor part of the version
-
Method Details 
-
toString 
Get the string representation of the version number
- Overrides:
toString
in class Object
- Returns:
- the HyperServiceVersion in the 'major.minor' format
-
equals 
public boolean equals(Object that)
Checks two HyperServiceVersions for equality.
- Overrides:
equals
in class Object
- Parameters:
that
- The other object.
- Returns:
- Whether the two HyperServiceVersions are equal.
-
hashCode 
public int hashCode()
Computes a hash code.
- Overrides:
hashCode
in class Object