/** * Returns true if this diff has no other diffs or if all of its diffs are * noops. */ public boolean isNoop() { if (diffs == null || diffs.isEmpty()) { return true; } for (GraphDiff diff : diffs) { if (!diff.isNoop()) { return false; } } return true; }
/** * Returns true if this diff has no other diffs or if all of its diffs are noops. */ public boolean isNoop() { if (diffs == null || diffs.isEmpty()) { return true; } Iterator it = diffs.iterator(); while (it.hasNext()) { if (!((GraphDiff) it.next()).isNoop()) { return false; } } return true; }
public GraphDiff compress(GraphDiff diff) { if (diff.isNoop()) { return diff; } CompressAction action = new CompressAction(); diff.apply(action); return action.getCompressedDiff(); }
if (!parentChanges.isNoop()) { parentChanges.apply(new GraphChangeHandler() {
if (!parentChanges.isNoop()) { parentChanges.apply(new GraphChangeHandler() {
if (diff.isNoop()) { returnClientDiff = diff;
if (!returnChanges.isNoop()) { fireDataChannelCommitted(getChannel(), returnChanges);