Package org.onosproject.net
Class NshServiceIndex
- java.lang.Object
-
- org.onosproject.net.NshServiceIndex
-
public final class NshServiceIndex extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
static NshServiceIndex
of(short serviceIndex)
Returns the NshServiceIndex by setting its value.short
serviceIndex()
Returns nsh service index value.java.lang.String
toString()
-
-
-
Method Detail
-
of
public static NshServiceIndex of(short serviceIndex)
Returns the NshServiceIndex by setting its value.- Parameters:
serviceIndex
- nsh service index- Returns:
- NshServiceIndex
-
serviceIndex
public short serviceIndex()
Returns nsh service index value.- Returns:
- the nsh service index
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-