@Test public void isRedundantTwoEmptyLists() { c = new Change(mockSetting, list1, list2); assertTrue(c.isRedundant()); list1.add(s1); assertTrue(c.isRedundant()); }
public boolean isRedundant() { if (isListChange()) { return Objects.equals(oldList.get(),newList.get()); } return oldValue.get().equals(newValue.get()); }
Change { public boolean isRedundant() { if (isListChange()) { return Objects.equals(oldList.get(),newList.get()); } return oldValue.get().equals(newValue.get()); } }
Change { public boolean isRedundant() { if (isListChange()) { return Objects.equals(oldList.get(),newList.get()); } return oldValue.get().equals(newValue.get()); } protected  Change(Setting setting, boolean listChange);  Change(Setting setting, ObservableList<P> oldList, ObservableList<P> newList);  Change(Setting setting, P oldValue, P newValue); }
Change { public boolean isRedundant() { if (isListChange()) { return Objects.equals(oldList.get(),newList.get()); } return oldValue.get().equals(newValue.get()); } protected  Change(Setting setting, boolean listChange);  Change(Setting setting, ObservableList<P> oldList, ObservableList<P> newList);  Change(Setting setting, P oldValue, P newValue); boolean isRedundant(); void undo(); void redo(); ObservableList<P> getOldList(); ObservableList<P> getNewList(); void setNewList(ObservableList<P> newList); boolean isListChange(); ReadOnlyBooleanProperty listChangeProperty(); P getOldValue(); P getNewValue(); void setNewValue(P newValue); Setting getSetting(); String getTimestamp(); ReadOnlyObjectProperty<P> oldValueProperty(); ReadOnlyObjectProperty<P> newValueProperty(); ReadOnlyListProperty<P> oldListProperty(); ReadOnlyListProperty<P> newListProperty(); }
Change { public boolean isRedundant() { if (isListChange()) { return Objects.equals(oldList.get(),newList.get()); } return oldValue.get().equals(newValue.get()); } protected  Change(Setting setting, boolean listChange);  Change(Setting setting, ObservableList<P> oldList, ObservableList<P> newList);  Change(Setting setting, P oldValue, P newValue); boolean isRedundant(); void undo(); void redo(); ObservableList<P> getOldList(); ObservableList<P> getNewList(); void setNewList(ObservableList<P> newList); boolean isListChange(); ReadOnlyBooleanProperty listChangeProperty(); P getOldValue(); P getNewValue(); void setNewValue(P newValue); Setting getSetting(); String getTimestamp(); ReadOnlyObjectProperty<P> oldValueProperty(); ReadOnlyObjectProperty<P> newValueProperty(); ReadOnlyListProperty<P> oldListProperty(); ReadOnlyListProperty<P> newListProperty();  }