.class Landroidx/exifinterface/media/ExifInterface$Rational; .super Ljava/lang/Object; .source "ExifInterface.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/exifinterface/media/ExifInterface; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0xa name = "Rational" .end annotation # instance fields .field public final denominator:J .field public final numerator:J # direct methods .method constructor (D)V .locals 2 const-wide v0, 0x40c3880000000000L # 10000.0 mul-double/2addr p1, v0 double-to-long p1, p1 const-wide/16 v0, 0x2710 .line 2949 invoke-direct {p0, p1, p2, v0, v1}, Landroidx/exifinterface/media/ExifInterface$Rational;->(JJ)V return-void .end method .method constructor (JJ)V .locals 3 .line 2953 invoke-direct {p0}, Ljava/lang/Object;->()V const-wide/16 v0, 0x0 cmp-long v2, p3, v0 if-nez v2, :cond_0 iput-wide v0, p0, Landroidx/exifinterface/media/ExifInterface$Rational;->numerator:J const-wide/16 p1, 0x1 iput-wide p1, p0, Landroidx/exifinterface/media/ExifInterface$Rational;->denominator:J return-void :cond_0 iput-wide p1, p0, Landroidx/exifinterface/media/ExifInterface$Rational;->numerator:J iput-wide p3, p0, Landroidx/exifinterface/media/ExifInterface$Rational;->denominator:J return-void .end method # virtual methods .method public calculate()D .locals 4 iget-wide v0, p0, Landroidx/exifinterface/media/ExifInterface$Rational;->numerator:J long-to-double v0, v0 iget-wide v2, p0, Landroidx/exifinterface/media/ExifInterface$Rational;->denominator:J long-to-double v2, v2 div-double/2addr v0, v2 return-wide v0 .end method .method public toString()Ljava/lang/String; .locals 3 .line 2966 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V iget-wide v1, p0, Landroidx/exifinterface/media/ExifInterface$Rational;->numerator:J invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, "/" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-wide v1, p0, Landroidx/exifinterface/media/ExifInterface$Rational;->denominator:J invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)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