org.gudy.azureus2.core3.disk.impl.piecemapper.impl
Class PieceListImpl

java.lang.Object
  extended by org.gudy.azureus2.core3.disk.impl.piecemapper.impl.PieceListImpl
All Implemented Interfaces:
DMPieceList

public class PieceListImpl
extends java.lang.Object
implements DMPieceList

Author:
Moti PieceList contains a list of pieces; it also provides accessor and utility methods.

Constructor Summary
protected PieceListImpl(PieceMapEntryImpl[] _pieces)
           
 
Method Summary
static PieceListImpl convert(java.util.List pieceList)
           
 DMPieceMapEntry get(int index)
           
 int getCumulativeLengthToPiece(int index)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PieceListImpl

protected PieceListImpl(PieceMapEntryImpl[] _pieces)
Method Detail

convert

public static PieceListImpl convert(java.util.List pieceList)

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 index)
Specified by:
getCumulativeLengthToPiece in interface DMPieceList