Package com.yahoo.component.chain
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 Summary
Constructors Constructor Description Chain(com.yahoo.component.ComponentId id, COMPONENT... components)
Create a chain directly.Chain(com.yahoo.component.ComponentId id, Collection<COMPONENT> components, Collection<Phase> phases)
Create a chain by using a builder.Chain(com.yahoo.component.ComponentId id, List<COMPONENT> componentList)
Create a chain directly.Chain(COMPONENT... components)
Create a chain directly.Chain(String id, COMPONENT... components)
Create a chain directly.Chain(String id, List<COMPONENT> componentList)
Create a chain directly.Chain(List<COMPONENT> componentList)
Create a chain directly.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<COMPONENT>
components()
boolean
equals(Object o)
com.yahoo.component.ComponentId
getId()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
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.
-
-