49 lines
942 B
Java
49 lines
942 B
Java
|
package com.google.common.collect;
|
||
|
|
||
|
import java.io.Serializable;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
final class Count implements Serializable {
|
||
|
private int value;
|
||
|
|
||
|
Count(int i) {
|
||
|
this.value = i;
|
||
|
}
|
||
|
|
||
|
public final boolean equals(Object obj) {
|
||
|
return (obj instanceof Count) && ((Count) obj).value == this.value;
|
||
|
}
|
||
|
|
||
|
public final String toString() {
|
||
|
return Integer.toString(this.value);
|
||
|
}
|
||
|
|
||
|
public final void set(int i) {
|
||
|
this.value = i;
|
||
|
}
|
||
|
|
||
|
public final int hashCode() {
|
||
|
return this.value;
|
||
|
}
|
||
|
|
||
|
public final int getAndSet(int i) {
|
||
|
int i2 = this.value;
|
||
|
this.value = i;
|
||
|
return i2;
|
||
|
}
|
||
|
|
||
|
public final int get() {
|
||
|
return this.value;
|
||
|
}
|
||
|
|
||
|
public final int addAndGet(int i) {
|
||
|
int i2 = this.value + i;
|
||
|
this.value = i2;
|
||
|
return i2;
|
||
|
}
|
||
|
|
||
|
public final void add(int i) {
|
||
|
this.value += i;
|
||
|
}
|
||
|
}
|