com.hazelcast.wan.merkletree

## Class RemoteMerkleTreeView

- java.lang.Object
- - com.hazelcast.wan.merkletree.RemoteMerkleTreeView

-     public class RemoteMerkleTreeView
      extends Object

  Represents the readonly view of a remote Merkle Tree. Used to compare remote and local Merkle trees.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected int` | `depth`
    `protected int` | `leafLevelOrder`
    `protected int[]` | `tree`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `depth()` Returns the depth of the tree
    `int` | `getNodeHash(int nodeOrder)`
    `protected void` | `setNodeHash(int nodeOrder, int hash)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### tree

          protected final int[] tree

    - #### depth

          protected final int depth

    - #### leafLevelOrder

          protected final int leafLevelOrder

  - ### Method Detail

    - #### getNodeHash

          public int getNodeHash(int nodeOrder)

    - #### setNodeHash

          protected void setNodeHash(int nodeOrder,
                                     int hash)

    - #### depth

          public int depth()

      Returns the depth of the tree
      Returns:
        the depth of the tree

Copyright © 2019. All rights reserved.