
org.jasmine.Identifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jasmine-core Show documentation
Show all versions of jasmine-core Show documentation
A jasmine runner using the dynjs javascript runtime
The newest version!
package org.jasmine;
public class Identifier {
public static Identifier identifier(int describeIndex, int itIndex) {
return new Identifier(describeIndex, itIndex);
}
private final int describeIndex;
private final int itIndex;
public Identifier(int describeIndex, int itIndex) {
this.describeIndex = describeIndex;
this.itIndex = itIndex;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Identifier that = (Identifier) o;
if (describeIndex != that.describeIndex) return false;
if (Double.compare(that.itIndex, itIndex) != 0) return false;
return true;
}
@Override
public int hashCode() {
int result;
long temp;
result = describeIndex;
temp = Double.doubleToLongBits(itIndex);
result = 31 * result + (int) (temp ^ (temp >>> 32));
return result;
}
@Override
public String toString() {
return "Identifier[" + describeIndex + ", " + itIndex + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy