Package io.openems.edge.app.common.props
Record Class RelayProps.RelayContactFilter
java.lang.Object
java.lang.Record
io.openems.edge.app.common.props.RelayProps.RelayContactFilter
- Enclosing class:
RelayProps
public static record RelayProps.RelayContactFilter(Predicate<DigitalOutput> componentFilter, Function<DigitalOutput,String> componentAliasMapper, BiPredicate<DigitalOutput,BooleanWriteChannel> channelFilter, BiFunction<DigitalOutput,BooleanWriteChannel,String> channelAliasMapper, BiFunction<DigitalOutput,BooleanWriteChannel,List<String>> disabledReasons)
extends Record
-
Constructor Summary
ConstructorDescriptionRelayContactFilter
(Predicate<DigitalOutput> componentFilter, Function<DigitalOutput, String> componentAliasMapper, BiPredicate<DigitalOutput, BooleanWriteChannel> channelFilter, BiFunction<DigitalOutput, BooleanWriteChannel, String> channelAliasMapper, BiFunction<DigitalOutput, BooleanWriteChannel, List<String>> disabledReasons) Creates an instance of aRelayContactFilter
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechannelAliasMapper
record component.Returns the value of thechannelFilter
record component.Returns the value of thecomponentAliasMapper
record component.Returns the value of thecomponentFilter
record component.Returns the value of thedisabledReasons
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RelayContactFilter
public RelayContactFilter(Predicate<DigitalOutput> componentFilter, Function<DigitalOutput, String> componentAliasMapper, BiPredicate<DigitalOutput, BooleanWriteChannel> channelFilter, BiFunction<DigitalOutput, BooleanWriteChannel, String> channelAliasMapper, BiFunction<DigitalOutput, BooleanWriteChannel, List<String>> disabledReasons) Creates an instance of aRelayContactFilter
record class.- Parameters:
componentFilter
- the value for thecomponentFilter
record componentcomponentAliasMapper
- the value for thecomponentAliasMapper
record componentchannelFilter
- the value for thechannelFilter
record componentchannelAliasMapper
- the value for thechannelAliasMapper
record componentdisabledReasons
- the value for thedisabledReasons
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
componentFilter
Returns the value of thecomponentFilter
record component.- Returns:
- the value of the
componentFilter
record component
-
componentAliasMapper
Returns the value of thecomponentAliasMapper
record component.- Returns:
- the value of the
componentAliasMapper
record component
-
channelFilter
Returns the value of thechannelFilter
record component.- Returns:
- the value of the
channelFilter
record component
-
channelAliasMapper
Returns the value of thechannelAliasMapper
record component.- Returns:
- the value of the
channelAliasMapper
record component
-
disabledReasons
Returns the value of thedisabledReasons
record component.- Returns:
- the value of the
disabledReasons
record component
-