Android APIs
public abstract class

EGLObjectHandle

extends Object
java.lang.Object
   ↳ android.opengl.EGLObjectHandle
Known Direct Subclasses

Class Overview

Base class for wrapped EGL objects.

Summary

Protected Constructors
EGLObjectHandle(int handle)
This constructor is deprecated. Use EGLObjectHandle(long) instead. Handles on 64 bit platforms will be wider than java ints.
EGLObjectHandle(long handle)
Public Methods
int getHandle()
This method is deprecated. Use getNativeHandle() instead. Handles on 64 bit platforms will be wider than java ints.
long getNativeHandle()
Returns the native handle of the wrapped EGL object.
int hashCode()
Returns an integer hash code for this object.
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected EGLObjectHandle (int handle)

Added in API level 17

This constructor is deprecated.
Use EGLObjectHandle(long) instead. Handles on 64 bit platforms will be wider than java ints.

protected EGLObjectHandle (long handle)

Public Methods

public int getHandle ()

Added in API level 17

This method is deprecated.
Use getNativeHandle() instead. Handles on 64 bit platforms will be wider than java ints.

public long getNativeHandle ()

Returns the native handle of the wrapped EGL object. This handle can be cast to the corresponding native type on the native side. For example, EGLDisplay dpy = (EGLDisplay)handle;

Returns
  • the native handle of the wrapped EGL object.

public int hashCode ()

Added in API level 17

Returns an integer hash code for this object. By contract, any two objects for which equals(Object) returns true must return the same hash code value. This means that subclasses of Object usually override both methods or neither method.

Note that hash values must not change over time unless information used in equals comparisons also changes.

See Writing a correct hashCode method if you intend implementing your own hashCode method.

Returns
  • this object's hash code.