Package io.openems.edge.common.test
Record Class AbstractComponentTest.ChannelValue
java.lang.Object
java.lang.Record
io.openems.edge.common.test.AbstractComponentTest.ChannelValue
- Enclosing class:
AbstractComponentTest<SELF extends AbstractComponentTest<SELF,
SUT>, SUT extends OpenemsComponent>
public static record AbstractComponentTest.ChannelValue(ChannelAddress address, Object value, boolean force)
extends Record
-
Constructor Summary
ConstructorDescriptionChannelValue
(ChannelAddress address, Object value, boolean force) Creates an instance of aChannelValue
record class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()
Returns the value of theaddress
record component.final boolean
Indicates whether some other object is "equal to" this one.boolean
force()
Returns the value of theforce
record component.final int
hashCode()
Returns a hash code value for this object.toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.
-
Constructor Details
-
ChannelValue
Creates an instance of aChannelValue
record class.- Parameters:
address
- the value for theaddress
record componentvalue
- the value for thevalue
record componentforce
- the value for theforce
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
address
Returns the value of theaddress
record component.- Returns:
- the value of the
address
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-
force
public boolean force()Returns the value of theforce
record component.- Returns:
- the value of the
force
record component
-