Package codes.grow.packages.loki
Record Class TailFrame
java.lang.Object
java.lang.Record
codes.grow.packages.loki.TailFrame
- Record Components:
streams- streams with new entriesdroppedEntries- entries the server dropped since the last frame
public record TailFrame(List<StreamResult> streams, List<DroppedEntry> droppedEntries)
extends Record
One frame of the tail WebSocket.
-
Constructor Summary
ConstructorsConstructorDescriptionTailFrame(List<StreamResult> streams, List<DroppedEntry> droppedEntries) Copies the lists. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedroppedEntriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.streams()Returns the value of thestreamsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TailFrame
Copies the lists.- Parameters:
streams- streamsdroppedEntries- dropped entries
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
streams
Returns the value of thestreamsrecord component.- Returns:
- the value of the
streamsrecord component
-
droppedEntries
Returns the value of thedroppedEntriesrecord component.- Returns:
- the value of the
droppedEntriesrecord component
-