Package com.sodius.oslc.server.trs.model
Class ChangeEventSeed
java.lang.Object
com.sodius.oslc.server.trs.model.ChangeEventSeed
- Since:
- 1.10.0
-
Method Summary
Modifier and TypeMethodDescriptionasChangeEvent(Function<ResourceSeed, URI> seedsUriFunction) Convenient method to create aChangeEventfrom this instance.booleanlonggetOrder()Gets the event order.Gets the resource event.inthashCode()static ChangeEventSeedof(ResourceEvent resourceEvent, long order) Constructs an instance specifying the underlying resource event and order.
-
Method Details
-
of
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
- Since:
- 4.0.0
-
getResourceEvent
Gets the resource event.- Returns:
- the resource event.
-
getOrder
public long getOrder()Gets the event order.- Returns:
- event order.
- Since:
- 4.0.0
-
asChangeEvent
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.
-
hashCode
public int hashCode() -
equals
-