Package com.epam.fix
Class FIXVersion
java.lang.Object
com.epam.fix.FIXVersion
- All Implemented Interfaces:
Comparable
FIXVersion type safe enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FIXVersion
static final FIXVersion
static final FIXVersion
static final FIXVersion
static final FIXVersion
static final FIXVersion
static final FIXVersion
static final FIXVersion
static final FIXVersion
static final FIXVersion
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(FIXVersion fixVersion) Compares this object with the specified object for order.int
static FIXVersion
createInstanceByMessageVersion
(String messageVersion, int fixtVersion) Deprecated.int
Gets the fix version number code.static Enumeration<FIXVersion>
Gets supported fix versions.getId()
static FIXVersion
getInstanceByFIXTVersion
(int fixNumber) Gets fix version by number.static FIXVersion
getInstanceByMessageVersion
(String messageVersion) GetsFIXVersion
instance be string representation of fix session, FIX.4.0 - FIXT.1.1.Returns the message version representation e.g.: FIX.4.0, FIX.4.1boolean
boolean
isFIXT()
Checks if this version is FIXT.toString()
static FIXVersion
-
Field Details
-
FIX40
-
FIX41
-
FIX42
-
FIX43
-
FIX44
-
FIX50
-
FIX50SP1
-
FIX50SP2
-
FIXT11
-
FIXLATEST
-
-
Method Details
-
getId
-
getMessageVersion
Returns the message version representation e.g.: FIX.4.0, FIX.4.1- Returns:
- messageVersion
-
createInstanceByMessageVersion
@Deprecated public static FIXVersion createInstanceByMessageVersion(String messageVersion, int fixtVersion) Deprecated.Returns the FIXVersion by messageVersion string (e.g.: FIX.4.0, FIX.4.1)- Parameters:
messageVersion
- message version- Returns:
- FIXVersion
-
getInstanceByMessageVersion
GetsFIXVersion
instance be string representation of fix session, FIX.4.0 - FIXT.1.1.- Parameters:
messageVersion
- the message version
-
getInstanceByFIXTVersion
Gets fix version by number.- Parameters:
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.- Throws:
IllegalArgumentException
- if fix session not exists.
-
getFIXVersionEnum
Gets supported fix versions.- Returns:
- Enumeration
- supported fix version
-
toString
-
isFIXT
public boolean isFIXT()Checks if this version is FIXT.- Returns:
- true if is, otherwise false
-
isFixLatest
public boolean isFixLatest() -
getFIXTVersion
public int getFIXTVersion()Gets the fix version number code.- Returns:
- code of fix version
-
compareTo
- Specified by:
compareTo
in interfaceComparable
- See Also:
-
compareTo
Compares this object with the specified object for order.- Parameters:
fixVersion
- the fix version to compare- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
-
valueOf
-