diff --git a/src/mightypork/utils/config/propmgr/Property.java b/src/mightypork/utils/config/propmgr/Property.java index 20b1c59..bea041a 100644 --- a/src/mightypork/utils/config/propmgr/Property.java +++ b/src/mightypork/utils/config/propmgr/Property.java @@ -78,7 +78,7 @@ public abstract class Property { * * @return the value */ - public final T getValue() + public T getValue() { return value; } @@ -92,7 +92,7 @@ public abstract class Property { * @throws ClassCastException in case of incompatible type. */ @SuppressWarnings("unchecked") - public final void setValue(Object value) + public void setValue(Object value) { this.value = (T) value; } @@ -103,7 +103,7 @@ public abstract class Property { * * @return the comment text (can be null if no comment is defined) */ - public final String getComment() + public String getComment() { return comment; } @@ -114,7 +114,7 @@ public abstract class Property { * * @return property key */ - public final String getKey() + public String getKey() { return key; } diff --git a/src/mightypork/utils/config/propmgr/PropertyManager.java b/src/mightypork/utils/config/propmgr/PropertyManager.java index be13927..782e39e 100644 --- a/src/mightypork/utils/config/propmgr/PropertyManager.java +++ b/src/mightypork/utils/config/propmgr/PropertyManager.java @@ -193,9 +193,9 @@ public class PropertyManager { * @param d default value * @param comment the in-file comment */ - public void putBoolean(String k, boolean d, String comment) + public void addBoolean(String k, boolean d, String comment) { - putProperty(new BooleanProperty(k, d, comment)); + addProperty(new BooleanProperty(k, d, comment)); } @@ -206,9 +206,9 @@ public class PropertyManager { * @param d default value * @param comment the in-file comment */ - public void putDouble(String k, double d, String comment) + public void addDouble(String k, double d, String comment) { - putProperty(new DoubleProperty(k, d, comment)); + addProperty(new DoubleProperty(k, d, comment)); } @@ -219,9 +219,9 @@ public class PropertyManager { * @param d default value * @param comment the in-file comment */ - public void putInteger(String k, int d, String comment) + public void addInteger(String k, int d, String comment) { - putProperty(new IntegerProperty(k, d, comment)); + addProperty(new IntegerProperty(k, d, comment)); } @@ -232,9 +232,9 @@ public class PropertyManager { * @param d default value * @param comment the in-file comment */ - public void putString(String k, String d, String comment) + public void addString(String k, String d, String comment) { - putProperty(new StringProperty(k, d, comment)); + addProperty(new StringProperty(k, d, comment)); } @@ -243,7 +243,7 @@ public class PropertyManager { * * @param prop property to add */ - public void putProperty(Property prop) + public void addProperty(Property prop) { entries.put(prop.getKey(), prop); }