Class TextDiff

java.lang.Object
ch.tocco.nice2.persist.history.api.diff.TextDiff
All Implemented Interfaces:
Iterable<TextDiffEntry>

public final class TextDiff extends Object implements Iterable<TextDiffEntry>
  • Constructor Details

    • TextDiff

      public TextDiff(Iterable<TextDiffEntry> entries, int deletionCount, int insertCount, int changeCount)
  • Method Details

    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • get

      public TextDiffEntry get(int index)
    • getDeletionCount

      public int getDeletionCount()
    • getChangeCount

      public int getChangeCount()
    • getInsertCount

      public int getInsertCount()
    • iterator

      public Iterator<TextDiffEntry> iterator()
      Specified by:
      iterator in interface Iterable<TextDiffEntry>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object