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 booleanequals(Object obj)TwoStringIdobjects are equal if their underlying id is equal.Stringget()Getter for the actual id.inthashCode()Returns the hash code for thisStringId.StringtoString()Returns the string representation for thisStringId.voidwrite(com.google.gson.stream.JsonWriter out)Writes aStringto out.
-
-
-
Method Detail
-
get
public String get()
Getter for the actual id.
-
write
public void write(com.google.gson.stream.JsonWriter out) throws IOExceptionWrites aStringto out.- Specified by:
writein interfaceId<String>- Parameters:
out- TheJsonWriterused as output- Throws:
IOException- If serialization fails
-
hashCode
public int hashCode()
Returns the hash code for thisStringId.
-
equals
public boolean equals(Object obj)
TwoStringIdobjects are equal if their underlying id is equal.
-
-