git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[utils]
/
support
/
general
/
src
/
main
/
java
/
org
/
wamblee
/
general
/
ValueHolder.java
diff --git
a/support/general/src/main/java/org/wamblee/general/ValueHolder.java
b/support/general/src/main/java/org/wamblee/general/ValueHolder.java
index 1ec74feb19acaaef0b26f0d11fa29f37fb152cc3..69ab7b6cfc5cd627d76a3c386221d134d8693b6e 100644
(file)
--- a/
support/general/src/main/java/org/wamblee/general/ValueHolder.java
+++ b/
support/general/src/main/java/org/wamblee/general/ValueHolder.java
@@
-16,41
+16,45
@@
package org.wamblee.general;
/**
package org.wamblee.general;
/**
- * Object that holds a value of some type. This can be used where a mutable
final value would
- *
be preferred.
+ * Object that holds a value of some type. This can be used where a mutable
+ *
final value would be preferred.
*
* @author Erik Brakkee
*
* @author Erik Brakkee
- *
+ *
*/
public class ValueHolder<T> {
*/
public class ValueHolder<T> {
- private T value;
-
+ private T value;
+
/**
/**
- * Constructs with null value.
+ * Constructs with null value.
*/
*/
- public ValueHolder() {
- value = null;
+ public ValueHolder() {
+ value = null;
}
}
-
+
/**
/**
- * Constructs with given value.
- * @param aValue Value.
+ * Constructs with given value.
+ *
+ * @param aValue
+ * Value.
*/
*/
- public ValueHolder(T aValue) {
- value = aValue;
+ public ValueHolder(T aValue) {
+ value = aValue;
}
}
-
+
/**
/**
- * @return Current value.
+ * @return Current value.
*/
public T getValue() {
return value;
}
*/
public T getValue() {
return value;
}
-
+
/**
/**
- * Set the value.
- * @param aValue New value.
+ * Set the value.
+ *
+ * @param aValue
+ * New value.
*/
public void setValue(T aValue) {
value = aValue;
*/
public void setValue(T aValue) {
value = aValue;