Getting Started tutorial improvements (#23210)
This commit is contained in:
parent
d87cf4aec4
commit
f38b928e13
67 changed files with 1451 additions and 1507 deletions
|
|
@ -0,0 +1,26 @@
|
|||
package jdocs.tutorial_3;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
import jdocs.tutorial_3.Device.ReadTemperature;
|
||||
import jdocs.tutorial_3.Device.RecordTemperature;
|
||||
import jdocs.tutorial_3.Device.RespondTemperature;
|
||||
import jdocs.tutorial_3.Device.TemperatureRecorded;
|
||||
|
||||
class DeviceInProgress1 {
|
||||
|
||||
//#read-protocol-1
|
||||
public static final class ReadTemperature {
|
||||
}
|
||||
|
||||
public static final class RespondTemperature {
|
||||
final Optional<Double> value;
|
||||
|
||||
public RespondTemperature(Optional<Double> value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
//#read-protocol-1
|
||||
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue