-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathAtomOperation.java
More file actions
45 lines (38 loc) · 1.27 KB
/
AtomOperation.java
File metadata and controls
45 lines (38 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package hgtest;
import org.hypergraphdb.HGHandle;
public class AtomOperation
{
public AtomOperationKind kind;
public HGHandle atomHandle; // null for add, not null for replace, remove, define
public HGHandle atomType; // may be null if type can be inferred
public Object atomValue; // for replace, update
public AtomOperation(AtomOperationKind kind, Object atomValue)
{
this.kind = kind;
this.atomValue = atomValue;
}
public AtomOperation(AtomOperationKind kind, Object atomValue, HGHandle atomType)
{
this.kind = kind;
this.atomValue = atomValue;
this.atomType = atomType;
}
public AtomOperation(AtomOperationKind kind, HGHandle atomHandle, Object atomValue)
{
this.kind = kind;
this.atomValue = atomValue;
this.atomHandle = atomHandle;
}
public AtomOperation(AtomOperationKind kind, HGHandle atomHandle)
{
this.kind = kind;
this.atomHandle = atomHandle;
}
public AtomOperation(AtomOperationKind kind, HGHandle atomHandle, Object atomValue, HGHandle atomType)
{
this.kind = kind;
this.atomValue = atomValue;
this.atomHandle = atomHandle;
this.atomType = atomType;
}
}