
extension.lang.MutableValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of extension-lang Show documentation
Show all versions of extension-lang Show documentation
Utility classes for the JDK
The newest version!
package extension.lang;
// Just a storage container for a single value, can be used if a lambda needs to return a value
public final class MutableValue {
private T value;
public MutableValue() {}
public MutableValue(final T value) {
this.value = value;
}
public void set(final T value) {
this.value = value;
}
public T get() {
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy