声明地图时,可以选择String或者CharSequence;
Map<String, String> lexicalizationGraph = ChronicleMap
.of(String.class, String.class)
.name("lexicalizations-chronicle-map")
.entries(1_000_000_000L)
.constantKeySizeBySample("bn:14271053n")
.createPersistedTo(file);
String
和之间有什么重要区别CharSequence
吗?