com.distelli.objectStore.ObjectPartId Maven / Gradle / Ivy
// Generated by delombok at Fri Sep 21 11:00:51 PDT 2018
package com.distelli.objectStore;
public class ObjectPartId {
private Integer partNum; // passed into multipartPut().
private String partId; // Returned by multipartPut()
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
ObjectPartId(final Integer partNum, final String partId) {
this.partNum = partNum;
this.partId = partId;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public static class ObjectPartIdBuilder {
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private Integer partNum;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private String partId;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
ObjectPartIdBuilder() {
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectPartIdBuilder partNum(final Integer partNum) {
this.partNum = partNum;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectPartIdBuilder partId(final String partId) {
this.partId = partId;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectPartId build() {
return new ObjectPartId(partNum, partId);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ObjectPartId.ObjectPartIdBuilder(partNum=" + this.partNum + ", partId=" + this.partId + ")";
}
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public static ObjectPartIdBuilder builder() {
return new ObjectPartIdBuilder();
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Integer getPartNum() {
return this.partNum;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public String getPartId() {
return this.partId;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setPartNum(final Integer partNum) {
this.partNum = partNum;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setPartId(final String partId) {
this.partId = partId;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof ObjectPartId)) return false;
final ObjectPartId other = (ObjectPartId) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$partNum = this.getPartNum();
final java.lang.Object other$partNum = other.getPartNum();
if (this$partNum == null ? other$partNum != null : !this$partNum.equals(other$partNum)) return false;
final java.lang.Object this$partId = this.getPartId();
final java.lang.Object other$partId = other.getPartId();
if (this$partId == null ? other$partId != null : !this$partId.equals(other$partId)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof ObjectPartId;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $partNum = this.getPartNum();
result = result * PRIME + ($partNum == null ? 43 : $partNum.hashCode());
final java.lang.Object $partId = this.getPartId();
result = result * PRIME + ($partId == null ? 43 : $partId.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ObjectPartId(partNum=" + this.getPartNum() + ", partId=" + this.getPartId() + ")";
}
}