code: private static int compareEntry(ArrayList<Entry> entries, int entry, int target) {
      return entries.get(entry).getGeneratedColumn() - target;
    }
docs: Compare an array entry's column value to the target column value.