Package org.klomp.snark.v2
Class PieceHashes
- All Implemented Interfaces:
Iterable<MerkleHash>,Collection<MerkleHash>,List<MerkleHash>,SequencedCollection<MerkleHash>
Process the file tree, and present it as a list of hashes.
- Since:
- 0.9.71
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionPieceHashes(int hashcount, List<MerkleHash> hashes, List<Long> lengths, PieceLayers layers, int piece_length) -
Method Summary
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Constructor Details
-
PieceHashes
public PieceHashes(int hashcount, List<MerkleHash> hashes, List<Long> lengths, PieceLayers layers, int piece_length) throws InvalidBEncodingException - Throws:
InvalidBEncodingException
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<MerkleHash>- Specified by:
sizein interfaceList<MerkleHash>- Specified by:
sizein classAbstractCollection<MerkleHash>
-
get
- Specified by:
getin interfaceList<MerkleHash>- Specified by:
getin classAbstractList<MerkleHash>
-