ADD week 5
This commit is contained in:
67
02-Easy5/E5/sources/kotlin/ranges/OpenEndFloatRange.java
Normal file
67
02-Easy5/E5/sources/kotlin/ranges/OpenEndFloatRange.java
Normal file
@@ -0,0 +1,67 @@
|
||||
package kotlin.ranges;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: Ranges.kt */
|
||||
@Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0007\n\u0002\b\t\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0000\b\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0015\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0004\u001a\u00020\u0002¢\u0006\u0002\u0010\u0005J\u0011\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\u0002H\u0096\u0002J\u0013\u0010\u000e\u001a\u00020\f2\b\u0010\u000f\u001a\u0004\u0018\u00010\u0010H\u0096\u0002J\b\u0010\u0011\u001a\u00020\u0012H\u0016J\b\u0010\u0013\u001a\u00020\fH\u0016J\u0018\u0010\u0014\u001a\u00020\f2\u0006\u0010\u0015\u001a\u00020\u00022\u0006\u0010\u0016\u001a\u00020\u0002H\u0002J\b\u0010\u0017\u001a\u00020\u0018H\u0016R\u000e\u0010\u0006\u001a\u00020\u0002X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0002X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0004\u001a\u00020\u00028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\tR\u0014\u0010\u0003\u001a\u00020\u00028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\t¨\u0006\u0019"}, d2 = {"Lkotlin/ranges/OpenEndFloatRange;", "Lkotlin/ranges/OpenEndRange;", "", "start", "endExclusive", "(FF)V", "_endExclusive", "_start", "getEndExclusive", "()Ljava/lang/Float;", "getStart", "contains", "", "value", "equals", "other", "", "hashCode", "", "isEmpty", "lessThanOrEquals", "a", "b", "toString", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class OpenEndFloatRange implements OpenEndRange<Float> {
|
||||
private final float _endExclusive;
|
||||
private final float _start;
|
||||
|
||||
private final boolean lessThanOrEquals(float a, float b) {
|
||||
return a <= b;
|
||||
}
|
||||
|
||||
public boolean contains(float value) {
|
||||
return value >= this._start && value < this._endExclusive;
|
||||
}
|
||||
|
||||
@Override // kotlin.ranges.OpenEndRange
|
||||
public boolean isEmpty() {
|
||||
return this._start >= this._endExclusive;
|
||||
}
|
||||
|
||||
public OpenEndFloatRange(float f, float f2) {
|
||||
this._start = f;
|
||||
this._endExclusive = f2;
|
||||
}
|
||||
|
||||
@Override // kotlin.ranges.OpenEndRange
|
||||
public /* bridge */ /* synthetic */ boolean contains(Float f) {
|
||||
return contains(f.floatValue());
|
||||
}
|
||||
|
||||
@Override // kotlin.ranges.OpenEndRange
|
||||
public Float getStart() {
|
||||
return Float.valueOf(this._start);
|
||||
}
|
||||
|
||||
@Override // kotlin.ranges.OpenEndRange
|
||||
public Float getEndExclusive() {
|
||||
return Float.valueOf(this._endExclusive);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (other instanceof OpenEndFloatRange) {
|
||||
if (!isEmpty() || !((OpenEndFloatRange) other).isEmpty()) {
|
||||
OpenEndFloatRange openEndFloatRange = (OpenEndFloatRange) other;
|
||||
if (this._start != openEndFloatRange._start || this._endExclusive != openEndFloatRange._endExclusive) {
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
if (isEmpty()) {
|
||||
return -1;
|
||||
}
|
||||
return (Float.floatToIntBits(this._start) * 31) + Float.floatToIntBits(this._endExclusive);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return this._start + "..<" + this._endExclusive;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user