@@ -179,13 +179,8 @@ default float getFloat(String columnName) {
179
179
/**
180
180
* @param columnIndex index of the column
181
181
* @return the value of a column with type T. return value(T) can be null.
182
- * <p>
183
- * Example:
184
- * <p>
185
- * Struct row = ...
186
- * String name = row.getOrNull(1, row::getString)
187
- * </p>
188
- * </p>
182
+ * <p>Example:
183
+ * <p>Struct row = ... String name = row.getOrNull(1, row::getString)
189
184
*/
190
185
default <T > T getOrNull (int columnIndex , Function <Integer , T > function ) {
191
186
return isNull (columnIndex ) ? null : function .apply (columnIndex );
@@ -194,13 +189,8 @@ default <T> T getOrNull(int columnIndex, Function<Integer, T> function) {
194
189
/**
195
190
* @param columnName index of the column
196
191
* @return the value of a column with type T. return value(T) can be null.
197
- * <p>
198
- * Example:
199
- * <p>
200
- * Struct row = ...
201
- * String name = row.getOrNull("name", row::getString)
202
- * </p>
203
- * </p>
192
+ * <p>Example:
193
+ * <p>Struct row = ... String name = row.getOrNull("name", row::getString)
204
194
*/
205
195
default <T > T getOrNull (String columnName , Function <String , T > function ) {
206
196
return isNull (columnName ) ? null : function .apply (columnName );
@@ -209,13 +199,8 @@ default <T> T getOrNull(String columnName, Function<String, T> function) {
209
199
/**
210
200
* @param columnIndex index of the column
211
201
* @return the value of a column with type T. if column value is null, returns default value.
212
- * <p>
213
- * Example:
214
- * <p>
215
- * Struct row = ...
216
- * String name = row.getOrDefault(1, row::getString, "")
217
- * </p>
218
- * </p>
202
+ * <p>Example:
203
+ * <p>Struct row = ... String name = row.getOrDefault(1, row::getString, "")
219
204
*/
220
205
default <T > T getOrDefault (int columnIndex , Function <Integer , T > function , T defaultValue ) {
221
206
return isNull (columnIndex ) ? defaultValue : function .apply (columnIndex );
@@ -224,13 +209,8 @@ default <T> T getOrDefault(int columnIndex, Function<Integer, T> function, T def
224
209
/**
225
210
* @param columnName name of the column
226
211
* @return the value of a column with type T. if column value is null, returns default value.
227
- * <p>
228
- * Example:
229
- * <p>
230
- * Struct row = ...
231
- * String name = row.getOrDefault("name", row::getString, "")
232
- * </p>
233
- * </p>
212
+ * <p>Example:
213
+ * <p>Struct row = ... String name = row.getOrDefault("name", row::getString, "")
234
214
*/
235
215
default <T > T getOrDefault (String columnName , Function <String , T > function , T defaultValue ) {
236
216
return isNull (columnName ) ? defaultValue : function .apply (columnName );
0 commit comments