Package nxt.blockchain.atomictxs
Class AtomicChain<T extends Transaction>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
nxt.blockchain.atomictxs.AtomicChain<T>
- Type Parameters:
T- Type of transaction
- All Implemented Interfaces:
Comparable<AtomicChain<T>>,Iterable<T>,Collection<T>,List<T>
public class AtomicChain<T extends Transaction>
extends AbstractList<T>
implements Comparable<AtomicChain<T>>
Represents a chain of atomic transactions. The transactions in the chain
are ordered from child to parent, with the root being the last transaction in the chain.
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(AtomicChain<T> other) booleanget(int i) longintlongbooleaninthashCode()booleanstatic <T extends Transaction>
AtomicChain<T>of(T... elements) intsize()toString()Methods inherited from class java.util.AbstractList
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods 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, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
FULL_HASH_COMPARATOR
-
-
Method Details
-
get
- Specified by:
getin interfaceList<T extends Transaction>- Specified by:
getin classAbstractList<T extends Transaction>
-
size
public int size()- Specified by:
sizein interfaceCollection<T extends Transaction>- Specified by:
sizein interfaceList<T extends Transaction>- Specified by:
sizein classAbstractCollection<T extends Transaction>
-
isComplete
public boolean isComplete() -
hasAllChildren
public boolean hasAllChildren() -
getRootTransaction
-
getComparableData
-
getFullSize
public int getFullSize() -
getTotalFee
public long getTotalFee() -
getFeePerByte
public long getFeePerByte() -
equals
- Specified by:
equalsin interfaceCollection<T extends Transaction>- Specified by:
equalsin interfaceList<T extends Transaction>- Overrides:
equalsin classAbstractList<T extends Transaction>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<T extends Transaction>- Specified by:
hashCodein interfaceList<T extends Transaction>- Overrides:
hashCodein classAbstractList<T extends Transaction>
-
compareTo
- Specified by:
compareToin interfaceComparable<T extends Transaction>
-
toString
- Overrides:
toStringin classAbstractCollection<T extends Transaction>
-
of
-