public class SimpleSortedSet extends Object
Constructor and Description |
---|
SimpleSortedSet()
the Contructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(long elValue,
Object o)
add the new annotation to the annotation list for the given offset
Note: if the offset is not in the map new empty list is created and the
annotation is added to it
|
long |
first()
retrive the smallest offset of the array.
|
Object |
get(long elValue)
the get method retrive the List element by offset key given as argument
|
boolean |
isEmpty()
is the map is empty
|
int |
size() |
void |
sort()
sort the offset's array in ascending way
|
SimpleSortedSet |
tailSet(long elValue)
calculate the index of the first element in the offset's array that is
equal or not greater then the given one
|
public SimpleSortedSet()
public Object get(long elValue)
elValue
- the offset to which the list should be retrived.public boolean add(long elValue, Object o)
elValue
- the offset of the annotationo
- the annotation instance to be placed in the listpublic void sort()
public long first()
public SimpleSortedSet tailSet(long elValue)
elValue
- the value to search forpublic boolean isEmpty()
public int size()
Copyright © 2024 GATE. All rights reserved.