Class CsvRecord
java.lang.Object
io.leandev.appfuse.csv.CsvRecord
- All Implemented Interfaces:
Record
CSV 資料記錄
封裝單筆 CSV 資料,提供名稱存取與類型轉換功能。 實作框架定義的 Record 介面,不暴露底層實作(Jackson CSV)類型。
使用範例
// 名稱存取
String username = record.getAsString("username");
Integer age = record.getAsInteger("age");
BigDecimal salary = record.getAsBigDecimal("salary");
// 索引存取
String value = record.getAsString(0);
- Since:
- 1.0
-
Field Summary
Fields inherited from interface Record
converters, localDateTimeConverter -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Record
getAsBigDecimal, getAsBigDecimal, getAsBigInteger, getAsBigInteger, getAsBoolean, getAsBoolean, getAsDate, getAsDate, getAsDouble, getAsDouble, getAsFloat, getAsFloat, getAsInteger, getAsInteger, getAsLocalDateTime, getAsLocalDateTime, getAsLong, getAsLong, getAsString, getAsString, getValue, isEmpty
-
Constructor Details
-
CsvRecord
-
-
Method Details
-
indexOf
-
getValue
-
getValue
-
size
-
getValues
-
get
-
getAs
-