52 lines
1.2 KiB
Java
52 lines
1.2 KiB
Java
|
package com.kofax.kmc.kut.utilities;
|
||
|
|
||
|
import android.graphics.Point;
|
||
|
import android.hardware.Camera;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public class Size {
|
||
|
public int height;
|
||
|
public int width;
|
||
|
|
||
|
public Size(int i, int i2) {
|
||
|
this.width = i;
|
||
|
this.height = i2;
|
||
|
}
|
||
|
|
||
|
public Size(Point point) {
|
||
|
this.width = point.x;
|
||
|
this.height = point.y;
|
||
|
}
|
||
|
|
||
|
public Size(Camera.Size size) {
|
||
|
this.width = size.width;
|
||
|
this.height = size.height;
|
||
|
}
|
||
|
|
||
|
public Size(android.util.Size size) {
|
||
|
this.width = size.getWidth();
|
||
|
this.height = size.getHeight();
|
||
|
}
|
||
|
|
||
|
public boolean equals(Object obj) {
|
||
|
if (!(obj instanceof Size)) {
|
||
|
return false;
|
||
|
}
|
||
|
Size size = (Size) obj;
|
||
|
return this.width == size.width && this.height == size.height;
|
||
|
}
|
||
|
|
||
|
public String toString() {
|
||
|
StringBuilder sb = new StringBuilder("Size [width = ");
|
||
|
sb.append(this.width);
|
||
|
sb.append(", height = ");
|
||
|
sb.append(this.height);
|
||
|
sb.append("]");
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
public int hashCode() {
|
||
|
return (this.width * 32713) + this.height;
|
||
|
}
|
||
|
}
|