![JAR search and dependency download from the Maven repository](/logo.png)
com.bumptech.glide.load.engine.bitmap_recycle.ArrayAdapterInterface Maven / Gradle / Ivy
package com.bumptech.glide.load.engine.bitmap_recycle;
/**
* Interface for handling operations on a primitive array type.
* @param Array type (e.g. byte[], int[])
*/
public interface ArrayAdapterInterface {
/**
* TAG for logging.
*/
String getTag();
/**
* Return the length of the given array.
*/
int getArrayLength(T array);
/**
* Allocate and return an array of the specified size.
*/
T newArray(int length);
/**
* Return the size of an element in the array in bytes (e.g. for int return 4).
*/
int getElementSizeInBytes();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy