mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Code tidy a wider set of code.
This commit is contained in:
@@ -25,7 +25,7 @@ interface HashSplitting extends Serializable {
|
||||
int segmentIndex(long hash);
|
||||
long segmentHash(long hash);
|
||||
|
||||
static class Splitting {
|
||||
class Splitting {
|
||||
static HashSplitting forSegments(int segments) {
|
||||
assert segments > 0;
|
||||
if (segments == 1)
|
||||
@@ -50,7 +50,7 @@ interface HashSplitting extends Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
static class ForPowerOf2Segments implements HashSplitting {
|
||||
class ForPowerOf2Segments implements HashSplitting {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
private final int mask;
|
||||
@@ -73,7 +73,7 @@ interface HashSplitting extends Serializable {
|
||||
}
|
||||
|
||||
//TODO optimize?
|
||||
static class ForNonPowerOf2Segments implements HashSplitting {
|
||||
class ForNonPowerOf2Segments implements HashSplitting {
|
||||
private static final long serialVersionUID = 0L;
|
||||
|
||||
private static final int MASK = Integer.MAX_VALUE;
|
||||
|
||||
Reference in New Issue
Block a user