-
Notifications
You must be signed in to change notification settings - Fork 8
/
Entry.java
45 lines (43 loc) · 953 Bytes
/
Entry.java
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
//*******************************************************
// Class Entry.java
// Class that represents an implementation of a Entry for hase table in java
// Author: liron mizrahi
//*******************************************************
public class Entry
{
int _key;
Object _value;
Entry _next;
/**
* constructor of the class
* @param int
* @return None
*/
public Entry(int key, Object value)
{
_key = key;
_value = value;
}// end of method Entry
public Entry()
{
_next = null;
}// end of method entry
/**
* Method return the key
* @param None
* @return int
*/
public int GetKey()
{
return _key;
}// end of method KetKey
/**
* Method return the value
* @param None
* @return Object
*/
public Object GetValue()
{
return _value;
}// end of method GetValue
}// end of class Entry