Class EthCriterion
- java.lang.Object
-
- org.onosproject.net.flow.criteria.EthCriterion
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.onosproject.net.flow.criteria.Criterion
Criterion.IPv6ExthdrFlags, Criterion.TcpFlags, Criterion.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()MacAddressmac()Gets the MAC address to match.MacAddressmask()Gets the mask for the MAC address to match.java.lang.StringtoString()Criterion.Typetype()Returns the type of criterion.
-
-
-
Method Detail
-
type
public Criterion.Type type()
Description copied from interface:CriterionReturns the type of criterion.
-
mac
public MacAddress mac()
Gets the MAC address to match.- Returns:
- the MAC address to match
-
mask
public MacAddress mask()
Gets the mask for the MAC address to match.- Returns:
- the MAC address to match
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-