RecentHistory

public final class RecentHistory

A copy of recent history of an event-sourced entity.

Any modifications to this object will not affect the real history of the entity.

Functions

Link copied to clipboard
public boolean equals(Object obj)
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public boolean isEmpty()
Returns true if there are no events in the recent history, false otherwise.
Link copied to clipboard
public Iterator<Event> iterator()
Creates a new iterator over the recent history items.
Link copied to clipboard
public Stream<Event> stream()
Creates a new Stream of the recent history items.
Link copied to clipboard
public String toString()