Package org.apache.bookkeeper.net
Class BookieId
- java.lang.Object
-
- org.apache.bookkeeper.net.BookieId
-
public final class BookieId extends java.lang.Object
This is an identifier for a BookieID.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getId()
int
hashCode()
static BookieId
parse(java.lang.String serialized)
Parses the given serialized representation of a BookieId.java.lang.String
toString()
Returns the serialized version of this object.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns the serialized version of this object.- Overrides:
toString
in classjava.lang.Object
- Returns:
- the bookieId
-
parse
public static BookieId parse(java.lang.String serialized)
Parses the given serialized representation of a BookieId.- Parameters:
serialized
-- Returns:
- the parsed BookieId
-
getId
public java.lang.String getId()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-