
com.google.common.truth.extensions.proto.AutoValue_FieldScopeLogicMap_Entry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truth-proto-extension Show documentation
Show all versions of truth-proto-extension Show documentation
An extension for the Truth test assertion framework supporting
Protocol Buffers.
The newest version!
package com.google.common.truth.extensions.proto;
// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_FieldScopeLogicMap_Entry extends FieldScopeLogicMap.Entry {
private final FieldScopeLogic fieldScopeLogic;
private final V value;
AutoValue_FieldScopeLogicMap_Entry(
FieldScopeLogic fieldScopeLogic,
V value) {
if (fieldScopeLogic == null) {
throw new NullPointerException("Null fieldScopeLogic");
}
this.fieldScopeLogic = fieldScopeLogic;
if (value == null) {
throw new NullPointerException("Null value");
}
this.value = value;
}
@Override
FieldScopeLogic fieldScopeLogic() {
return fieldScopeLogic;
}
@Override
V value() {
return value;
}
@Override
public String toString() {
return "Entry{"
+ "fieldScopeLogic=" + fieldScopeLogic + ", "
+ "value=" + value
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof FieldScopeLogicMap.Entry) {
FieldScopeLogicMap.Entry> that = (FieldScopeLogicMap.Entry>) o;
return this.fieldScopeLogic.equals(that.fieldScopeLogic())
&& this.value.equals(that.value());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= fieldScopeLogic.hashCode();
h$ *= 1000003;
h$ ^= value.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy