com.atlassian.diff
Class CharacterChunk

java.lang.Object
  extended by com.atlassian.diff.CharacterChunk
All Implemented Interfaces:
DiffChunk

public class CharacterChunk
extends Object
implements DiffChunk

Represents a group of characters sharing the same diff type - unchanged, added or deleted.


Constructor Summary
CharacterChunk(DiffType type, String text)
           
 
Method Summary
 boolean equals(Object o)
           
 String getText()
           
 DiffType getType()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CharacterChunk

public CharacterChunk(DiffType type,
                      String text)
Method Detail

getType

public DiffType getType()
Specified by:
getType in interface DiffChunk

getText

public String getText()
Specified by:
getText in interface DiffChunk

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2011 Atlassian. All Rights Reserved.