ВопросSeniorМТС21 просмотр

public class MyObject { private final String object1; private final NotMyObject notMyObject; private final Collection<AnotherObject> anotherObjects; //constructor //getters public String getObject1(){ return object1; } public NotMyObject getNotMyObject(){ return notMyObject; } public //public MyObject(String object) }