45 lines
1.4 KiB
Java
45 lines
1.4 KiB
Java
package com.google.common.collect;
|
|
|
|
import com.google.common.base.Preconditions;
|
|
import java.util.Collection;
|
|
import java.util.Set;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class ForwardingSet<E> extends ForwardingCollection<E> implements Set<E> {
|
|
protected ForwardingSet() {
|
|
}
|
|
|
|
@Override // com.google.common.collect.ForwardingCollection, com.google.common.collect.ForwardingObject
|
|
protected abstract /* bridge */ /* synthetic */ Object delegate();
|
|
|
|
@Override // com.google.common.collect.ForwardingCollection, com.google.common.collect.ForwardingObject
|
|
protected abstract /* bridge */ /* synthetic */ Collection delegate();
|
|
|
|
@Override // com.google.common.collect.ForwardingCollection, com.google.common.collect.ForwardingObject
|
|
protected abstract Set<E> delegate();
|
|
|
|
@Override // java.util.Collection, java.util.Set
|
|
public boolean equals(Object obj) {
|
|
return obj == this || delegate().equals(obj);
|
|
}
|
|
|
|
@Override // java.util.Collection, java.util.Set
|
|
public int hashCode() {
|
|
return delegate().hashCode();
|
|
}
|
|
|
|
protected boolean standardEquals(Object obj) {
|
|
return Sets.a(this, obj);
|
|
}
|
|
|
|
protected int standardHashCode() {
|
|
return Sets.a(this);
|
|
}
|
|
|
|
@Override // com.google.common.collect.ForwardingCollection
|
|
protected boolean standardRemoveAll(Collection<?> collection) {
|
|
Preconditions.a(collection);
|
|
return Sets.a((Set<?>) this, collection);
|
|
}
|
|
}
|