public boolean contains ( Location other ) { if ( isSameStrand ( other ) ) { return ( mStart <= other . mStart && mEnd >= other . mEnd ) ; } else { throw new IllegalArgumentException ( "Locations are on opposite strands." ) ; } }
Check if this location contains the other .