Class AbstractBreakable
java.lang.Object
org.soliscode.test.OptionalMethodSupport
org.soliscode.test.breakable.AbstractBreakable
- All Implemented Interfaces:
Breakable
,SupportedMethods
- Direct Known Subclasses:
BreakableIterable
,BreakableIterator
,BreakableSpliterator
Utility class for implementing the
Breakable
interface.- Since:
- 1.0
- Author:
- evanbergstrom
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a breakable object with no breaks.AbstractBreakable
(@NotNull Collection<Break> breaks) Create a breakable object with a specified set of breaks.AbstractBreakable
(@NotNull AbstractBreakable other) Create a breakable object with the same breaks as another breakable object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBreaks
(@NotNull Collection<Break> breaks) Adds a set of breaks to this object.breaks()
Returns all of the breaks that have been added to this object.boolean
Determines if this instance has a specified break.Methods inherited from class org.soliscode.test.OptionalMethodSupport
doesNotSupportMethod, supportsMethod, unsupportedMethods
-
Constructor Details
-
AbstractBreakable
public AbstractBreakable()Create a breakable object with no breaks. -
AbstractBreakable
Create a breakable object with the same breaks as another breakable object.- Parameters:
other
- the breakable object to copy.
-
AbstractBreakable
Create a breakable object with a specified set of breaks.- Parameters:
breaks
- the set of breaks for the object.
-
-
Method Details