public final class RecentHistory
extends java.lang.Object
Any modifications to this object will not affect the real history of the entity.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isEmpty()
Returns
true if there are no events in the recent history, false otherwise. |
java.util.Iterator<io.spine.core.Event> |
iterator()
Creates a new iterator over the recent history items.
|
java.util.stream.Stream<io.spine.core.Event> |
stream()
Creates a new
Stream of the recent history items. |
java.lang.String |
toString() |
public boolean isEmpty()
true
if there are no events in the recent history, false
otherwise.public java.util.Iterator<io.spine.core.Event> iterator()
The iterator returns events in the reverse chronological order. Thus the most recent event will be returned first.
public java.util.stream.Stream<io.spine.core.Event> stream()
Stream
of the recent history items.
The produced stream is sequential and emits items in the reverse chronological order. Thus the most recent event will be returned first.
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object