/** * Compare both fields by using the equals implementation and return a field container change list that contains the detected changes. * * @param field * @return List of detected changes or empty list if no change has been detected */ default List<FieldContainerChange> compareTo(Object field) { if (!equals(field)) { return Arrays.asList(new FieldContainerChange(getFieldKey(), FieldChangeTypes.UPDATED)); } return Collections.emptyList(); } }
/** * Remove the field and use a dummy bulk action context. * * @param container */ default void removeField(GraphFieldContainer container) { removeField(new DummyBulkActionContext(), container); }