public class Chain<COMPONENT extends ChainedComponent> extends Object
Modifier and Type | Field and Description |
---|---|
private List<COMPONENT> |
componentList |
private com.yahoo.component.ComponentId |
id |
Constructor and Description |
---|
Chain(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,
COMPONENT... components)
Create a chain directly.
|
Chain(com.yahoo.component.ComponentId id,
List<COMPONENT> componentList)
Create a chain directly.
|
Chain(List<COMPONENT> componentList)
Create a chain directly.
|
Chain(String id,
COMPONENT... components)
Create a chain directly.
|
Chain(String id,
List<COMPONENT> componentList)
Create a chain directly.
|
Modifier and Type | Method and Description |
---|---|
private void |
appendComponent(int i,
StringBuilder b) |
private static <T extends ChainedComponent> |
buildChain(Collection<T> components,
Collection<Phase> phases) |
List<COMPONENT> |
components() |
private static <T> Collection<T> |
emptyListIfNull(Collection<T> collection) |
boolean |
equals(Object o) |
com.yahoo.component.ComponentId |
getId() |
int |
hashCode() |
String |
toString() |
private final List<COMPONENT extends ChainedComponent> componentList
private final com.yahoo.component.ComponentId id
public Chain(String id, List<COMPONENT> componentList)
public Chain(com.yahoo.component.ComponentId id, List<COMPONENT> componentList)
public Chain(List<COMPONENT> componentList)
@SafeVarargs public Chain(COMPONENT... components)
@SafeVarargs public Chain(String id, COMPONENT... components)
@SafeVarargs public Chain(com.yahoo.component.ComponentId id, COMPONENT... components)
public Chain(com.yahoo.component.ComponentId id, Collection<COMPONENT> components, Collection<Phase> phases)
public com.yahoo.component.ComponentId getId()
private static <T> Collection<T> emptyListIfNull(Collection<T> collection)
private static <T extends ChainedComponent> Chain<T> buildChain(Collection<T> components, Collection<Phase> phases)
private void appendComponent(int i, StringBuilder b)
Copyright © 2018. All rights reserved.