public final class FIXVersion extends Object implements Comparable
Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FIXVersion fixVersion)
Compares this object with the specified object for order.
|
int |
compareTo(Object o) |
static FIXVersion |
createInstanceByMessageVersion(String messageVersion,
int fixtVersion)
Deprecated.
|
int |
getFIXTVersion()
Gets the fix version number code.
|
static Enumeration<FIXVersion> |
getFIXVersionEnum()
Gets supported fix versions.
|
String |
getId() |
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() |
static FIXVersion |
valueOf(String id) |
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
public String getId()
public String getMessageVersion()
@Deprecated public static FIXVersion createInstanceByMessageVersion(String messageVersion, int fixtVersion)
messageVersion
- message versionpublic 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 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 comparepublic static FIXVersion valueOf(String id)
Copyright © 2000–2022 EPAM Systems. All rights reserved.