Class BreakableCollection.Builder<E>
java.lang.Object
org.soliscode.test.breakable.BreakableIterable.AbstractBuilder<BreakableCollection.Builder<E>,BreakableCollection<E>,E>
org.soliscode.test.breakable.BreakableCollection.AbstractBuilder<BreakableCollection.Builder<E>,BreakableCollection<E>,E>
org.soliscode.test.breakable.BreakableCollection.Builder<E>
- Type Parameters:
E
- the element type.
- Enclosing class:
BreakableCollection<E>
public static class BreakableCollection.Builder<E>
extends BreakableCollection.AbstractBuilder<BreakableCollection.Builder<E>,BreakableCollection<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.Builder
(BreakableCollection.Builder<E> other) 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
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<BreakableCollection.Builder<E>,
BreakableCollection<E>, E>
-
copy
- Specified by:
copy
in classBreakableIterable.AbstractBuilder<BreakableCollection.Builder<E>,
BreakableCollection<E>, E>
-
build
Build a BreakableCollection objects using the values from the builder.- Specified by:
build
in classBreakableIterable.AbstractBuilder<BreakableCollection.Builder<E>,
BreakableCollection<E>, E> - Returns:
- a new BreakableCollection object.
-