aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/Disposable.java
blob: f85f99b655f078a49168862a1da6cd6d1c01bc06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.mbien.opencl;

/*
 * JDK7 ARM proposal, cypied to be forward compatible with java 7 automatic resource managment blocks.
 * @author Michael Bien
 */

//package java.lang;

/**
 * A resource that must be closed when it is no longer needed.
 *
 * @param X the type of exception thrown by the close method (or
 *     {@link RuntimeException} if the close method is not permitted
 *     to throw any checked exceptions).
 */
/*public*/ interface Disposable<X extends Throwable> {

    void close() throws X;

}