public Integer convert()

in cloud-spanner-r2dbc/src/main/java/com/google/cloud/spanner/r2dbc/v2/LongIntegerConverter.java [29:40]


  public Integer convert(Object input) {
    if (!canConvert(input.getClass(), Integer.class)) {
      throw new ConversionFailureException(
          String.format("Unable to convert %s to %s", ((Object) input.getClass()).getClass(),
              Integer.class));
    }
    long val = (Long) input;
    if (val > Integer.MAX_VALUE || val < Integer.MIN_VALUE) {
      throw new ConversionFailureException(String.format("%d is out of range for Integer", val));
    }
    return (int) val;
  }