我想从列表中删除重复项,但我正在做的是不起作用:
List<Customer> listCustomer = new ArrayList<Customer>();
for (Customer customer: tmpListCustomer)
{
if (!listCustomer.contains(customer))
{
listCustomer.add(customer);
}
}
Run Code Online (Sandbox Code Playgroud) 如何使用Google Collections Collections2.filter方法实现不同的谓词?