![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
... public final static BigSet<Set> ALL_SETS = new BigSet<Set>() { public boolean contains(Object o) { return o instanceof Set; } };
... public final static BigSet<Set> ALL_SETS = new BigSet<Set>() { public boolean contains(Object o) { return o instanceof Set; } };
no subject
Date: 2008-11-30 06:30 am (UTC)С другой стороны, в данном конкретном случае совершенно пофиг; я, пожалуй, лучше определю SETF:
public boolean contains(Object o) {
return o instanceof Set && ((Set)o).size() < Integer.MAX_VALUE;
}
no subject
Date: 2008-11-30 01:16 pm (UTC)