issue12328.java.golden 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // Code generated by gobind. DO NOT EDIT.
  2. // Java class issue12328.T is a proxy for talking to a Go program.
  3. //
  4. // autogenerated by gobind -lang=java issue12328
  5. package issue12328;
  6. import go.Seq;
  7. public final class T implements Seq.Proxy {
  8. static { Issue12328.touch(); }
  9. private final int refnum;
  10. @Override public final int incRefnum() {
  11. Seq.incGoRef(refnum, this);
  12. return refnum;
  13. }
  14. T(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  15. public T() { this.refnum = __New(); Seq.trackGoRef(refnum, this); }
  16. private static native int __New();
  17. public final native java.lang.Exception getErr();
  18. public final native void setErr(java.lang.Exception v);
  19. @Override public boolean equals(Object o) {
  20. if (o == null || !(o instanceof T)) {
  21. return false;
  22. }
  23. T that = (T)o;
  24. java.lang.Exception thisErr = getErr();
  25. java.lang.Exception thatErr = that.getErr();
  26. if (thisErr == null) {
  27. if (thatErr != null) {
  28. return false;
  29. }
  30. } else if (!thisErr.equals(thatErr)) {
  31. return false;
  32. }
  33. return true;
  34. }
  35. @Override public int hashCode() {
  36. return java.util.Arrays.hashCode(new Object[] {getErr()});
  37. }
  38. @Override public String toString() {
  39. StringBuilder b = new StringBuilder();
  40. b.append("T").append("{");
  41. b.append("Err:").append(getErr()).append(",");
  42. return b.append("}").toString();
  43. }
  44. }
  45. // Code generated by gobind. DO NOT EDIT.
  46. // Java class issue12328.Issue12328 is a proxy for talking to a Go program.
  47. //
  48. // autogenerated by gobind -lang=java issue12328
  49. package issue12328;
  50. import go.Seq;
  51. public abstract class Issue12328 {
  52. static {
  53. Seq.touch(); // for loading the native library
  54. _init();
  55. }
  56. private Issue12328() {} // uninstantiable
  57. // touch is called from other bound packages to initialize this package
  58. public static void touch() {}
  59. private static native void _init();
  60. }