@Test(expectedExceptions = IllegalArgumentException.class) public void whenNullNameThenIsEnabledShouldThrow() { final FeatureFlags flags = new FeatureFlags(); flags.isEnabled(null); }
public boolean isEnabled(final String flagName) { notEmpty(flagName, "flagName"); return findFlag(flagName).map(FeatureFlag::isEnabled).orElse(false); }
FeatureFlags implements Iterable<FeatureFlag> { public boolean isEnabled(final String flagName) { notEmpty(flagName, "flagName"); return findFlag(flagName).map(FeatureFlag::isEnabled).orElse(false); } }
FeatureFlags implements Iterable<FeatureFlag> { public boolean isEnabled(final String flagName) { notEmpty(flagName, "flagName"); return findFlag(flagName).map(FeatureFlag::isEnabled).orElse(false); }  }
FeatureFlags implements Iterable<FeatureFlag> { public boolean isEnabled(final String flagName) { notEmpty(flagName, "flagName"); return findFlag(flagName).map(FeatureFlag::isEnabled).orElse(false); }  @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 boolean isEnabled(final String flagName) { notEmpty(flagName, "flagName"); return findFlag(flagName).map(FeatureFlag::isEnabled).orElse(false); }  @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; }