public class ChangeEventSeed extends Object
Modifier and Type | Method and Description |
---|---|
org.eclipse.lyo.core.trs.ChangeEvent |
asChangeEvent(Function<ResourceSeed,URI> seedsUriFunction)
Convenient method to create a
ChangeEvent from this instance. |
boolean |
equals(Object obj) |
int |
getOrder()
Gets the event order.
|
ResourceEvent |
getResourceEvent()
Gets the resource event.
|
int |
hashCode() |
static ChangeEventSeed |
of(ResourceEvent resourceEvent,
int order)
Constructs an instance specifying the underlying resource event and order.
|
public static ChangeEventSeed of(ResourceEvent resourceEvent, int order)
resourceEvent
- the underlying resource event.order
- the underlying order.public ResourceEvent getResourceEvent()
public int getOrder()
public org.eclipse.lyo.core.trs.ChangeEvent asChangeEvent(Function<ResourceSeed,URI> seedsUriFunction)
ChangeEvent
from this instance. This method encodes the event time
in the
fragment
of the about
property.seedsUriFunction
- a function solving the URI of a resource seed.