Class DependencyFoundEvent<T>

  • Type Parameters:
    T - The type of the key used to identify the resources (will be URI in our case).
    Direct Known Subclasses:
    ResourceDependencyFoundEvent

    public class DependencyFoundEvent<T>
    extends Object
    Event indicating a dependency between two resources has been found.
    • Constructor Detail

      • DependencyFoundEvent

        public DependencyFoundEvent​(T from,
                                    T to,
                                    com.google.common.base.Optional<T> parent)
        Constructor.
        Parameters:
        from - The source
        to - The target
        parent - The key of the object at the source causing the dependency
      • DependencyFoundEvent

        public DependencyFoundEvent​(T from,
                                    T to)
        Constructor.
        Parameters:
        from - The source
        to - The target
    • Method Detail

      • getFrom

        public T getFrom()
      • getTo

        public T getTo()
      • getParent

        public com.google.common.base.Optional<T> getParent()
      • hasParent

        public boolean hasParent()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object