I have a list of objects which all have a enum value called AssetType, is it possible to use the retainAll() method to sort the list so that only objects with AssetType.BANK\_ACCOUNT is kept?

Thx in advance for any help.