diff options
author | Keuin <[email protected]> | 2021-01-25 03:12:16 +0800 |
---|---|---|
committer | keuin <[email protected]> | 2021-01-25 03:12:16 +0800 |
commit | a817715ad4f625e355b285d67ee323e8b2006ae4 (patch) | |
tree | 5f9ffa5b18152b7efc056e5b01f9126505b69179 /src/main/java/com/keuin/kbackupfabric/backup/name/PrimitiveBackupFileNameEncoder.java | |
parent | 93494e7e04e05beb4f07cfabdd14c674b97a12e5 (diff) |
Code refactor
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/backup/name/PrimitiveBackupFileNameEncoder.java')
-rw-r--r-- | src/main/java/com/keuin/kbackupfabric/backup/name/PrimitiveBackupFileNameEncoder.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/backup/name/PrimitiveBackupFileNameEncoder.java b/src/main/java/com/keuin/kbackupfabric/backup/name/PrimitiveBackupFileNameEncoder.java index 1deec8f..9e3a97e 100644 --- a/src/main/java/com/keuin/kbackupfabric/backup/name/PrimitiveBackupFileNameEncoder.java +++ b/src/main/java/com/keuin/kbackupfabric/backup/name/PrimitiveBackupFileNameEncoder.java @@ -9,6 +9,11 @@ import java.util.regex.Pattern; public class PrimitiveBackupFileNameEncoder implements BackupFileNameEncoder { private static final String backupFileNamePrefix = "kbackup"; + public static final PrimitiveBackupFileNameEncoder INSTANCE = new PrimitiveBackupFileNameEncoder(); + + private PrimitiveBackupFileNameEncoder() { + } + @Override public String encode(String customName, LocalDateTime time) { if (!isValidCustomName(customName)) |