Skip to content

Commit ee4d088

Browse files
author
sailok.chinta
committed
feat: fix naming convention
1 parent 5e2a050 commit ee4d088

File tree

1 file changed

+7
-7
lines changed
  • src/main/java/com/thealgorithms/datastructures/tries

1 file changed

+7
-7
lines changed

src/main/java/com/thealgorithms/datastructures/tries/TrieNode.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
*/
1313
public class TrieNode {
1414
private Map<Character, TrieNode> children;
15-
private char letter;
15+
private char value;
1616
private boolean end;
1717

18-
public TrieNode(char letter) {
19-
this.letter = letter;
18+
public TrieNode(char value) {
19+
this.value = value;
2020
this.children = new HashMap<>();
2121
this.end = false;
2222
}
@@ -29,12 +29,12 @@ public void setChildren(Map<Character, TrieNode> children) {
2929
this.children = children;
3030
}
3131

32-
public char getLetter() {
33-
return letter;
32+
public char getValue() {
33+
return value;
3434
}
3535

36-
public void setLetter(char letter) {
37-
this.letter = letter;
36+
public void setValue(char value) {
37+
this.value = value;
3838
}
3939

4040
public boolean isEnd() {

0 commit comments

Comments
 (0)