Exemplo n.º 1
0
 public OneOfLocation(List<Location> locations) {
   super();
   if (locations.isEmpty()) {
     throw new IllegalArgumentException("Need locations to build a OneOfLocation");
   }
   Location l = locations.get(0);
   setStart(l.getStart());
   setEnd(l.getEnd());
   setStrand(l.getStrand());
   setBetweenCompounds(l.isBetweenCompounds());
   setCircular(l.isCircular());
   setSubLocations(locations);
 }