Record Class RadioLogResult
java.lang.Object
java.lang.Record
dev.doglog.internal.extras.RadioLogResult
@NullMarked
@ThreadSafe
public record RadioLogResult(boolean isConnected, String statusJson)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRadioLogResult(boolean isConnected, String statusJson) Creates an instance of aRadioLogResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisConnectedrecord component.Returns the value of thestatusJsonrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DISCONNECTED
-
-
Constructor Details
-
RadioLogResult
Creates an instance of aRadioLogResultrecord class.- Parameters:
isConnected- the value for theisConnectedrecord componentstatusJson- the value for thestatusJsonrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
isConnected
public boolean isConnected()Returns the value of theisConnectedrecord component.- Returns:
- the value of the
isConnectedrecord component
-
statusJson
Returns the value of thestatusJsonrecord component.- Returns:
- the value of the
statusJsonrecord component
-