1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.commons.collections4.set;
18
19 import java.util.Iterator;
20 import java.util.NavigableSet;
21
22
23
24
25
26
27
28
29
30
31 public abstract class AbstractNavigableSetDecorator<E>
32 extends AbstractSortedSetDecorator<E>
33 implements NavigableSet<E> {
34
35
36 private static final long serialVersionUID = 20150528L;
37
38
39
40
41 protected AbstractNavigableSetDecorator() {
42 }
43
44
45
46
47
48
49
50 protected AbstractNavigableSetDecorator(final NavigableSet<E> set) {
51 super(set);
52 }
53
54 @Override
55 public E ceiling(final E e) {
56 return decorated().ceiling(e);
57 }
58
59
60
61
62
63
64 @Override
65 protected NavigableSet<E> decorated() {
66 return (NavigableSet<E>) super.decorated();
67 }
68
69 @Override
70 public Iterator<E> descendingIterator() {
71 return decorated().descendingIterator();
72 }
73
74 @Override
75 public NavigableSet<E> descendingSet() {
76 return decorated().descendingSet();
77 }
78
79 @Override
80 public E floor(final E e) {
81 return decorated().floor(e);
82 }
83
84 @Override
85 public NavigableSet<E> headSet(final E toElement, final boolean inclusive) {
86 return decorated().headSet(toElement, inclusive);
87 }
88
89 @Override
90 public E higher(final E e) {
91 return decorated().higher(e);
92 }
93
94 @Override
95 public E lower(final E e) {
96 return decorated().lower(e);
97 }
98
99 @Override
100 public E pollFirst() {
101 return decorated().pollFirst();
102 }
103
104 @Override
105 public E pollLast() {
106 return decorated().pollLast();
107 }
108
109 @Override
110 public NavigableSet<E> subSet(final E fromElement, final boolean fromInclusive, final E toElement,
111 final boolean toInclusive) {
112 return decorated().subSet(fromElement, fromInclusive, toElement, toInclusive);
113 }
114
115 @Override
116 public NavigableSet<E> tailSet(final E fromElement, final boolean inclusive) {
117 return decorated().tailSet(fromElement, inclusive);
118 }
119
120 }