com.vaadin.signals.impl.

Interface UsageTracker.Usage

Enclosing class:

UsageTracker

public static interface UsageTracker.Usage

Tracks the state of some used value.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean

    Checks whether the used value has subsequently been changed.

    Registers a listener that will be invoked the next time there's a change to the used value.

  • Method Details

    • hasChanges

      boolean hasChanges()

      Checks whether the used value has subsequently been changed.

      Returns:

      true if the value has been changed, false if there is no change

    • onNextChange

      Runnable onNextChange(TransientListener listener)

      Registers a listener that will be invoked the next time there's a change to the used value. If this usage already has changes, then the listener is invoked immediately.

      Parameters:

      listener - the listener to use, not null

      Returns:

      a callback for removing the listener, not null