com.thingmagic
Class SerialReader.VersionNumber
java.lang.Object
com.thingmagic.SerialReader.VersionNumber
- All Implemented Interfaces:
- java.lang.Comparable<SerialReader.VersionNumber>
- Enclosing class:
- SerialReader
public static final class SerialReader.VersionNumber
- extends java.lang.Object
- implements java.lang.Comparable<SerialReader.VersionNumber>
This class represents a version number for a component of the module.
Instances of this class are immutable.
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
SerialReader.VersionNumber
public SerialReader.VersionNumber(int all)
- Construct a new VersionNumber object given the individual components.
Note that all version number components are discussed and
presented in hexadecimal format, that is, in the version number
"9.5.12.0", the 12 is 0x12 and should be passed to this
constructor as such.
SerialReader.VersionNumber
public SerialReader.VersionNumber(int part1,
int part2,
int part3,
int part4)
- Parameters:
part1
- the first part of the version numberpart2
- the second part of the version numberpart3
- the third part of the version numberpart4
- the fourth part of the version number
compareTo
public int compareTo(SerialReader.VersionNumber v)
- Specified by:
compareTo
in interface java.lang.Comparable<SerialReader.VersionNumber>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object