Annotation Type ReturnsImmutableObject


@Retention(CLASS) @Target(METHOD) @Documented public @interface ReturnsImmutableObject
Indicates that a method returns an immutable object (in case the returned type itself is not immutable). This is especially useful for returned containers that are not modifiable.
Author:
Philip Helger
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Default:
      ""