@Override public GeoService deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { CreepyGeoService creepyGeoService = context.deserialize(json, CreepyGeoService.class); GeoService.Builder builder = GeoService.builder(); builder.name(creepyGeoService.name); builder.active("Y".equals(creepyGeoService.active)); builder.ttl(creepyGeoService.ttl); builder.nodes(creepyGeoService.nodes); builder.groups(creepyGeoService.groups); return builder.build(); } }
@Override public GeoService deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { CreepyGeoService creepyGeoService = context.deserialize(json, CreepyGeoService.class); GeoService.Builder builder = GeoService.builder(); builder.name(creepyGeoService.name); builder.active("Y".equals(creepyGeoService.active)); builder.ttl(creepyGeoService.ttl); builder.nodes(creepyGeoService.nodes); builder.groups(creepyGeoService.groups); return builder.build(); } }
@Override public GeoService deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { CreepyGeoService creepyGeoService = context.deserialize(json, CreepyGeoService.class); GeoService.Builder builder = GeoService.builder(); builder.name(creepyGeoService.name); builder.active("Y".equals(creepyGeoService.active)); builder.ttl(creepyGeoService.ttl); builder.nodes(creepyGeoService.nodes); builder.groups(creepyGeoService.groups); return builder.build(); } }
return GeoService .builder() .name("CCS") .active(true) .ttl(30)
return GeoService .builder() .name("CCS") .active(true) .ttl(30)
public Builder from(GeoService in) { return name(in.name).active(in.active).ttl(in.ttl).nodes(in.nodes).groups(in.groups); } }
public Builder from(GeoService in) { return name(in.name).active(in.active).ttl(in.ttl).nodes(in.nodes).groups(in.groups); } }
@Override public GeoService deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { CreepyGeoService creepyGeoService = context.deserialize(json, CreepyGeoService.class); GeoService.Builder builder = GeoService.builder(); builder.name(creepyGeoService.name); builder.active("Y".equals(creepyGeoService.active)); builder.ttl(creepyGeoService.ttl); builder.nodes(creepyGeoService.nodes); builder.groups(creepyGeoService.groups); return builder.build(); } }
@Override public GeoService deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { CreepyGeoService creepyGeoService = context.deserialize(json, CreepyGeoService.class); GeoService.Builder builder = GeoService.builder(); builder.name(creepyGeoService.name); builder.active("Y".equals(creepyGeoService.active)); builder.ttl(creepyGeoService.ttl); builder.nodes(creepyGeoService.nodes); builder.groups(creepyGeoService.groups); return builder.build(); } }
public Builder from(GeoService in) { return name(in.name).active(in.active).ttl(in.ttl).nodes(in.nodes).groups(in.groups); } }
public Builder from(GeoService in) { return name(in.name).active(in.active).ttl(in.ttl).nodes(in.nodes).groups(in.groups); } }
public Builder from(GeoService in) { return name(in.name).active(in.active).ttl(in.ttl).nodes(in.nodes).groups(in.groups); } }