Package com.sodius.oslc.server.trs.model
Class ChangeEventSeed
- java.lang.Object
-
- com.sodius.oslc.server.trs.model.ChangeEventSeed
-
public class ChangeEventSeed extends Object
- Since:
- 1.10.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeEvent
asChangeEvent(Function<ResourceSeed,URI> seedsUriFunction)
Convenient method to create aChangeEvent
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.
-
-
-
Method Detail
-
of
public static ChangeEventSeed of(ResourceEvent resourceEvent, int order)
Constructs an instance specifying the underlying resource event and order.- Parameters:
resourceEvent
- the underlying resource event.order
- the underlying order.- Returns:
- the corresponding change event seed
-
getResourceEvent
public ResourceEvent getResourceEvent()
Gets the resource event.- Returns:
- the resource event.
-
getOrder
public int getOrder()
Gets the event order.- Returns:
- event order.
-
asChangeEvent
public ChangeEvent asChangeEvent(Function<ResourceSeed,URI> seedsUriFunction)
Convenient method to create aChangeEvent
from this instance. This method encodes theevent time
in thefragment
of theabout
property.- Parameters:
seedsUriFunction
- a function solving the URI of a resource seed.- Returns:
- the corresponding change event.
-
-