public List toList()

in google-cloud-spanner-hibernate-dialect/src/main/java/com/google/cloud/spanner/hibernate/types/SpannerTimestampArray.java [44:51]


  public List<Instant> toList(Array array) throws SQLException {
    Timestamp[] dates = (Timestamp[]) array.getArray();
    List<Instant> result = new ArrayList<>(dates.length);
    for (int i = 0; i < dates.length; i++) {
      result.add(dates[i] == null ? null : Instant.ofEpochMilli(dates[i].getTime()));
    }
    return result;
  }