管灌系统巡查员智能手机App
zuoxiao
2025-01-23 b6f46408cb3dc8b01051953e5c68de6c9195db60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package cc.shinichi.library.view.subsampling.decoder;
 
import androidx.annotation.NonNull;
 
import java.lang.reflect.InvocationTargetException;
 
/**
 * Interface for {@link ImageDecoder} and {@link ImageRegionDecoder} factories.
 *
 * @param <T> the class of decoder that will be produced.
 */
public interface DecoderFactory<T> {
 
    /**
     * Produce a new instance of a decoder with type {@link T}.
     *
     * @return a new instance of your decoder.
     * @throws IllegalAccessException    if the factory class cannot be instantiated.
     * @throws InstantiationException    if the factory class cannot be instantiated.
     * @throws NoSuchMethodException     if the factory class cannot be instantiated.
     * @throws InvocationTargetException if the factory class cannot be instantiated.
     */
    @NonNull
    T make() throws IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException;
 
}