private static JCGLExceptionDeleted alreadyClosing() { return new JCGLExceptionDeleted("Async interface is shutting down"); }
private static JCGLExceptionDeleted alreadyClosing() { return new JCGLExceptionDeleted("Async interface is shutting down"); }
void checkNotDestroyed() { if (this.destroyed) { throw new JCGLExceptionDeleted( String.format("Context %s is destroyed", this)); } }
void checkNotDestroyed() { if (this.destroyed) { throw new JCGLExceptionDeleted( String.format("Context %s is destroyed", this)); } }
private void checkNotDestroyed() { if (this.isDeleted()) { throw new JCGLExceptionDeleted( String.format("Context %s is destroyed", this)); } }
private void checkNotDestroyed() { if (this.isDeleted()) { throw new JCGLExceptionDeleted( String.format("Context %s is destroyed", this)); } }
/** * Check that the current object has not been deleted. * * @param r The object. * @param <R> A deletable object. * * @return The object. * * @throws JCGLExceptionDeleted If the object has been deleted. * @see JCGLResourceUsableType#isDeleted() */ public static <R extends JCGLResourceUsableType> R checkNotDeleted( final R r) throws JCGLExceptionDeleted { NullCheck.notNull(r, "Resource"); if (r.isDeleted()) { throw new JCGLExceptionDeleted( String.format( "Cannot perform operation: OpenGL object %s has been deleted.", r)); } return r; }
/** * Check that the current object has not been deleted. * * @param r The object. * @param <R> A deletable object. * * @return The object. * * @throws JCGLExceptionDeleted If the object has been deleted. * @see JCGLResourceUsableType#isDeleted() */ public static <R extends JCGLResourceUsableType> R checkNotDeleted( final R r) throws JCGLExceptionDeleted { NullCheck.notNull(r, "Resource"); if (r.isDeleted()) { throw new JCGLExceptionDeleted( String.format( "Cannot perform operation: OpenGL object %s has been deleted.", r)); } return r; }