【文件属性】:
文件名称:records:持久的、类型安全的、异构的映射
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-21 14:10:05
Java
#记录
持久的、类型安全的、异构的映射。
依赖于的持久集合。
##用法
// Specifying a datastructure
interface Thing {
Key< String> name = new Key<> ( " name " );
Key< Double> price = new Key<> ( " price " );
}
// Constructing a record
Rec< Thing> thing = Rec . create(name, " stuff " , price, 14d );
Rec< Thing> sameThing = new Rec< Thing> () . with(name, " stuff " ) . with(price, 14d );
// Accessing data
Double myPrice
【文件预览】:
records-master
----src()
--------test()
--------main()
----README.md(2KB)
----pom.xml(2KB)
----.gitignore(19B)