[Biojava-dev] [Bug 2582] New: SimpleRichLocation.contains() method

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Wed Sep 10 08:45:29 UTC 2008


http://bugzilla.open-bio.org/show_bug.cgi?id=2582

           Summary: SimpleRichLocation.contains() method
           Product: BioJava
           Version: live (CVS source)
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: seq
        AssignedTo: biojava-dev at biojava.org
        ReportedBy: avellozo at gmail.com


The next program should return true, but it returns false.
public class Test
{
    public static void main(String[] args) {
        RichLocation loc1 = new SimpleRichLocation(new SimplePosition(1), new
SimplePosition(10), 0);
        RichLocation loc2 = new SimpleRichLocation(new SimplePosition(2), new
SimplePosition(4), 0);
        RichLocation loc3 = new SimpleRichLocation(new SimplePosition(6), new
SimplePosition(8), 0);
        ArrayList a = new ArrayList();
        a.add(loc2);
        a.add(loc3);
        CompoundRichLocation loc4 = new CompoundRichLocation(a);
        System.out.println(loc1.contains(loc4));
    }
}


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the biojava-dev mailing list