/** * Adds an "empty" credential to signify selection of no credential. * * @return {@code this} for method chaining. * @since 2.1.0 */ @NonNull public AbstractIdCredentialsListBoxModel<T, C> includeEmptyValue() { for (Option a : this) { if (StringUtils.equals("", a.value)) { return this; } } add(0, new Option(Messages.AbstractIdCredentialsListBoxModel_EmptySelection(), "")); return this; }
/** * Adds an "empty" credential to signify selection of no credential. * * @return {@code this} for method chaining. * @since 2.1.0 */ @NonNull public AbstractIdCredentialsListBoxModel<T, C> includeEmptyValue() { for (Option a : this) { if (StringUtils.equals("", a.value)) { return this; } } add(0, new Option(Messages.AbstractIdCredentialsListBoxModel_EmptySelection(), "")); return this; }