Hi,

in my scenario there may be multiple annotations of same type for the
same region. Before I add an annotation I would like to check if such an
annotation already exists.

To accomplish this I use  FSIndex.iterator( newAnnotation ) to get an
iterator which starts at the position of my new (but not added)
annotation. According to the method description the iterator should be
positioned so that previous annotations are less compared to newAnnotation.

However sometimes if I call moveToPrevious() (directly after iterator
creation) I will get (with get()) an annotation (of same type) with same
region as newAnnotation - which in my opinion is not less.

Thus I would like to know if annotations of same type for same region
will trigger some 'unspecified' behavior or if my understanding of the
iterator is wrong or if I stumbled upon a bug?


Kind regards
Timo


-- 

 Timo Boehme
 OntoChem GmbH
 H.-Damerow-Str. 4
 06120 Halle/Saale
 T: +49 345 4780472
 F: +49 345 4780471
 [email protected]

_____________________________________________________________________

 OntoChem GmbH
 Geschäftsführer: Dr. Lutz Weber
 Sitz: Halle / Saale
 Registergericht: Stendal
 Registernummer: HRB 215461
_____________________________________________________________________

Reply via email to