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