Package org.ldaptive

Interface Freezable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void assertMutable()
      Asserts that this object is in a state to permit mutations.
      void freeze()
      Freezes this object, making it immutable.
      boolean isFrozen()
      Determines whether this object is frozen, i.e. immutable.
    • Method Detail

      • freeze

        void freeze()
        Freezes this object, making it immutable.
      • isFrozen

        boolean isFrozen()
        Determines whether this object is frozen, i.e. immutable.
        Returns:
        True if freeze() has been invoked, false otherwise.
      • assertMutable

        void assertMutable()
        Asserts that this object is in a state to permit mutations. Classes that implement this interface should invoke this method prior to performing any mutation of internal state as a means of implementing the "frozen" usage contract.
        Throws:
        IllegalStateException - if this object is frozen (i.e. immutable).