synchronized (byId) { this.nativeId = nativeId; byId.put(new Integer(nativeId), new WeakReference(this)); }
synchronized (byId) { byId.remove(new Integer(nativeId)); this.nativeId = 0; }
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; } }
return nativeId;
return "EGLConfigImpl[" + nativeId + "]";