mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-167 simplified the map builder by making "file" very much an option parameter, is it not REQUIRED for all types of maps. Also updated the many of the TCP replication test to remove the user of file() as its simply not required for this in many cases.
This commit is contained in:
@@ -261,9 +261,9 @@ public class ChronicleSetBuilder<E>
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChronicleSet<E> create(File file) throws IOException {
|
||||
final ChronicleMap<E, DummyValue> map = chronicleMapBuilder.create(file);
|
||||
return new SetFromMap<E>(map);
|
||||
public ChronicleSetBuilder<E> file(File file) throws IOException {
|
||||
chronicleMapBuilder.file(file);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -272,5 +272,7 @@ public class ChronicleSetBuilder<E>
|
||||
return new SetFromMap<E>(map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user