Class Chain<COMPONENT extends ChainedComponent>


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

      Constructors 
      Constructor Description
      Chain​(com.yahoo.component.ComponentId id, COMPONENT... components)
      Create a chain directly.
      Chain​(com.yahoo.component.ComponentId id, java.util.Collection<COMPONENT> components, java.util.Collection<Phase> phases)
      Create a chain by using a builder.
      Chain​(com.yahoo.component.ComponentId id, java.util.List<COMPONENT> componentList)
      Create a chain directly.
      Chain​(COMPONENT... components)
      Create a chain directly.
      Chain​(java.lang.String id, COMPONENT... components)
      Create a chain directly.
      Chain​(java.lang.String id, java.util.List<COMPONENT> componentList)
      Create a chain directly.
      Chain​(java.util.List<COMPONENT> componentList)
      Create a chain directly.
    • Constructor Detail

      • Chain

        public Chain​(java.lang.String id,
                     java.util.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,
                     java.util.List<COMPONENT> componentList)
        Create a chain directly. This will NOT order the chain by the ordering constraints.
      • Chain

        public Chain​(java.util.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​(java.lang.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,
                     java.util.Collection<COMPONENT> components,
                     java.util.Collection<Phase> phases)
        Create a chain by using a builder. This will order the chain by the ordering constraints.
    • Method Detail

      • getId

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

        public java.util.List<COMPONENT> components()
      • toString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object