com.google.gerrit.server.permissions.AutoValue_SectionSortCache_EntryKey Maven / Gradle / Ivy
package com.google.gerrit.server.permissions;
import java.util.List;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SectionSortCache_EntryKey extends SectionSortCache.EntryKey {
private final String ref;
private final List patterns;
private final int cachedHashCode;
AutoValue_SectionSortCache_EntryKey(
String ref,
List patterns,
int cachedHashCode) {
if (ref == null) {
throw new NullPointerException("Null ref");
}
this.ref = ref;
if (patterns == null) {
throw new NullPointerException("Null patterns");
}
this.patterns = patterns;
this.cachedHashCode = cachedHashCode;
}
@Override
public String ref() {
return ref;
}
@Override
public List patterns() {
return patterns;
}
@Override
public int cachedHashCode() {
return cachedHashCode;
}
@Override
public String toString() {
return "EntryKey{"
+ "ref=" + ref + ", "
+ "patterns=" + patterns + ", "
+ "cachedHashCode=" + cachedHashCode
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SectionSortCache.EntryKey) {
SectionSortCache.EntryKey that = (SectionSortCache.EntryKey) o;
return this.ref.equals(that.ref())
&& this.patterns.equals(that.patterns())
&& this.cachedHashCode == that.cachedHashCode();
}
return false;
}
}