public final class VTNPortRange extends Object
VTNPortRange describes the range of IP transport layer protocol
such as TCP.
Note that this class is not synchronized.
| Constructor and Description |
|---|
VTNPortRange(int port)
Construct a new instance which specifies the given port number.
|
VTNPortRange(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber port)
Construct a new instance which specifies the given port number
explicitly.
|
VTNPortRange(VtnPortRange range)
Construct a new instance from the given
VtnPortRange instance. |
| Modifier and Type | Method and Description |
|---|---|
static VTNPortRange |
create(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber port)
Construct a new instance which specifies the given port number
explicitly.
|
static VTNPortRange |
create(VtnPortRange range)
Construct a new instance from the given
VtnPortRange instance. |
boolean |
equals(Object o)
Determine whether the given object is identical to this object.
|
Integer |
getPortFrom()
Return the minimum (inclusive) value in the range of port numbers
to match against packets.
|
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber |
getPortNumberFrom()
Return the minimum (inclusive) value in the range of port numbers
to match against packets.
|
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber |
getPortNumberTo()
Return the maximum (inclusive) value in the range of port numbers
to match against packets.
|
Integer |
getPortTo()
Return the maximum (inclusive) value in the range of port numbers
to match against packets.
|
int |
hashCode()
Return the hash code of this object.
|
boolean |
match(int port)
Determine whether the given port number is contained by the port range
specified by this instance.
|
void |
setConditionKey(StringBuilder builder)
Store strings used to construct flow condition key.
|
void |
verify()
Verify the contents of this instance.
|
public VTNPortRange(int port)
throws RpcException
port - The port number.RpcException - An invalid port number is specified.public VTNPortRange(VtnPortRange range) throws RpcException
VtnPortRange instance.range - A VtnPortRange instance.NullPointerException - range is null.RpcException - range contains invalid value.public VTNPortRange(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber port)
throws RpcException
port - A PortNumber instance.RpcException - port contains invalid value.public static VTNPortRange create(VtnPortRange range) throws RpcException
VtnPortRange instance.range - A VtnPortRange instance.VTNPortRange instance if pmatch is not
null. Otherwise null.RpcException - range contains invalid value.public static VTNPortRange create(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber port) throws RpcException
port - A PortNumber instance.VTNPortRange instance if port is not
null. Otherwise null.RpcException - port contains invalid value.public Integer getPortFrom()
public Integer getPortTo()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getPortNumberFrom()
PortNumber instance that contains the minimum value
in the range of port numbers.public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getPortNumberTo()
PortNumber instance that contains the maximum value
in the range of port numbers.public boolean match(int port)
port - A port number.true only if the given port number is contained by
the port range.public void setConditionKey(StringBuilder builder)
builder - A StringBuilder instance that contains strings
used to construct flow condition key.public void verify()
throws RpcException
RpcException - Verification failed.public boolean equals(Object o)
Copyright © 2018 OpenDaylight. All rights reserved.