Package eliasstar.jsonrpc.objects.id
Interface Id<T>
-
- Type Parameters:
T
- Type of id
- All Superinterfaces:
Supplier<T>
public interface Id<T> extends Supplier<T>
Represents the id in a JSON-RPC request.Its three implementations
StringId
,NumberId
andNullId
cover the possible JSON types of String, Number and null literal.- Since:
- 0.1.0
- Author:
- Elias*
- See Also:
- JSON-RPC Specification
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
write(com.google.gson.stream.JsonWriter out)
Writes one JSON value (an array, object, string, number, boolean or null).
-
-
-
Method Detail
-
write
void write(com.google.gson.stream.JsonWriter out) throws IOException
Writes one JSON value (an array, object, string, number, boolean or null).- Parameters:
out
- TheJsonWriter
used as output- Throws:
IOException
- If serialization fails
-
-