FileDocCategorySizeDatePackage
EGLConfigImpl.javaAPI DocphoneME MR2 API (J2ME)2275Wed May 02 18:00:48 BST 2007javax.microedition.khronos.egl

EGLConfigImpl

public final class EGLConfigImpl extends EGLConfig
A class encapsulating an EGL configuration.

Fields Summary
private static final Hashtable
byId
int
nativeId
Constructors Summary
public EGLConfigImpl(int nativeId)


       
        synchronized (byId) {
            this.nativeId = nativeId;
            byId.put(new Integer(nativeId), new WeakReference(this));
        }
    
Methods Summary
voiddispose()

	synchronized (byId) {
	    byId.remove(new Integer(nativeId));
	    this.nativeId = 0;
	}
    
public static javax.microedition.khronos.egl.EGLConfigImplgetInstance(int nativeId)

        synchronized (byId) {
            WeakReference ref = (WeakReference)byId.get(new Integer(nativeId));
            EGLConfigImpl config = ref != null ?
                    (EGLConfigImpl)ref.get() : null;
            if (config == null) {
                return new EGLConfigImpl(nativeId);
            } else {
                return config;
            }
        }
    
public intnativeId()

	return nativeId;
    
public java.lang.StringtoString()

	return "EGLConfigImpl[" + nativeId + "]";