yangys
2024-03-31 2969df3e404db3cd116f27db1495e523ce05bf86
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
64
65
66
67
68
69
70
package com.qianwen.core.tool.beans;
 
/* loaded from: blade-core-tool-9.3.0.0-SNAPSHOT.jar:org/springblade/core/tool/beans/BladeBeanCopierKey.class */
public class BladeBeanCopierKey {
    private final Class<?> source;
    private final Class<?> target;
    private final boolean useConverter;
    private final boolean nonNull;
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof BladeBeanCopierKey) {
            BladeBeanCopierKey other = (BladeBeanCopierKey) o;
            if (other.canEqual(this) && isUseConverter() == other.isUseConverter() && isNonNull() == other.isNonNull()) {
                Object this$source = getSource();
                Object other$source = other.getSource();
                if (this$source == null) {
                    if (other$source != null) {
                        return false;
                    }
                } else if (!this$source.equals(other$source)) {
                    return false;
                }
                Object this$target = getTarget();
                Object other$target = other.getTarget();
                return this$target == null ? other$target == null : this$target.equals(other$target);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof BladeBeanCopierKey;
    }
 
    public int hashCode() {
        int result = (1 * 59) + (isUseConverter() ? 79 : 97);
        int result2 = (result * 59) + (isNonNull() ? 79 : 97);
        Object $source = getSource();
        int result3 = (result2 * 59) + ($source == null ? 43 : $source.hashCode());
        Object $target = getTarget();
        return (result3 * 59) + ($target == null ? 43 : $target.hashCode());
    }
 
    public BladeBeanCopierKey(final Class<?> source, final Class<?> target, final boolean useConverter, final boolean nonNull) {
        this.source = source;
        this.target = target;
        this.useConverter = useConverter;
        this.nonNull = nonNull;
    }
 
    public Class<?> getSource() {
        return this.source;
    }
 
    public Class<?> getTarget() {
        return this.target;
    }
 
    public boolean isUseConverter() {
        return this.useConverter;
    }
 
    public boolean isNonNull() {
        return this.nonNull;
    }
}