[Biojava-l] annotation types

Matthew Pocock matthew_pocock@yahoo.co.uk
Sat, 03 Aug 2002 22:49:13 +0100


Hi.

I'm adding isExactInstanceOf to AnnotationType which is the same as 
isInstanceOf with the additional restriction that there are no extra 
annotations. E.g. if you have type A { foo => Color, bar => int } and 
two Annotations B { foo => red, bar => 1 } and C { foo => green, bar => 
4, baz => 0.9 } then:

A.isInstanceOf(B) == true;
A.isInstanceOf(C) == true;

A.isExactInstanceOf(B) == true;
A.isExactInstanceOf(C) == false;

I hope this is usefull for somebody other than me.

Matthew

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com