mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Improve startsWith() implementations
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ public abstract class BasicCopyingMetaBytesInterop<E, W> implements MetaBytesInt
|
||||
|
||||
@Override
|
||||
public boolean startsWith(W writer, Bytes bytes, E e) {
|
||||
return bytes.startsWith(buffer.buffer);
|
||||
return BytesBytesInterop.INSTANCE.startsWith(bytes, buffer.buffer);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1354,7 +1354,7 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super KI>,
|
||||
|
||||
@Override
|
||||
public boolean startsWith(Void interop, Bytes bytes, Bytes value) {
|
||||
return bytes.startsWith(value);
|
||||
return BytesBytesInterop.INSTANCE.startsWith(bytes, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user