
com.distelli.objectStore.ObjectKey Maven / Gradle / Ivy
The newest version!
// Generated by delombok at Mon May 13 12:07:43 PDT 2019
package com.distelli.objectStore;
public class ObjectKey {
private String bucket;
private String key;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
ObjectKey(final String bucket, final String key) {
this.bucket = bucket;
this.key = key;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public static class ObjectKeyBuilder {
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private String bucket;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private String key;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
ObjectKeyBuilder() {
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectKeyBuilder bucket(final String bucket) {
this.bucket = bucket;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectKeyBuilder key(final String key) {
this.key = key;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public ObjectKey build() {
return new ObjectKey(bucket, key);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ObjectKey.ObjectKeyBuilder(bucket=" + this.bucket + ", key=" + this.key + ")";
}
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public static ObjectKeyBuilder builder() {
return new ObjectKeyBuilder();
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public String getBucket() {
return this.bucket;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public String getKey() {
return this.key;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setBucket(final String bucket) {
this.bucket = bucket;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public void setKey(final String key) {
this.key = key;
}
@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 ObjectKey)) return false;
final ObjectKey other = (ObjectKey) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$bucket = this.getBucket();
final java.lang.Object other$bucket = other.getBucket();
if (this$bucket == null ? other$bucket != null : !this$bucket.equals(other$bucket)) return false;
final java.lang.Object this$key = this.getKey();
final java.lang.Object other$key = other.getKey();
if (this$key == null ? other$key != null : !this$key.equals(other$key)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof ObjectKey;
}
@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 $bucket = this.getBucket();
result = result * PRIME + ($bucket == null ? 43 : $bucket.hashCode());
final java.lang.Object $key = this.getKey();
result = result * PRIME + ($key == null ? 43 : $key.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ObjectKey(bucket=" + this.getBucket() + ", key=" + this.getKey() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy