Package org.apache.http.protocol
Class ChainBuilder<E>
java.lang.Object
org.apache.http.protocol.ChainBuilder<E>
Builder class to build a linked list (chain) of unique class instances. Each class can have
only one instance in the list. Useful for building lists of protocol interceptors.
- Since:
- 4.3
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllFirst
(E... c) addAllFirst
(Collection<E> c) addAllLast
(E... c) addAllLast
(Collection<E> c) build()
private void
ensureUnique
(E e)
-
Field Details
-
list
-
uniqueClasses
-
-
Constructor Details
-
ChainBuilder
public ChainBuilder()
-
-
Method Details
-
ensureUnique
-
addFirst
-
addLast
-
addAllFirst
-
addAllFirst
-
addAllLast
-
addAllLast
-
build
-