Record Class St1AdminDevicePut
java.lang.Object
java.lang.Record
com.io7m.stonesignal.protocol.admin.v1.St1AdminDevicePut
- All Implemented Interfaces:
St1AdminMessageType
public record St1AdminDevicePut(St1AdminDevice device)
extends Record
implements St1AdminMessageType
Create or update a device.
-
Constructor Summary
ConstructorsConstructorDescriptionSt1AdminDevicePut(St1AdminDevice device) Creates an instance of aSt1AdminDevicePutrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondevice()Returns the value of thedevicerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
St1AdminDevicePut
Creates an instance of aSt1AdminDevicePutrecord class.- Parameters:
device- the value for thedevicerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
device
Returns the value of thedevicerecord component.- Returns:
- the value of the
devicerecord component
-