what-the-bank/sources/o/gtT.java

144 lines
4.4 KiB
Java

package o;
import java.io.Serializable;
import org.threeten.bp.DateTimeException;
/* loaded from: classes.dex */
public final class gtT implements Serializable {
private static final long serialVersionUID = -7317881728594519368L;
private final long maxLargest;
private final long maxSmallest;
private final long minLargest;
private final long minSmallest;
public static gtT of(long j, long j2) {
if (j > j2) {
throw new IllegalArgumentException("Minimum value must be less than maximum value");
}
return new gtT(j, j, j2, j2);
}
public static gtT of(long j, long j2, long j3) {
return of(j, j, j2, j3);
}
public static gtT of(long j, long j2, long j3, long j4) {
if (j > j2) {
throw new IllegalArgumentException("Smallest minimum value must be less than largest minimum value");
}
if (j3 > j4) {
throw new IllegalArgumentException("Smallest maximum value must be less than largest maximum value");
}
if (j2 > j4) {
throw new IllegalArgumentException("Minimum value must be less than maximum value");
}
return new gtT(j, j2, j3, j4);
}
private gtT(long j, long j2, long j3, long j4) {
this.minSmallest = j;
this.minLargest = j2;
this.maxSmallest = j3;
this.maxLargest = j4;
}
public final boolean isIntValue() {
return getMinimum() >= -2147483648L && getMaximum() <= 2147483647L;
}
public final boolean isValidValue(long j) {
return j >= getMinimum() && j <= getMaximum();
}
public final boolean isValidIntValue(long j) {
return isIntValue() && isValidValue(j);
}
public final long checkValidValue(long j, InterfaceC15537gtP interfaceC15537gtP) {
if (isValidValue(j)) {
return j;
}
if (interfaceC15537gtP != null) {
StringBuilder sb = new StringBuilder("Invalid value for ");
sb.append(interfaceC15537gtP);
sb.append(" (valid values ");
sb.append(this);
sb.append("): ");
sb.append(j);
throw new DateTimeException(sb.toString());
}
StringBuilder sb2 = new StringBuilder("Invalid value (valid values ");
sb2.append(this);
sb2.append("): ");
sb2.append(j);
throw new DateTimeException(sb2.toString());
}
public final int checkValidIntValue(long j, InterfaceC15537gtP interfaceC15537gtP) {
if (isValidIntValue(j)) {
return (int) j;
}
StringBuilder sb = new StringBuilder("Invalid int value for ");
sb.append(interfaceC15537gtP);
sb.append(": ");
sb.append(j);
throw new DateTimeException(sb.toString());
}
public final boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof gtT)) {
return false;
}
gtT gtt = (gtT) obj;
return this.minSmallest == gtt.minSmallest && this.minLargest == gtt.minLargest && this.maxSmallest == gtt.maxSmallest && this.maxLargest == gtt.maxLargest;
}
public final String toString() {
StringBuilder sb = new StringBuilder();
sb.append(this.minSmallest);
if (this.minSmallest != this.minLargest) {
sb.append('/');
sb.append(this.minLargest);
}
sb.append(" - ");
sb.append(this.maxSmallest);
if (this.maxSmallest != this.maxLargest) {
sb.append('/');
sb.append(this.maxLargest);
}
return sb.toString();
}
public final boolean isFixed() {
return this.minSmallest == this.minLargest && this.maxSmallest == this.maxLargest;
}
public final int hashCode() {
long j = this.minSmallest;
long j2 = this.minLargest;
long j3 = this.maxSmallest;
long j4 = this.maxLargest;
long j5 = ((((((j + j2) << ((int) (16 + j2))) >> ((int) (j3 + 48))) << ((int) (j3 + 32))) >> ((int) (32 + j4))) << ((int) (j4 + 48))) >> 16;
return (int) (j5 ^ (j5 >>> 32));
}
public final long getSmallestMaximum() {
return this.maxSmallest;
}
public final long getMinimum() {
return this.minSmallest;
}
public final long getMaximum() {
return this.maxLargest;
}
public final long getLargestMinimum() {
return this.minLargest;
}
}