.class public final Lcom/google/common/base/Functions; .super Ljava/lang/Object; .source "Functions.java" # annotations .annotation build Lcom/google/common/annotations/GwtCompatible; .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/google/common/base/Functions$1;, Lcom/google/common/base/Functions$SupplierFunction;, Lcom/google/common/base/Functions$ConstantFunction;, Lcom/google/common/base/Functions$PredicateFunction;, Lcom/google/common/base/Functions$FunctionComposition;, Lcom/google/common/base/Functions$ForMapWithDefault;, Lcom/google/common/base/Functions$FunctionForMapNoDefault;, Lcom/google/common/base/Functions$IdentityFunction;, Lcom/google/common/base/Functions$ToStringFunction; } .end annotation # direct methods .method private constructor ()V .locals 0 .prologue .line 45 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static compose(Lcom/google/common/base/Function;Lcom/google/common/base/Function;)Lcom/google/common/base/Function; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/base/Function", ";", "Lcom/google/common/base/Function", ";)", "Lcom/google/common/base/Function", ";" } .end annotation .prologue .line 202 new-instance v0, Lcom/google/common/base/Functions$FunctionComposition; invoke-direct {v0, p0, p1}, Lcom/google/common/base/Functions$FunctionComposition;->(Lcom/google/common/base/Function;Lcom/google/common/base/Function;)V return-object v0 .end method .method public static constant(Ljava/lang/Object;)Lcom/google/common/base/Function; .locals 1 .param p0 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(TE;)", "Lcom/google/common/base/Function", "<", "Ljava/lang/Object;", "TE;>;" } .end annotation .prologue .line 287 new-instance v0, Lcom/google/common/base/Functions$ConstantFunction; invoke-direct {v0, p0}, Lcom/google/common/base/Functions$ConstantFunction;->(Ljava/lang/Object;)V return-object v0 .end method .method public static forMap(Ljava/util/Map;)Lcom/google/common/base/Function; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Map", ";)", "Lcom/google/common/base/Function", ";" } .end annotation .prologue .line 108 new-instance v0, Lcom/google/common/base/Functions$FunctionForMapNoDefault; invoke-direct {v0, p0}, Lcom/google/common/base/Functions$FunctionForMapNoDefault;->(Ljava/util/Map;)V return-object v0 .end method .method public static forMap(Ljava/util/Map;Ljava/lang/Object;)Lcom/google/common/base/Function; .locals 1 .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Map", ";TV;)", "Lcom/google/common/base/Function", ";" } .end annotation .prologue .line 155 new-instance v0, Lcom/google/common/base/Functions$ForMapWithDefault; invoke-direct {v0, p0, p1}, Lcom/google/common/base/Functions$ForMapWithDefault;->(Ljava/util/Map;Ljava/lang/Object;)V return-object v0 .end method .method public static forPredicate(Lcom/google/common/base/Predicate;)Lcom/google/common/base/Function; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/base/Predicate", ";)", "Lcom/google/common/base/Function", ";" } .end annotation .prologue .line 245 new-instance v0, Lcom/google/common/base/Functions$PredicateFunction; const/4 v1, 0x0 invoke-direct {v0, p0, v1}, Lcom/google/common/base/Functions$PredicateFunction;->(Lcom/google/common/base/Predicate;Lcom/google/common/base/Functions$1;)V return-object v0 .end method .method public static forSupplier(Lcom/google/common/base/Supplier;)Lcom/google/common/base/Function; .locals 2 .annotation build Lcom/google/common/annotations/Beta; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/base/Supplier", ";)", "Lcom/google/common/base/Function", "<", "Ljava/lang/Object;", "TT;>;" } .end annotation .prologue .line 329 new-instance v0, Lcom/google/common/base/Functions$SupplierFunction; const/4 v1, 0x0 invoke-direct {v0, p0, v1}, Lcom/google/common/base/Functions$SupplierFunction;->(Lcom/google/common/base/Supplier;Lcom/google/common/base/Functions$1;)V return-object v0 .end method .method public static identity()Lcom/google/common/base/Function; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/base/Function", ";" } .end annotation .prologue .line 80 sget-object v0, Lcom/google/common/base/Functions$IdentityFunction;->INSTANCE:Lcom/google/common/base/Functions$IdentityFunction; return-object v0 .end method .method public static toStringFunction()Lcom/google/common/base/Function; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/base/Function", "<", "Ljava/lang/Object;", "Ljava/lang/String;", ">;" } .end annotation .prologue .line 56 sget-object v0, Lcom/google/common/base/Functions$ToStringFunction;->INSTANCE:Lcom/google/common/base/Functions$ToStringFunction; return-object v0 .end method