Package google.registry.util
Class CircularList.AbstractBuilder<T,C extends CircularList<T>>
java.lang.Object
google.registry.util.CircularList.AbstractBuilder<T,C>
- Type Parameters:
T
- - Matching element type of iteratorSupports adding in element at a time, adding an
Iterable
of elements, and adding an variable number of elemetns.Sets first element added to
first
, and when built, points last element to thefirst
element.
- Direct Known Subclasses:
CircularList.Builder
,ProbingSequence.Builder
- Enclosing class:
CircularList<T>
public abstract static class CircularList.AbstractBuilder<T,C extends CircularList<T>>
extends Object
As
CircularList
represents one component of the entire list, it requires a builder to
create the full list.-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
first
-
current
-
-
Constructor Details
-
AbstractBuilder
public AbstractBuilder()
-
-
Method Details
-
create
Necessary to instantiate eachC
object fromvalue
. -
add
Sets currentC
to element added and points previousC
to this one. -
add
Simply callsaddElement
, for each element inelements
. -
build
Sets the nextC
of the list to be the firstC
in the list.
-