public class FilePathUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static File |
FOLDER
Determines where the files will be stored.
|
| Modifier and Type | Method and Description |
|---|---|
File |
bidderFilePath(long worldId,
long populationId,
long bidderId) |
Collection<Long> |
getBidderIds(long worldId,
long populationId) |
static FilePathUtils |
getInstance() |
Collection<Long> |
getPopulationIds(long worldId) |
File |
populationFolderPath(long worldId,
long populationId) |
String |
readFileToString(File file) |
File |
worldFilePath(long worldId) |
File |
worldFolderPath(long worldId) |
void |
writeStringToFile(File file,
String content) |
public static File FOLDER
public static FilePathUtils getInstance()
public File bidderFilePath(long worldId, long populationId, long bidderId)
public File populationFolderPath(long worldId, long populationId)
public File worldFolderPath(long worldId)
public File worldFilePath(long worldId)
public Collection<Long> getPopulationIds(long worldId)
public Collection<Long> getBidderIds(long worldId, long populationId)
Copyright © 2017. All rights reserved.