Projective Set implementation in Java