Package com.atlassian.confluence.util
Class BooleanFuse
java.lang.Object
com.atlassian.confluence.util.BooleanFuse
Wraps a boolean supplier to prevent the returned value from changing once 'tripped'.
-
Constructor Summary
ConstructorDescriptionBooleanFuse
(boolean initialState, Supplier<Boolean> realStateSupplier) Creates a BooleanFuse that wraps a boolean supplier to prevent the returned value from changing once 'tripped'. -
Method Summary
-
Constructor Details
-
BooleanFuse
Creates a BooleanFuse that wraps a boolean supplier to prevent the returned value from changing once 'tripped'.- Parameters:
initialState
- the opposite of the desired tripped state, usually the initial state of the underlying callrealStateSupplier
- the call that returns the real state represented by this fuse
-
-
Method Details