Class DependencyChain.Item<T>

java.lang.Object
overit.geocall.util.DependencyChain.Item<T>
Type Parameters:
T - the type of the chain's objects
Enclosing class:
DependencyChain<T>

public static class DependencyChain.Item<T> extends Object
Single entry of the chain
  • Field Details

  • Method Details

    • get

      public T get()
      Returns the instance of the object belongs to this item.
      Returns:
      the instance of the object belongs to this item.
    • isAfter

      public DependencyChain.Item<T> isAfter(DependencyChain.Item<T> before)
      Used to place the current element after the one passed as parameter
      Parameters:
      before - object to place before the current
      Returns:
      the current item
    • isBefore

      public DependencyChain.Item<T> isBefore(DependencyChain.Item<T> after)
      Used to place the current element before the one passed as parameter.
      Parameters:
      after - object to place after the current
      Returns:
      the current item
    • computeExplosion

      public void computeExplosion()
    • fillDependencies

      protected void fillDependencies(Set<DependencyChain.Item<T>> hs, Set<DependencyChain.Item<T>> starts)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object