|
31 | 31 | import java.time.Instant; |
32 | 32 | import java.time.LocalDate; |
33 | 33 | import java.util.ArrayList; |
34 | | -import java.util.Arrays; |
35 | 34 | import java.util.Collection; |
36 | 35 | import java.util.HashSet; |
37 | 36 | import java.util.List; |
|
41 | 40 | import java.util.Spliterator; |
42 | 41 | import java.util.function.BiFunction; |
43 | 42 | import java.util.function.Function; |
44 | | -import java.util.function.IntFunction; |
45 | 43 | import java.util.function.Supplier; |
46 | 44 | import java.util.stream.Stream; |
47 | 45 | import java.util.stream.StreamSupport; |
@@ -874,27 +872,6 @@ static RowParser<String> csvLine() { |
874 | 872 | }; |
875 | 873 | } |
876 | 874 |
|
877 | | - /** |
878 | | - * Creates a {@link RowParser} for the given record {@code type}. |
879 | | - * {@snippet lang="java": |
880 | | - * // Handling different column names and column types: |
881 | | - * // [title, author, isbn, pages, published_at] |
882 | | - * final RowParser<Book> parser = RowParser.record(Book.class); |
883 | | - * } |
884 | | - * |
885 | | - * @see Records#parser(Class) |
886 | | - * |
887 | | - * @param type the record type |
888 | | - * @param <T> the record type |
889 | | - * @return a new row-parser for the given record {@code type} |
890 | | - * @throws NullPointerException if one of the arguments is {@code null} |
891 | | - * @deprecated Use {@link #record(Class)} instead |
892 | | - */ |
893 | | - @Deprecated(since = "2.1", forRemoval = true) |
894 | | - static <T extends Record> RowParser<T> of(final Class<T> type) { |
895 | | - return Records.parser(type); |
896 | | - } |
897 | | - |
898 | 875 | /** |
899 | 876 | * Returns a parser for the given record {@code type}. |
900 | 877 | * {@snippet lang="java": |
|
0 commit comments