Interface Freezable<F>

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface Freezable<F>
    An object that is freezable begins life as mutable, but once frozen becomes unmodifiable and thread-safe. The object may internally block additional changes and return itself, or may return a different object instance representing its immutable form.
    • Method Detail

      • freeze

        F freeze()