public class ShaMapInner extends ShaMapNode implements Iterable<ShaMapNode>
| 限定符和类型 | 字段和说明 |
|---|---|
protected ShaMapNode[] |
branches |
int |
depth |
hash| 构造器和说明 |
|---|
ShaMapInner(boolean isCopy,
int depth,
int version) |
ShaMapInner(int depth) |
asInner, asLeaf, createHash, invalidate, walkAnyLeavesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic int depth
protected ShaMapNode[] branches
public ShaMapInner(int depth)
public ShaMapInner(boolean isCopy,
int depth,
int version)
protected ShaMapInner copy(int version)
protected ShaMapInner makeInnerOfSameClass(int depth)
protected ShaMapInner makeInnerChild()
protected void setLeaf(ShaMapLeaf leaf)
public void walkLeaves(LeafWalker leafWalker)
public void walkTree(TreeWalker treeWalker)
public void walkHashedTree(HashedTreeWalker walker)
public ShaMapLeaf onlyChildLeaf()
public boolean removeLeaf(Hash256 index)
public ShaMapItem getItem(Hash256 index)
public boolean addItem(Hash256 index, ShaMapItem item)
public boolean updateItem(Hash256 index, ShaMapItem item)
public boolean hasLeaf(Hash256 index)
public ShaMapLeaf getLeaf(Hash256 index)
public boolean addLeaf(ShaMapLeaf leaf)
public boolean updateLeaf(ShaMapLeaf leaf)
public PathToIndex pathToIndex(Hash256 index)
protected void setBranch(Hash256 index, ShaMapNode node)
protected ShaMapNode getBranch(Hash256 index)
public ShaMapNode getBranch(int i)
public ShaMapNode branch(int i)
protected int selectBranch(Hash256 index)
public boolean hasLeaf(int i)
public boolean hasInner(int i)
public boolean hasNone(int i)
public boolean empty()
public boolean isLeaf()
isLeaf 在类中 ShaMapNodepublic boolean isInner()
isInner 在类中 ShaMapNodepublic void toBytesSink(BytesSink sink)
toBytesSink 在类中 ShaMapNodepublic Hash256 hash()
hash 在类中 ShaMapNodepublic ShaMapLeaf getLeafForUpdating(Hash256 leaf)
public Iterator<ShaMapNode> iterator()
iterator 在接口中 Iterable<ShaMapNode>public int branchCount()
Copyright © 2021. All rights reserved.