Interface Sweeper.Sweepable

  • Enclosing class:
    Sweeper

    public static interface Sweeper.Sweepable

    A Sweeper.Sweepable resource implements this interface to signal to a Sweeper or to a parent container if it needs to be swept or not.

    Typical implementations will check their own internal state and return true or false from sweep() to indicate whether they should be swept.

    • Method Detail

      • sweep

        boolean sweep()
        Returns:
        whether this resource should be swept