lmw
2023-06-07 f9dd2cdac746d308d5c4bcfdbea389ab67a66b12
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.yalantis.ucrop.model;
 
/**
 * Created by Oleksii Shliama [https://github.com/shliama] on 6/21/16.
 */
public class ExifInfo {
 
    private int mExifOrientation;
    private int mExifDegrees;
    private int mExifTranslation;
 
    public ExifInfo(int exifOrientation, int exifDegrees, int exifTranslation) {
        mExifOrientation = exifOrientation;
        mExifDegrees = exifDegrees;
        mExifTranslation = exifTranslation;
    }
 
    public int getExifOrientation() {
        return mExifOrientation;
    }
 
    public int getExifDegrees() {
        return mExifDegrees;
    }
 
    public int getExifTranslation() {
        return mExifTranslation;
    }
 
    public void setExifOrientation(int exifOrientation) {
        mExifOrientation = exifOrientation;
    }
 
    public void setExifDegrees(int exifDegrees) {
        mExifDegrees = exifDegrees;
    }
 
    public void setExifTranslation(int exifTranslation) {
        mExifTranslation = exifTranslation;
    }
 
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
 
        ExifInfo exifInfo = (ExifInfo) o;
 
        if (mExifOrientation != exifInfo.mExifOrientation) return false;
        if (mExifDegrees != exifInfo.mExifDegrees) return false;
        return mExifTranslation == exifInfo.mExifTranslation;
 
    }
 
    @Override
    public int hashCode() {
        int result = mExifOrientation;
        result = 31 * result + mExifDegrees;
        result = 31 * result + mExifTranslation;
        return result;
    }
 
}