|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.epam.fix.FIXVersion
public final class FIXVersion
FIXVersion type safe enum
Field Summary | |
---|---|
static FIXVersion |
FIX40
|
static FIXVersion |
FIX41
|
static FIXVersion |
FIX42
|
static FIXVersion |
FIX43
|
static FIXVersion |
FIX44
|
static FIXVersion |
FIX50
|
static FIXVersion |
FIX50SP1
|
static FIXVersion |
FIX50SP2
|
static FIXVersion |
FIXT11
|
Method Summary | |
---|---|
int |
compareTo(FIXVersion fixVersion)
Compares this object with the specified object for order. |
int |
compareTo(Object o)
|
static FIXVersion |
createInstanceByMessageVersion(String messageVersion,
int fixtVersion)
Returns the FIXVersion by messageVersion string (e.g.: FIX.4.0, FIX.4.1) |
int |
getFIXTVersion()
Gets the fix version number code. |
static Enumeration<FIXVersion> |
getFIXVersionEnum()
Gets supported fix versions. |
static FIXVersion |
getInstanceByFIXTVersion(int fixNumber)
Gets fix version by number. |
static FIXVersion |
getInstanceByMessageVersion(String messageVersion)
Gets FIXVersion instance be string
representation of fix session, FIX.4.0 - FIXT.1.1. |
String |
getMessageVersion()
Returns the message version representation e.g.: FIX.4.0, FIX.4.1 |
boolean |
isFIXT()
Checks if this version is FIXT. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final FIXVersion FIX40
public static final FIXVersion FIX41
public static final FIXVersion FIX42
public static final FIXVersion FIX43
public static final FIXVersion FIX44
public static final FIXVersion FIX50
public static final FIXVersion FIX50SP1
public static final FIXVersion FIX50SP2
public static final FIXVersion FIXT11
Method Detail |
---|
public String getMessageVersion()
public static FIXVersion createInstanceByMessageVersion(String messageVersion, int fixtVersion)
messageVersion
- message version
public static FIXVersion getInstanceByMessageVersion(String messageVersion)
FIXVersion
instance be string
representation of fix session, FIX.4.0 - FIXT.1.1.
messageVersion
- the message versionpublic static FIXVersion getInstanceByFIXTVersion(int fixNumber)
fixNumber
- the ranges value for this
parameter should be from 2 to 9(FIX.4.0 ... FIX.5.0 sp2), the value for FIXT.1.1 should be -1.
IllegalArgumentException
- if fix session not exists.public static Enumeration<FIXVersion> getFIXVersionEnum()
public String toString()
toString
in class Object
public boolean isFIXT()
public int getFIXTVersion()
public int compareTo(Object o)
compareTo
in interface Comparable
Comparable.compareTo(Object)
public int compareTo(FIXVersion fixVersion)
fixVersion
- the fix version to compare
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |