.class public Lcom/bumptech/glide/provider/EncoderRegistry; .super Ljava/lang/Object; .source "EncoderRegistry.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/bumptech/glide/provider/EncoderRegistry$Entry; } .end annotation # instance fields .field private final encoders:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List<", "Lcom/bumptech/glide/provider/EncoderRegistry$Entry<", "*>;>;" } .end annotation .end field # direct methods .method public constructor ()V .registers 2 .line 13 invoke-direct {p0}, Ljava/lang/Object;->()V .line 15 new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V iput-object v0, p0, Lcom/bumptech/glide/provider/EncoderRegistry;->encoders:Ljava/util/List; return-void .end method # virtual methods .method public declared-synchronized append(Ljava/lang/Class;Lcom/bumptech/glide/load/Encoder;)V .registers 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TT;>;", "Lcom/bumptech/glide/load/Encoder<", "TT;>;)V" } .end annotation monitor-enter p0 .line 29 :try_start_1 iget-object v0, p0, Lcom/bumptech/glide/provider/EncoderRegistry;->encoders:Ljava/util/List; new-instance v1, Lcom/bumptech/glide/provider/EncoderRegistry$Entry; invoke-direct {v1, p1, p2}, Lcom/bumptech/glide/provider/EncoderRegistry$Entry;->(Ljava/lang/Class;Lcom/bumptech/glide/load/Encoder;)V invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z :try_end_b .catchall {:try_start_1 .. :try_end_b} :catchall_d .line 30 monitor-exit p0 return-void :catchall_d move-exception p1 :try_start_e monitor-exit p0 :try_end_f .catchall {:try_start_e .. :try_end_f} :catchall_d throw p1 .end method .method public declared-synchronized getEncoder(Ljava/lang/Class;)Lcom/bumptech/glide/load/Encoder; .registers 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TT;>;)", "Lcom/bumptech/glide/load/Encoder<", "TT;>;" } .end annotation monitor-enter p0 .line 20 :try_start_1 iget-object v0, p0, Lcom/bumptech/glide/provider/EncoderRegistry;->encoders:Ljava/util/List; invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v0 :cond_7 invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z move-result v1 if-eqz v1, :cond_1d invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v1 check-cast v1, Lcom/bumptech/glide/provider/EncoderRegistry$Entry; .line 21 invoke-virtual {v1, p1}, Lcom/bumptech/glide/provider/EncoderRegistry$Entry;->handles(Ljava/lang/Class;)Z move-result v2 if-eqz v2, :cond_7 .line 22 iget-object p1, v1, Lcom/bumptech/glide/provider/EncoderRegistry$Entry;->encoder:Lcom/bumptech/glide/load/Encoder; :try_end_1b .catchall {:try_start_1 .. :try_end_1b} :catchall_20 monitor-exit p0 return-object p1 .line 25 :cond_1d monitor-exit p0 const/4 p1, 0x0 return-object p1 :catchall_20 move-exception p1 :try_start_21 monitor-exit p0 :try_end_22 .catchall {:try_start_21 .. :try_end_22} :catchall_20 throw p1 .end method .method public declared-synchronized prepend(Ljava/lang/Class;Lcom/bumptech/glide/load/Encoder;)V .registers 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TT;>;", "Lcom/bumptech/glide/load/Encoder<", "TT;>;)V" } .end annotation monitor-enter p0 .line 33 :try_start_1 iget-object v0, p0, Lcom/bumptech/glide/provider/EncoderRegistry;->encoders:Ljava/util/List; new-instance v1, Lcom/bumptech/glide/provider/EncoderRegistry$Entry; invoke-direct {v1, p1, p2}, Lcom/bumptech/glide/provider/EncoderRegistry$Entry;->(Ljava/lang/Class;Lcom/bumptech/glide/load/Encoder;)V const/4 p1, 0x0 invoke-interface {v0, p1, v1}, Ljava/util/List;->add(ILjava/lang/Object;)V :try_end_c .catchall {:try_start_1 .. :try_end_c} :catchall_e .line 34 monitor-exit p0 return-void :catchall_e move-exception p1 :try_start_f monitor-exit p0 :try_end_10 .catchall {:try_start_f .. :try_end_10} :catchall_e throw p1 .end method