Class PropertiesDatabase
java.lang.Object
org.sgrewritten.stargate.database.property.PropertiesDatabase
- All Implemented Interfaces:
StoredPropertiesAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProperty(@NotNull StoredProperty property) Get a property from a stored properties filevoidsetProperty(@NotNull StoredProperty property, String value) Set a property from a stored properties filevoidsetProperty(StoredProperty property, Object value) Set a property from a stored properties file
-
Constructor Details
-
PropertiesDatabase
- Parameters:
fileLocation-The properties file to read
- Throws:
IOException-If unable to read the file
-
-
Method Details
-
getProperty
Description copied from interface:StoredPropertiesAPIGet a property from a stored properties file- Specified by:
getPropertyin interfaceStoredPropertiesAPI- Parameters:
property-The property to get the value of
- Returns:
The value of the property, or otherwise null
-
setProperty
Description copied from interface:StoredPropertiesAPISet a property from a stored properties file- Specified by:
setPropertyin interfaceStoredPropertiesAPI- Parameters:
property-The property to set the value on
value-The value to set the property to
-
setProperty
Description copied from interface:StoredPropertiesAPISet a property from a stored properties file- Specified by:
setPropertyin interfaceStoredPropertiesAPI- Parameters:
property-The property to set the value on
value-The value to set the property to
-