Class Chain<COMPONENT extends ChainedComponent>

java.lang.Object
com.yahoo.component.chain.Chain<COMPONENT>

public class Chain<COMPONENT extends ChainedComponent> extends Object
An immutable ordered list of components
Author:
Tony Vaagenes
  • Constructor Details

    • Chain

      public Chain(String id, List<COMPONENT> componentList)
      Create a chain directly. This will NOT order the chain by the ordering constraints.
    • Chain

      public Chain(com.yahoo.component.ComponentId id, List<COMPONENT> componentList)
      Create a chain directly. This will NOT order the chain by the ordering constraints.
    • Chain

      public Chain(List<COMPONENT> componentList)
      Create a chain directly. This will NOT order the chain by the ordering constraints.
    • Chain

      @SafeVarargs public Chain(COMPONENT... components)
      Create a chain directly. This will NOT order the chain by the ordering constraints.
    • Chain

      @SafeVarargs public Chain(String id, COMPONENT... components)
      Create a chain directly. This will NOT order the chain by the ordering constraints.
    • Chain

      @SafeVarargs public Chain(com.yahoo.component.ComponentId id, COMPONENT... components)
      Create a chain directly. This will NOT order the chain by the ordering constraints.
    • Chain

      public Chain(com.yahoo.component.ComponentId id, Collection<COMPONENT> components, Collection<Phase> phases)
      Create a chain by using a builder. This will order the chain by the ordering constraints.
  • Method Details

    • getId

      public com.yahoo.component.ComponentId getId()
    • components

      public List<COMPONENT> components()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object