T
- The inner object type.public class Mutable<T> extends Object
Mutable<String> m = Mutable.
Constructor and Description |
---|
Mutable()
Creates an empty mutable.
|
Mutable(T t)
Creates a mutable initialized with the specified object.
|
Modifier and Type | Method and Description |
---|---|
static <T> Mutable<T> |
create()
Creates an empty mutable.
|
static <T> Mutable<T> |
create(Class<T> c)
Creates an empty mutable.
|
boolean |
equals(Object o) |
T |
get()
Returns the inner object.
|
int |
hashCode() |
boolean |
isSet()
Returns
|
static <T> Mutable<T> |
of(T t)
Creates a mutable initialized with the specified object.
|
Mutable<T> |
set(T t)
Sets the inner object.
|
String |
toString() |
public Mutable()
public static <T> Mutable<T> create(Class<T> c)
T
- The inner object type.c
- The inner object type.public static <T> Mutable<T> create()
T
- The inner object type.public static <T> Mutable<T> of(T t)
T
- The inner object type.t
- The inner object.public Mutable<T> set(T t)
t
- The inner object.public boolean isSet()
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.