public final class PortNumber extends Object
| Modifier and Type | Field and Description |
|---|---|
static PortNumber |
ALL |
static PortNumber |
CONTROLLER |
static PortNumber |
FLOOD |
static PortNumber |
IN_PORT |
static PortNumber |
LOCAL |
static PortNumber |
NORMAL |
static PortNumber |
P0 |
static PortNumber |
TABLE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isLogical()
Indicates whether or not this port number is a reserved logical one or
whether it corresponds to a normal physical port of a device or NIC.
|
static PortNumber |
portNumber(long number)
Returns the port number representing the specified long value.
|
static PortNumber |
portNumber(String string)
Returns the port number representing the specified string value.
|
long |
toLong()
Returns the backing long value.
|
String |
toString() |
public static final PortNumber P0
public static final PortNumber IN_PORT
public static final PortNumber TABLE
public static final PortNumber NORMAL
public static final PortNumber FLOOD
public static final PortNumber ALL
public static final PortNumber LOCAL
public static final PortNumber CONTROLLER
public static PortNumber portNumber(long number)
number - port number as long valuepublic static PortNumber portNumber(String string)
string - port number as string valuepublic boolean isLogical()
public long toLong()
Copyright © 2015. All rights reserved.