public class LongTelegramType extends Object
Modifier and Type | Field and Description |
---|---|
private String |
_typeName
Name des Types (ShortBlock, StartBigBlock, ....)
|
private int |
_typeNumber
Zahl, die den Typ darstellt (ShortBlock = 1, ....)
|
static LongTelegramType |
BIG |
static LongTelegramType |
BIGGER |
static LongTelegramType |
END_BIG_BLOCK |
static LongTelegramType |
END_BIGGER_BLOCK |
static LongTelegramType |
NEXT_BIG_PIECE |
static LongTelegramType |
NEXT_BIGGER_PIECE |
static LongTelegramType |
RESERVERD |
static LongTelegramType |
SHORT_BLOCK |
static LongTelegramType |
START_BIG_BLOCK |
static LongTelegramType |
START_BIGGER_BLOCK |
Modifier | Constructor and Description |
---|---|
private |
LongTelegramType(String typeName,
int typeNumber) |
Modifier and Type | Method and Description |
---|---|
static LongTelegramType |
getInstance(int typeNumber) |
String |
getTypeName() |
int |
getTypeNumber() |
String |
toString() |
public static final LongTelegramType RESERVERD
public static final LongTelegramType SHORT_BLOCK
public static final LongTelegramType START_BIG_BLOCK
public static final LongTelegramType NEXT_BIG_PIECE
public static final LongTelegramType END_BIG_BLOCK
public static final LongTelegramType START_BIGGER_BLOCK
public static final LongTelegramType NEXT_BIGGER_PIECE
public static final LongTelegramType END_BIGGER_BLOCK
public static final LongTelegramType BIG
public static final LongTelegramType BIGGER
private final String _typeName
private final int _typeNumber
private LongTelegramType(String typeName, int typeNumber)
public static LongTelegramType getInstance(int typeNumber) throws IllegalArgumentException
IllegalArgumentException
public int getTypeNumber()
public String getTypeName()