2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.util.concurrent;
11 * Simple container encapsulating a boolean flag, which can be toggled. It starts
12 * off in the reset state.
14 final class SettableBoolean {
15 private boolean value = false;
18 * Set the flag to its initial (false) state.
34 * @return True if the flag has been set since instantiation or last {@link #reset()}.
36 public boolean isSet() {