Package 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 TypeMethodDescriptionbooleanChecks whether the used value has subsequently been changed.onNextChange(TransientListener listener) 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:
trueif the value has been changed,falseif there is no change
-
onNextChange
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, notnull- Returns:
- a callback for removing the listener, not
null
-