Package dev.brachtendorf.mutable
Interface Mutable<T>
-
- All Known Implementing Classes:
MutableBoolean,MutableByte,MutableDouble,MutableFloat,MutableInteger,MutableLong,MutableObject
public interface Mutable<T>Mutable class wrapper for basic java data types. Mutable classes are useful in lambda expressions or anonymous classes which want to alter the content of a variable but are limited to final or effective final variables.- Author:
- Kilian
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TgetValue()Get an object encapsulating the current valuevoidsetValue(T newValue)Set the internal field to the new value
-