Errai 3.0.1-SNAPSHOT

org.jboss.errai.otec.client.util
Class DiffUtil

java.lang.Object
  extended by org.jboss.errai.otec.client.util.DiffUtil

public final class DiffUtil
extends Object

Author:
Mike Brock

Nested Class Summary
static class DiffUtil.Delta
           
 
Method Summary
static DiffUtil.Delta diff(String a, String b)
          A simple diff algorithm that assumes only one contiguous block has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

diff

public static DiffUtil.Delta diff(String a,
                                  String b)
A simple diff algorithm that assumes only one contiguous block has changed. This algorithm cannot handle interleaved differences in a string.

Parameters:
a -
b -
Returns:

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.