Example #1
0
 @Override
 protected void saveHelper(List<T> val, IStorage s) {
   GenericListStoreUnit<T> unit = new GenericListStoreUnit<T>(val, signature, io);
   s.put(factName, unit);
 }
Example #2
0
 @Override
 @Nullable
 protected IStoreUnit<List<T>> loadHelper(IStorage s) throws IOException {
   return s.get(factName, new GenericListStoreUnit<T>(io));
 }