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,NumberIdandNullIdcover 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 voidwrite(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 IOExceptionWrites one JSON value (an array, object, string, number, boolean or null).- Parameters:
out- TheJsonWriterused as output- Throws:
IOException- If serialization fails
-
-