@Test public void testStructSet() throws Exception { RQLSet set = new RQLSet("testset"); RQLStruct struct1 = new RQLStruct("test"); struct1.addValue("var1", 5); struct1.addValue("var2", 5.3); struct1.addValue("var3", "testval"); set.add(struct1); RQLStruct struct2 = new RQLStruct("test2"); struct2.addValue("var1", 5); struct2.addValue("var2", 5.3); struct2.addValue("var3", "testval"); set.add(struct2); RQLStruct struct3 = new RQLStruct("test2"); struct3.addValue("var1", 5); struct3.addValue("var2", 5.31); struct3.addValue("var3", "testval"); set.add(struct3); assertTrue(set.size() == 2); }
public RQLStruct addValue(String name, long val) { LongRQLVariable var = new LongRQLVariable(name, val); addElement(var); return this; }
RQLStruct extends RQLSymbol { public RQLStruct addValue(String name, long val) { LongRQLVariable var = new LongRQLVariable(name, val); addElement(var); return this; } }
RQLStruct extends RQLSymbol { public RQLStruct addValue(String name, long val) { LongRQLVariable var = new LongRQLVariable(name, val); addElement(var); return this; } RQLStruct();  RQLStruct(String name);  RQLStruct(SetItems items); }
RQLStruct extends RQLSymbol { public RQLStruct addValue(String name, long val) { LongRQLVariable var = new LongRQLVariable(name, val); addElement(var); return this; } RQLStruct();  RQLStruct(String name);  RQLStruct(SetItems items); RQLSymbol getElement(String name); @Override void merge(RQLSymbol mergeSymbol); @Override RQLSymbol clone(); @Override String toEmitRQLString(); @Override String toRQLString(); @Override String toValueString(); RQLStruct addElement(RQLSymbol e); RQLStruct addValue(String name, long val); RQLStruct addValue(String name, double val); RQLStruct addValue(String name, String val); boolean equals(Object obj); int hashCode(); }
RQLStruct extends RQLSymbol { public RQLStruct addValue(String name, long val) { LongRQLVariable var = new LongRQLVariable(name, val); addElement(var); return this; } RQLStruct();  RQLStruct(String name);  RQLStruct(SetItems items); RQLSymbol getElement(String name); @Override void merge(RQLSymbol mergeSymbol); @Override RQLSymbol clone(); @Override String toEmitRQLString(); @Override String toRQLString(); @Override String toValueString(); RQLStruct addElement(RQLSymbol e); RQLStruct addValue(String name, long val); RQLStruct addValue(String name, double val); RQLStruct addValue(String name, String val); boolean equals(Object obj); int hashCode();  }