-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLinkedTree.java
More file actions
57 lines (42 loc) · 1.1 KB
/
LinkedTree.java
File metadata and controls
57 lines (42 loc) · 1.1 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
package net.posick;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlRootElement(name = "LinkedTree")
@XmlType(name="LinkedTree", propOrder = {"value"})
@XmlAccessorType(XmlAccessType.NONE)
public class LinkedTree<V> extends AbstractTree<LinkedTree<V>, V>
{
private static final long serialVersionUID = -4969044733002136970L;
@XmlElement(name="Value")
private V value;
public LinkedTree()
{
super();
}
public LinkedTree(V value)
{
super(value);
}
public LinkedTree(LinkedTree<V> parent, V value)
{
super(parent, value);
}
public LinkedTree(List<V> ancestors, V value)
{
super(ancestors, value);
}
@Override
public V getValue()
{
return value;
}
@Override
public void setValue(V value)
{
this.value = value;
}
}