예제 #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 */
예제 #2
0
파일: SyncHelp.java 프로젝트: 9seconds/CCli
 @Override
 public void sync(final DataContainer first, final DataContainer second)
     throws DataContainerException {
   if (first.help == null) first.help = second.help;
   else if (second.help == null) second.help = first.help;
   else if (!first.help.equals(second.help)) throw new OverrideHelp();
 } /* sync */