underscores.java.golden 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // Code generated by gobind. DO NOT EDIT.
  2. // Java class underscore_pkg.Underscore_struct is a proxy for talking to a Go program.
  3. //
  4. // autogenerated by gobind -lang=java underscores
  5. package underscore_pkg;
  6. import go.Seq;
  7. public final class Underscore_struct implements Seq.Proxy {
  8. static { Underscore_pkg.touch(); }
  9. private final int refnum;
  10. @Override public final int incRefnum() {
  11. Seq.incGoRef(refnum, this);
  12. return refnum;
  13. }
  14. Underscore_struct(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
  15. public Underscore_struct() { this.refnum = __New(); Seq.trackGoRef(refnum, this); }
  16. private static native int __New();
  17. public final native String getUnderscore_field();
  18. public final native void setUnderscore_field(String v);
  19. @Override public boolean equals(Object o) {
  20. if (o == null || !(o instanceof Underscore_struct)) {
  21. return false;
  22. }
  23. Underscore_struct that = (Underscore_struct)o;
  24. String thisUnderscore_field = getUnderscore_field();
  25. String thatUnderscore_field = that.getUnderscore_field();
  26. if (thisUnderscore_field == null) {
  27. if (thatUnderscore_field != null) {
  28. return false;
  29. }
  30. } else if (!thisUnderscore_field.equals(thatUnderscore_field)) {
  31. return false;
  32. }
  33. return true;
  34. }
  35. @Override public int hashCode() {
  36. return java.util.Arrays.hashCode(new Object[] {getUnderscore_field()});
  37. }
  38. @Override public String toString() {
  39. StringBuilder b = new StringBuilder();
  40. b.append("Underscore_struct").append("{");
  41. b.append("Underscore_field:").append(getUnderscore_field()).append(",");
  42. return b.append("}").toString();
  43. }
  44. }
  45. // Code generated by gobind. DO NOT EDIT.
  46. // Java class underscore_pkg.Underscore_pkg is a proxy for talking to a Go program.
  47. //
  48. // autogenerated by gobind -lang=java underscores
  49. package underscore_pkg;
  50. import go.Seq;
  51. public abstract class Underscore_pkg {
  52. static {
  53. Seq.touch(); // for loading the native library
  54. _init();
  55. }
  56. private Underscore_pkg() {} // 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. public static native void setUnderscore_var(long v);
  61. public static native long getUnderscore_var();
  62. public static native void underscore_func();
  63. }