mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-230 - updated readme
This commit is contained in:
@@ -468,10 +468,10 @@ the off heap data structures directly, this reduced serialisation can give you a
|
||||
Below we show you how you can work directly with the off heap entries.
|
||||
|
||||
``` java
|
||||
ChronicleMap<CharSequence, BondVOInterface> chm = ChronicleMapBuilder
|
||||
.of(String.class, BondVOInterface.class)
|
||||
.keySize(10)
|
||||
.create();
|
||||
ChronicleMap<CharSequence, BondVOInterface> map = ChronicleMapBuilder
|
||||
.of(String.class, BondVOInterface.class)
|
||||
.keySize(10)
|
||||
.create();
|
||||
```
|
||||
|
||||
notice that the
|
||||
|
||||
@@ -89,7 +89,7 @@ public class CHMUseCasesTest {
|
||||
public void testCharSequenceCharSequenceMap() throws ExecutionException, InterruptedException {
|
||||
try (ChronicleMap<CharSequence, CharSequence> map = ChronicleMapBuilder
|
||||
.of(CharSequence.class, CharSequence.class) // for testing purposes only
|
||||
.defaultValue("")
|
||||
// .defaultValue("")
|
||||
.create()) {
|
||||
map.put("Hello", "World");
|
||||
StringBuilder key = new StringBuilder();
|
||||
|
||||
Reference in New Issue
Block a user