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 ChangeEventasChangeEvent(Function<ResourceSeed,URI> seedsUriFunction)Convenient method to create aChangeEventfrom this instance.booleanequals(Object obj)intgetOrder()Gets the event order.ResourceEventgetResourceEvent()Gets the resource event.inthashCode()static ChangeEventSeedof(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 aChangeEventfrom this instance. This method encodes theevent timein thefragmentof theaboutproperty.- Parameters:
seedsUriFunction- a function solving the URI of a resource seed.- Returns:
- the corresponding change event.
-
-