Class MemberName
- java.lang.Object
-
- org.opendaylight.controller.cluster.access.concepts.MemberName
-
- All Implemented Interfaces:
Serializable
,Comparable<MemberName>
,Identifier
,Immutable
,MutationBehaviour<Immutable>
,WritableIdentifier
,WritableObject
@Beta public final class MemberName extends Object implements Comparable<MemberName>, WritableIdentifier
Type-safe encapsulation of a cluster member name.- Author:
- Robert Varga
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(MemberName obj)
boolean
equals(Object obj)
static MemberName
forName(String name)
String
getName()
int
hashCode()
static MemberName
readFrom(DataInput in)
String
toString()
MemberName
toYang()
void
writeTo(DataOutput out)
-
-
-
Method Detail
-
forName
public static MemberName forName(String name)
-
readFrom
public static MemberName readFrom(DataInput in) throws IOException
- Throws:
IOException
-
writeTo
public void writeTo(DataOutput out) throws IOException
- Specified by:
writeTo
in interfaceWritableObject
- Throws:
IOException
-
getName
public String getName()
-
toYang
public MemberName toYang()
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceIdentifier
- Overrides:
hashCode
in classObject
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceIdentifier
- Overrides:
equals
in classObject
-
compareTo
public int compareTo(MemberName obj)
- Specified by:
compareTo
in interfaceComparable<MemberName>
-
toString
public String toString()
- Specified by:
toString
in interfaceIdentifier
- Overrides:
toString
in classObject
-
-