Annotation Interface Immutable.Pure

Enclosing class:
Immutable

@Retention(CLASS) @Target(TYPE) public static @interface Immutable.Pure
Style for a "pure immutable" using sandwich pattern. Usage:
@Immutable.Pure
 public abstract class MyRecord implements MyRecord_With {
   MyRecord() {}
   public static Builder builder() {return new Builder();}

   // declare your fields here

   public static final class Builder extends MyRecord_Immutable {
     Builder() {}
   }
 }
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface