Record Class EventTreeSettings
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.event.api.actions.treeexport.EventTreeSettings
public record EventTreeSettings(CheckedConsumer<Consumer<InputStream>> fileStreamSupplier, Map<String,Boolean> configs)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEventTreeSettings(CheckedConsumer<Consumer<InputStream>> fileStreamSupplier, Map<String, Boolean> configs) Creates an instance of aEventTreeSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconfigs()Returns the value of theconfigsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileStreamSupplierrecord component.final inthashCode()Returns a hash code value for this object.booleanisConfigSet(String id) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventTreeSettings
public EventTreeSettings(CheckedConsumer<Consumer<InputStream>> fileStreamSupplier, Map<String, Boolean> configs) Creates an instance of aEventTreeSettingsrecord class.- Parameters:
fileStreamSupplier- the value for thefileStreamSupplierrecord componentconfigs- the value for theconfigsrecord component
-
-
Method Details
-
isConfigSet
-
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). -
fileStreamSupplier
Returns the value of thefileStreamSupplierrecord component.- Returns:
- the value of the
fileStreamSupplierrecord component
-
configs
Returns the value of theconfigsrecord component.- Returns:
- the value of the
configsrecord component
-