mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
135 lines
2.6 KiB
Smali
135 lines
2.6 KiB
Smali
.class public final Lcom/google/zxing/Dimension;
|
|
.super Ljava/lang/Object;
|
|
.source "Dimension.java"
|
|
|
|
|
|
# instance fields
|
|
.field private final height:I
|
|
|
|
.field private final width:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(II)V
|
|
.locals 0
|
|
|
|
.line 27
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
if-ltz p2, :cond_0
|
|
|
|
iput p1, p0, Lcom/google/zxing/Dimension;->width:I
|
|
|
|
iput p2, p0, Lcom/google/zxing/Dimension;->height:I
|
|
|
|
return-void
|
|
|
|
.line 29
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 3
|
|
|
|
.line 45
|
|
instance-of v0, p1, Lcom/google/zxing/Dimension;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 46
|
|
check-cast p1, Lcom/google/zxing/Dimension;
|
|
|
|
iget v0, p0, Lcom/google/zxing/Dimension;->width:I
|
|
|
|
.line 47
|
|
iget v2, p1, Lcom/google/zxing/Dimension;->width:I
|
|
|
|
if-ne v0, v2, :cond_0
|
|
|
|
iget p0, p0, Lcom/google/zxing/Dimension;->height:I
|
|
|
|
iget p1, p1, Lcom/google/zxing/Dimension;->height:I
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public getHeight()I
|
|
.locals 0
|
|
|
|
iget p0, p0, Lcom/google/zxing/Dimension;->height:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public getWidth()I
|
|
.locals 0
|
|
|
|
iget p0, p0, Lcom/google/zxing/Dimension;->width:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/google/zxing/Dimension;->width:I
|
|
|
|
mul-int/lit16 v0, v0, 0x7fc9
|
|
|
|
iget p0, p0, Lcom/google/zxing/Dimension;->height:I
|
|
|
|
add-int/2addr v0, p0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 59
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget v1, p0, Lcom/google/zxing/Dimension;->width:I
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "x"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget p0, p0, Lcom/google/zxing/Dimension;->height:I
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|