@Experimental @Documented @Retention(value=CLASS) @ThreadSafe @Target(value=TYPE) public @interface Immutable
Immutable
annotation indicates that the object is immutable, i.e.
none of its field can be changed. This also ensures that the type is
ThreadSafe
.ThreadSafe
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.