Package com.serotonin.bacnet4j.enums
Enum MaxApduLength
- java.lang.Object
-
- java.lang.Enum<MaxApduLength>
-
- com.serotonin.bacnet4j.enums.MaxApduLength
-
- All Implemented Interfaces:
Serializable
,Comparable<MaxApduLength>
public enum MaxApduLength extends Enum<MaxApduLength>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description UP_TO_1024
UP_TO_128
UP_TO_1476
UP_TO_206
UP_TO_480
UP_TO_50
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getId()
UnsignedInteger
getMaxLength()
int
getMaxLengthInt()
static MaxApduLength
valueOf(byte id)
Returns the enum constant of this type with the specified name.static MaxApduLength
valueOf(String name)
Returns the enum constant of this type with the specified name.static MaxApduLength[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UP_TO_50
public static final MaxApduLength UP_TO_50
-
UP_TO_128
public static final MaxApduLength UP_TO_128
-
UP_TO_206
public static final MaxApduLength UP_TO_206
-
UP_TO_480
public static final MaxApduLength UP_TO_480
-
UP_TO_1024
public static final MaxApduLength UP_TO_1024
-
UP_TO_1476
public static final MaxApduLength UP_TO_1476
-
-
Method Detail
-
values
public static MaxApduLength[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MaxApduLength c : MaxApduLength.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MaxApduLength valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
public byte getId()
-
getMaxLengthInt
public int getMaxLengthInt()
-
getMaxLength
public UnsignedInteger getMaxLength()
-
valueOf
public static MaxApduLength valueOf(byte id)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
id
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-