difflib
Class DiffRow

java.lang.Object
  extended by difflib.DiffRow

public class DiffRow
extends Object

Describes the diff row in form [tag, oldLine, newLine) for showing the difference between two texts

Author:
Dmitry Naumenko

Nested Class Summary
static class DiffRow.Tag
           
 
Constructor Summary
DiffRow(DiffRow.Tag tag, String oldLine, String newLine)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getNewLine()
           
 String getOldLine()
           
 DiffRow.Tag getTag()
           
 int hashCode()
           
 void setNewLine(String newLine)
           
 void setOldLine(String oldLine)
           
 void setTag(DiffRow.Tag tag)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiffRow

public DiffRow(DiffRow.Tag tag,
               String oldLine,
               String newLine)
Method Detail

getTag

public DiffRow.Tag getTag()
Returns:
the tag

setTag

public void setTag(DiffRow.Tag tag)
Parameters:
tag - the tag to set

getOldLine

public String getOldLine()
Returns:
the oldLine

setOldLine

public void setOldLine(String oldLine)
Parameters:
oldLine - the oldLine to set

getNewLine

public String getNewLine()
Returns:
the newLine

setNewLine

public void setNewLine(String newLine)
Parameters:
newLine - the newLine to set

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2013. All Rights Reserved.