theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3SyncEF.java
Go to the documentation of this file.
1
9/* LABEL-NO */
10package jvsq3lite;
11
12// BEGIN-Sq3SyncEF - created by 'jv_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
13
16public class Sq3SyncEF {
17 public enum Set {
18 NORMAL (2 ), // 0x00002
19 FULL (3 ), // 0x00003
20 DATAONLY (16); // 0x00010
21 public final int val;
22 Set(int val) {this.val = val;}
23 public int get() { return val; }
24 }
25 private final int flag;
26 private Sq3SyncEF(int flg) {
27 this.flag = flg;
28 }
29 public int get() { return flag; }
30 public String toString() {
31 return Sq3Lite.SyncEF_ToString(this);
32 }
33 public boolean equals(Sq3SyncEF other) {
34 return this.flag == other.flag;
35 }
36 static public Sq3SyncEF AND(Sq3SyncEF.Set... vals) {
37 int flag = 0;
38 for (int i = 0; i < vals.length; i++) {
39 flag&=vals[i].val;
40 }
41 return new Sq3SyncEF(flag);
42 }
43 static public Sq3SyncEF set(int val) {
44 return Sq3Lite.SyncEF_FromInt(val);
45 }
46}
47
48// END-Sq3SyncEF - created by 'jv_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
Sq3Lite PACKAGE - toplevel package of the Programming-Language-Micro-Kernel (PLMK) …
Definition Sq3Lite.java:125
Java: enum Sq3SyncEF → C-API
static Sq3SyncEF AND(Sq3SyncEF.Set... vals)
boolean equals(Sq3SyncEF other)
Sq3SyncEF
Synchronization Type Flags.
static native String SyncEF_ToString(Sq3SyncEF value)
Java: [static] String SyncEF_ToString(Sq3SyncEF value) → C-API return the Sq3SyncEF as string …
static native Sq3SyncEF SyncEF_FromInt(int value)
Java: [static] Sq3SyncEF SyncEF_FromInt(int value) → C-API return the Sq3SyncEF from integer …