Class DataEntryBase
- java.lang.Object
-
- com.microsoft.semantickernel.memory.DataEntryBase
-
- Direct Known Subclasses:
MemoryRecord
public class DataEntryBase extends Object
A base class for data entries.
-
-
Constructor Summary
Constructors Constructor Description DataEntryBase(String key, ZonedDateTime timestamp)Creates an instance of aDataEntryBase.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetKey()Gets the key of the data.ZonedDateTimegetTimestamp()Gets the timestamp of the data.
-
-
-
Constructor Detail
-
DataEntryBase
public DataEntryBase(@Nullable String key, @Nullable ZonedDateTime timestamp)
Creates an instance of aDataEntryBase.- Parameters:
key- The key of the data.timestamp- The timestamp of the data.
-
-
Method Detail
-
getKey
public String getKey()
Gets the key of the data.- Returns:
- The key of the data
-
getTimestamp
@Nullable public ZonedDateTime getTimestamp()
Gets the timestamp of the data.- Returns:
- The timestamp of the data.
-
-