Skip to content

Instantly share code, notes, and snippets.

@mearns
Created August 21, 2018 18:50
Show Gist options
  • Save mearns/3fa16b67b75fc21043c543110e047c89 to your computer and use it in GitHub Desktop.
Save mearns/3fa16b67b75fc21043c543110e047c89 to your computer and use it in GitHub Desktop.
import java.util.function.Consumer;
import java.util.function.Supplier;
public class CheckBox {
private Consumer<Boolean> mutable = this::setState;
private Supplier<Boolean> readOnlyView = this::getState;
/* ... */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment