boolean (UiActivity other) { if (myElements.size() > other.myElements.size()) return false; for (int i = 0; i < myElements.size(); i++) { if (!myElements.get(i).equals(other.myElements.get(i))) return false; } return true; }