|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.edwards.des.util.Version
public class Version
Data structure representing a version for an application or class.
Created on: May 28, 2015 at 11:19:51 AM
| Field Summary | |
|---|---|
private static int[] |
primes
|
private int |
versionHash
|
private int[] |
versionNum
|
private java.lang.String |
versionString
|
private java.lang.String |
versionToString
|
| Constructor Summary | |
|---|---|
Version()
Creates new Version (Initialized as 0.0) |
|
Version(java.lang.String version)
Creates new Version from parsed string. |
|
| Method Summary | |
|---|---|
int |
hashCode()
|
boolean |
isEqualTo(Version v)
Compares this version and the specified version for equality. |
boolean |
isNewerThan(Version v)
Compares this version and the specified version to find the newer one. |
boolean |
isOlderThan(Version v)
Compares this version and the specified version to find the older one. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final int[] primes
private int[] versionNum
private int versionHash
private java.lang.String versionString
private java.lang.String versionToString
| Constructor Detail |
|---|
public Version()
public Version(java.lang.String version)
version - Version in format "12.34 Version_String" with a version number
first (separated with periods), a space, and a version ID
string (Alpha, etc.)
java.security.InvalidParameterException - Throws InvalidParameterException if "version" string is
improperly formatted| Method Detail |
|---|
public boolean isEqualTo(Version v)
v - Version to compare
public boolean isNewerThan(Version v)
v - Version to compare
public boolean isOlderThan(Version v)
v - Version to compare
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||