Record Class NotificationHistoryStore.Page
java.lang.Object
java.lang.Record
ecmwf.common.database.NotificationHistoryStore.Page
- All Implemented Interfaces:
Serializable
- Enclosing class:
NotificationHistoryStore
public static record NotificationHistoryStore.Page(long ceiling, long removedThrough, long removedAt, long scannedThrough, boolean hasMore, boolean historyGap, List<NotificationHistoryStore.Entry> entries)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPage(long ceiling, long removedThrough, long removedAt, long scannedThrough, boolean hasMore, boolean historyGap, List<NotificationHistoryStore.Entry> entries) Creates an instance of aPagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongceiling()Returns the value of theceilingrecord component.entries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasMore()Returns the value of thehasMorerecord component.booleanReturns the value of thehistoryGaprecord component.longReturns the value of theremovedAtrecord component.longReturns the value of theremovedThroughrecord component.longReturns the value of thescannedThroughrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Page
public Page(long ceiling, long removedThrough, long removedAt, long scannedThrough, boolean hasMore, boolean historyGap, List<NotificationHistoryStore.Entry> entries) Creates an instance of aPagerecord class.- Parameters:
ceiling- the value for theceilingrecord componentremovedThrough- the value for theremovedThroughrecord componentremovedAt- the value for theremovedAtrecord componentscannedThrough- the value for thescannedThroughrecord componenthasMore- the value for thehasMorerecord componenthistoryGap- the value for thehistoryGaprecord componententries- the value for theentriesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
ceiling
public long ceiling()Returns the value of theceilingrecord component.- Returns:
- the value of the
ceilingrecord component
-
removedThrough
public long removedThrough()Returns the value of theremovedThroughrecord component.- Returns:
- the value of the
removedThroughrecord component
-
removedAt
public long removedAt()Returns the value of theremovedAtrecord component.- Returns:
- the value of the
removedAtrecord component
-
scannedThrough
public long scannedThrough()Returns the value of thescannedThroughrecord component.- Returns:
- the value of the
scannedThroughrecord component
-
hasMore
public boolean hasMore()Returns the value of thehasMorerecord component.- Returns:
- the value of the
hasMorerecord component
-
historyGap
public boolean historyGap()Returns the value of thehistoryGaprecord component.- Returns:
- the value of the
historyGaprecord component
-
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-