/** * @see org.apache.wicket.util.diff.Delta#verify(java.util.List) */ public void verify(List target) throws PatchFailedException { if (original.first() > target.size()) { throw new PatchFailedException("original.first() > target.size()"); } }
/** * @see org.apache.wicket.util.diff.Delta#verify(java.util.List) */ @Override public void verify(final List<Object> target) throws PatchFailedException { if (original.first() > target.size()) { throw new PatchFailedException("original.first() > target.size()"); } }
/** * @see org.apache.wicket.util.diff.Delta#verify(java.util.List) */ @Override public void verify(List<Object> target) throws PatchFailedException { if (!original.verify(target)) { throw new PatchFailedException(); } }
/** * @see org.apache.wicket.util.diff.Delta#verify(java.util.List) */ public void verify(List target) throws PatchFailedException { if (!original.verify(target)) { throw new PatchFailedException(); } }
/** * @see org.apache.wicket.util.diff.Delta#verify(java.util.List) */ @Override public void verify(final List<Object> target) throws PatchFailedException { if (!original.verify(target)) { throw new PatchFailedException(); } }
/** * @see org.apache.wicket.util.diff.Delta#verify(java.util.List) */ @Override public void verify(List<Object> target) throws PatchFailedException { if (original.first() > target.size()) { throw new PatchFailedException("original.first() > target.size()"); } }
/** * @see org.apache.wicket.util.diff.Delta#verify(java.util.List) */ public void verify(List target) throws PatchFailedException { if (!original.verify(target)) { throw new PatchFailedException(); } if (original.first() > target.size()) { throw new PatchFailedException("original.first() > target.size()"); } }
/** * @see org.apache.wicket.util.diff.Delta#verify(java.util.List) */ @Override public void verify(final List<Object> target) throws PatchFailedException { if (!original.verify(target)) { throw new PatchFailedException(); } if (original.first() > target.size()) { throw new PatchFailedException("original.first() > target.size()"); } }
/** * @see org.apache.wicket.util.diff.Delta#verify(java.util.List) */ @Override public void verify(List<Object> target) throws PatchFailedException { if (!original.verify(target)) { throw new PatchFailedException(); } if (original.first() > target.size()) { throw new PatchFailedException("original.first() > target.size()"); } }
/** * Applies this delta as a patch to the given text. * * @param target * the text to patch. * @throws PatchFailedException * if the patch cannot be applied. */ public final void patch(final List<Object> target) throws PatchFailedException { verify(target); try { applyTo(target); } catch (Exception e) { throw new PatchFailedException(e.getMessage()); } }
/** * Applies this delta as a patch to the given text. * * @param target * the text to patch. * @throws PatchFailedException * if the patch cannot be applied. */ public final void patch(List target) throws PatchFailedException { verify(target); try { applyTo(target); } catch (Exception e) { throw new PatchFailedException(e.getMessage()); } }
/** * Applies this delta as a patch to the given text. * * @param target * the text to patch. * @throws PatchFailedException * if the patch cannot be applied. */ public final void patch(List<Object> target) throws PatchFailedException { verify(target); try { applyTo(target); } catch (Exception e) { throw new PatchFailedException(e.getMessage()); } }