コード例 #1
0
 @Override
 public Faction read(JsonReader in) throws IOException {
   return Faction.fromString(in.nextString());
 }
コード例 #2
0
 @Override
 public void write(JsonWriter out, Faction value) throws IOException {
   out.value(value.getString());
 }