mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Update to newer Core, Bytes & Wire dependency versions; make all enum marshallers ordinary classes with static INSTANCE fields, because of difficulties with Wire serialization of enums
This commit is contained in:
@@ -39,8 +39,10 @@ public interface HashSplitting extends Marshallable {
|
||||
int segmentIndex(long hash);
|
||||
long segmentHash(long hash);
|
||||
|
||||
enum ForSingleSegment implements HashSplitting, EnumMarshallable<ForSingleSegment> {
|
||||
INSTANCE;
|
||||
final class ForSingleSegment implements HashSplitting, EnumMarshallable<ForSingleSegment> {
|
||||
public static final ForSingleSegment INSTANCE = new ForSingleSegment();
|
||||
|
||||
private ForSingleSegment() {}
|
||||
|
||||
@Override
|
||||
public int segmentIndex(long hash) {
|
||||
|
||||
Reference in New Issue
Block a user