T - type of objects than can be converted to JSON@FunctionalInterface public interface JsonConverter<T>
| Modifier and Type | Field and Description |
|---|---|
static JsonConverter<PermutationSolution> |
PERMUTATION_SOLUTION
Predefined converter for permutation solutions that creates a JSON array containing the ordered IDs.
|
static JsonConverter<SubsetSolution> |
SUBSET_SOLUTION
Predefined converter for subset solutions that creates a JSON array containing the selected IDs.
|
| Modifier and Type | Method and Description |
|---|---|
mjson.Json |
toJson(T object)
Convert an object to a JSON representation.
|
static final JsonConverter<SubsetSolution> SUBSET_SOLUTION
static final JsonConverter<PermutationSolution> PERMUTATION_SOLUTION
mjson.Json toJson(T object)
object - object to be converted to JSONCopyright © 2016. All rights reserved.