Package com.serotonin.bacnet4j.enums
Enum MaxSegments
- java.lang.Object
-
- java.lang.Enum<MaxSegments>
-
- com.serotonin.bacnet4j.enums.MaxSegments
-
- All Implemented Interfaces:
Serializable
,Comparable<MaxSegments>
public enum MaxSegments extends Enum<MaxSegments>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MORE_THAN_64
UNSPECIFIED
UP_TO_16
UP_TO_2
UP_TO_32
UP_TO_4
UP_TO_64
UP_TO_8
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getId()
int
getMaxSegments()
static MaxSegments
valueOf(byte id)
Returns the enum constant of this type with the specified name.static MaxSegments
valueOf(String name)
Returns the enum constant of this type with the specified name.static MaxSegments[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final MaxSegments UNSPECIFIED
-
UP_TO_2
public static final MaxSegments UP_TO_2
-
UP_TO_4
public static final MaxSegments UP_TO_4
-
UP_TO_8
public static final MaxSegments UP_TO_8
-
UP_TO_16
public static final MaxSegments UP_TO_16
-
UP_TO_32
public static final MaxSegments UP_TO_32
-
UP_TO_64
public static final MaxSegments UP_TO_64
-
MORE_THAN_64
public static final MaxSegments MORE_THAN_64
-
-
Method Detail
-
values
public static MaxSegments[] 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 (MaxSegments c : MaxSegments.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MaxSegments 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()
-
getMaxSegments
public int getMaxSegments()
-
valueOf
public static MaxSegments 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
-
-