> using an object's attribute as key

I have an object Foo with the following elements:

class Foo {
    int id;
    int departmentId;
    boolean condition1;
    boolean condi,java,java-8"/>
	














首页 > 解决方案 > 转换列表 into a Map> using an object's attribute as key

I have an object Foo with the following elements:

class Foo {
    int id;
    int departmentId;
    boolean condition1;
    boolean condi