/** * Adds a single credential. * * @param u the credential to add. * @return {@code this} for method chaining. */ @NonNull public AbstractIdCredentialsListBoxModel<T, C> with(@CheckForNull C u) { if (u != null) { add(describe(u), u.getId()); } return this; }
/** * Adds a single credential. * * @param u the credential to add. * @return {@code this} for method chaining. */ @NonNull public AbstractIdCredentialsListBoxModel<T, C> with(@CheckForNull C u) { if (u != null) { add(describe(u), u.getId()); } return this; }