2019-10-01 18:24:44 -04:00
|
|
|
// Code generated by gobind. DO NOT EDIT.
|
|
|
|
|
|
2017-01-01 22:43:46 +01:00
|
|
|
// Java class issue10788.TestStruct is a proxy for talking to a Go program.
|
2016-08-20 21:10:46 +02:00
|
|
|
//
|
2019-10-01 18:24:44 -04:00
|
|
|
// autogenerated by gobind -lang=java issue10788
|
2017-01-01 22:43:46 +01:00
|
|
|
package issue10788;
|
2016-08-20 21:10:46 +02:00
|
|
|
|
|
|
|
|
import go.Seq;
|
|
|
|
|
|
2016-09-19 12:44:13 +02:00
|
|
|
public final class TestStruct implements Seq.Proxy {
|
2016-09-29 14:19:38 +03:00
|
|
|
static { Issue10788.touch(); }
|
2016-09-16 19:19:01 +02:00
|
|
|
|
2018-04-13 18:43:35 +02:00
|
|
|
private final int refnum;
|
2016-09-19 12:44:13 +02:00
|
|
|
|
|
|
|
|
@Override public final int incRefnum() {
|
2018-04-14 12:55:03 +02:00
|
|
|
Seq.incGoRef(refnum, this);
|
2016-09-19 12:44:13 +02:00
|
|
|
return refnum;
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-13 18:43:35 +02:00
|
|
|
TestStruct(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
|
2016-08-20 21:10:46 +02:00
|
|
|
|
2018-04-13 18:43:35 +02:00
|
|
|
public TestStruct() { this.refnum = __New(); Seq.trackGoRef(refnum, this); }
|
2016-09-23 12:31:57 +02:00
|
|
|
|
2018-04-13 17:56:28 +02:00
|
|
|
private static native int __New();
|
2016-09-23 12:31:57 +02:00
|
|
|
|
2016-08-20 21:10:46 +02:00
|
|
|
public final native String getValue();
|
|
|
|
|
public final native void setValue(String v);
|
|
|
|
|
|
|
|
|
|
@Override public boolean equals(Object o) {
|
|
|
|
|
if (o == null || !(o instanceof TestStruct)) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
TestStruct that = (TestStruct)o;
|
|
|
|
|
String thisValue = getValue();
|
|
|
|
|
String thatValue = that.getValue();
|
|
|
|
|
if (thisValue == null) {
|
|
|
|
|
if (thatValue != null) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
} else if (!thisValue.equals(thatValue)) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override public int hashCode() {
|
|
|
|
|
return java.util.Arrays.hashCode(new Object[] {getValue()});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override public String toString() {
|
|
|
|
|
StringBuilder b = new StringBuilder();
|
|
|
|
|
b.append("TestStruct").append("{");
|
|
|
|
|
b.append("Value:").append(getValue()).append(",");
|
|
|
|
|
return b.append("}").toString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-01 18:24:44 -04:00
|
|
|
// Code generated by gobind. DO NOT EDIT.
|
|
|
|
|
|
2017-01-01 22:43:46 +01:00
|
|
|
// Java class issue10788.TestInterface is a proxy for talking to a Go program.
|
2016-08-20 21:10:46 +02:00
|
|
|
//
|
2019-10-01 18:24:44 -04:00
|
|
|
// autogenerated by gobind -lang=java issue10788
|
2017-01-01 22:43:46 +01:00
|
|
|
package issue10788;
|
2016-08-20 21:10:46 +02:00
|
|
|
|
|
|
|
|
import go.Seq;
|
|
|
|
|
|
|
|
|
|
public interface TestInterface {
|
2016-09-04 23:37:26 +03:00
|
|
|
public void doSomeWork(TestStruct s);
|
|
|
|
|
public void multipleUnnamedParams(long p0, String p1, long p2);
|
2016-08-20 21:10:46 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-01 18:24:44 -04:00
|
|
|
// Code generated by gobind. DO NOT EDIT.
|
|
|
|
|
|
2017-01-01 22:43:46 +01:00
|
|
|
// Java class issue10788.Issue10788 is a proxy for talking to a Go program.
|
2015-05-12 09:44:08 -04:00
|
|
|
//
|
2019-10-01 18:24:44 -04:00
|
|
|
// autogenerated by gobind -lang=java issue10788
|
2017-01-01 22:43:46 +01:00
|
|
|
package issue10788;
|
2015-05-12 09:44:08 -04:00
|
|
|
|
|
|
|
|
import go.Seq;
|
|
|
|
|
|
|
|
|
|
public abstract class Issue10788 {
|
2016-02-12 18:50:33 +01:00
|
|
|
static {
|
|
|
|
|
Seq.touch(); // for loading the native library
|
2016-09-04 23:37:26 +03:00
|
|
|
_init();
|
2015-05-12 09:44:08 -04:00
|
|
|
}
|
|
|
|
|
|
2016-02-12 18:50:33 +01:00
|
|
|
private Issue10788() {} // uninstantiable
|
|
|
|
|
|
2016-03-13 18:28:54 +01:00
|
|
|
// touch is called from other bound packages to initialize this package
|
|
|
|
|
public static void touch() {}
|
|
|
|
|
|
2016-09-04 23:37:26 +03:00
|
|
|
private static native void _init();
|
2016-02-12 18:50:33 +01:00
|
|
|
|
2016-09-19 12:44:13 +02:00
|
|
|
private static final class proxyTestInterface implements Seq.Proxy, TestInterface {
|
2018-04-13 18:43:35 +02:00
|
|
|
private final int refnum;
|
2016-09-19 12:44:13 +02:00
|
|
|
|
|
|
|
|
@Override public final int incRefnum() {
|
2018-04-14 12:55:03 +02:00
|
|
|
Seq.incGoRef(refnum, this);
|
2016-09-19 12:44:13 +02:00
|
|
|
return refnum;
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-13 18:43:35 +02:00
|
|
|
proxyTestInterface(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
|
2016-09-19 12:44:13 +02:00
|
|
|
|
2016-09-04 23:37:26 +03:00
|
|
|
public native void doSomeWork(TestStruct s);
|
|
|
|
|
public native void multipleUnnamedParams(long p0, String p1, long p2);
|
2016-02-12 18:50:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2015-05-12 09:44:08 -04:00
|
|
|
}
|