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

nyla.solutions.core.patterns.Disposable Maven / Gradle / Ivy

package nyla.solutions.core.patterns;

import java.io.Closeable;
import java.io.IOException;

/**
  Disposable is  public interface interface
  for objects to free held resource when requested
*/
public interface Disposable extends Closeable
{
	/**
	 * Default close method call close
	 */
	default @Override void close() throws IOException
	{
		dispose();
		
	}
	/**
	 * Dispose of needed resources
	 */
   void dispose();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy