Collections removeAll method
Posted
by srinannapa
on Stack Overflow
See other posts from Stack Overflow
or by srinannapa
Published on 2010-06-09T11:53:47Z
Indexed on
2010/06/09
12:12 UTC
Read the original article
Hit count: 233
java
|collections
I would like to know if something like below is possible ,
list<**MyObject**>.**removeAll**(list<**String**>)
I hope the context is understandable.
The list<MyObject> : is a ArrayList<MyObject>
The list<String> : is a ArrayList<String>
I know this can be achieved by overriding equals method in MyObject class. I would like to know if any other choice is prsent.
Thanks,Srinivas N
© Stack Overflow or respective owner