/*************************************************************************** ******************** Partie serialisation/deserialisation ****************** ***************************************************************************/ @JsonValue public String serialise(){ StringBuilder json = new StringBuilder(); json.append(" saveGame ["); json.append(lesCartesToJson()); json.append(lesDefaussesToJson()); json.append(elementToJson()); json.append(mainToJson()); json.append(pionToJson()); json.append(roleToJson()); json.append(tirageInfectionToJson()); json.append(foyerInfection()); json.append(maladieEradique()); json.append(TauxInfection()); json.append("]"); return json.toString(); }
@JsonValue default List<IAtom> getAtoms() { List<IAtom> list = new ArrayList<>(); for(int i = 0; i < getAtomCount(); i++) { list.add(getAtom(i)); } return list; }
@Override public void enumValueMethod(JMethod valueMethod) { valueMethod.annotate(JsonValue.class); }
@JsonValue @Override public String toString() { return value; }
@JsonValue public String getContentType() { return contentType; }
/** * @return the underneath sku description */ @JsonValue public SkuDescription toSkuDescription() { return this.skuDescription; }
@Override @JsonValue public Vector[] getVertices() { return super.getVertices(); }
@JsonValue public List<Version> getVersions() { return this.versions; }
@JsonValue @Override public String toString() { return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, this.name()); }
@JsonValue @Override String getAuthority();
@Override @JsonValue public String toString() { return String.valueOf(value); }
@JsonValue @Override public String toString() { return fieldName; }
@JsonValue @Override public String toString() { return feature; }
@JsonValue public String toPathString() { return namespaceKey.getSchemaPath(); }
@JsonValue public Long getValue() { return value; }
@JsonValue public String getName() { return name; }
@JsonValue @Override public String toString() { return start.toString() + "/" + end.toString(); }
@Override @JsonValue public String toString() { return this.id; }
@JsonValue public String value() { return this.value; }
@JsonValue public String toString() { return value; }
@JsonValue public String toString() { return val; }
@JsonValue @Override public String toString() { return Hex.toHexString(data); }
/** * The canonical type name (used for the method signature creation) * E.g. 'int' - canonical 'int256' */ @JsonValue public String getCanonicalName() { return getName(); }
@JsonValue public List<String> getValues() { return this.values; }
@Override @JsonValue public String toString() { return this.value; }
@Override @JsonValue public String toString() { return id; }