@Immutable public class OFPortBitMap extends Masked<OFBitMask128>
OFPortBitMap portBitMap; Match.Builder matchBuilder; // initialize matchBuilder.setMasked(MatchField.BSN_IN_PORTS_128, portBitmap);
Modifier and Type | Class and Description |
---|---|
static class |
OFPortBitMap.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Iterable<OFPort> |
getOnPorts() |
int |
hashCode() |
boolean |
isOn(OFPort port)
Check if the given port is logically included in the
match.
|
static OFPortBitMap |
of(OFBitMask128 mask) |
static OFPortBitMap |
ofPorts(OFPort... ports) |
public boolean isOn(OFPort port)
port
- the port to check in the matchpublic static OFPortBitMap ofPorts(OFPort... ports)
public static OFPortBitMap of(OFBitMask128 mask)
mask
- the mask to create the bitmap frompublic Iterable<OFPort> getOnPorts()
public boolean equals(Object obj)
equals
in class Masked<OFBitMask128>
public int hashCode()
hashCode
in class Masked<OFBitMask128>
Copyright © 2016. All rights reserved.