Class ChangeEventSeed

    • 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 a ChangeEvent from this instance. This method encodes the event time in the fragment of the about property.
        Parameters:
        seedsUriFunction - a function solving the URI of a resource seed.
        Returns:
        the corresponding change event.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object