code: public List<Comparable<?>> getConditionValues(final List<?> parameters) {
          List<Comparable<?>> result = new LinkedList<>(positionValueMap.values());
          for (Entry<Integer, Integer> entry : positionIndexMap.entrySet()) {
              Object parameter = parameters.get(entry.getValue());
              if (!(parameter instanceof Comparable<?>)) {
                  throw new ShardingException("Parameter `%s` should extends Comparable for sharding value.", parameter);
              }
              if (entry.getKey() < result.size()) {
                  result.add(entry.getKey(), (Comparable<?>) parameter);
              } else {
                  result.add((Comparable<?>) parameter);
              }
          }
          return result;
      }
docs: Get condition values.
  
  @param parameters parameters
  @return condition values