org.gudy.azureus2.core3.disk.impl.piecemapper.impl
Class DMPieceMapSimple.pieceList

java.lang.Object
  extended by org.gudy.azureus2.core3.disk.impl.piecemapper.impl.DMPieceMapSimple.pieceList
All Implemented Interfaces:
DMPieceList, DMPieceMapEntry
Enclosing class:
DMPieceMapSimple

protected class DMPieceMapSimple.pieceList
extends Object
implements DMPieceList, DMPieceMapEntry


Constructor Summary
protected DMPieceMapSimple.pieceList(int _piece_number)
           
 
Method Summary
 DMPieceMapEntry get(int index)
           
 int getCumulativeLengthToPiece(int file_index)
           
 DiskManagerFileInfoImpl getFile()
           
 int getLength()
           
 long getOffset()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DMPieceMapSimple.pieceList

protected DMPieceMapSimple.pieceList(int _piece_number)
Method Detail

size

public int size()
Specified by:
size in interface DMPieceList

get

public DMPieceMapEntry get(int index)
Specified by:
get in interface DMPieceList

getCumulativeLengthToPiece

public int getCumulativeLengthToPiece(int file_index)
Specified by:
getCumulativeLengthToPiece in interface DMPieceList

getFile

public DiskManagerFileInfoImpl getFile()
Specified by:
getFile in interface DMPieceMapEntry

getOffset

public long getOffset()
Specified by:
getOffset in interface DMPieceMapEntry

getLength

public int getLength()
Specified by:
getLength in interface DMPieceMapEntry