mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-06 20:39:26 +01:00
94 lines
2.7 KiB
Java
94 lines
2.7 KiB
Java
package com.amazon.clouddrive.model;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes20.dex */
|
|
public class AddChildToParentRequest implements CloudDriveRequest {
|
|
private String childId;
|
|
private String parentId;
|
|
|
|
public AddChildToParentRequest(String str, String str2) {
|
|
this.parentId = str;
|
|
this.childId = str2;
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // java.lang.Comparable
|
|
public int compareTo(CloudDriveRequest cloudDriveRequest) {
|
|
if (cloudDriveRequest == null) {
|
|
return -1;
|
|
}
|
|
if (cloudDriveRequest == this) {
|
|
return 0;
|
|
}
|
|
if (!(cloudDriveRequest instanceof AddChildToParentRequest)) {
|
|
return 1;
|
|
}
|
|
AddChildToParentRequest addChildToParentRequest = (AddChildToParentRequest) cloudDriveRequest;
|
|
String parentId = getParentId();
|
|
String parentId2 = addChildToParentRequest.getParentId();
|
|
if (parentId != parentId2) {
|
|
if (parentId == null) {
|
|
return -1;
|
|
}
|
|
if (parentId2 == null) {
|
|
return 1;
|
|
}
|
|
int compareTo = parentId.compareTo(parentId2);
|
|
if (compareTo != 0) {
|
|
return compareTo;
|
|
}
|
|
}
|
|
String childId = getChildId();
|
|
String childId2 = addChildToParentRequest.getChildId();
|
|
if (childId != childId2) {
|
|
if (childId == null) {
|
|
return -1;
|
|
}
|
|
if (childId2 == null) {
|
|
return 1;
|
|
}
|
|
int compareTo2 = childId.compareTo(childId2);
|
|
if (compareTo2 != 0) {
|
|
return compareTo2;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (obj == this) {
|
|
return true;
|
|
}
|
|
return (obj instanceof AddChildToParentRequest) && compareTo((CloudDriveRequest) obj) == 0;
|
|
}
|
|
|
|
public String getChildId() {
|
|
return this.childId;
|
|
}
|
|
|
|
public String getParentId() {
|
|
return this.parentId;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return (getParentId() == null ? 0 : getParentId().hashCode()) + 1 + (getChildId() != null ? getChildId().hashCode() : 0);
|
|
}
|
|
|
|
public void setChildId(String str) {
|
|
this.childId = str;
|
|
}
|
|
|
|
public void setParentId(String str) {
|
|
this.parentId = str;
|
|
}
|
|
|
|
public AddChildToParentRequest withChildId(String str) {
|
|
this.childId = str;
|
|
return this;
|
|
}
|
|
|
|
public AddChildToParentRequest withParentId(String str) {
|
|
this.parentId = str;
|
|
return this;
|
|
}
|
|
}
|