Javolution 6.0.0 java
UnmodifiableSortedSetImpl.java
Go to the documentation of this file.
1
/*
2
* Javolution - Java(TM) Solution for Real-Time and Embedded Systems
3
* Copyright (C) 2012 - Javolution (http://javolution.org/)
4
* All rights reserved.
5
*
6
* Permission to use, copy, modify, and distribute this software is
7
* freely granted, provided that this notice is preserved.
8
*/
9
package
javolution.util.internal.set.sorted;
10
11
import
javolution
.
util
.
internal
.
set
.
UnmodifiableSetImpl
;
12
import
javolution
.
util
.
service
.
SetService
;
13
import
javolution
.
util
.
service
.
SortedSetService
;
14
18
public
class
UnmodifiableSortedSetImpl
<E>
extends
UnmodifiableSetImpl
<E>
19
implements
SortedSetService
<E> {
20
21
private
static
final
long
serialVersionUID
= 0x600L;
// Version.
22
23
public
UnmodifiableSortedSetImpl
(
SetService<E>
target
) {
24
super(
target
);
25
}
26
27
@Override
28
public
E
first
() {
29
return
target
().first();
30
}
31
32
@Override
33
public
SortedSetService<E>
headSet
(E toElement) {
34
return
new
SubSortedSetImpl<E>
(
this
,
null
, toElement);
35
}
36
37
@Override
38
public
E
last
() {
39
return
target
().last();
40
}
41
42
@Override
43
public
SortedSetService<E>
subSet
(E fromElement, E toElement) {
44
return
new
SubSortedSetImpl<E>
(
this
, fromElement, toElement);
45
}
46
47
@Override
48
public
SortedSetService<E>
tailSet
(E fromElement) {
49
return
new
SubSortedSetImpl<E>
(
this
, fromElement,
null
);
50
}
51
52
@Override
53
public
SortedSetService<E>
threadSafe
() {
54
return
this
;
55
}
56
57
@Override
58
protected
SortedSetService<E>
target
() {
59
return
(
SortedSetService<E>
) super.target();
60
}
61
}
javolution
javolution.util.internal
javolution.util.service
Definition:
BitSetService.java:9
javolution.util.service.SortedSetService
Definition:
SortedSetService.java:19
javolution.util.internal.set.sorted.SubSortedSetImpl
Definition:
SubSortedSetImpl.java:20
javolution.util.internal.set.sorted.UnmodifiableSortedSetImpl.headSet
SortedSetService< E > headSet(E toElement)
Definition:
UnmodifiableSortedSetImpl.java:33
javolution.util.internal.set
Definition:
AtomicSetImpl.java:9
javolution.util.internal.set.sorted.UnmodifiableSortedSetImpl.serialVersionUID
static final long serialVersionUID
Definition:
UnmodifiableSortedSetImpl.java:21
javolution.util.internal.set.sorted.UnmodifiableSortedSetImpl.UnmodifiableSortedSetImpl
UnmodifiableSortedSetImpl(SetService< E > target)
Definition:
UnmodifiableSortedSetImpl.java:23
javolution.util.internal.set.sorted.UnmodifiableSortedSetImpl.target
SortedSetService< E > target()
Definition:
UnmodifiableSortedSetImpl.java:58
javolution.util.internal.set.sorted.UnmodifiableSortedSetImpl
Definition:
UnmodifiableSortedSetImpl.java:19
javolution.util.internal.set.sorted.UnmodifiableSortedSetImpl.last
E last()
Definition:
UnmodifiableSortedSetImpl.java:38
javolution.util.internal.set.sorted.UnmodifiableSortedSetImpl.threadSafe
SortedSetService< E > threadSafe()
Definition:
UnmodifiableSortedSetImpl.java:53
javolution.util.internal.set.sorted.UnmodifiableSortedSetImpl.tailSet
SortedSetService< E > tailSet(E fromElement)
Definition:
UnmodifiableSortedSetImpl.java:48
javolution.util.internal.set.sorted.UnmodifiableSortedSetImpl.first
E first()
Definition:
UnmodifiableSortedSetImpl.java:28
javolution.util.internal.set.UnmodifiableSetImpl
Definition:
UnmodifiableSetImpl.java:18
javolution.util.service.SetService
Definition:
SetService.java:19
javolution.util.internal.set.sorted.UnmodifiableSortedSetImpl.subSet
SortedSetService< E > subSet(E fromElement, E toElement)
Definition:
UnmodifiableSortedSetImpl.java:43
javolution.util
Definition:
FastBitSet.java:9
core-java
src
main
java
javolution
util
internal
set
sorted
UnmodifiableSortedSetImpl.java
Generated by
1.8.18