public final class NVersion extends Object implements NShortType, Comparable<NVersion>
| Constructor and Description |
|---|
NVersion()
Initializes a new instance of the NVersion structure.
|
NVersion(int major,
int minor)
Initializes a new instance of the NVersion structure.
|
NVersion(short value)
Initializes a new instance of the NVersion structure.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(NVersion o) |
boolean |
equals(Object obj)
Checks whether the current object equals the specified object.
|
int |
getMajor()
Gets the major version value.
|
int |
getMinor()
Gets the minor version value.
|
short |
getValue()
Gets the version value.
|
int |
hashCode()
Gets the hash code of the current object.
|
static NType |
nativeTypeOf() |
String |
toString()
Retrieves a string representation of the current object.
|
String |
toString(String format) |
public NVersion()
public NVersion(short value)
value - The version value.public NVersion(int major,
int minor)
major - Major version value.minor - Minor version value.public static NType nativeTypeOf()
public int getMajor()
public int getMinor()
public short getValue()
getValue in interface NShortTypepublic int hashCode()
public boolean equals(Object obj)
public final String toString()
public int compareTo(NVersion o)
compareTo in interface Comparable<NVersion>Copyright © 2016 Neurotechnology. All rights reserved.