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 Type
    Method
    Description
    void
    addBreaks(@NotNull Collection<Break> breaks)
    Adds a set of breaks to this object.
    @NotNull Set<Break>
    Returns all of the breaks that have been added to this object.
    boolean
    hasBreak(@NotNull Break aBreak)
    Determines if this instance has a specified break.
  • Method Details

    • hasBreak

      boolean hasBreak(@NotNull @NotNull Break aBreak)
      Determines if this instance has a specified break. The default value for all breaks that have not been added is false.
      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

      @NotNull @NotNull Set<Break> breaks()
      Returns all of the breaks that have been added to this object.
      Returns:
      The set of breaks that have ben added.
    • addBreaks

      void addBreaks(@NotNull @NotNull Collection<Break> breaks)
      Adds a set of breaks to this object.
      Parameters:
      breaks - the breaks to add.