This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ebad9f
commit 6759a69
Showing
6 changed files
with
128 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
application-main/src/main/java/com/zyneonstudios/application/utils/FileStorage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package com.zyneonstudios.application.utils; | ||
|
||
import live.nerotv.shademebaby.file.Config; | ||
|
||
public class FileStorage implements Storage { | ||
|
||
private final Config config; | ||
|
||
public FileStorage(String path) { | ||
this.config = new Config(path); | ||
} | ||
|
||
@Override | ||
public Object get(String path) { | ||
return config.get(path); | ||
} | ||
|
||
@Override | ||
public boolean getBool(String path) { | ||
return config.getBool(path); | ||
} | ||
|
||
@Override | ||
public Boolean getBoolean(String path) { | ||
return config.getBoolean(path); | ||
} | ||
|
||
@Override | ||
public double getDoub(String path) { | ||
return config.getDoub(path); | ||
} | ||
|
||
@Override | ||
public Double getDouble(String path) { | ||
return config.getDouble(path); | ||
} | ||
|
||
@Override | ||
public int getInt(String path) { | ||
return config.getInt(path); | ||
} | ||
|
||
@Override | ||
public Integer getInteger(String path) { | ||
return config.getInteger(path); | ||
} | ||
|
||
@Override | ||
public String getString(String path) { | ||
return config.getString(path); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters