75 lines
1.9 KiB
Smali
75 lines
1.9 KiB
Smali
.class final Lcom/annimon/stream/function/BinaryOperator$Util$1;
|
|
.super Ljava/lang/Object;
|
|
.source "BinaryOperator.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/annimon/stream/function/BinaryOperator;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/annimon/stream/function/BinaryOperator$Util;->minBy(Ljava/util/Comparator;)Lcom/annimon/stream/function/BinaryOperator;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x8
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Lcom/annimon/stream/function/BinaryOperator",
|
|
"<TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic val$comparator:Ljava/util/Comparator;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Ljava/util/Comparator;)V
|
|
.locals 0
|
|
|
|
.prologue
|
|
iput-object p1, p0, Lcom/annimon/stream/function/BinaryOperator$Util$1;->val$comparator:Ljava/util/Comparator;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public apply(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;TT;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
.local p1, "a":Ljava/lang/Object;, "TT;"
|
|
.local p2, "b":Ljava/lang/Object;, "TT;"
|
|
iget-object v0, p0, Lcom/annimon/stream/function/BinaryOperator$Util$1;->val$comparator:Ljava/util/Comparator;
|
|
|
|
invoke-interface {v0, p1, p2}, Ljava/util/Comparator;->compare(Ljava/lang/Object;Ljava/lang/Object;)I
|
|
|
|
move-result v0
|
|
|
|
if-gtz v0, :cond_0
|
|
|
|
.end local p1 # "a":Ljava/lang/Object;, "TT;"
|
|
:goto_0
|
|
return-object p1
|
|
|
|
.restart local p1 # "a":Ljava/lang/Object;, "TT;"
|
|
:cond_0
|
|
move-object p1, p2
|
|
|
|
goto :goto_0
|
|
.end method
|