Javolution 6.0.0 java
AtomicSortedSetImpl.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
.
AtomicSetImpl
;
12
import
javolution
.
util
.
service
.
SortedSetService
;
13
17
public
class
AtomicSortedSetImpl
<E>
extends
AtomicSetImpl
<E> implements
18
SortedSetService
<E> {
19
20
private
static
final
long
serialVersionUID
= 0x600L;
// Version.
21
22
public
AtomicSortedSetImpl
(
SortedSetService<E>
target
) {
23
super(
target
);
24
}
25
26
@Override
27
public
E
first
() {
28
return
targetView
().first();
29
}
30
31
@Override
32
public
SortedSetService<E>
headSet
(E toElement) {
33
return
new
SubSortedSetImpl<E>
(
this
,
null
, toElement);
34
}
35
36
@Override
37
public
E
last
() {
38
return
targetView
().last();
39
}
40
41
@Override
42
public
SortedSetService<E>
subSet
(E fromElement, E toElement) {
43
return
new
SubSortedSetImpl<E>
(
this
, fromElement, toElement);
44
}
45
46
@Override
47
public
SortedSetService<E>
tailSet
(E fromElement) {
48
return
new
SubSortedSetImpl<E>
(
this
, fromElement,
null
);
49
}
50
51
@Override
52
public
SortedSetService<E>
threadSafe
() {
53
return
this
;
54
}
55
56
@Override
57
protected
SortedSetService<E>
targetView
() {
58
return
(
SortedSetService<E>
) super.targetView();
59
}
60
61
}
javolution.util.internal.set.AtomicSetImpl
Definition:
AtomicSetImpl.java:18
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
Definition:
AtomicSetImpl.java:9
javolution.util.internal.set.sorted.AtomicSortedSetImpl.serialVersionUID
static final long serialVersionUID
Definition:
AtomicSortedSetImpl.java:20
javolution.util.internal.set.sorted.AtomicSortedSetImpl.last
E last()
Definition:
AtomicSortedSetImpl.java:37
javolution.util.internal.set.sorted.AtomicSortedSetImpl.tailSet
SortedSetService< E > tailSet(E fromElement)
Definition:
AtomicSortedSetImpl.java:47
javolution.util.internal.set.sorted.AtomicSortedSetImpl.AtomicSortedSetImpl
AtomicSortedSetImpl(SortedSetService< E > target)
Definition:
AtomicSortedSetImpl.java:22
javolution.util.internal.collection.CollectionView.target
CollectionService< E > target
Definition:
CollectionView.java:33
javolution.util.internal.set.sorted.AtomicSortedSetImpl
Definition:
AtomicSortedSetImpl.java:18
javolution.util.internal.set.sorted.AtomicSortedSetImpl.subSet
SortedSetService< E > subSet(E fromElement, E toElement)
Definition:
AtomicSortedSetImpl.java:42
javolution.util.internal.set.sorted.AtomicSortedSetImpl.threadSafe
SortedSetService< E > threadSafe()
Definition:
AtomicSortedSetImpl.java:52
javolution.util.internal.set.sorted.AtomicSortedSetImpl.first
E first()
Definition:
AtomicSortedSetImpl.java:27
javolution.util.internal.set.sorted.AtomicSortedSetImpl.headSet
SortedSetService< E > headSet(E toElement)
Definition:
AtomicSortedSetImpl.java:32
javolution.util.internal.set.sorted.AtomicSortedSetImpl.targetView
SortedSetService< E > targetView()
Definition:
AtomicSortedSetImpl.java:57
javolution.util
Definition:
FastBitSet.java:9
core-java
src
main
java
javolution
util
internal
set
sorted
AtomicSortedSetImpl.java
Generated by
1.8.18