com.h3c.of.ctl.pipeline

## Interface MutableType<E>

- Type Parameters:
    `E` - corresponding immutable structure
  All Known Subinterfaces:
    MutablePipelineDefinition, MutableTableContext

      public interface MutableType<E>

  Implemented by data structure classes used in Pipeline abstraction that provide mutators for setting the state of the structure.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `E` | `toImmutable()` Returns an immutable instance of this structure.

- - ### Method Detail

    - #### toImmutable

          E toImmutable()

      Returns an immutable instance of this structure. In essence, converts this structure to be read-only.

      It is expected that the reference to this mutable structure will be dropped. Note that all method calls invoked on a mutable structure after `toImmutable()` has been invoked will result in an `InvalidMutableException` being thrown.

      Returns:
        an immutable instance of this structure
      Throws:
        `InvalidMutableException` - if this structure is no longer writable

Copyright © 2014. All Rights Reserved.