From 8a1bcc2a7d49bd4477ec0aad6104570bce3a7be5 Mon Sep 17 00:00:00 2001 From: Rob Austin Date: Thu, 26 Mar 2020 08:54:46 +0000 Subject: [PATCH] changed to examplePutAndGet --- .../openhft/chronicle/map/example/StringArrayExample.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/net/openhft/chronicle/map/example/StringArrayExample.java b/src/test/java/net/openhft/chronicle/map/example/StringArrayExample.java index fa65d2a88..3f027bbb2 100644 --- a/src/test/java/net/openhft/chronicle/map/example/StringArrayExample.java +++ b/src/test/java/net/openhft/chronicle/map/example/StringArrayExample.java @@ -28,7 +28,7 @@ public class StringArrayExample { } @Test - public void simpleLoggingTest() { + public void examplePutAndGet() { ChronicleMap map = ChronicleMapBuilder .of(Integer.class, CharSequenceArray.class) .entries(100) @@ -38,12 +38,12 @@ public class StringArrayExample { map.put(1, charSequenceArray); } { - // change the value in the array + // compute - change the value in the array map.compute(1, this::setToHello); } { - // read the value + // get - read the value CharSequence charSequence = map.getUsing(1, charSequenceArray).getCharSequenceWrapperAt(1).getCharSequence(); System.out.println(charSequence); }