com.jparams.store.memory.MemoryReference Maven / Gradle / Ivy
package com.jparams.store.memory;
import com.jparams.store.reference.Reference;
/**
* Reference to a stored item in memory
*
* @param reference type
*/
public class MemoryReference implements Reference
{
private final T reference;
public MemoryReference(final T reference)
{
this.reference = reference;
}
@Override
public T get()
{
return reference;
}
@Override
public String toString()
{
return String.valueOf(reference);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy