Package org.openhab.core.persistence
Record Class PersistenceServiceProblem
java.lang.Object
java.lang.Record
org.openhab.core.persistence.PersistenceServiceProblem
- Record Components:
reason- description for the persistence configuration problem, free text, but one of the public constants can be used to allow the consumer (e.g. UI) to tailor the message.serviceId- persistence serviceitems- list of persistence item definitionseditable- true if this is a managed service
public record PersistenceServiceProblem(String reason, @Nullable String serviceId, @Nullable List<String> items, boolean editable)
extends Record
This is a representation of a persistence service configuration problem.
- Author:
- Mark Herwege - Persistence health API endpoint
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPersistenceServiceProblem(String reason, @Nullable String serviceId, @Nullable List<String> items, boolean editable) Creates an instance of aPersistenceServiceProblemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleaneditable()Returns the value of theeditablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.items()Returns the value of theitemsrecord component.reason()Returns the value of thereasonrecord component.@Nullable StringReturns the value of theserviceIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
PERSISTENCE_NO_DEFAULT
- See Also:
-
PERSISTENCE_NO_CONFIG
- See Also:
-
PERSISTENCE_NO_ITEMS
- See Also:
-
PERSISTENCE_NO_STRATEGY
- See Also:
-
PERSISTENCE_NO_STORE_STRATEGY
- See Also:
-
-
Constructor Details
-
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 '=='. -
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
serviceId
Returns the value of theserviceIdrecord component.- Returns:
- the value of the
serviceIdrecord component
-
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-
editable
public boolean editable()Returns the value of theeditablerecord component.- Returns:
- the value of the
editablerecord component
-