org.carrot2.util.annotations
Annotation Type Immutable


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Immutable

Marker interface for classes that are immutable (once created, never change their state.


Optional Element Summary
 boolean safePublication
          Indicates if objects of this class can be safely published (used by other threads without explicit synchronization).
 

safePublication

public abstract boolean safePublication
Indicates if objects of this class can be safely published (used by other threads without explicit synchronization). Safe publication usually involves initialization of final fields in the constructor.

Default:
false


Copyright (c) Dawid Weiss, Stanislaw Osinski