public class ArrayNode
extends HamtNode
Only stores references to other class HamtNode
count: 9 <= count <= 32 If any ArrayNode would store less than 9 elements then that node must be converted
to a class PartialNode
class HamtNode,
class PartialNodepublic ArrayNode(int count,
@NotNull
HamtNode[] nodes)
Only stores references to other class HamtNode
count: 9 <= count <= 32 If any ArrayNode would store less than 9 elements then that node must be converted
to a class PartialNode
count - the number of references heldnodes - holds the referencesclass HamtNode,
class PartialNode@NotNull public java.util.Iterator<tech.codingzen.kata.hamt.InternalEntry> iterator()
public boolean equals(@Nullable
java.lang.Object other)
public int hashCode()
public int getCount()
the number of references held
@NotNull public HamtNode[] getNodes()
holds the references
public int component1()
the number of references held
@NotNull public HamtNode[] component2()
holds the references
@NotNull public ArrayNode copy(int count, @NotNull HamtNode[] nodes)
Only stores references to other class HamtNode
count: 9 <= count <= 32 If any ArrayNode would store less than 9 elements then that node must be converted
to a class PartialNode
count - the number of references heldnodes - holds the referencesclass HamtNode,
class PartialNode@NotNull public java.lang.String toString()
Only stores references to other class HamtNode
count: 9 <= count <= 32 If any ArrayNode would store less than 9 elements then that node must be converted
to a class PartialNode
class HamtNode,
class PartialNode