Signed-off-by:Roland Häder <roland@mxchange.org>
package org.mxchange.addressbook.beans.user;
import java.text.MessageFormat;
+import java.util.Collections;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
this.emailAddressList.add(user.getUserContact().getContactEmailAddress());
}
+ @Override
+ public List<User> allPublicUsers () {
+ // Return it
+ return Collections.unmodifiableList(this.publicUserList);
+ }
+
@Override
public void clearData () {
// Clear all data
import java.io.Serializable;
import java.util.Date;
+import java.util.List;
import org.mxchange.jcontacts.contact.gender.Gender;
import org.mxchange.jcountry.data.Country;
import org.mxchange.jphone.phonenumbers.smsprovider.SmsProvider;
*/
public void addUserNameEmailAddress (final User user);
+ /**
+ * All public user profiles
+ * <p>
+ * @return A list of all public user profiles
+ */
+ public List<User> allPublicUsers ();
+
/**
* Clears all data in this bean
*/