Code example for BitSet

Methods: isEmpty

0
	 * Checks if an update required. 
	 * @return <code>true</code> if 1 or more flags are set, 
	 * <code>false</code> if not. 
	 */ 
	public boolean isUpdateRequired() { 
		return !flags.isEmpty();
	} 
	 
	/** 
	 * Flags (sets to true) a flag. 
	 * @param flag The flag to flag. 
	 */ 
	public void flag(UpdateFlag flag) {
		flags.set(flag.ordinal(), true);
	} 
	 
	/** 
	 * Sets a flag. 
	 * @param flag The flag. 
	 * @param value The value. 
Connect your IDE to all the code out there  Get Codota for Java