Package org.openhab.core.persistence
Interface HistoricItem
- All Known Subinterfaces:
- PersistedItem
@NonNullByDefault
public interface HistoricItem
This interface is used by persistence services to represent an item
 with a certain state at a given point in time.
 
 Note that this interface does not extend Item as the persistence services could not
 provide an implementation
 that correctly implement getAcceptedXTypes() and getGroupNames().
- Author:
- Kai Kreuzer - Initial contribution
- 
Method Details- 
getTimestampZonedDateTime getTimestamp()returns the timestamp of the persisted item- Returns:
- the timestamp of the item
 
- 
getInstantreturns the timestamp of the persisted item- Returns:
- the timestamp of the item
 
- 
getStateState getState()returns the current state of the item- Returns:
- the current state
 
- 
getNameString getName()returns the name of the item- Returns:
- the name of the item
 
 
-