All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mindoo.domino.jna.utils.Ref Maven / Gradle / Ivy

There is a newer version: 0.9.53
Show newest version
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