-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from h6x0r/reworked-patricia-tree
Reworked patricia tree
- Loading branch information
Showing
10 changed files
with
232 additions
and
208 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
cell/src/main/java/org/ton/java/cell/PatriciaTreeNode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.ton.java.cell; | ||
|
||
public class PatriciaTreeNode { | ||
String prefix; | ||
int maxPrefixLength; | ||
Node leafNode; | ||
PatriciaTreeNode left; | ||
PatriciaTreeNode right; | ||
|
||
PatriciaTreeNode(String prefix, int maxPrefixLength, Node leafNode, PatriciaTreeNode left, PatriciaTreeNode right) { | ||
this.prefix = prefix; | ||
this.maxPrefixLength = maxPrefixLength; | ||
this.leafNode = leafNode; | ||
this.left = left; | ||
this.right = right; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.