package project.Entrytypes;
import java.util.*;
import org.overture.codegen.runtime.*;
import org.overture.codegen.vdm2jml.runtime.*;
@SuppressWarnings("all")
//@ nullable_by_default
final public class St implements Record {
public Number x;
public St(final Number _x) {
//@ assert Utils.is_nat(_x);
x = _x;
//@ assert Utils.is_nat(x);
}
/*@ pure @*/
public boolean equals(final Object obj) {
if (!(obj instanceof project.Entrytypes.St)) {
return false;
}
project.Entrytypes.St other = ((project.Entrytypes.St) obj);
return Utils.equals(x, other.x);
}
/*@ pure @*/
public int hashCode() {
return Utils.hashCode(x);
}
/*@ pure @*/
public project.Entrytypes.St copy() {
return new project.Entrytypes.St(x);
}
/*@ pure @*/
public String toString() {
return "mk_Entry`St" + Utils.formatFields(x);
}
/*@ pure @*/
public Number get_x() {
Number ret_6 = x;
//@ assert project.Entry.invChecksOn ==> (Utils.is_nat(ret_6));
return ret_6;
}
public void set_x(final Number _x) {
//@ assert project.Entry.invChecksOn ==> (Utils.is_nat(_x));
x = _x;
//@ assert project.Entry.invChecksOn ==> (Utils.is_nat(x));
}
/*@ pure @*/
public Boolean valid() {
return true;
}
}