Package eliasstar.jsonrpc.objects.id
Class StringId
- java.lang.Object
-
- eliasstar.jsonrpc.objects.id.StringId
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
TwoStringId
objects are equal if their underlying id is equal.String
get()
Getter for the actual id.int
hashCode()
Returns the hash code for thisStringId
.String
toString()
Returns the string representation for thisStringId
.void
write(com.google.gson.stream.JsonWriter out)
Writes aString
to out.
-
-
-
Method Detail
-
get
public String get()
Getter for the actual id.
-
write
public void write(com.google.gson.stream.JsonWriter out) throws IOException
Writes aString
to out.- Specified by:
write
in interfaceId<String>
- Parameters:
out
- TheJsonWriter
used as output- Throws:
IOException
- If serialization fails
-
hashCode
public int hashCode()
Returns the hash code for thisStringId
.
-
equals
public boolean equals(Object obj)
TwoStringId
objects are equal if their underlying id is equal.
-
-