Ouch, public static measuringUnit, when measuringFrequency is private instance field? And why is it final? You can also set just the unit, not the frequency itself... That's really ugly. Please, make both of these private instance fields.