Interface Breakable
- All Known Implementing Classes:
AbstractBreakable
,BreakableCollection
,BreakableIterable
,BreakableIterator
,BreakableList
,BreakableSequencedCollection
,BreakableSpliterator
public interface Breakable
Interface for classes that can be "broken" programmatically to test contract classes. Classes implementing
this interface can use the utility class
AbstractBreakable
to simplify the implementation.- Since:
- 1.0
- Author:
- Evan Bergstrom
- See Also:
-
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.
-
Method Details
-
hasBreak
Determines if this instance has a specified break. The default value for all breaks that have not been added isfalse
.- Parameters:
aBreak
- The break to determine if ti has been added to this instance.- Returns:
- 'true' if the break has been added, 'false' if it has not.
-
breaks
-
addBreaks
Adds a set of breaks to this object.- Parameters:
breaks
- the breaks to add.
-