FileDocCategorySizeDatePackage
EndGameModeChunk.javaAPI DocAzureus 3.0.3.42183Wed Feb 08 11:38:10 GMT 2006com.aelitis.azureus.core.peermanager.piecepicker

EndGameModeChunk

public class EndGameModeChunk extends Object
author
Olivier
author
MjrTom 2006/Jan/06 Refactoring

Fields Summary
private final int
pieceNumber
private final int
blockNumber
private final int
offset
private final int
length
Constructors Summary
public EndGameModeChunk(org.gudy.azureus2.core3.peer.PEPiece pePiece, int blockNum)

		//this.piece = piece;
		pieceNumber =pePiece.getPieceNumber();
		blockNumber =blockNum;
		length =pePiece.getBlockSize(blockNumber);
		offset =blockNumber *DiskManager.BLOCK_SIZE;
	
Methods Summary
public booleancompare(int pieceNum, int os)

deprecated
This implementation is suitable for equals(); compare() should return int for sorting
param
pieceNum
param
os
return

		return ((pieceNumber ==pieceNum) &&(this.offset ==os));
	
public booleanequals(int pieceNum, int os)

        return ((pieceNumber ==pieceNum) &&(this.offset ==os));
    
public intgetBlockNumber()

return
int Returns the blockNumber.

		return blockNumber;
	
public intgetLength()

		return length;
	
public intgetOffset()

		return offset;
	
public intgetPieceNumber()

return
int Returns the pieceNumber.

		return pieceNumber;