Class ReferenceCache<T>


  • public class ReferenceCache<T>
    extends java.lang.Object
    A reference cache implementation to help with processing of contained references. The type parameter is the type of the references contained within the cache instance.
    Since:
    15 Feb 2024
    • Constructor Summary

      Constructors 
      Constructor Description
      ReferenceCache()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get​(T initial)
      Get the new instance of the reference.
      void setValues​(java.util.List<T> inital, java.util.List<T> cloned)
      Store values in the cache.
      • Methods inherited from class java.lang.Object

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

      • ReferenceCache

        public ReferenceCache()
    • Method Detail

      • setValues

        public void setValues​(java.util.List<T> inital,
                              java.util.List<T> cloned)
        Store values in the cache.
        Parameters:
        inital - - the original reference.
        cloned - - the cloned value of the same reference.
      • get

        public T get​(T initial)
        Get the new instance of the reference.
        Parameters:
        initial - the original value of the reference.
        Returns:
        the new instance of the reference.