Package org.ivoa.vodml.nav
Class ReferenceCache<T>
- java.lang.Object
-
- org.ivoa.vodml.nav.ReferenceCache<T>
-
public class ReferenceCache<T> extends java.lang.ObjectA 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 java.util.List<T>get(java.util.List<T> initial)Get the new instance of the reference.Tget(T initial)Get the new instance of the reference.voidsetValues(java.util.List<T> initial, java.util.List<T> cloned)Store values in the cache.
-
-
-
Method Detail
-
setValues
public void setValues(java.util.List<T> initial, java.util.List<T> cloned)
Store values in the cache.- Parameters:
initial- - 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.
-
-