Package org.onosproject.dhcp
Enum IpAssignment.AssignmentStatus
- java.lang.Object
-
- java.lang.Enum<IpAssignment.AssignmentStatus>
-
- org.onosproject.dhcp.IpAssignment.AssignmentStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<IpAssignment.AssignmentStatus>
- Enclosing class:
- IpAssignment
public static enum IpAssignment.AssignmentStatus extends Enum<IpAssignment.AssignmentStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Option_Assigned
IP has been assigned to a host.Option_Expired
IP mapping is no longer active.Option_RangeNotEnforced
Static IP Assignment with unregistered IP range.Option_Requested
IP has been requested by a host, but not assigned to it yet.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IpAssignment.AssignmentStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static IpAssignment.AssignmentStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Option_Requested
public static final IpAssignment.AssignmentStatus Option_Requested
IP has been requested by a host, but not assigned to it yet.
-
Option_RangeNotEnforced
public static final IpAssignment.AssignmentStatus Option_RangeNotEnforced
Static IP Assignment with unregistered IP range. This assignment can only be added or removed by set or remove static mapping.
-
Option_Assigned
public static final IpAssignment.AssignmentStatus Option_Assigned
IP has been assigned to a host.
-
Option_Expired
public static final IpAssignment.AssignmentStatus Option_Expired
IP mapping is no longer active.
-
-
Method Detail
-
values
public static IpAssignment.AssignmentStatus[] 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 (IpAssignment.AssignmentStatus c : IpAssignment.AssignmentStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IpAssignment.AssignmentStatus 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
-
-