Ejemplo n.º 1
0
 @Override
 public void sync(final DataContainer first, final DataContainer second)
     throws DataContainerException {
   if (first.value == null) first.value = second.value;
   else if (second.value == null) second.value = first.value;
   else if (!first.value.equals(second.value)) throw new OverrideValue();
 } /* sync */