Some naming changes in property manager
This commit is contained in:
@@ -78,7 +78,7 @@ public abstract class Property<T> {
|
||||
*
|
||||
* @return the value
|
||||
*/
|
||||
public final T getValue()
|
||||
public T getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
@@ -92,7 +92,7 @@ public abstract class Property<T> {
|
||||
* @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<T> {
|
||||
*
|
||||
* @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<T> {
|
||||
*
|
||||
* @return property key
|
||||
*/
|
||||
public final String getKey()
|
||||
public String getKey()
|
||||
{
|
||||
return key;
|
||||
}
|
||||
|
||||
@@ -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 <T> void putProperty(Property<T> prop)
|
||||
public <T> void addProperty(Property<T> prop)
|
||||
{
|
||||
entries.put(prop.getKey(), prop);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user