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 int
Returns the count of data elements.@NotNull PersistentFlavor<?>
Retrieves thePersistentFlavor
associated with this kind of persistent data.
-
Method Details
-
getFlavor
Retrieves thePersistentFlavor
associated with this kind of persistent data.- Returns:
- a
PersistentFlavor
object - Throws:
NullPointerException
- if thePersistentFlavor
is 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
-