MCPcopy
hub / github.com/apache/commons-lang / Mutable

Interface Mutable

src/main/java/org/apache/commons/lang3/mutable/Mutable.java:32–53  ·  view source on GitHub ↗

Provides mutable access to a value. Mutable is used as a generic interface to the implementations in this package. A typical use case would be to enable a primitive or string to be passed to a method and allow that method to effectively change the value of the primitive/string.

Source from the content-addressed store, hash-verified

30 * @since 2.1
31 */
32public interface Mutable<T> {
33
34 /**
35 * Gets the value of this mutable.
36 *
37 * @return the stored value
38 */
39 T getValue();
40
41 /**
42 * Sets the value of this mutable.
43 *
44 * @param value
45 * the value to store
46 * @throws NullPointerException
47 * if the object is null and null is invalid
48 * @throws ClassCastException
49 * if the type is invalid
50 */
51 void setValue(T value);
52
53}

Callers 12

testGetValueMethod · 0.65
testSetValueMethod · 0.65
testCloneOfCloneableMethod · 0.65
testUseAsKeyOfTreeMapMethod · 0.65
testNullPairValueMethod · 0.65
testUseAsKeyOfTreeMapMethod · 0.65
testConstructorsMethod · 0.65
testSetValueMethod · 0.65
testCannotModifyMethod · 0.65
nextMethod · 0.65

Implementers 11

ArrayUtilsTestsrc/test/java/org/apache/commons/lang3
TestMutablesrc/test/java/org/apache/commons/lang3
BitFieldsrc/main/java/org/apache/commons/lang3
MutableIntsrc/main/java/org/apache/commons/lang3
MutableShortsrc/main/java/org/apache/commons/lang3
MutableBooleansrc/main/java/org/apache/commons/lang3
MutableBytesrc/main/java/org/apache/commons/lang3
MutableObjectsrc/main/java/org/apache/commons/lang3
MutableLongsrc/main/java/org/apache/commons/lang3
MutableFloatsrc/main/java/org/apache/commons/lang3
MutableDoublesrc/main/java/org/apache/commons/lang3

Calls

no outgoing calls

Tested by

no test coverage detected