org.sourcejammer.server.make
Class BuildDelta.MatchChunksResult

java.lang.Object
  |
  +--org.sourcejammer.server.make.BuildDelta.MatchChunksResult
Enclosing class:
BuildDelta

private class BuildDelta.MatchChunksResult
extends java.lang.Object

Inner class for encapsulating the results of a comparision of a chunk of bytes from each byte array to it's opposite.


Field Summary
private  boolean mbMatchFound
           
private  boolean mbNewFoundInOld
           
private  boolean mbOldFoundInNew
           
private  int miNewChunkInOldBeginIndex
           
private  int miOldChunkInNewBeginIndex
           
 
Constructor Summary
BuildDelta.MatchChunksResult()
           
 
Method Summary
 int getNewChunkInOldBeginIndex()
          Returns the index in the Old file at which the current new chunk was found
 int getOldChunkInNewBeginIndex()
          Returns the index in the New file at which the current old chunk was found.
 boolean isMatchFound()
          Returns true if a match has been found.
 boolean isNewFoundInOld()
          Returns true if the current "new" chunk was found somewhere in the "old" file.
 boolean isOldFoundInNew()
          Returns true if the current "old" chunk was found somewhere in the "new" file.
 void setMatchFound(boolean b)
          Set to true if a match is found.
 void setNewChunkInOldBeginIndex(int i)
          Set to the index in the Old file at which the current new chunk was found.
 void setNewFoundInOld(boolean b)
          Set to true if the current "new" chunk was found somewhere in the "old" file.
 void setOldChunkInNewBeginIndex(int i)
          Set to the index in the New file at which the current old chunk was found.
 void setOldFoundInNew(boolean b)
          Set to true if the current "old" chunk was found somewhere in the "new" file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mbMatchFound

private boolean mbMatchFound

miNewChunkInOldBeginIndex

private int miNewChunkInOldBeginIndex

miOldChunkInNewBeginIndex

private int miOldChunkInNewBeginIndex

mbNewFoundInOld

private boolean mbNewFoundInOld

mbOldFoundInNew

private boolean mbOldFoundInNew
Constructor Detail

BuildDelta.MatchChunksResult

public BuildDelta.MatchChunksResult()
Method Detail

setMatchFound

public void setMatchFound(boolean b)
Set to true if a match is found.


isMatchFound

public boolean isMatchFound()
Returns true if a match has been found.


setNewFoundInOld

public void setNewFoundInOld(boolean b)
Set to true if the current "new" chunk was found somewhere in the "old" file.


isNewFoundInOld

public boolean isNewFoundInOld()
Returns true if the current "new" chunk was found somewhere in the "old" file.


setOldFoundInNew

public void setOldFoundInNew(boolean b)
Set to true if the current "old" chunk was found somewhere in the "new" file.


isOldFoundInNew

public boolean isOldFoundInNew()
Returns true if the current "old" chunk was found somewhere in the "new" file.


setNewChunkInOldBeginIndex

public void setNewChunkInOldBeginIndex(int i)
Set to the index in the Old file at which the current new chunk was found.


getNewChunkInOldBeginIndex

public int getNewChunkInOldBeginIndex()
Returns the index in the Old file at which the current new chunk was found


setOldChunkInNewBeginIndex

public void setOldChunkInNewBeginIndex(int i)
Set to the index in the New file at which the current old chunk was found.


getOldChunkInNewBeginIndex

public int getOldChunkInNewBeginIndex()
Returns the index in the New file at which the current old chunk was found.



Copyright © 2003 Soucejammer project.