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 R3 implements Record { public Number x; //@ public instance invariant project.Entry.invChecksOn ==> inv_R3(x); public R3(final Number _x) { //@ assert Utils.is_int(_x); x = _x; //@ assert Utils.is_int(x); } /*@ pure @*/ public boolean equals(final Object obj) { if (!(obj instanceof project.Entrytypes.R3)) { return false; } project.Entrytypes.R3 other = ((project.Entrytypes.R3) obj); return Utils.equals(x, other.x); } /*@ pure @*/ public int hashCode() { return Utils.hashCode(x); } /*@ pure @*/ public project.Entrytypes.R3 copy() { return new project.Entrytypes.R3(x); } /*@ pure @*/ public String toString() { return "mk_Entry`R3" + Utils.formatFields(x); } /*@ pure @*/ public Number get_x() { Number ret_5 = x; //@ assert project.Entry.invChecksOn ==> (Utils.is_int(ret_5)); return ret_5; } public void set_x(final Number _x) { //@ assert project.Entry.invChecksOn ==> (Utils.is_int(_x)); x = _x; //@ assert project.Entry.invChecksOn ==> (Utils.is_int(x)); } /*@ pure @*/ public Boolean valid() { return true; } /*@ pure @*/ /*@ helper @*/ public static Boolean inv_R3(final Number _x) { return !(Utils.equals(_x, 3L)); } }