org.gudy.azureus2.core3.disk.impl.piecemapper.impl
Class PieceListImpl
java.lang.Object
org.gudy.azureus2.core3.disk.impl.piecemapper.impl.PieceListImpl
- All Implemented Interfaces:
- DMPieceList
public class PieceListImpl
- extends Object
- implements DMPieceList
- Author:
- Moti
PieceList contains a list of pieces; it also provides accessor and
utility methods.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PieceListImpl
protected PieceListImpl(PieceMapEntryImpl[] _pieces)
convert
public static PieceListImpl convert(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