@Override
    public boolean equals(final Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        final NodeFlagPair that = (NodeFlagPair) o;
        return on == that.on && off == that.off;
    }
Adds nodeFlag to the provided flags set after removing the other member of this {@link NodeFlagPair}

@param isOn  The flag to add based on its state
@param flags Set to add to
stroom-core-shared/src/main/java/stroom/explorer/shared/NodeFlagPair.java