Interface PersistentData
- All Known Subinterfaces:
AlarmJournalEvent,HistoricalTagValue,RetryPersistentData,TagGroupHistorySet,TagHistoryData
- All Known Implementing Classes:
AnnotationPersistentData,BasicHistoricalRecord,BasicTagGroupHistorySet,MetadataPersistentData,PackedHistoricalQualifiedValue,PersistentAuditRecord,PersistentDataBundle,TagRetirementList
public interface PersistentData
Represents a type of data that can persist across application sessions.
Implementations of this interface are expected to provide specific kinds of
persistent data and its associated PersistentFlavor.
-
Method Summary
Modifier and TypeMethodDescriptiondefault intReturns the count of data elements.@NotNull PersistentFlavor<?>Retrieves thePersistentFlavorassociated with this kind of persistent data.
-
Method Details
-
getFlavor
Retrieves thePersistentFlavorassociated with this kind of persistent data.- Returns:
- a
PersistentFlavorobject - Throws:
NullPointerException- if thePersistentFlavoris not defined
-
getDataCount
default int getDataCount()Returns the count of data elements. Default implementation assumes there's always at least one data element.- Returns:
- the count of data elements
-