alexandroid/decompiled/jadx/sources/com/amazon/clouddrive/model/AddChildToParentRequest.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

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;
}
}