-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNode.java
More file actions
58 lines (47 loc) · 1.04 KB
/
Node.java
File metadata and controls
58 lines (47 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import java.io.Serializable ;
public class Node <K , V> implements Serializable
{
private static final long serialVersionUID = 1L ;
private K __key = null ;
private V __value = null ;
private String __code = "" ;
private double __possibility = 0d ;
public Node (K key , V value)
{
this.__key = key ;
this.__value = value ;
}
public K getKey ()
{
return this.__key ;
}
public V getValue ()
{
return this.__value ;
}
public void setValue (V value)
{
this.__value = value ;
}
public String getCode ()
{
return this.__code ;
}
public void setCode (String code)
{
this.__code = code ;
}
public double getPossibility ()
{
return this.__possibility ;
}
public void setPossibility (double possibility)
{
this.__possibility = possibility ;
}
@Override
public String toString ()
{
return "Key ---> " + this.__key + " --- value ---> " + this.__value ;
}
}