Java: Tryte class