@Override @SafeVarargs public final Builder devices(Consumer<DeviceType.Builder>... devices) { devices(Stream.of(devices).map(c -> DeviceType.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; }
@Override @SafeVarargs public final Builder devices(Consumer<DeviceType.Builder>... devices) { devices(Stream.of(devices).map(c -> DeviceType.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; }
@Override @SafeVarargs public final Builder devices(Consumer<DeviceType.Builder>... devices) { devices(Stream.of(devices).map(c -> DeviceType.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; }
@Override @SafeVarargs public final Builder devices(Consumer<DeviceType.Builder>... devices) { devices(Stream.of(devices).map(c -> DeviceType.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; }
/** * <p> * The device. * </p> * This is a convenience that creates an instance of the {@link DeviceType.Builder} avoiding the need to create * one manually via {@link DeviceType#builder()}. * * When the {@link Consumer} completes, {@link DeviceType.Builder#build()} is called immediately and its result * is passed to {@link #device(DeviceType)}. * * @param device * a consumer that will call methods on {@link DeviceType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #device(DeviceType) */ default Builder device(Consumer<DeviceType.Builder> device) { return device(DeviceType.builder().applyMutation(device).build()); } }
/** * <p> * The device. * </p> * This is a convenience that creates an instance of the {@link DeviceType.Builder} avoiding the need to create * one manually via {@link DeviceType#builder()}. * * When the {@link Consumer} completes, {@link DeviceType.Builder#build()} is called immediately and its result * is passed to {@link #device(DeviceType)}. * * @param device * a consumer that will call methods on {@link DeviceType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #device(DeviceType) */ default Builder device(Consumer<DeviceType.Builder> device) { return device(DeviceType.builder().applyMutation(device).build()); } }
/** * <p> * The device. * </p> * This is a convenience that creates an instance of the {@link DeviceType.Builder} avoiding the need to create * one manually via {@link DeviceType#builder()}. * * When the {@link Consumer} completes, {@link DeviceType.Builder#build()} is called immediately and its result * is passed to {@link #device(DeviceType)}. * * @param device * a consumer that will call methods on {@link DeviceType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #device(DeviceType) */ default Builder device(Consumer<DeviceType.Builder> device) { return device(DeviceType.builder().applyMutation(device).build()); } }
/** * <p> * The device. * </p> * This is a convenience that creates an instance of the {@link DeviceType.Builder} avoiding the need to create * one manually via {@link DeviceType#builder()}. * * When the {@link Consumer} completes, {@link DeviceType.Builder#build()} is called immediately and its result * is passed to {@link #device(DeviceType)}. * * @param device * a consumer that will call methods on {@link DeviceType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #device(DeviceType) */ default Builder device(Consumer<DeviceType.Builder> device) { return device(DeviceType.builder().applyMutation(device).build()); } }
public DeviceType unmarshall(JsonUnmarshallerContext context) throws Exception { DeviceType.Builder deviceTypeBuilder = DeviceType.builder();