How to remove all or 1 property from a list

11 views
Skip to first unread message

pa...@donnapaul.net

unread,
Jan 12, 2016, 5:33:11 PM1/12/16
to ez-vcard-discuss
I'm building a vCard editor of sorts, and want to remove any existing TelephoneNumber(s) before adding new ones.
I can't figure out how.

Thanks in advance.
Paul

Mike Angstadt

unread,
Jan 12, 2016, 8:46:44 PM1/12/16
to ez-vcard...@googlegroups.com
Hi Paul,

You can call the "removeProperties" method like so:

VCard vcard = ...
vcard.removeProperties(Telephone.class);

-Mike


--
You received this message because you are subscribed to the Google Groups "ez-vcard-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ez-vcard-discu...@googlegroups.com.
To post to this group, send email to ez-vcard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ez-vcard-discuss/b6faf2ce-09d4-4a3f-9a10-0c539fd80ed0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Mike Angstadt
Assistant Electronic Resources Librarian, Computer Lab
Montgomery County-Norristown Public Library
1001 Powell Street | Norristown, PA 19401

Any views or opinions expressed in this e-mail are those of the sender and not necessarily coincide with those of the organization.The information in this email is confidential. The contents may not be disclosed or used by anyone other than the addressee. If you are not the intended recipient, please notify us immediately at the above address.
Reply all
Reply to author
Forward
0 new messages