T
- entry type.public class CheckpointFile<T> extends Object
CheckpointFile.EntryFormatter
is used
to convert the entry into a string and vice versa.Modifier and Type | Class and Description |
---|---|
static interface |
CheckpointFile.EntryFormatter<T>
This is used to convert the given entry of type
T into a string and vice versa. |
Constructor and Description |
---|
CheckpointFile(File file,
int version,
CheckpointFile.EntryFormatter<T> formatter) |
public CheckpointFile(File file, int version, CheckpointFile.EntryFormatter<T> formatter) throws IOException
IOException
public void write(Collection<T> entries) throws IOException
IOException
public List<T> read() throws IOException
IOException