Exemplo n.º 1
0
 static void removeFields(List<Fixture> factDatas, String field) {
   for (Fixture fixture : factDatas) {
     if (fixture instanceof FactData) {
       FactData factData = (FactData) fixture;
       for (Iterator<Field> fieldDataIterator = factData.getFieldData().iterator();
           fieldDataIterator.hasNext(); ) {
         if (fieldDataIterator.next().getName().equals(field)) {
           fieldDataIterator.remove();
         }
       }
     }
   }
 }
Exemplo n.º 2
0
 private void accumulateDataForFactData(Map<String, FixtureList> dataInput, FactData fd) {
   if (!dataInput.containsKey(fd.getType())) {
     dataInput.put(fd.getType(), new FixtureList());
   }
   dataInput.get(fd.getType()).add(fd);
 }