Package org.openhab.core.persistence
Record Class PersistenceItemConfiguration
java.lang.Object
java.lang.Record
org.openhab.core.persistence.PersistenceItemConfiguration
@NonNullByDefault
public record PersistenceItemConfiguration(List<PersistenceConfig> items, @Nullable String alias, List<PersistenceStrategy> strategies, List<PersistenceFilter> filters)
extends Record
This class holds the configuration of a persistence strategy for specific items.
- Author:
 - Markus Rathgeb - Initial contribution
 
- 
Constructor Summary
ConstructorsConstructorDescriptionPersistenceItemConfiguration(List<PersistenceConfig> items, @Nullable String alias, @Nullable List<PersistenceStrategy> strategies, @Nullable List<PersistenceFilter> filters) Creates an instance of aPersistenceItemConfigurationrecord class. - 
Method Summary
Modifier and TypeMethodDescription@Nullable Stringalias()Returns the value of thealiasrecord component.final booleanIndicates whether some other object is "equal to" this one.filters()Returns the value of thefiltersrecord component.final inthashCode()Returns a hash code value for this object.items()Returns the value of theitemsrecord component.Returns the value of thestrategiesrecord component.final StringtoString()Returns a string representation of this record class. 
- 
Constructor Details
- 
PersistenceItemConfiguration
public PersistenceItemConfiguration(List<PersistenceConfig> items, @Nullable String alias, @Nullable List<PersistenceStrategy> strategies, @Nullable List<PersistenceFilter> filters) Creates an instance of aPersistenceItemConfigurationrecord class.- Parameters:
 items- the value for theitemsrecord componentalias- the value for thealiasrecord componentstrategies- the value for thestrategiesrecord componentfilters- the value for thefiltersrecord 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). - 
items
Returns the value of theitemsrecord component.- Returns:
 - the value of the 
itemsrecord component 
 - 
alias
Returns the value of thealiasrecord component.- Returns:
 - the value of the 
aliasrecord component 
 - 
strategies
Returns the value of thestrategiesrecord component.- Returns:
 - the value of the 
strategiesrecord component 
 - 
filters
Returns the value of thefiltersrecord component.- Returns:
 - the value of the 
filtersrecord component 
 
 -