hydra.langs.java.syntax.IntegerLiteral Maven / Gradle / Ivy
package hydra.langs.java.syntax;
import java.io.Serializable;
/**
* Note: this is an approximation which ignores encoding
*/
public class IntegerLiteral implements Serializable {
public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/java/syntax.IntegerLiteral");
/**
* Note: this is an approximation which ignores encoding
*/
public final java.math.BigInteger value;
public IntegerLiteral (java.math.BigInteger value) {
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof IntegerLiteral)) {
return false;
}
IntegerLiteral o = (IntegerLiteral) (other);
return value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * value.hashCode();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy