Interface PersistentData
- All Known Subinterfaces:
AlarmJournalEvent, HistoricalTagValue, PersistentPoint, RetryPersistentData, TagGroupHistorySet, TagHistoryData
- All Known Implementing Classes:
AnnotationPersistentData, BasicHistoricalRecord, BasicTagGroupHistorySet, MetadataPersistentData, PackedHistoricalQualifiedValue, PersistentAtomicPoint, PersistentAuditRecord, PersistentChangePoint, PersistentComplexPoint, PersistentDataBundle, QuerySFData, 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.@NonNull PersistentFlavor<?> Retrieves thePersistentFlavorassociated with this kind of persistent data.
-
Method Details
-
getFlavor
@NonNull PersistentFlavor<?> 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
-