@Test public void testRemoveFlag() { final FeatureFlags flags = new FeatureFlags(); flags.addFlag("enabledFlag", true); flags.removeFlag("enabledFlag"); assertFalse(flags.isEnabled("enabledFlag")); assertFalse(flags.iterator().hasNext()); }
public void removeFlag(final String flagName) { findFlag(flagName).ifPresent(featureFlags::remove); }
FeatureFlags implements Iterable<FeatureFlag> { public void removeFlag(final String flagName) { findFlag(flagName).ifPresent(featureFlags::remove); } }
FeatureFlags implements Iterable<FeatureFlag> { public void removeFlag(final String flagName) { findFlag(flagName).ifPresent(featureFlags::remove); }  }
FeatureFlags implements Iterable<FeatureFlag> { public void removeFlag(final String flagName) { findFlag(flagName).ifPresent(featureFlags::remove); }  @JsonAnySetter void addFlag(final String name, final boolean enabled); void removeFlag(final String flagName); @Override Iterator<FeatureFlag> iterator(); boolean isEnabled(final String flagName); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
FeatureFlags implements Iterable<FeatureFlag> { public void removeFlag(final String flagName) { findFlag(flagName).ifPresent(featureFlags::remove); }  @JsonAnySetter void addFlag(final String name, final boolean enabled); void removeFlag(final String flagName); @Override Iterator<FeatureFlag> iterator(); boolean isEnabled(final String flagName); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); static final String AGGREGATED_FEATURE_FLAGS_URI; }