Class BreakableSequencedCollection.Builder<E>
java.lang.Object
org.soliscode.test.breakable.BreakableIterable.AbstractBuilder<BreakableSequencedCollection.Builder<E>,BreakableSequencedCollection<E>,E>
org.soliscode.test.breakable.BreakableCollection.AbstractBuilder<BreakableSequencedCollection.Builder<E>,BreakableSequencedCollection<E>,E>
org.soliscode.test.breakable.BreakableSequencedCollection.Builder<E>
- Type Parameters:
E
- the element type.
- Enclosing class:
BreakableSequencedCollection<E>
public static class BreakableSequencedCollection.Builder<E>
extends BreakableCollection.AbstractBuilder<BreakableSequencedCollection.Builder<E>,BreakableSequencedCollection<E>,E>
The builder for BreakableCollection objects.
- Since:
- 1.0.0
- Author:
- evanbergstrom
-
Field Summary
Fields inherited from class org.soliscode.test.breakable.BreakableCollection.AbstractBuilder
permitsDuplicates, permitsIncompatibleTypes, permitsNulls, unsupportedMethods
Fields inherited from class org.soliscode.test.breakable.BreakableIterable.AbstractBuilder
breaks, characteristics, elements
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()
Create a builder initialized with the default values.Create a builder initialized with an element store.Create a builder initialized with the values copied from another builder. -
Method Summary
Methods inherited from class org.soliscode.test.breakable.BreakableCollection.AbstractBuilder
doesNotPermitDuplicates, doesNotPermitIncompatibleTypes, doesNotPermitNulls, doesNotSupportMethod
Methods inherited from class org.soliscode.test.breakable.BreakableIterable.AbstractBuilder
addBreak, addElements, addElements, doesNotSupport, setCharacteristics
-
Constructor Details
-
Builder
public Builder()Create a builder initialized with the default values. -
Builder
-
Builder
Create a builder initialized with the values copied from another builder.- Parameters:
other
- the builder to copy the values from.
-
-
Method Details
-
self
- Specified by:
self
in classBreakableIterable.AbstractBuilder<BreakableSequencedCollection.Builder<E>,
BreakableSequencedCollection<E>, E>
-
copy
- Specified by:
copy
in classBreakableIterable.AbstractBuilder<BreakableSequencedCollection.Builder<E>,
BreakableSequencedCollection<E>, E>
-
build
Build a BreakableCollection objects using the values from the builder.- Specified by:
build
in classBreakableIterable.AbstractBuilder<BreakableSequencedCollection.Builder<E>,
BreakableSequencedCollection<E>, E> - Returns:
- a new BreakableCollection object.
-