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 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<COMPONENT>
components()
boolean
equals(java.lang.Object o)
com.yahoo.component.ComponentId
getId()
int
hashCode()
java.lang.String
toString()
-
-
-
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.
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-