com.thingmagic
Class SerialReader.VersionNumber

java.lang.Object
  extended by 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.


Constructor Summary
SerialReader.VersionNumber(int all)
          Construct a new VersionNumber object given the individual components.
SerialReader.VersionNumber(int part1, int part2, int part3, int part4)
           
 
Method Summary
 int compareTo(SerialReader.VersionNumber v)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 number
part2 - the second part of the version number
part3 - the third part of the version number
part4 - the fourth part of the version number
Method Detail

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