Class ContainerMemory<S extends AMemorizedObject>


  • public class ContainerMemory<S extends AMemorizedObject>
    extends java.lang.Object
    ContainerMemory

    Copyright: Actelion Ltd., Inc. All Rights Reserved This software is the proprietary information of Actelion Pharmaceuticals, Ltd. Use is subject to license terms.

    Version:
    1.0 Sep 27, 2012 MvK: Start implementation
    Author:
    Modest von Korff
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void back​(S s)  
      S get()  
      S getWithCopy​(S orign)  
      void reset()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContainerMemory

        public ContainerMemory​(int capacity,
                               IFactory<S> factory)
        Parameters:
        capacity -
        factory -
    • Method Detail

      • reset

        public void reset()
      • get

        public S get()
        Returns:
        a fresh (resetted) instance.
      • back

        public void back​(S s)
      • getWithCopy

        public S getWithCopy​(S orign)