
com.mindoo.domino.jna.utils.Ref Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domino-jna Show documentation
Show all versions of domino-jna Show documentation
Java project to access the HCL Domino C API using Java Native Access (JNA)
package com.mindoo.domino.jna.utils;
/**
* A class to hold a reference to another object, for use with inner classes.
*
* @author Jesse Gallagher
* @since 2.0.0
*/
public class Ref {
private T m_obj;
public Ref() {
}
public Ref(T obj) {
this.m_obj = obj;
}
public T get() {
return m_obj;
}
public void set(T obj) {
this.m_obj = obj;
}
@Override
public String toString() {
return "[" + getClass().getSimpleName() + ": " + m_obj + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy