com.teraspaces.qwfix
Class FIXVersion

java.lang.Object
  extended by com.teraspaces.qwfix.FIXVersion
All Implemented Interfaces:
Comparable<FIXVersion>

public final class FIXVersion
extends Object
implements Comparable<FIXVersion>

Represents a version of a FIX protocol. Currently version 4.0, 4.1, 4.2, 4.3, 4.4 and 5.0 are supported. This class cannot be inherited.


Constructor Summary
FIXVersion(int major, int minor)
          Instantiates a new FIXVersion.
FIXVersion(String s)
          Instantiates a new FIXVersion.
 
Method Summary
 int compareTo(FIXVersion v)
           
 boolean equals(Object obj)
           
 int getMajor()
          Gets the major.
 int getMinor()
          Gets the minor.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FIXVersion

public FIXVersion(String s)
Instantiates a new FIXVersion.

Parameters:
s - the s

FIXVersion

public FIXVersion(int major,
                  int minor)
Instantiates a new FIXVersion.

Parameters:
major - the major
minor - the minor
Method Detail

getMajor

public int getMajor()
Gets the major.

Returns:
the major

getMinor

public int getMinor()
Gets the minor.

Returns:
the minor

compareTo

public int compareTo(FIXVersion v)
Specified by:
compareTo in interface Comparable<FIXVersion>

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object