-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathElem.java
More file actions
32 lines (26 loc) · 693 Bytes
/
Elem.java
File metadata and controls
32 lines (26 loc) · 693 Bytes
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
//This class depicts each element in the bucket
public class Elem {
private int value = 0;
private boolean isFull = false;
public Elem(){}
//Function to set the value of element
public void setValue(int val)
{
value = val;
}
//Function to get the value of element
public int getValue()
{
return value;
}
//Function to set whether element has any value or not
public void setIsFull(boolean val)
{
isFull = val;
}
//Function to get whether element has any value or not
public boolean getIsFull()
{
return isFull;
}
}