com.bumptech.glide.load.data.DataRewinderRegistry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glide Show documentation
Show all versions of glide Show documentation
A fast and efficient image loading library for Android focused on smooth scrolling.
package com.bumptech.glide.load.data;
import androidx.annotation.NonNull;
import com.bumptech.glide.util.Preconditions;
import java.util.HashMap;
import java.util.Map;
/**
* Stores a mapping of data class to {@link com.bumptech.glide.load.data.DataRewinder.Factory} and
* allows registration of new types and factories.
*/
public class DataRewinderRegistry {
private final Map, DataRewinder.Factory>> rewinders = new HashMap<>();
private static final DataRewinder.Factory> DEFAULT_FACTORY =
new DataRewinder.Factory