Complete data structure in Java