E
- corresponding immutable structurepublic interface MutableType<E>
Modifier and Type | Method and Description |
---|---|
E |
toImmutable()
Returns an immutable instance of this structure.
|
E toImmutable()
It is expected that the reference to this mutable structure will be
dropped. Note that all method calls invoked on a
mutable structure after toImmutable()
has been invoked
will result in an InvalidMutableException
being thrown.
InvalidMutableException
- if this structure is no longer writableCopyright © 2015. All Rights Reserved.