Class ObjectIdentifier
java.lang.Object
org.opendaylight.yangtools.rfc6643.model.api.ObjectIdentifier
- All Implemented Interfaces:
Serializable
,Identifier
,Immutable
,WritableObject
An OID, or ObjectIdentifier, as defined by ITU and ISO/IEC.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static ObjectIdentifier
Create anObjectIdentifier
from its string representation.int[]
int
hashCode()
static ObjectIdentifier
of
(int... subIdentifiers) Create anObjectIdentifier
from its integer components.static ObjectIdentifier
Read anObjectIdentifier
from a DataInput, performing the inverse ofwriteTo(DataOutput)
.toString()
void
writeTo
(DataOutput out) Serialize this object into aDataOutput
as a fixed-format stream.
-
Method Details
-
of
Create anObjectIdentifier
from its integer components. Each sub-identifier is interpreted as an unsigned integer.- Parameters:
subIdentifiers
- OID sub-identifiers- Returns:
- An ObjectIdentifier.
-
forString
Create anObjectIdentifier
from its string representation.- Parameters:
str
- String OID representation.- Returns:
- An ObjectIdentifier.
-
getSubIdentifiers
public int[] getSubIdentifiers() -
streamSubIdentifiers
-
readFrom
Read anObjectIdentifier
from a DataInput, performing the inverse ofwriteTo(DataOutput)
. For details seeWritableObject
.- Parameters:
in
- Data input- Returns:
- Object identifier
- Throws:
IOException
- If an I/O error is reported
-
writeTo
Description copied from interface:WritableObject
Serialize this object into aDataOutput
as a fixed-format stream.- Specified by:
writeTo
in interfaceWritableObject
- Parameters:
out
- Data output- Throws:
IOException
- if an I/O error occurs
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceIdentifier
- Overrides:
hashCode
in classObject
-
equals
- Specified by:
equals
in interfaceIdentifier
- Overrides:
equals
in classObject
-
toString
- Specified by:
toString
in interfaceIdentifier
- Overrides:
toString
in classObject
-