java add an immutable class