query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO Autogenerated method stub
@Override public Chunk d(int i0, int i1) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Chunk c(int i0, int i1) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO: Saving chunks, Needs to be implemented on our side,
@Override public boolean a(boolean flag0, IProgressUpdate iprogressupdate) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveChunk(String chunkName,ObjectInputStream in)\n {\n BufferedOutputStream bufOutput;\n try\n {\n bufOutput = new BufferedOutputStream(new FileOutputStream(chunkName));\n int b;\n int bytesRead=0;\n while(bytesRead < chunkSize && (b=in.read())!=-1)\n {\n bufOutput.write(b);\n bytesRead++;\n }\n bufOutput.close();\n }\n catch(IOException ex)\n {\n System.out.println(\"Exception While Saving Chunk:\" + ex.getMessage());\n }\n }", "public void save() {\n\n\t\tint[][] rawData = new int[2][CHUNK_SIZE * CHUNK_SIZE];\n\n\t\tfor (int l = 0; l < 2; l++) {\n\t\t\tLayer layer = Layer.get(l);\n\t\t\tfor (int y = 0; y < CHUNK_SIZE; y++) {\n\t\t\t\tfor (int x = 0; x < CHUNK_SIZE; x++) {\n\t\t\t\t\trawData[l][x + y * CHUNK_SIZE] = getTileId(layer, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.saveData = new RawChunkData(rawData);\n\t}", "public boolean saveChunks(boolean p_73151_1_, IProgressUpdate ips)\n\t{\n\t\treturn true;\n\t}", "public File[] writeChunks(String save, int chunkSize) throws IOException {\n\t\tCollection<File> rtrn=new TreeSet<File>();\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(new FileInputStream(this.fastqFile)));\n\t\tString nextLine;\n\t\tFileWriter writer=new FileWriter(save+\".0.fq\");\n \tint i=0;\n while ((nextLine = reader.readLine()) != null && (nextLine.trim().length() > 0)) {\n \tif(nextLine.startsWith(\"@\")){\n \t\tif(i%chunkSize ==0){\n \t\t\twriter.close();\n \t\t\trtrn.add(new File(save+\".\"+(i/chunkSize)+\".fq\")); \n \t\t\twriter=new FileWriter(save+\".\"+(i/chunkSize)+\".fq\"); \n \t\t\tSystem.err.println(i);\n \t\t}\n \t\tString firstLine=nextLine;\n \t\tString secondLine=reader.readLine();\n \t\tString thirdLine=reader.readLine();\n \t\tString fourthLine=reader.readLine();\n \t\t\n \t\tFastqSequence seq=new FastqSequence(firstLine, secondLine, thirdLine, fourthLine);\n \t\t//String sequence=seq.getSequence();\n \t\twriter.write(seq.toFastq()+\"\\n\");\n \t\ti++;\n \t\tif(i % 100000 == 0){System.err.println(\"Iterating.. \"+ i);}\n \t}\n \t\n \t\n }\n this.numberOfSeq=i;\n File[] files=new File[rtrn.size()];\n int counter=0;\n for(File file: rtrn){files[counter++]=file;}\n\t\treturn files;\n\t}", "edu.usfca.cs.dfs.StorageMessages.StoreChunk getStoreChunk();", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "public void save() {\n doneSave = false;\n Double max = ((Integer) chunks.size()).doubleValue();\n Double done = 0.0;\n for (String key : chunks.keySet()) {\n ChunkWrapper w = chunks.get(key);\n w.save(false, true);\n done++;\n this.percent = ((Double) (done / max)).intValue();\n }\n chunks.clear();\n doneSave = true;\n }", "public boolean saveChunks(boolean par1, IProgressUpdate par2IProgressUpdate)\n {\n return true;\n }", "public boolean saveChunks(boolean par1, IProgressUpdate par2IProgressUpdate)\n {\n return true;\n }", "public void sendChunk(String fileName,ObjectOutputStream out)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n byte[] byteToSend = new byte[chunkSize];\n try\n {\n fInput = new FileInputStream(fileName);\n bufInput = new BufferedInputStream(fInput);\n int b;\n int i=0;\n b = bufInput.read(byteToSend,0,chunkSize);\n out.write(byteToSend,0,chunkSize);\n out.flush();\n bufInput.close();\n }\n catch(FileNotFoundException ex)\n {\n System.out.println(\"File Chunk Not found Exception: Some chunk missing.\");\n }\n catch(IOException ex)\n {\n System.out.println(\"IOException while reading from the chunk file.\");\n }\n }", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "private List<Chunk> saveChunks(List<byte[]> cs, String chunkprefix) {\r\n\t\tList<Chunk> chunks = new ArrayList<>();\r\n\t\tfor (int i = 0; i < cs.size(); i++) {\r\n\t\t\tbyte[] f = cs.get(i);\r\n\t\t\tChunk c = new Chunk();\r\n\t\t\tc.setChunkname(Utility.buildChunkName(chunkprefix, i));\r\n\t\t\tc.setContent(f);\r\n\t\t\tc.setSize(f.length);\r\n\t\t\tchunks.add(c);\r\n\t\t}\r\n\t\treturn chunks;\r\n\t}", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "int getChunkSize();", "edu.usfca.cs.dfs.StorageMessages.StoreChunkResponse getStoreChunkResponse();", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "private boolean sendChunk() throws IOException {\n // allocate Buffer\n final Buffer buffer = mm.allocate(chunkSize);\n // mark it available for disposal after content is written\n buffer.allowBufferDispose(true);\n\n // read file to the Buffer\n final int justReadBytes = (int) Buffers.readFromFileChannel(\n fileChannel, buffer);\n \n if (justReadBytes <= 0) {\n complete();\n return false;\n }\n\n // prepare buffer to be written\n buffer.trim();\n\n // write the Buffer\n outputStream.write(buffer);\n size -= justReadBytes;\n\n // check the remaining size here to avoid extra onWritePossible() invocation\n if (size <= 0) {\n complete();\n return false;\n }\n\n return true;\n }", "private void writeInMemoryData() throws IOException {\n out.write(totalBitsInChunk);\n\n /* write chunk of bytes itself */\n out.write(chunk, 0, chunkIndex < chunk.length ? chunkIndex + 1 : chunkIndex);\n out.flush();\n\n zeroChunk();\n }", "boolean hasStoreChunk();", "public interface Chunk extends PersistentDataHolder {\r\n\r\n /**\r\n * Gets the X-coordinate of this chunk\r\n *\r\n * @return X-coordinate\r\n */\r\n int getX();\r\n\r\n /**\r\n * Gets the Z-coordinate of this chunk\r\n *\r\n * @return Z-coordinate\r\n */\r\n int getZ();\r\n\r\n /**\r\n * Gets the world containing this chunk\r\n *\r\n * @return Parent World\r\n */\r\n @NotNull\r\n World getWorld();\r\n\r\n /**\r\n * Gets a block from this chunk\r\n *\r\n * @param x 0-15\r\n * @param y 0-255\r\n * @param z 0-15\r\n * @return the Block\r\n */\r\n @NotNull\r\n Block getBlock(int x, int y, int z);\r\n\r\n /**\r\n * Capture thread-safe read-only snapshot of chunk data\r\n *\r\n * @return ChunkSnapshot\r\n */\r\n @NotNull\r\n ChunkSnapshot getChunkSnapshot();\r\n\r\n /**\r\n * Capture thread-safe read-only snapshot of chunk data\r\n *\r\n * @param includeMaxblocky - if true, snapshot includes per-coordinate\r\n * maximum Y values\r\n * @param includeBiome - if true, snapshot includes per-coordinate biome\r\n * type\r\n * @param includeBiomeTempRain - if true, snapshot includes per-coordinate\r\n * raw biome temperature and rainfall\r\n * @return ChunkSnapshot\r\n */\r\n @NotNull\r\n ChunkSnapshot getChunkSnapshot(boolean includeMaxblocky, boolean includeBiome, boolean includeBiomeTempRain);\r\n\r\n /**\r\n * Get a list of all entities in the chunk.\r\n *\r\n * @return The entities.\r\n */\r\n @NotNull\r\n Entity[] getEntities();\r\n\r\n /**\r\n * Get a list of all tile entities in the chunk.\r\n *\r\n * @return The tile entities.\r\n */\r\n @NotNull\r\n BlockState[] getTileEntities();\r\n\r\n /**\r\n * Checks if the chunk is loaded.\r\n *\r\n * @return True if it is loaded.\r\n */\r\n boolean isLoaded();\r\n\r\n /**\r\n * Loads the chunk.\r\n *\r\n * @param generate Whether or not to generate a chunk if it doesn't\r\n * already exist\r\n * @return true if the chunk has loaded successfully, otherwise false\r\n */\r\n boolean load(boolean generate);\r\n\r\n /**\r\n * Loads the chunk.\r\n *\r\n * @return true if the chunk has loaded successfully, otherwise false\r\n */\r\n boolean load();\r\n\r\n /**\r\n * Unloads and optionally saves the Chunk\r\n *\r\n * @param save Controls whether the chunk is saved\r\n * @return true if the chunk has unloaded successfully, otherwise false\r\n */\r\n boolean unload(boolean save);\r\n\r\n /**\r\n * Unloads and optionally saves the Chunk\r\n *\r\n * @return true if the chunk has unloaded successfully, otherwise false\r\n */\r\n boolean unload();\r\n\r\n /**\r\n * Checks if this chunk can spawn slimes without being a swamp biome.\r\n *\r\n * @return true if slimes are able to spawn in this chunk\r\n */\r\n boolean isSlimeChunk();\r\n\r\n /**\r\n * Gets whether the chunk at the specified chunk coordinates is force\r\n * loaded.\r\n * <p>\r\n * A force loaded chunk will not be unloaded due to lack of player activity.\r\n *\r\n * @return force load status\r\n * @see World#isChunkForceLoaded(int, int)\r\n */\r\n boolean isForceLoaded();\r\n\r\n /**\r\n * Sets whether the chunk at the specified chunk coordinates is force\r\n * loaded.\r\n * <p>\r\n * A force loaded chunk will not be unloaded due to lack of player activity.\r\n *\r\n * @param forced force load status\r\n * @see World#setChunkForceLoaded(int, int, boolean)\r\n */\r\n void setForceLoaded(boolean forced);\r\n\r\n /**\r\n * Adds a plugin ticket for this chunk, loading this chunk if it is not\r\n * already loaded.\r\n * <p>\r\n * A plugin ticket will prevent a chunk from unloading until it is\r\n * explicitly removed. A plugin instance may only have one ticket per chunk,\r\n * but each chunk can have multiple plugin tickets.\r\n * </p>\r\n *\r\n * @param plugin Plugin which owns the ticket\r\n * @return {@code true} if a plugin ticket was added, {@code false} if the\r\n * ticket already exists for the plugin\r\n * @throws IllegalStateException If the specified plugin is not enabled\r\n * @see World#addPluginChunkTicket(int, int, Plugin)\r\n */\r\n boolean addPluginChunkTicket(@NotNull Plugin plugin);\r\n\r\n /**\r\n * Removes the specified plugin's ticket for this chunk\r\n * <p>\r\n * A plugin ticket will prevent a chunk from unloading until it is\r\n * explicitly removed. A plugin instance may only have one ticket per chunk,\r\n * but each chunk can have multiple plugin tickets.\r\n * </p>\r\n *\r\n * @param plugin Plugin which owns the ticket\r\n * @return {@code true} if the plugin ticket was removed, {@code false} if\r\n * there is no plugin ticket for the chunk\r\n * @see World#removePluginChunkTicket(int, int, Plugin)\r\n */\r\n boolean removePluginChunkTicket(@NotNull Plugin plugin);\r\n\r\n /**\r\n * Retrieves a collection specifying which plugins have tickets for this\r\n * chunk. This collection is not updated when plugin tickets are added or\r\n * removed to this chunk.\r\n * <p>\r\n * A plugin ticket will prevent a chunk from unloading until it is\r\n * explicitly removed. A plugin instance may only have one ticket per chunk,\r\n * but each chunk can have multiple plugin tickets.\r\n * </p>\r\n *\r\n * @return unmodifiable collection containing which plugins have tickets for\r\n * this chunk\r\n * @see World#getPluginChunkTickets(int, int)\r\n */\r\n @NotNull\r\n Collection<Plugin> getPluginChunkTickets();\r\n\r\n /**\r\n * Gets the amount of time in ticks that this chunk has been inhabited.\r\n *\r\n * Note that the time is incremented once per tick per player in the chunk.\r\n *\r\n * @return inhabited time\r\n */\r\n long getInhabitedTime();\r\n\r\n /**\r\n * Sets the amount of time in ticks that this chunk has been inhabited.\r\n *\r\n * @param ticks new inhabited time\r\n */\r\n void setInhabitedTime(long ticks);\r\n\r\n /**\r\n * Tests if this chunk contains the specified block.\r\n *\r\n * @param block block to test\r\n * @return if the block is contained within\r\n */\r\n boolean contains(@NotNull BlockData block);\r\n}", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getStoreChunkLocation();", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "public void store(GTSEncoder encoder) throws IOException {\n \n // Get the current time\n long now = TimeSource.getTime();\n long lastChunkEnd = chunkEnd(now);\n long firstChunkStart = lastChunkEnd - (chunkcount * chunklen) + 1;\n\n // Get a decoder without copying the encoder array\n GTSDecoder decoder = encoder.getUnsafeDecoder(false);\n \n int lastchunk = -1;\n\n GTSEncoder chunkEncoder = null;\n\n while(decoder.next()) {\n long timestamp = decoder.getTimestamp();\n \n // Ignore timestamp if it is not in the valid range\n if (timestamp < firstChunkStart || timestamp > lastChunkEnd) {\n continue;\n }\n \n // Compute the chunkid\n int chunkid = chunk(timestamp);\n \n if (chunkid != lastchunk) {\n chunkEncoder = null;\n \n synchronized(this.chunks) {\n // Is the chunk non existent or has expired?\n if (null == this.chunks[chunkid] || this.chunkends[chunkid] < firstChunkStart) {\n long end = chunkEnd(timestamp);\n this.chunks[chunkid] = new GTSEncoder(0L);\n this.lasttimestamp[chunkid] = end - this.chunklen;\n this.chronological.set(chunkid);\n this.chunkends[chunkid] = end; \n }\n \n chunkEncoder = this.chunks[chunkid]; \n }\n \n lastchunk = chunkid;\n }\n\n synchronized(this.chunks[chunkid]) {\n if (timestamp < this.lasttimestamp[chunkid]) {\n this.chronological.set(chunkid, false);\n }\n this.lasttimestamp[chunkid] = timestamp;\n }\n \n chunkEncoder.addValue(timestamp, decoder.getLocation(), decoder.getElevation(), decoder.getBinaryValue()); \n }\n }", "private void persistChunkBounds()\n\t{\n\t\tprevChunkBounds[BOUND_LEFT] = chunkBounds[BOUND_LEFT];\n\t\tprevChunkBounds[BOUND_RIGHT] = chunkBounds[BOUND_RIGHT];\n\t\tprevChunkBounds[BOUND_BOTTOM] = chunkBounds[BOUND_BOTTOM];\n\t\tprevChunkBounds[BOUND_TOP] = chunkBounds[BOUND_TOP];\n\t}", "@Override\r\n\tprotected void process(List<String> chunks) {\r\n\t\tfor (String data: chunks) {\r\n\t\t\thandleData(data);\r\n\t\t}\r\n\t}", "public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}", "private LeafNodeObject getChunk(long chunkStart, long chunkEnd) throws IOException {\n if (chunkEnd <= chunkStart || (chunkEnd - chunkStart > this.maxChunkSize) ||\n chunkStart > Integer.MAX_VALUE) {\n throw new IOException(\"ChunkStart out of range\");\n }\n\n byte[] temp = Arrays.copyOfRange(this.fileContent, (int) chunkStart,\n (int) (chunkEnd - chunkStart));\n\n\n SignatureObject signature = new SignatureObject();\n signature.signatureData = new BinaryItem(ByteUtil.toListOfByte(temp));\n\n// RDCSignatureGenerator generator = new RDCSignatureGenerator();\n// signatureBytes = generator.ComputeHash(temp);\n//\n// SignatureObject signature = new SignatureObject();\n// signature.SignatureData = new BinaryItem(signatureBytes);\n\n return new LeafNodeObject.IntermediateNodeObjectBuilder().Build(temp, signature);\n }", "public ChunkFiler() {}", "void sendChunkRequest(int chunkX, int chunkY);", "public boolean putChunk(String ChunkHandle, byte[] payload, int offset) {\n\t\t\n\t\tif (offset + payload.length > ChunkServer.ChunkSize) {\n\t\t\tSystem.out.println(\"The chunk should write should be within range of the file, invalid\");\n\t\t\treturn false; \n\t\t} \n\t\ttry {\n\t\t\t// request \n\t\t\tbyte[] handle = ChunkHandle.getBytes();\n\t\t\t// write payload size \n\t\t\toos.writeInt(4 + 4 + 4 + 4 + 4 + handle.length + payload.length);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.PutChunk);\n\t\t\t// write chunkHandle size \n\t\t\toos.writeInt(handle.length);\n\t\t\t// write chunk handle\n\t\t\toos.write(handle);\n\t\t\t// write payload size s\n\t\t\toos.writeInt(payload.length);\n\t\t\t// write payload \n\t\t\toos.write(payload);\n\t\t\t// write offset\n\t\t\toos.writeInt(offset);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint resultSize = getPayloadInt(ois);\n\t\t\tint result = getPayloadInt(ois);\n\t\t\t\n\t\t\tif (result == 0) {\n\t\t\t\treturn false; \n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"success put chunk\");\n\t\t\t\treturn true; \n\t\t\t}\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\t\t\n\t\treturn false; \n\t}", "void dumpChunk(OutputStream out) throws ScriptException {\n\t\ttry {\n\t\t\tluaState.dump(out);\n\t\t} catch (LuaException e) {\n\t\t\tthrow new ScriptException(e);\n\t\t} catch (IOException e) {\n\t\t\tthrow new ScriptException(e);\n\t\t}\n\n\t}", "boolean hasStoreChunkLocation();", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "int getChunkIndex();", "int getChunkIndex();", "public interface AggregationChunkStorage {\n\t/**\n\t * Creates a {@code StreamProducer} that streams records contained in the chunk.\n\t * The chunk to read is determined by {@code aggregationId} and {@code id}.\n\t *\n\t * @param recordClass class of chunk record\n\t * @param id id of chunk\n\t * @return StreamProducer, which will stream read records to its wired consumer.\n\t */\n\t<T> StreamProducer<T> chunkReader(Aggregation aggregation, List<String> keys, List<String> fields,\n\t Class<T> recordClass, long id, DefiningClassLoader classLoader);\n\n\t/**\n\t * Creates a {@code StreamConsumer} that persists streamed records.\n\t * The chunk to write is determined by {@code aggregationId} and {@code id}.\n\t *\n\t * @param fields fields of chunk record\n\t * @param recordClass class of chunk record\n\t * @param id id of chunk\n\t * @param producer producer of records\n\t */\n\t<T> void chunkWriter(Aggregation aggregation, List<String> keys, List<String> fields, Class<T>\n\t\t\trecordClass, long id, StreamProducer<T> producer, DefiningClassLoader classLoader, CompletionCallback callback);\n\n\t/**\n\t * Removes the chunk determined by {@code aggregationId} and {@code id}.\n\t *\n\t * @param id id of chunk\n\t * @param callback callback\n\t */\n\tvoid removeChunk(long id, CompletionCallback callback);\n}", "public static void write(\n\t\tBinaryDataOutput out,\n\t\tStoreChunkOperation op\n\t)\n\t\tthrows IOException\n\t{\n\t\twrite(\n\t\t\tout,\n\t\t\top.getCollection(),\n\t\t\top.getId(),\n\t\t\top.getData(),\n\t\t\t0,\n\t\t\top.getData().length\n\t\t);\n\t}", "public static List<Path> chunkImages(Path inputOoxmlFilePath, int chunkCount) throws IOException {\r\n List<Path> resultChunkPaths = new ArrayList<Path>();\r\n\r\n String ooxmlRootFolderName = \"\";\r\n\r\n for (int chunkNumber = 1; chunkNumber <= chunkCount; chunkNumber++) {\r\n Path resultFilePath = Paths\r\n .get(FileUtils.getAllExceptExtension(inputOoxmlFilePath.toString()) + \"_\" + chunkNumber + \"_of_\" + chunkCount + '.' + FileUtils.getFileExtension(inputOoxmlFilePath.toString()));\r\n\r\n // new copy of the original ooxml file for each 'chunk'\r\n Files.copy(inputOoxmlFilePath, resultFilePath, StandardCopyOption.REPLACE_EXISTING);\r\n\r\n // mount the zip file system\r\n try (FileSystem fs = FileSystems.newFileSystem(resultFilePath, null)) {\r\n\r\n Path mediaFolderInsideZipPath = getMediaDirectoryPath(fs);\r\n if (mediaFolderInsideZipPath == null) {\r\n throw new IOException(\"failed to find the media folder (e.g. ppt/media, word/media, Pictures) that contains the images in the ooxml file: \" + resultFilePath);\r\n }\r\n\r\n // list the contents of the /media/ folder\r\n try (DirectoryStream<Path> mediaDirectoryStream = Files.newDirectoryStream(mediaFolderInsideZipPath)) {\r\n // for every file in the /media/ folder\r\n // note: NOT expecting any subfolders\r\n for (Path mediaFilePath : mediaDirectoryStream) {\r\n if (BMPUtils.CHUNKABLE_IMAGE_FILE_EXTENSIONS.contains(FileUtils.getFileExtension(mediaFilePath.toString()))) {\r\n LOGGER.fine(\"Chunking image: \" + mediaFilePath);\r\n //String resultImageFileLoc = getAllExceptExtension(mediaFilePath) + \".bmp\";\r\n Path resultImageFilePath = mediaFilePath; //fs.getPath(resultImageFileLoc);\r\n try {\r\n OoxmlChunkUtils.writeImageChunk(mediaFilePath, resultImageFilePath, FileUtils.getFileExtension(mediaFilePath.toString()), chunkNumber, chunkCount);\r\n } catch (Exception e) {\r\n LOGGER.log(Level.WARNING, \"error writing chunk \" + chunkNumber + \" for image \" + resultImageFilePath, e);\r\n }\r\n }\r\n // else, any file that cannot be broken-down gets left as-is in every chunk\r\n }\r\n } catch (IOException e) {\r\n LOGGER.log(Level.WARNING, \"error getting zip contents at \" + mediaFolderInsideZipPath + \" inside \" + resultFilePath, e);\r\n }\r\n\r\n } catch (IOException e) {\r\n LOGGER.log(Level.WARNING, \"error mounting zip filesystem \" + resultFilePath, e);\r\n }\r\n resultChunkPaths.add(resultFilePath);\r\n }\r\n return resultChunkPaths;\r\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "entities.Torrent.ChunkInfo getChunks(int index);", "private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }", "protected Version putChunks(long startByte,\n byte chunkPrefix[],\n Version metadataVersion)\n throws IOException {\n\n if (((chunkPrefix == null) != ((startByte % chunkSize) == 0))) {\n throw new IllegalStateException(\"start byte:\" + startByte +\n \" chunk size:\" + chunkSize +\n \" inconsistent with prefix chunk:\" +\n chunkPrefix);\n }\n\n if ((lobSize < 0) || (numChunks < 0)) {\n throw new IllegalStateException(\"lobSize:\" + lobSize +\n \" numChunks:\" + numChunks);\n }\n\n byte chunk[] = new byte[chunkSize];\n boolean initialReplacePut = false;\n\n int currentSize = 0;\n if (chunkPrefix != null) {\n currentSize = chunkPrefix.length;\n lobSize -= currentSize;\n /* Back up over the chunk, so we can overwrite it. */\n numChunks--;\n System.arraycopy(chunkPrefix, 0, chunk, 0, currentSize);\n initialReplacePut = true;\n }\n\n final ChunkKeysIterator chunkKeys =\n getChunkKeysByteRangeIterator(startByte, Long.MAX_VALUE);\n\n readLoop:\n while (true) {\n int readBytes = -1;\n\n /* Fill up a chunk. */\n while (currentSize < chunkSize) {\n readBytes = lobStream.read(chunk, currentSize,\n (chunkSize - currentSize));\n if (readBytes == -1) {\n if (currentSize > 0) {\n break;\n }\n break readLoop;\n }\n currentSize += readBytes;\n }\n\n final Key chunkKey = chunkKeys.next();\n\n /* Write it, vary the durability based upon the chunk. */\n final Durability chunkDurability = (readBytes == -1) ||\n (chunkKeys.getChunkId() == chunksPerPartition) ?\n lobDurability : CHUNK_DURABILITY;\n\n putChunk(chunkKey, chunk, currentSize,\n initialReplacePut, chunkDurability);\n numChunks++;\n if (chunkKeys.getChunkId() == 1) {\n metadataVersion =\n checkpointSuperChunkId(chunkKeys.getSuperChunkId(),\n metadataVersion);\n }\n lobSize += currentSize;\n currentSize = 0;\n initialReplacePut = false;\n }\n\n return metadataVersion;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "private StoreChunk(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public static long getChunks() {\n return chunks;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkSize() {\n return chunkSize;\n }", "private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }", "boolean hasStoreChunkResponse();", "private List<Chunk> getChunks(EditList editList) {\n List<Chunk> chunks = new ArrayList<>();\n for(Edit edit: editList) {\n chunks.add(new Chunk(edit));\n }\n return chunks;\n }", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index) {\n return chunksLocation_.get(index);\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "boolean hasChunkId();", "public boolean getChunking () {\n\treturn chunk;\n }", "void mo54426b(int i, List<DownloadChunk> list);", "private void sendWriteChunkRequest(File file, InputStream is,\n ConnectionUtilities connections, int numberOfChunks)\n throws NumberFormatException, IOException {\n byte[] message = new byte[ Constants.CHUNK_SIZE ];\n\n ProgressBar progress = new ProgressBar( file.getName() );\n\n WriteChunkRequest request = new WriteChunkRequest( file.getAbsolutePath(),\n 0, null, file.lastModified(), 1, null );\n\n int sequence = 0, length = 0;\n while ( ( length = is.read( message ) ) != -1 )\n {\n // Only send to the first connection, whom will forward the rest\n String[] initialConnection = routes[ sequence ][ 0 ].split( \":\" );\n TCPConnection connection =\n connections.cacheConnection( node, initialConnection, false );\n // Pad elements b[k] through b[b.length-1] with zeros\n Arrays.fill( message, length, Constants.CHUNK_SIZE, ( byte ) 0 );\n byte[][] messageToSend = new byte[][] { message };\n if ( Properties.SYSTEM_DESIGN_SCHEMA\n .equals( Constants.SYSTEM_TYPE_ERASURE ) )\n {\n messageToSend = ReedSolomonUtilities.encode( message );\n }\n request.setMessage( messageToSend );\n request.setRoutes( routes[ sequence ] );\n request.setSequence( sequence );\n connection.getTCPSender().sendData( request.getBytes() );\n\n progress.update( sequence, numberOfChunks );\n ++sequence;\n }\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "public String getSongChunk(Long key, Long fragment) throws IOException {\n byte buf[] = new byte[FRAGMENT_SIZE];\n File file = new File(MUSIC_FILE_PATH + File.separator + key + \".mp3\");\n System.out.println(\"SongDispatcher has found file: \" + key + \"\\tStatus: \" + file.exists());\n FileInputStream inputStream = new FileInputStream(file);\n inputStream.skip(fragment * FRAGMENT_SIZE);\n inputStream.read(buf);\n inputStream.close();\n\n return Base64.getEncoder().encodeToString(buf);\n }", "void mo54414a(int i, List<DownloadChunk> list);", "@java.lang.Override\n public entities.Torrent.ChunkInfo getChunks(int index) {\n return chunks_.get(index);\n }", "String getChunkType();", "edu.usfca.cs.dfs.StorageMessages.StoreChunkOrBuilder getStoreChunkOrBuilder();", "void mo54417a(DownloadChunk downloadChunk);", "int getChunksCount();", "int getChunksCount();", "public entities.Torrent.ChunkInfo.Builder addChunksBuilder() {\n return getChunksFieldBuilder().addBuilder(\n entities.Torrent.ChunkInfo.getDefaultInstance());\n }", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index) {\n if (chunksLocationBuilder_ == null) {\n return chunksLocation_.get(index);\n } else {\n return chunksLocationBuilder_.getMessage(index);\n }\n }", "public int getChunksCount() {\n return chunksCount_;\n }", "public static void reassembleImages(Path resultOoxmlFilePath, int resultChunkNumber, Path chunkOoxmlFilePath, int chunkNumber, int totalNumberOfChunks, int[] alreadyIncorporatedChunkIds) {\r\n\r\n HashMap<String, BufferedImage> chunkImageMap = new HashMap<String, BufferedImage>();\r\n\r\n // mount the chunk zip file system\r\n try (FileSystem chunkFs = FileSystems.newFileSystem(chunkOoxmlFilePath, null)) {\r\n List<Path> chunkFilePaths = listChunkableFiles(chunkFs);\r\n for (Path chunkFilePath : chunkFilePaths) {\r\n try (InputStream readInputStream = Files.newInputStream(chunkFilePath, StandardOpenOption.READ)) {\r\n BufferedImage chunkImage = ImageIO.read(readInputStream);\r\n chunkImageMap.put(chunkFilePath.toString(), chunkImage);\r\n }\r\n }\r\n } catch (Exception e) {\r\n LOGGER.log(Level.WARNING, \"error mounting zip filesystem \" + chunkOoxmlFilePath, e);\r\n }\r\n // mount the result zip file system\r\n try (FileSystem resultFs = FileSystems.newFileSystem(resultOoxmlFilePath, null)) {\r\n List<Path> resultFilePaths = listChunkableFiles(resultFs);\r\n\r\n for (int i = 0; i < resultFilePaths.size(); i++) {\r\n Path resultPath = resultFilePaths.get(i);\r\n\r\n /*\r\n\t\t\t\t TRYING TO PRESERVE THE IMAGE METADATA, BUT CODE IS NOT READY YET\r\n\t\t\t\t \r\n\t\t\t\ttry (InputStream resultImageInputStream = Files.newInputStream(resultPath, StandardOpenOption.READ)) {\r\n\t\t\t\t\tImageInputStream input = ImageIO.createImageInputStream(resultImageInputStream);\r\n\r\n\t\t Iterator<ImageReader> readers = ImageIO.getImageReaders(input);\r\n\t\t if (!readers.hasNext()) {\r\n\t\t \tthrow new IOException(\"no image reader for file \" + resultPath);\r\n\t\t }\r\n\t\t // Read image and metadata\r\n\t\t ImageReader reader = readers.next();\r\n\t\t reader.setInput(input);\r\n\t\t IIOMetadata metadata = reader.getImageMetadata(0);\r\n\t\t BufferedImage firstChunkImage = reader.read(0);\r\n\t\t \r\n\t\t\t\t\tBMPReassembler reassembler = new BMPReassembler(totalNumberOfChunks);\r\n\t\t\t\t\tif (alreadyIncorporatedChunkIds != null && alreadyIncorporatedChunkIds.length > 0) {\r\n\t\t\t\t\treassembler.setPartialResultImage(firstChunkImage, alreadyIncorporatedChunkIds);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treassembler.incorporateChunk(firstChunkImage, resultChunkNumber);\t\t\t\t\t\t\r\n\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tBufferedImage nextChunkImage = chunkImageMap.get(resultPath.toString());\t\t\t\t\t\r\n\t\t\t\t\treassembler.incorporateChunk(nextChunkImage, chunkNumber);\r\n\t\t\t\t\tif (alreadyIncorporatedChunkIds != null && alreadyIncorporatedChunkIds.length + 1 < totalNumberOfChunks) {\r\n\t\t\t\t\t\t//reassembler.interpolate();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// overwrite the original result image with the reassembled image\r\n\t\t // Write image with metadata from original image, to maintain tRNS info\r\n\t\t\t\t\ttry (OutputStream writeOutputStream = Files.newOutputStream(resultPath, StandardOpenOption.CREATE, StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTING) ) {\r\n\t\t\t\t\t\tImageWriter writer = ImageIO.getImageWritersBySuffix(getFileExtension(resultPath)).next();\r\n\t\t\t\t\t\tImageOutputStream output = ImageIO.createImageOutputStream(writeOutputStream);\r\n\t\t writer.setOutput(output);\r\n\t\t writer.write(new IIOImage(reassembler.getReassembledImage(), Collections.<BufferedImage>emptyList(), metadata));\r\n\t\t }\r\n\t\t \r\n\t\t }\r\n */\r\n // read the result image\r\n try (InputStream resultImageInputStream = Files.newInputStream(resultPath, StandardOpenOption.READ)) {\r\n\r\n BMPReassembler reassembler = new BMPReassembler(totalNumberOfChunks);\r\n BufferedImage firstChunkImage = ImageIO.read(resultImageInputStream);\r\n if (alreadyIncorporatedChunkIds != null && alreadyIncorporatedChunkIds.length > 0) {\r\n reassembler.setPartialResultImage(firstChunkImage, alreadyIncorporatedChunkIds);\r\n } else {\r\n reassembler.incorporateChunk(firstChunkImage, resultChunkNumber);\r\n }\r\n\r\n BufferedImage nextChunkImage = chunkImageMap.get(resultPath.toString());\r\n reassembler.incorporateChunk(nextChunkImage, chunkNumber);\r\n //if (alreadyIncorporatedChunkIds != null && alreadyIncorporatedChunkIds.length + 1 < totalNumberOfChunks) {\r\n reassembler.interpolate();\r\n //}\r\n // overwrite the original result image with the reassembled image\r\n try (OutputStream writeOutputStream = Files.newOutputStream(resultPath, StandardOpenOption.CREATE, StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTING)) {\r\n ImageIO.write(reassembler.getReassembledImage(), FileUtils.getFileExtension(resultPath.toString()), writeOutputStream);\r\n }\r\n }\r\n }\r\n } catch (Exception e) {\r\n LOGGER.log(Level.WARNING, \"error mounting zip filesystem \" + resultOoxmlFilePath, e);\r\n }\r\n\r\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "public String getChunkFileName() {\n return chunkFileName;\n }", "public void writeChunk(String id, byte[] data) throws IOException {\n byte[] identifier = id.getBytes(\"US-ASCII\");\n if (identifier.length != 4) {\n throw new IllegalArgumentException(\"ID length must match 4!\");\n }\n writeInt(data.length);\n write(identifier);\n write(data);\n CRC32 crc = new CRC32();\n crc.update(identifier);\n crc.update(data);\n writeInt((int) (crc.getValue() & 0xFFFFFFFFL));\n crc.reset();\n }", "public int getChunkSize() {\n return chunkSize_;\n }", "int getChunksLocationCount();" ]
[ "0.723039", "0.6591648", "0.6590136", "0.6543685", "0.6479508", "0.64776003", "0.6472512", "0.63784", "0.63784", "0.6357036", "0.62576944", "0.6248149", "0.6206343", "0.6174539", "0.6174539", "0.6174539", "0.6174539", "0.6174539", "0.6174539", "0.6135371", "0.6135371", "0.6135371", "0.6135371", "0.613164", "0.610398", "0.6054229", "0.6048997", "0.5994197", "0.5977501", "0.596017", "0.5958918", "0.5928599", "0.5898422", "0.58966917", "0.58959526", "0.58836925", "0.5880142", "0.58470327", "0.58185995", "0.5818199", "0.5779449", "0.5753243", "0.57406104", "0.57247347", "0.5715879", "0.5715879", "0.57042724", "0.5702371", "0.56950134", "0.56949896", "0.56949896", "0.5693563", "0.5688433", "0.56872225", "0.5668133", "0.5658256", "0.56484044", "0.56484044", "0.56484044", "0.56484044", "0.56484044", "0.56484044", "0.56352323", "0.56085944", "0.56045574", "0.56045574", "0.55920047", "0.55920047", "0.558575", "0.55833435", "0.55549824", "0.55392444", "0.55267596", "0.5515568", "0.5515568", "0.5515568", "0.5515568", "0.5515568", "0.5515568", "0.5506063", "0.54967594", "0.54884225", "0.54873973", "0.5479363", "0.54768217", "0.5465781", "0.54647887", "0.54551846", "0.54483086", "0.5445857", "0.5433849", "0.5433849", "0.5430749", "0.5429498", "0.54100156", "0.54096395", "0.5377287", "0.5367086", "0.5360022", "0.5358462", "0.5356632" ]
0.0
-1
TODO: unloadQueuedChunks, Needs to be implemented on our side,
@Override public boolean c() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean unloadQueuedChunks()\n\t{\n\t\treturn false;\n\t}", "public boolean unload100OldestChunks()\n {\n return false;\n }", "public boolean unload100OldestChunks()\n {\n return false;\n }", "public void filterChunkLoadQueue(EntityPlayerMP player)\r\n {\r\n ArrayList var2 = Lists.newArrayList(player.loadedChunks);\r\n int var3 = 0;\r\n int var4 = this.playerViewRadius;\r\n int var5 = (int)player.posX >> 4;\r\n int var6 = (int)player.posZ >> 4;\r\n int var7 = 0;\r\n int var8 = 0;\r\n ChunkCoordIntPair var9 = this.getPlayerInstance(var5, var6, true).chunkCoords;\r\n player.loadedChunks.clear();\r\n\r\n if (var2.contains(var9))\r\n {\r\n player.loadedChunks.add(var9);\r\n }\r\n\r\n int var10;\r\n\r\n for (var10 = 1; var10 <= var4 * 2; ++var10)\r\n {\r\n for (int var11 = 0; var11 < 2; ++var11)\r\n {\r\n int[] var12 = this.xzDirectionsConst[var3++ % 4];\r\n\r\n for (int var13 = 0; var13 < var10; ++var13)\r\n {\r\n var7 += var12[0];\r\n var8 += var12[1];\r\n var9 = this.getPlayerInstance(var5 + var7, var6 + var8, true).chunkCoords;\r\n\r\n if (var2.contains(var9))\r\n {\r\n player.loadedChunks.add(var9);\r\n }\r\n }\r\n }\r\n }\r\n\r\n var3 %= 4;\r\n\r\n for (var10 = 0; var10 < var4 * 2; ++var10)\r\n {\r\n var7 += this.xzDirectionsConst[var3][0];\r\n var8 += this.xzDirectionsConst[var3][1];\r\n var9 = this.getPlayerInstance(var5 + var7, var6 + var8, true).chunkCoords;\r\n\r\n if (var2.contains(var9))\r\n {\r\n player.loadedChunks.add(var9);\r\n }\r\n }\r\n }", "@Override\n\tpublic void unloadAllChunks() {\n\t\tfor (Column column : this.loadedColumns.values()) {\n\t\t\tfor (Cube cube : column.getCubes()) {\n\t\t\t\tthis.cubesToUnload.add(cube.getAddress());\n\t\t\t}\n\t\t}\n\t}", "void minecraftChunkUnloaded() {\n\t\tthis.lastUnloadingTime = System.currentTimeMillis();\n\t}", "public void onChunkUnload()\n {\n //RadioMod.logger.info(\"Unload\");\n RadioMod.instance.musicManager.radioSources.get(this.uuid).stopMusic();\n }", "@Override\n protected Collection<IChunk> clearInternal()\n {\n Collection<IChunk> rtn = super.clearInternal();\n \n setModalityChunk(getFreeChunk());\n setProcessorChunk(getFreeChunk());\n setExecutionChunk(getFreeChunk());\n setPreparationChunk(getFreeChunk());\n return rtn;\n }", "@Override\n\tpublic void unloadChunk(int cubeX, int cubeZ) {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void run() {\n \t\t\t\t\tif (pendingChunks.isEmpty()) {\r\n \t\t\t\t\t\tstop();\r\n \t\t\t\t\t\tchunkLoadTask = null;\r\n \t\t\t\t\t\treturn;\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// Ignore this run if fixing is still being performed\r\n \t\t\t\t\tsynchronized (toFix) {\r\n \t\t\t\t\t\tif (toFix.size() > 500) {\r\n \t\t\t\t\t\t\treturn;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// Load a maximum of 20 chunks\r\n \t\t\t\t\tfinal int loadRate = 20;\r\n \t\t\t\t\tfor (int i = 0; i < loadRate && !pendingChunks.isEmpty(); i++) {\r\n \t\t\t\t\t\tPendingChunk pending = pendingChunks.poll();\r\n \t\t\t\t\t\taddForFixing(pending.world.getChunkAt(pending.x, pending.z));\r\n \t\t\t\t\t}\r\n \t\t\t\t}", "void loadAll() {\n\t\tsynchronized (this) {\n\t\t\tif (isFullyLoaded) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (Entry<Integer, Supplier<ChunkMeta<?>>> generator : ChunkMetaFactory.getInstance()\n\t\t\t\t\t.getEmptyChunkFunctions()) {\n\t\t\t\tChunkMeta<?> chunk = generator.getValue().get();\n\t\t\t\tchunk.setChunkCoord(this);\n\t\t\t\tchunk.setPluginID(generator.getKey());\n\t\t\t\ttry {\n\t\t\t\t\tchunk.populate();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// need to catch everything here, otherwise we block the main thread forever\n\t\t\t\t\t// once it tries to read this\n\t\t\t\t\tCivModCorePlugin.getInstance().getLogger().log(Level.SEVERE, \n\t\t\t\t\t\t\t\"Failed to load chunk data\", e);\n\t\t\t\t}\n\t\t\t\taddChunkMeta(chunk);\n\t\t\t}\n\t\t\tisFullyLoaded = true;\n\t\t\tthis.notifyAll();\n\t\t}\n\t}", "public void process() {\n cycleID.incrementAndGet();\r\n List<ChunkBB> chunkbbs;\r\n synchronized (loadedChunks) {\r\n chunkbbs = new LinkedList<>(loadedChunks);\r\n }\r\n\r\n Condition cond = chunkbbs.stream().map(\r\n b -> GAIA_STATES.WORLD_UUID.eq(b.getWorld())\r\n .and(GAIA_STATES.X.gt(b.getX() * 16))\r\n .and(GAIA_STATES.Z.gt(b.getZ() * 16))\r\n .and(GAIA_STATES.X.le(b.getX() * 16 + 16))\r\n .and(GAIA_STATES.Z.le(b.getZ() * 16 + 16))\r\n ).reduce(DSL.falseCondition(), (a, b) -> a.or(b));\r\n\r\n Gaia.DBI().submit((conf) -> {\r\n DSLContext ctx = DSL.using(conf);\r\n ctxref.set(ctx);\r\n ReturnContainer rec;\r\n\r\n while ((rec = input.poll()) != null) {\r\n switch (rec.getState()) {\r\n case DELETE:\r\n LOG.fine(\"[\" + cycleID + \"]Deleting:\\n\" + rec);\r\n ctx.executeDelete(rec.getRec());\r\n break;\r\n case UPDATE:\r\n try {\r\n LOG.fine(\"[\" + cycleID + \"]Updating:\\n\" + rec);\r\n ctx.executeUpdate(rec.getRec());\r\n } catch (Exception e) {\r\n LOG.log(Level.SEVERE, \"[\" + cycleID + \"]Failed to update record.\\n\" + rec.getRec(), e);\r\n }\r\n break;\r\n default:\r\n LOG.severe(\"[\" + cycleID + \"]Failed to process record.\\n\" + rec.getRec() + \"\\nUnknown state: \" + rec.getState());\r\n }\r\n }\r\n if (output.isEmpty()) {\r\n List<GaiaStatesRecord> recs = ctx\r\n .selectFrom(GAIA_STATES)\r\n .where(GAIA_STATES.TRANSITION_TIME.lt(new Timestamp(System.currentTimeMillis())))\r\n .and(cond)\r\n .fetch();\r\n if (!recs.isEmpty()) {\r\n LOG.fine(\"Adding \" + recs.size() + \" records to output queue.\");\r\n output.addAll(recs);\r\n }\r\n }\r\n ctxref.set(null);\r\n });\r\n }", "void onCleanup() {\n\t\tdimensionMap.forEachValue(e -> {\n\t\t\te.releaseAllChunkData();\n\t\t\treturn true;\n\t\t});\n\t\tdimensionMap.clear();\n\t\tconnectedPlayers.clear();\n\t}", "public long clean(long now) {\n long cutoff = chunkEnd(now) - this.chunkcount * this.chunklen;\n int dropped = 0;\n long droppedDatapoints = 0L;\n synchronized(this.chunks) {\n for (int i = 0; i < this.chunks.length; i++) {\n if (null == this.chunks[i]) {\n continue;\n }\n if (this.chunkends[i] <= cutoff) {\n droppedDatapoints += this.chunks[i].getCount();\n this.chunks[i] = null;\n dropped++;\n }\n }\n }\n \n Sensision.update(SensisionConstants.SENSISION_CLASS_CONTINUUM_STANDALONE_INMEMORY_GC_CHUNKS, Sensision.EMPTY_LABELS, dropped);\n \n return droppedDatapoints;\n }", "@EventHandler(ignoreCancelled = true)\n\tpublic void onChunkUnload(ChunkUnloadEvent e) {\n\t\tChunk chunk = e.getChunk();\n\t\t\n\t\tCropControl.getDAO().unloadChunk(chunk);\n\t}", "void commonGetsCleanup() {\n ChannelBuffer buf, next;\n\n buf = inQueueHead;\n for ( ; buf != null; buf = next) {\n next = buf.next;\n if (buf.nextRemoved < buf.nextAdded) {\n break;\n }\n recycleBuffer(buf, false);\n }\n inQueueHead = buf;\n if (buf == null) {\n inQueueTail = null;\n } else {\n // If any multi-byte characters were split across channel buffer\n // boundaries, the split-up bytes were moved to the next channel\n // buffer by filterBytes(). Move the bytes back to their\n // original buffer because the caller could change the channel's\n // encoding which could change the interpretation of whether those\n // bytes really made up multi-byte characters after all.\n\n next = buf.next;\n for ( ; next != null; next = buf.next) {\n int extra;\n\n extra = buf.bufLength - buf.nextAdded;\n if (extra > 0) {\n System.arraycopy(next.buf, buf.BUFFER_PADDING - extra,\n buf.buf, buf.nextAdded, extra);\n buf.nextAdded += extra;\n next.nextRemoved = buf.BUFFER_PADDING;\n }\n buf = next;\n }\n }\n if (encoding != null) {\n //Tcl_FreeEncoding(encoding);\n }\n }", "public void purgeQueue() {\r\n\t\tfDirtyRegions.clear();\r\n\t}", "public void dispose() {\n\t\twhile(unackHead != null) {\n\t\t\tcancel(unackHead);\n\t\t\tunackHead = unackHead.next;\n\t\t}\n\t\tif(curChunker != null)\n\t\t\tcurChunker.dispose();\n\t}", "public void setChunkAsReclaimed(){\n this.setState(State.RECLAIMED);\n this.remNetworkCopy(Server.getInstance().getId());\n }", "private void discardQueued(boolean discardSavedBuffers) {\n ChannelBuffer buf, nxt;\n\n buf = inQueueHead;\n inQueueHead = null;\n inQueueTail = null;\n for (; buf != null; buf = nxt) {\n nxt = buf.next;\n recycleBuffer(buf, discardSavedBuffers);\n }\n\n // If discardSavedBuffers is true, must also discard any previously\n // saved buffer in the saveInBuf field.\n \n if (discardSavedBuffers) {\n if (saveInBuf != null) {\n saveInBuf = null;\n }\n }\n }", "private void checkSurroundingChunks()\n\t{\n\t\tcalculateChunkBounds();\n\n\t\tif (chunkBounds[BOUND_RIGHT] > prevChunkBounds[BOUND_RIGHT]) // +X load\n\t\t{\n\t\t\tfor (int c = prevChunkBounds[BOUND_RIGHT] + 1; c <= chunkBounds[BOUND_RIGHT]; c++)\n\t\t\t{\n\t\t\t\tproject.loadChunkColumn(c, chunkBounds[BOUND_BOTTOM], chunkBounds[BOUND_TOP], true);\n\t\t\t}\n\t\t}\n\t\telse if (chunkBounds[BOUND_RIGHT] < prevChunkBounds[BOUND_RIGHT]) // -X unload\n\t\t{\n\t\t\tfor (int c = prevChunkBounds[BOUND_RIGHT]; c > chunkBounds[BOUND_RIGHT]; c--)\n\t\t\t{\n\t\t\t\tproject.saveChunkColumn(c, chunkBounds[BOUND_BOTTOM], chunkBounds[BOUND_TOP], true, true);\n\t\t\t}\n\t\t}\n\n\t\tif (chunkBounds[BOUND_LEFT] < prevChunkBounds[BOUND_LEFT]) // -X load\n\t\t{\n\t\t\tfor (int c = prevChunkBounds[BOUND_LEFT] - 1; c >= chunkBounds[BOUND_LEFT]; c--)\n\t\t\t{\n\t\t\t\tproject.loadChunkColumn(c, chunkBounds[BOUND_BOTTOM], chunkBounds[BOUND_TOP], true);\n\t\t\t}\n\t\t}\n\t\telse if (chunkBounds[BOUND_LEFT] > prevChunkBounds[BOUND_LEFT]) // +X unload\n\t\t{\n\t\t\tfor (int c = prevChunkBounds[BOUND_LEFT]; c < chunkBounds[BOUND_LEFT]; c++)\n\t\t\t{\n\t\t\t\tproject.saveChunkColumn(c, chunkBounds[BOUND_BOTTOM], chunkBounds[BOUND_TOP], true, true);\n\t\t\t}\n\t\t}\n\n\t\tif (chunkBounds[BOUND_TOP] > prevChunkBounds[BOUND_TOP]) // +Y load\n\t\t{\n\t\t\tfor (int c = prevChunkBounds[BOUND_TOP] + 1; c <= chunkBounds[BOUND_TOP]; c++)\n\t\t\t{\n\t\t\t\tproject.loadChunkRow(c, chunkBounds[BOUND_LEFT], chunkBounds[BOUND_RIGHT], true);\n\t\t\t}\n\t\t}\n\t\telse if (chunkBounds[BOUND_TOP] < prevChunkBounds[BOUND_TOP]) // -Y unload\n\t\t{\n\t\t\tfor (int c = prevChunkBounds[BOUND_TOP]; c > chunkBounds[BOUND_TOP]; c--)\n\t\t\t{\n\t\t\t\tproject.saveChunkRow(c, chunkBounds[BOUND_LEFT], chunkBounds[BOUND_RIGHT], true, true);\n\t\t\t}\n\t\t}\n\n\t\tif (chunkBounds[BOUND_BOTTOM] < prevChunkBounds[BOUND_BOTTOM]) // -Y load\n\t\t{\n\t\t\tfor (int c = prevChunkBounds[BOUND_BOTTOM] - 1; c >= chunkBounds[BOUND_BOTTOM]; c--)\n\t\t\t{\n\t\t\t\tproject.loadChunkRow(c, chunkBounds[BOUND_LEFT], chunkBounds[BOUND_RIGHT], true);\n\t\t\t}\n\t\t}\n\t\telse if (chunkBounds[BOUND_BOTTOM] > prevChunkBounds[BOUND_BOTTOM]) // +Y unload\n\t\t{\n\t\t\tfor (int c = prevChunkBounds[BOUND_BOTTOM]; c < chunkBounds[BOUND_BOTTOM]; c++)\n\t\t\t{\n\t\t\t\tproject.saveChunkRow(c, chunkBounds[BOUND_LEFT], chunkBounds[BOUND_RIGHT], true, true);\n\t\t\t}\n\t\t}\n\n\t\tpersistChunkBounds();\n\t}", "protected void onQueued() {}", "@Override\n\tpublic boolean tick() {\n\t\t\n\t\tif (this.worldServer.disableSaving) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tfinal int MaxNumToUnload = 400;\n\t\t\n\t\t// unload cubes\n\t\tfor (int i = 0; i < MaxNumToUnload && !this.cubesToUnload.isEmpty(); i++) {\n\t\t\tlong cubeAddress = this.cubesToUnload.poll();\n\t\t\tlong columnAddress = AddressTools.getAddress(AddressTools.getX(cubeAddress), AddressTools.getZ(cubeAddress));\n\t\t\t\n\t\t\t// get the cube\n\t\t\tColumn column = this.loadedColumns.get(columnAddress);\n\t\t\tif (column == null) {\n\t\t\t\t// already unloaded\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// unload the cube\n\t\t\tint cubeY = AddressTools.getY(cubeAddress);\n\t\t\tCube cube = column.removeCube(cubeY);\n\t\t\tif (cube != null) {\n\t\t\t\t// tell the cube it has been unloaded\n\t\t\t\tcube.onUnload();\n\t\t\t\t\n\t\t\t\t// save the cube\n\t\t\t\tthis.cubeIO.saveCube(cube);\n\t\t\t}\n\t\t\t\n\t\t\t// unload empty columns\n\t\t\tif (!column.hasCubes()) {\n\t\t\t\tcolumn.onChunkLoad();\n\t\t\t\tthis.loadedColumns.remove(columnAddress);\n\t\t\t\tthis.cubeIO.saveColumn(column);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "@Test\n public void reregisterWithDelete() throws Exception {\n // Register the worker so the worker is marked active in master\n long workerId = mBlockMaster.getWorkerId(NET_ADDRESS_1);\n List<RegisterWorkerPRequest> requestChunks =\n RegisterStreamTestUtils.generateRegisterStreamForWorker(workerId);\n prepareBlocksOnMaster(requestChunks);\n Queue<Throwable> errorQueue = new ConcurrentLinkedQueue<>();\n sendStreamToMaster(requestChunks,\n RegisterStreamTestUtils.getErrorCapturingResponseObserver(errorQueue));\n assertEquals(0, errorQueue.size());\n assertEquals(1, mBlockMaster.getWorkerCount());\n\n // Find a block to remove\n long blockToRemove = RegisterStreamTestUtils.findFirstBlock(requestChunks);\n\n // Register again\n CountDownLatch latch = new CountDownLatch(1);\n Queue<Throwable> newErrorQueue = new ConcurrentLinkedQueue<>();\n Future f = mExecutorService.submit(() -> {\n sendStreamToMasterAndSignal(requestChunks,\n RegisterStreamTestUtils.getErrorCapturingResponseObserver(newErrorQueue), latch);\n });\n\n // During the register stream, trigger a delete on worker\n latch.await();\n mBlockMaster.removeBlocks(ImmutableList.of(blockToRemove), true);\n\n // Wait for the register to finish\n f.get();\n\n assertThrows(BlockInfoException.class, () -> {\n mBlockMaster.getBlockInfo(blockToRemove);\n });\n MasterWorkerInfo worker = mBlockMaster.getWorker(workerId);\n assertEquals(1, mBlockMaster.getWorkerCount());\n assertEquals(TIER_BLOCK_TOTAL - 1, worker.getBlockCount());\n\n // BlockMaster.removeBlocks() will first remove the block from master metadata\n // (with block lock) then update the block locations (with worker lock).\n // The worker lock is being held by the registering worker, but the 1st part\n // will likely succeed.\n // So during registration when checking on the block, the block is not recognized\n // any more and will remain in MasterWorkerInfo.mToRemoveBlocks.\n // In the next heartbeat the master will issue a command to remove the block\n // from the worker.\n // Even if the block is already removed on the worker it is fine,\n // because deletion of a not-found block is a noop.\n Command command = sendHeartbeatToMaster(workerId);\n assertEquals(Command.newBuilder()\n .addData(blockToRemove).setCommandType(CommandType.Free).build(), command);\n }", "void minecraftChunkLoaded() {\n\t\tthis.lastLoadingTime = System.currentTimeMillis();\n\t}", "public static void reassembleImages(Path resultOoxmlFilePath, int resultChunkNumber, Path chunkOoxmlFilePath, int chunkNumber, int totalNumberOfChunks, int[] alreadyIncorporatedChunkIds) {\r\n\r\n HashMap<String, BufferedImage> chunkImageMap = new HashMap<String, BufferedImage>();\r\n\r\n // mount the chunk zip file system\r\n try (FileSystem chunkFs = FileSystems.newFileSystem(chunkOoxmlFilePath, null)) {\r\n List<Path> chunkFilePaths = listChunkableFiles(chunkFs);\r\n for (Path chunkFilePath : chunkFilePaths) {\r\n try (InputStream readInputStream = Files.newInputStream(chunkFilePath, StandardOpenOption.READ)) {\r\n BufferedImage chunkImage = ImageIO.read(readInputStream);\r\n chunkImageMap.put(chunkFilePath.toString(), chunkImage);\r\n }\r\n }\r\n } catch (Exception e) {\r\n LOGGER.log(Level.WARNING, \"error mounting zip filesystem \" + chunkOoxmlFilePath, e);\r\n }\r\n // mount the result zip file system\r\n try (FileSystem resultFs = FileSystems.newFileSystem(resultOoxmlFilePath, null)) {\r\n List<Path> resultFilePaths = listChunkableFiles(resultFs);\r\n\r\n for (int i = 0; i < resultFilePaths.size(); i++) {\r\n Path resultPath = resultFilePaths.get(i);\r\n\r\n /*\r\n\t\t\t\t TRYING TO PRESERVE THE IMAGE METADATA, BUT CODE IS NOT READY YET\r\n\t\t\t\t \r\n\t\t\t\ttry (InputStream resultImageInputStream = Files.newInputStream(resultPath, StandardOpenOption.READ)) {\r\n\t\t\t\t\tImageInputStream input = ImageIO.createImageInputStream(resultImageInputStream);\r\n\r\n\t\t Iterator<ImageReader> readers = ImageIO.getImageReaders(input);\r\n\t\t if (!readers.hasNext()) {\r\n\t\t \tthrow new IOException(\"no image reader for file \" + resultPath);\r\n\t\t }\r\n\t\t // Read image and metadata\r\n\t\t ImageReader reader = readers.next();\r\n\t\t reader.setInput(input);\r\n\t\t IIOMetadata metadata = reader.getImageMetadata(0);\r\n\t\t BufferedImage firstChunkImage = reader.read(0);\r\n\t\t \r\n\t\t\t\t\tBMPReassembler reassembler = new BMPReassembler(totalNumberOfChunks);\r\n\t\t\t\t\tif (alreadyIncorporatedChunkIds != null && alreadyIncorporatedChunkIds.length > 0) {\r\n\t\t\t\t\treassembler.setPartialResultImage(firstChunkImage, alreadyIncorporatedChunkIds);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treassembler.incorporateChunk(firstChunkImage, resultChunkNumber);\t\t\t\t\t\t\r\n\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tBufferedImage nextChunkImage = chunkImageMap.get(resultPath.toString());\t\t\t\t\t\r\n\t\t\t\t\treassembler.incorporateChunk(nextChunkImage, chunkNumber);\r\n\t\t\t\t\tif (alreadyIncorporatedChunkIds != null && alreadyIncorporatedChunkIds.length + 1 < totalNumberOfChunks) {\r\n\t\t\t\t\t\t//reassembler.interpolate();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// overwrite the original result image with the reassembled image\r\n\t\t // Write image with metadata from original image, to maintain tRNS info\r\n\t\t\t\t\ttry (OutputStream writeOutputStream = Files.newOutputStream(resultPath, StandardOpenOption.CREATE, StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTING) ) {\r\n\t\t\t\t\t\tImageWriter writer = ImageIO.getImageWritersBySuffix(getFileExtension(resultPath)).next();\r\n\t\t\t\t\t\tImageOutputStream output = ImageIO.createImageOutputStream(writeOutputStream);\r\n\t\t writer.setOutput(output);\r\n\t\t writer.write(new IIOImage(reassembler.getReassembledImage(), Collections.<BufferedImage>emptyList(), metadata));\r\n\t\t }\r\n\t\t \r\n\t\t }\r\n */\r\n // read the result image\r\n try (InputStream resultImageInputStream = Files.newInputStream(resultPath, StandardOpenOption.READ)) {\r\n\r\n BMPReassembler reassembler = new BMPReassembler(totalNumberOfChunks);\r\n BufferedImage firstChunkImage = ImageIO.read(resultImageInputStream);\r\n if (alreadyIncorporatedChunkIds != null && alreadyIncorporatedChunkIds.length > 0) {\r\n reassembler.setPartialResultImage(firstChunkImage, alreadyIncorporatedChunkIds);\r\n } else {\r\n reassembler.incorporateChunk(firstChunkImage, resultChunkNumber);\r\n }\r\n\r\n BufferedImage nextChunkImage = chunkImageMap.get(resultPath.toString());\r\n reassembler.incorporateChunk(nextChunkImage, chunkNumber);\r\n //if (alreadyIncorporatedChunkIds != null && alreadyIncorporatedChunkIds.length + 1 < totalNumberOfChunks) {\r\n reassembler.interpolate();\r\n //}\r\n // overwrite the original result image with the reassembled image\r\n try (OutputStream writeOutputStream = Files.newOutputStream(resultPath, StandardOpenOption.CREATE, StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTING)) {\r\n ImageIO.write(reassembler.getReassembledImage(), FileUtils.getFileExtension(resultPath.toString()), writeOutputStream);\r\n }\r\n }\r\n }\r\n } catch (Exception e) {\r\n LOGGER.log(Level.WARNING, \"error mounting zip filesystem \" + resultOoxmlFilePath, e);\r\n }\r\n\r\n }", "public void onLowMemory() {\r\n \t\tlog.info(\"On low memory : cleaning tiles - size = \" + cacheOfImages.size());\r\n \t\tArrayList<String> list = new ArrayList<String>(cacheOfImages.keySet());\r\n \t\t// remove first images (as we think they are older)\r\n \t\tfor (int i = 0; i < list.size()/2; i ++) {\r\n \t\t\tBitmap bmp = cacheOfImages.remove(list.get(i));\r\n \t\t\tif(bmp != null){\r\n \t\t\t\tbmp.recycle();\r\n \t\t\t}\r\n \t\t}\r\n \t\tSystem.gc();\r\n \t}", "public void flushBuffers()\n throws IOException\n {\n pool.moveToStart();\n Buffer buffer;\n while (pool.getValue() != null)\n {\n buffer = pool.remove();\n if (buffer.isDirty())\n {\n file.seek(buffer.getBlockNumber() * BLOCK_SIZE);\n file.write(buffer.readBlock());\n diskWrites++;\n }\n }\n }", "public void loadQueue(){\n for (Block block : this.blocks) {\n this.queue.add(block.getID());\n }\n this.queue_set = true;\n }", "private ByteChunker nextChunker() {\n\t\tif(curChunker != null)\n\t\t\tcurChunker.dispose();\n\t\treturn curChunker = sendQ.poll();\n\t}", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "public Builder clearChunks() {\n if (chunksBuilder_ == null) {\n chunks_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n chunksBuilder_.clear();\n }\n return this;\n }", "synchronized void processingUnitShutdown(ProcessingUnit unit) {\n activeProcessingUnits--;\n if (activeProcessingUnits == 0 && outputQueue != null) {\n Object[] eofToken = new Object[1];\n eofToken[0] = new EOFToken();\n\n outputQueue.enqueue(eofToken);\n // synchronized (outputQueue) { // redundant - the above enqueue call does this\n // outputQueue.notifyAll();\n // }\n\n if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,\n \"UIMA_CPM_done_placed_eof_in_queue__FINEST\",\n new Object[] { Thread.currentThread().getName(), outputQueue.getName() });\n }\n }\n\n }", "public void garbageCollectOrphans() {\r\n /**\r\n * The list of orphaned queues was assembled in the browser session \r\n * preceding the current one. At this point it is safe to get rid \r\n * of them; their windows must have long since being destroyed.\r\n */\r\n for (SeleneseQueue q : orphanedQueues) {\r\n q.endOfLife();\r\n }\r\n orphanedQueues.clear();\r\n }", "int getChunkSize();", "public void delete(){\r\n\t\tblocks = null;\r\n\t\ttry {\r\n\t\t\tfinalize();\r\n\t\t} catch (Throwable e) {\t}\r\n\t}", "public void unloadChunk(Chunk chunk) {\n String key = chunkToString(chunk);\n ChunkWrapper wrapper = chunks.get(key);\n if (wrapper != null) {\n wrapper.save(false, false);\n chunks.remove(key);\n }\n }", "@Test\n public void testRemove() {\n\tFileBackedBlockingQueue<String> queue = new FileBackedBlockingQueue.Builder<String>()\n\t\t.directory(TEST_DIR)\n\t\t.serializer(new StringSerializer())\n\t\t.segmentSize((TEST_STRING.length() + Segment.ENTRY_OVERHEAD_SIZE + 10) * 100)\n\t\t.build();\n\t// init\n\tfor (int i = 0; i < 2000; i++)\n\t queue.add(TEST_STRING + i);\n\t// remove some random data.\n\tfor (int i = 110; i < 221; i++)\n\t queue.remove(TEST_STRING + i);\n\t// test size\n\tAssert.assertEquals(queue.size(), 1889);\n\tfor (int i = 0; i < 2000; i++) {\n\t if (i >= 110 && i < 221)\n\t\tcontinue;\n\t // test if they are all equal.\n\t Assert.assertEquals(TEST_STRING + i, queue.poll());\n\t}\n }", "public void instantCloudFlushing() {\n\t\t\tWriteRequest wr = null;\n\t\t\twhile ((wr = queue.poll()) != null) {\n\t\t\t\tsynchronized(writeMap) {\n\t\t\t\t\twriteMap.put((int) (wr.offset / blockSize), wr.buf);\n\t\t\t\t}\n\t\t\t}\n\t\t\tThread lastFlusherThread = new Thread(new CloudFlusher());\n\t\t\tlastFlusherThread.start();\n\t\t\ttry {\n\t\t\t\tlastFlusherThread.join();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "private void flushOutbound0() {\n/* 454 */ runPendingTasks();\n/* */ \n/* 456 */ flush();\n/* */ }", "@EventHandler(ignoreCancelled = true)\n public void onChunkUnload(ChunkUnloadEvent event) {\n for (Entity entity : event.getChunk().getEntities()) {\n if (Util.isTrackable(entity)) {\n AbstractHorse abstractHorse = (AbstractHorse) entity;\n SavedHorse savedHorse = DB.findHorse(abstractHorse);\n if (savedHorse != null) {\n DB.observe(savedHorse, abstractHorse);\n }\n }\n }\n }", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "private void updateBlockBuffer() {\n for (Block b : blockBuffer) {\n if (++b.ttl > BLOCK_CACHE_THRESH) {\n blockBuffer.remove(b);\n }\n }\n\n prevBlockBufferSize = blockBuffer.size();\n }", "private void remove_elements() throws InterruptedException {\n while (buffer.getNumElementsInBuffer() > 0 || !this.threadComplete) {\n if (hasServerRemovedAllElements()) {\n return;\n }\n if (buffer.attemptRemove(this)) {\n elementsRemoved++;\n }\n //Thread.sleep(1); // For testing buffer being frequently full\n }\n }", "void queueShrunk();", "IndexData finLastQueuedData();", "@Override\n protected void cleanup() {\n bundle.setParameter(BundleParameter.NODE_BUNDLE_ELAPSED_PARAM, accumulatedElapsed.get());\n this.dataProvider = null;\n usedClassLoader.dispose();\n usedClassLoader = null;\n //taskNotificationDispatcher.setBundle(this.bundle = null);\n this.taskList = null;\n this.uuidList = null;\n setJobCancelled(false);\n this.taskWrapperList = null;\n timeoutHandler.clear();\n }", "public void sendChunk(String fileName,ObjectOutputStream out)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n byte[] byteToSend = new byte[chunkSize];\n try\n {\n fInput = new FileInputStream(fileName);\n bufInput = new BufferedInputStream(fInput);\n int b;\n int i=0;\n b = bufInput.read(byteToSend,0,chunkSize);\n out.write(byteToSend,0,chunkSize);\n out.flush();\n bufInput.close();\n }\n catch(FileNotFoundException ex)\n {\n System.out.println(\"File Chunk Not found Exception: Some chunk missing.\");\n }\n catch(IOException ex)\n {\n System.out.println(\"IOException while reading from the chunk file.\");\n }\n }", "@Test\n public void testMemoryVarSizeFrameWithSpillNoDiscard() {\n for (int k = 0; k < 1000; k++) {\n try {\n Random random = new Random();\n IHyracksTaskContext ctx = TestUtils.create(DEFAULT_FRAME_SIZE);\n // Spill budget = Memory budget, No discard\n FeedPolicyAccessor fpa =\n createFeedPolicyAccessor(true, false, DEFAULT_FRAME_SIZE * NUM_FRAMES, DISCARD_ALLOWANCE);\n // Non-Active Writer\n TestControlledFrameWriter writer = FrameWriterTestUtils.create(DEFAULT_FRAME_SIZE, false);\n writer.freeze();\n // FramePool\n ConcurrentFramePool framePool = new ConcurrentFramePool(NODE_ID, FEED_MEM_BUDGET, DEFAULT_FRAME_SIZE);\n FeedRuntimeInputHandler handler = createInputHandler(ctx, writer, fpa, framePool);\n handler.open();\n ByteBuffer buffer = ByteBuffer.allocate(DEFAULT_FRAME_SIZE);\n int multiplier = 1;\n int numOfBuffersInMemory = 0;\n // add NUM_FRAMES times\n while ((multiplier <= framePool.remaining())) {\n numOfBuffersInMemory++;\n handler.nextFrame(buffer);\n multiplier = random.nextInt(10) + 1;\n buffer = ByteBuffer.allocate(DEFAULT_FRAME_SIZE * multiplier);\n }\n // Next call should Not block. we will do it in a different thread\n Future<?> result = EXECUTOR.submit(new Pusher(buffer, handler));\n result.get();\n // Check that no records were discarded\n Assert.assertEquals(handler.getNumDiscarded(), 0);\n // Check that one frame is spilled\n Assert.assertEquals(handler.getNumSpilled(), 1);\n // consume memory frames\n while (numOfBuffersInMemory > 1) {\n writer.kick();\n numOfBuffersInMemory--;\n }\n // There should be 1 frame on disk\n Assert.assertEquals(1, handler.framesOnDisk());\n writer.unfreeze();\n handler.close();\n Assert.assertEquals(0, handler.framesOnDisk());\n } catch (Throwable th) {\n th.printStackTrace();\n Assert.fail();\n }\n }\n Assert.assertNull(cause);\n }", "@Override public final void compute2() {\n assert _left == null && _rite == null && _res == null;\n if( _hi-_lo >= 2 ) { // Multi-chunk case: just divide-and-conquer to 1 chunk\n final int mid = (_lo+_hi)>>>1; // Mid-point\n _left = clone();\n _rite = clone();\n _left._hi = mid; // Reset mid-point\n _rite._lo = mid; // Also set self mid-point\n addToPendingCount(1); // One fork awaiting completion\n _left.fork(); // Runs in another thread/FJ instance\n _rite.compute2(); // Runs in THIS F/J thread\n return; // Not complete until the fork completes\n }\n // Zero or 1 chunks, and further chunk might not be homed here\n if( _hi > _lo ) { // Single chunk?\n Vec v0 = _fr.firstReadable();\n if( v0.chunkKey(_lo).home() ) { // And chunk is homed here?\n\n // Make decompression chunk headers for these chunks\n Chunk bvs[] = new Chunk[_fr._vecs.length];\n for( int i=0; i<_fr._vecs.length; i++ )\n if( _fr._vecs[i] != null )\n bvs[i] = _fr._vecs[i].elem2BV(_lo);\n\n // Call all the various map() calls that apply\n if( _fr._vecs.length == 1 ) map(bvs[0]);\n if( _fr._vecs.length == 2 && bvs[0] instanceof NewChunk) map((NewChunk)bvs[0], bvs[1]);\n if( _fr._vecs.length == 2 ) map(bvs[0], bvs[1]);\n if( _fr._vecs.length == 3 ) map(bvs[0], bvs[1], bvs[2]);\n if( true ) map(bvs );\n _res = self(); // Save results since called map() at least once!\n // Further D/K/V put any new vec results.\n for( Chunk bv : bvs )bv.close(_lo+_outputChkOffset,_fs);\n }\n }\n tryComplete(); // And this task is complete\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "public static long getChunks() {\n return chunks;\n }", "private void processUnprocessed()\n {\n List<Geometry> unprocAdds;\n myUnprocessedGeometryLock.lock();\n try\n {\n // Processing the unprocessed geometries may result in them being\n // added back to one of the unprocessed maps, so create a clean set\n // of maps for them to be added to.\n if (myUnprocessedAdds.isEmpty())\n {\n unprocAdds = null;\n }\n else\n {\n unprocAdds = myUnprocessedAdds;\n myUnprocessedAdds = New.list();\n }\n }\n finally\n {\n myUnprocessedGeometryLock.unlock();\n }\n\n if (unprocAdds != null)\n {\n distributeGeometries(unprocAdds, Collections.<Geometry>emptyList());\n }\n }", "@Override\r\n\tprotected void process(List<String> chunks) {\r\n\t\tfor (String data: chunks) {\r\n\t\t\thandleData(data);\r\n\t\t}\r\n\t}", "@Override\n protected void finalize() throws Throwable {\n clear();\n \n // Finally free the partition area itself\n unsafe.freeMemory(partitionAddress);\n \n super.finalize();\n }", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "@Override\n public void cleanup() {\n log.trace(\"cleanup called\");\n long startTime = System.currentTimeMillis();\n\n long sortTime = System.currentTimeMillis();\n sort();\n sortTime = System.currentTimeMillis() - sortTime;\n\n long duplicateTime = System.currentTimeMillis();\n removeDuplicates();\n duplicateTime = System.currentTimeMillis() - duplicateTime;\n //noinspection DuplicateStringLiteralInspection\n log.debug(String.format(\n \"cleanup of %s finished for %d elements in %dms (%dms for sort, %dms for duplicate removal)\",\n poolName, size(), System.currentTimeMillis() - startTime, sortTime, duplicateTime));\n }", "public void ClearUnsentQueue() {\n \t\tjobqueue.clear();\n \t}", "@Override\n\tpublic void shutdown() {\n\t\tif (messageOpen) {\n\t\t\tDataOutputBlobWriter.closeLowLevelField(Pipe.outputStream(output)); \n\t\t\tPipe.confirmLowLevelWrite(output, Pipe.sizeOf(output, RawDataSchema.MSG_CHUNKEDSTREAM_1));\n\t\t\tPipe.publishWrites(output);\t\n\t\t\tmessageOpen=false;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\texecutorService.execute(new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tagentResourceQuotas.remove(agentId);\n\t\t\t\t\t\tagentResourceUsages.remove(agentId);\n\t\t\t\t\t\t\n\t\t\t\t\t\tsynchronized (DefaultResourceAllocator.this) {\n\t\t\t\t\t\t\tfor (QueryCache cache: queryCaches.values())\n\t\t\t\t\t\t\t\tcache.result.remove(agentId);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t});\n\t\t\t}", "public void cleanupOldBlocks (long threshTime) ;", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "boolean hasStoreChunk();", "private void processOut() {\n\t\tsynchronized (lock){\n\t\twhile (!queue.isEmpty()) {\n\t\t\tvar bb = queue.peek();\n\t\t\tif (bb.remaining() <= bbout.remaining()) {\n\t\t\t\tqueue.remove();\n\t\t\t\tbbout.put(bb);\n\t\t\t}\n\t\t}}\n\t}", "private void forcePUShutdown() {\n try {\n\n Object[] eofToken = new Object[1];\n // only need one member in the array\n eofToken[0] = new EOFToken();\n if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_placed_eof_in_queue__FINEST\",\n new Object[] { Thread.currentThread().getName(), workQueue.getName() });\n }\n workQueue.enqueue(eofToken);\n if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,\n \"UIMA_CPM_done_placed_eof_in_queue__FINEST\",\n new Object[] { Thread.currentThread().getName(), workQueue.getName() });\n }\n // synchronized (workQueue) { // redundant - the above enqueue does this\n // workQueue.notifyAll();\n // }\n if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,\n \"UIMA_CPM_done_notifying_queue__FINEST\",\n new Object[] { Thread.currentThread().getName(), workQueue.getName() });\n }\n } catch (Exception e) {\n e.printStackTrace();\n UIMAFramework.getLogger(this.getClass()).logrb(Level.SEVERE, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_exception_adding_eof__SEVERE\",\n new Object[] { Thread.currentThread().getName(), e.getMessage() });\n notifyListenersWithException(e);\n }\n\n }", "entities.Torrent.ChunkInfo getChunks(int index);", "public void shutdown()\n {\n valid = false;\n quitSafely();\n\n synchronized (loading) {\n loading.clear();\n }\n synchronized (toLoad) {\n toLoad.clear();\n }\n synchronized (tilesByFetchRequest) {\n tilesByFetchRequest.clear();\n }\n }", "public Builder removeChunks(int index) {\n if (chunksBuilder_ == null) {\n ensureChunksIsMutable();\n chunks_.remove(index);\n onChanged();\n } else {\n chunksBuilder_.remove(index);\n }\n return this;\n }", "private void growMap() {\n\t\tshort chunkId;\n\n\t\t// Fill until full\n\t\twhile (end % STORED_CHUNKS != currChunk % STORED_CHUNKS || end == 0) {\n\t\t\tchunkId = (short) random.nextInt(chunks.length);\n\t\t\tmap[end % STORED_CHUNKS] = chunkId;\n\t\t\tchunks[chunkId].setupToStage(stage, end * MapChunk.WIDTH * tileSize, 0);\n\t\t\tend++;\n\t\t}\n\t}", "@Test\n public void reregisterWithFree() throws Exception {\n long workerId = mBlockMaster.getWorkerId(NET_ADDRESS_1);\n List<RegisterWorkerPRequest> requestChunks =\n RegisterStreamTestUtils.generateRegisterStreamForWorker(workerId);\n prepareBlocksOnMaster(requestChunks);\n Queue<Throwable> errorQueue = new ConcurrentLinkedQueue<>();\n sendStreamToMaster(requestChunks,\n RegisterStreamTestUtils.getErrorCapturingResponseObserver(errorQueue));\n assertEquals(0, errorQueue.size());\n assertEquals(1, mBlockMaster.getWorkerCount());\n\n // Find a block to free\n long blockToRemove = RegisterStreamTestUtils.findFirstBlock(requestChunks);\n\n // Register again\n CountDownLatch latch = new CountDownLatch(1);\n Queue<Throwable> newErrorQueue = new ConcurrentLinkedQueue<>();\n mExecutorService.submit(() -> {\n sendStreamToMasterAndSignal(requestChunks,\n RegisterStreamTestUtils.getErrorCapturingResponseObserver(newErrorQueue), latch);\n });\n\n // During the register stream, trigger a delete on worker\n latch.await();\n mBlockMaster.removeBlocks(ImmutableList.of(blockToRemove), false);\n\n BlockInfo info = mBlockMaster.getBlockInfo(blockToRemove);\n MasterWorkerInfo worker = mBlockMaster.getWorker(workerId);\n assertEquals(0, newErrorQueue.size());\n assertEquals(1, mBlockMaster.getWorkerCount());\n // The block still exists on the worker but a command will be issued to remove it\n assertEquals(TIER_BLOCK_TOTAL, worker.getBlockCount());\n\n Command command = sendHeartbeatToMaster(workerId);\n assertEquals(Command.newBuilder()\n .setCommandType(CommandType.Free).addData(blockToRemove).build(), command);\n }", "public void cleanup() {\n sendBuffer(baos);\n shutdown();\n }", "@Override public final void compute2() {\n _t0 = System.nanoTime();\n assert _left == null && _rite == null && _res == null;\n _profile._mapstart = System.currentTimeMillis();\n if( _hi-_lo >= 2 ) { // Multi-chunk case: just divide-and-conquer to 1 chunk\n final int mid = (_lo+_hi)>>>1; // Mid-point\n _left = clone();\n _rite = clone();\n _left._profile = new MRProfile(this);\n _rite._profile = new MRProfile(this);\n _left._hi = mid; // Reset mid-point\n _rite._lo = mid; // Also set self mid-point\n addToPendingCount(1); // One fork awaiting completion\n _left.fork(); // Runs in another thread/FJ instance\n _rite.compute2(); // Runs in THIS F/J thread\n _profile._mapdone = System.currentTimeMillis();\n return; // Not complete until the fork completes\n }\n // Zero or 1 chunks, and further chunk might not be homed here\n if( _hi > _lo ) { // Single chunk?\n Vec v0 = _fr.anyVec();\n if( _run_local || v0.chunkKey(_lo).home() ) { // And chunk is homed here?\n\n // Make decompression chunk headers for these chunks\n Vec vecs[] = _fr.vecs();\n Chunk bvs[] = new Chunk[vecs.length];\n NewChunk [] appendableChunks = null;\n for( int i=0; i<vecs.length; i++ )\n if( vecs[i] != null ) {\n assert _run_local || vecs[i].chunkKey(_lo).home()\n : \"Chunk=\"+_lo+\" v0=\"+v0+\", k=\"+v0.chunkKey(_lo)+\" v[\"+i+\"]=\"+vecs[i]+\", k=\"+vecs[i].chunkKey(_lo);\n try{\n bvs[i] = vecs[i].chunkForChunkIdx(_lo);\n } catch(Throwable t){\n System.err.println(\"missing chunk in MRTask \" + getClass().getName());\n t.printStackTrace();\n throw new RuntimeException(t);\n }\n }\n if(_noutputs > 0){\n final VectorGroup vg = vecs[0].group();\n _appendables = new AppendableVec[_noutputs];\n appendableChunks = new NewChunk[_noutputs];\n for(int i = 0; i < _appendables.length; ++i){\n _appendables[i] = new AppendableVec(vg.vecKey(_vid+i),new long[4],0);\n appendableChunks[i] = (NewChunk)_appendables[i].chunkForChunkIdx(_lo);\n }\n }\n // Call all the various map() calls that apply\n _profile._userstart = System.currentTimeMillis();\n if( _fr.vecs().length == 1 ) map(bvs[0]);\n if( _fr.vecs().length == 2 ) map(bvs[0], bvs[1]);\n if( _fr.vecs().length == 3 ) map(bvs[0], bvs[1], bvs[2]);\n if( true ) map(bvs );\n if(_noutputs == 1){ // convenience versions for cases with single output.\n if( _fr.vecs().length == 1 ) map(bvs[0], appendableChunks[0]);\n if( _fr.vecs().length == 2 ) map(bvs[0], bvs[1],appendableChunks[0]);\n if( _fr.vecs().length == 3 ) map(bvs[0], bvs[1], bvs[2],appendableChunks[0]);\n if( true ) map(bvs, appendableChunks[0]);\n }\n if(_noutputs == 2){ // convenience versions for cases with 2 outputs (e.g split).\n if( _fr.vecs().length == 1 ) map(bvs[0], appendableChunks[0],appendableChunks[1]);\n if( _fr.vecs().length == 2 ) map(bvs[0], bvs[1],appendableChunks[0],appendableChunks[1]);\n if( _fr.vecs().length == 3 ) map(bvs[0], bvs[1], bvs[2],appendableChunks[0],appendableChunks[1]);\n if( true ) map(bvs, appendableChunks[0],appendableChunks[1]);\n }\n map(bvs,appendableChunks);\n _res = self(); // Save results since called map() at least once!\n // Further D/K/V put any new vec results.\n _profile._closestart = System.currentTimeMillis();\n for( Chunk bv : bvs ) bv.close(_lo,_fs);\n if(_noutputs > 0) for(NewChunk nch:appendableChunks)nch.close(_lo, _fs);\n }\n }\n _profile._mapdone = System.currentTimeMillis();\n tryComplete(); // And this task is complete\n }", "private void processOut() {\n while (!queue.isEmpty()) {\n var bb = queue.peek();\n if (bb.remaining() <= bbout.remaining()) {\n queue.remove();\n bbout.put(bb);\n } else {\n break;\n }\n }\n }", "private void processOut() {\n while (!queue.isEmpty()) {\n var bb = queue.peek();\n if (bb.remaining() <= bbout.remaining()) {\n queue.remove();\n bbout.put(bb);\n } else {\n break;\n }\n }\n }", "@Override\n public void handlerRemoved(ChannelHandlerContext ctx) throws Exception {\n for (ByteBuf b : buffers) {\n b.release();\n }\n buffers.clear();\n frameLenBuf.release();\n ByteBuf frame = consumeCurrentFrameBuf();\n if (frame != null) {\n frame.release();\n }\n super.handlerRemoved(ctx);\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunk getStoreChunk();", "private void verifyWorkerCanReregister(long workerId,\n List<RegisterWorkerPRequest> requestChunks, int expectedBlockCount) throws Exception {\n Queue<Throwable> errorQueue = new ConcurrentLinkedQueue<>();\n sendStreamToMaster(requestChunks,\n RegisterStreamTestUtils.getErrorCapturingResponseObserver(errorQueue));\n\n assertEquals(errorQueue.toString(), 0, errorQueue.size());\n MasterWorkerInfo worker = mBlockMaster.getWorker(workerId);\n assertEquals(expectedBlockCount, worker.getBlockCount());\n assertEquals(0, worker.getToRemoveBlockCount());\n assertEquals(1, mBlockMaster.getWorkerCount());\n }", "public HashChunk getHashChunk(byte[] hash) throws IOException, DataArchivedException {\n\t\tHashChunk hs = null;\n\t\t// String hStr = StringUtils.getHexString(hash);\n\t\t/*\n\t\t * hs = this.cacheBuffers.get(hStr); if (hs != null) { return hs; }\n\t\t * \n\t\t * \n\t\t * if (this.readingBuffers.containsKey(hStr)) { int t = 0; while (t <\n\t\t * Main.chunkStoreDirtyCacheTimeout) { try { Thread.sleep(1); hs =\n\t\t * this.cacheBuffers.get(hStr); if (hs != null) { return hs; } } catch\n\t\t * (Exception e) {\n\t\t * \n\t\t * } t++; } } else { if(this.readingBuffers.size() < mapSize)\n\t\t * this.readingBuffers.put(hStr, hs); }\n\t\t */\n\t\t\tbyte[] data = bdb.getData(hash);\n\t\t\tif (data == null && Arrays.equals(hash, blankHash)) {\n\t\t\t\ths = new HashChunk(hash, new byte[blankData.length], false);\n\t\t\t}\n\t\t\ths = new HashChunk(hash, data, false);\n\t\t\t// this.cacheBuffers.put(hStr, hs);\n\n\t\treturn hs;\n\t}", "public void syncRemoveQueue() {\n if (!this.removeQueue.isEmpty()) {\n CommonPacket packet = PacketType.OUT_ENTITY_DESTROY.newInstance(this.removeQueue);\n this.removeQueue.clear();\n Player p = this.playerRef.get();\n if (p != null) {\n PacketUtil.sendPacket(p, packet);\n }\n }\n }", "private void flushCurrentIndexBlock() throws IOException {\n if (currentMemoryIndex.documentsInIndex() < 1) {\n return;\n }\n\n logger.info(\"Flushing current memory Index. id = \" + indexBlockCount);\n\n final MemoryIndex flushingMemoryIndex = currentMemoryIndex;\n final File shardFolder = getNextIndexShardFolder(1);\n\n try {\n // reset the current index\n // - this makes the flush operation thread safe while continuing to add new documents.\n resetCurrentMemoryIndex();\n } catch (Exception ex) {\n throw new IOException(ex);\n }\n\n try {\n // first flush the index to disk\n FlushToDisk.flushMemoryIndex(flushingMemoryIndex, shardFolder.getAbsolutePath(), false);\n\n // indicate that the flushing part of this thread is done\n synchronized (geometricParts) {\n // add flushed index to the set of bins -- needs to be a synconeous action\n geometricParts.add(0, shardFolder.getAbsolutePath());\n updateIndex();\n flushingMemoryIndex.close();\n }\n\n } catch (IOException e) {\n logger.severe(e.toString());\n }\n }", "private void flushCache()\n {\n Entry<Integer, String> eldestEntry;\n File oldestFile;\n long eldestFileSize;\n int count = 0;\n\n int MAX_DELETE_FILE = 4;\n int MAX_CACHE_FILE_ALLOW = 1000;\n\n while (count < MAX_DELETE_FILE && (cacheSize > MAX_CACHE_FILE_ALLOW || cacheByteSize > maxCacheByteSize))\n {\n eldestEntry = mLinkedHashMap.entrySet().iterator().next();\n oldestFile = new File(eldestEntry.getValue());\n eldestFileSize = oldestFile.length();\n mLinkedHashMap.remove(eldestEntry.getKey());\n oldestFile.delete();\n cacheSize = mLinkedHashMap.size();\n cacheByteSize -= eldestFileSize;\n count++;\n }// while (count < MAX_DELETE_FILE && (cacheSize > MAX_CACHE_FILE_ALLOW || cacheByteSize > maxCacheByteSize))\n }", "private Set<AsciiFileChunk> orderdChunks() {\n\t\treturn orderdChunks;\n\n\t}", "public void finalize() {\r\n byteBuffer2 = null;\r\n byteBuffer4 = null;\r\n byteBuffer8 = null;\r\n progressBar = null;\r\n tagBuffer = null;\r\n\r\n if (raFile != null) {\r\n\r\n try {\r\n raFile.close();\r\n } catch (final IOException ioe) {\r\n // Do nothing\r\n }\r\n }\r\n\r\n raFile = null;\r\n }", "@Override\r\n\tpublic void run() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t//Get a list of pairs. The pair will be a chunkname with a chunkserver \r\n\t\t/*for(Pair<String, String> p: EventFactory.hostToFiles.getChunkLocations(message.getContent())){\r\n\t\t\tSystem.out.println(\"The location is: \" + p.getKey() + \" and the chunkname is: \" + p.getValue());\r\n\t\t\t\r\n\t\t\t//actual code will contact chunk servers and tell them to read and forward the file to the client\r\n\t\t\tMessage forwardToClient = new Message(\"ForwardChunkToClient\");\r\n\t\t\t//chunkname, servername, port\r\n\t\t\tforwardToClient.setContent(p.getKey());\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tTCPSender sender = new TCPSender(new Socket(p.getValue().split(\" \")[0], Integer.parseInt(p.getValue().split(\" \")[1])));\r\n\t\t\t\tsender.sendData(forwardToClient);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (UnknownHostException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}*/\r\n\t\t//Send the list to the client so it can request the chunks from chunkServers\r\n\t\t//Any other way seems like it would be beyond a pain. \r\n\t\tLinkedList<String> fileAndHosts = new LinkedList<String>();\r\n\t\tfor(PairStrings p: EventFactory.hostToFiles.getChunkLocations(message.getContent())) {\r\n\t\t\tString fileAndHost = p.getValue() + \" \" + p.getKey();\r\n\t\t\tfileAndHosts.add(fileAndHost);\r\n\t\t}\r\n\t\t\r\n\t\tMessage getFromChunkServers = new Message(\"RequestChunksFromServers\");\r\n\t\t\r\n\t\t//If the list is empy, the no file was found, report invalid.\r\n\t\tif(fileAndHosts.size() == 0) {\r\n\t\t\tgetFromChunkServers.setList(fileAndHosts);\r\n\t\t\tgetFromChunkServers.setContent(\"invalid\" + \" \" + message.getContent());\r\n\t\t} else {\r\n\t\t\tgetFromChunkServers.setList(fileAndHosts);\r\n\t\t\tgetFromChunkServers.setContent(\"valid\" + \" \" + message.getContent());\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tTCPSender sender = new TCPSender(new Socket(message.getSenderHostName(), message.getSenderPort()));\r\n\t\t\tsender.sendData(getFromChunkServers);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override protected void finalize() throws Throwable {\r\n\t\tsuper.finalize();\r\n\t\tif (flusher != null) {\r\n\t\t\tflusher.stop();\r\n\t\t}\r\n\t\tflush();\r\n\t}", "protected void cleanup(Context context) throws IOException, InterruptedException {\n\t\t\tint count = 99;\n\t\t\twhile(count>=0 && !rankqueue.isEmpty()){\n\t\t\t\tRankNode node = rankqueue.poll();\n\t\t\t\tcontext.write(NullWritable.get(), new Text(node.nodeid + \"``\" + node.pageRank));\n\t\t\t\tcount--;\n\t\t\t}\n\t\t}", "private void sweepChunk(Chunk chunk) {\n for (Entity entity : chunk.getEntities()) {\n\n // Constrain entities to be removed to limitable mobs, excluding villagers\n if (entity.isDead() || !EntityHelper.isLimitableMob(entity) || entity instanceof Villager) continue;\n\n // Exempt special mobs\n if (EntityHelper.isSpecialMob((LivingEntity) entity)) {\n if (plugin.getConfiguration().debug()) {\n plugin.getLogger().info(\"Special mob exempted from removal: \" + EntityHelper.getMobDescription(entity));\n }\n continue;\n }\n\n // Leave two of any farm animals\n if (EntityHelper.isBreedingPair(entity)) continue;\n\n // If relative ages are on, and the mob is targeting a player, don't remove it\n if (isTargetingPlayer(entity)) continue;\n\n // Remove mobs\n ConfiguredMob limits = plugin.getConfiguration().getLimits(entity);\n if (!entity.isDead() && adjustedAge(entity) > limits.getAge() && limits.getAge() > -1) {\n ((LivingEntity) entity).damage(1000); // Kill the entity and drop its items\n removed++;\n lastTargeted.remove(entity.getUniqueId());\n plugin.getLogBlock().logEntityRemoval(entity, 347);\n if (plugin.getConfiguration().debug()) {\n plugin.getLogger().info(\"Removed mob (age limit): \" + EntityHelper.getMobDescription(entity));\n }\n }\n\n }\n }", "public void remove() {\n\t\tprocess temp = queue.removeFirst();\n\t}", "public ParaServerChunkProvider(ServerWorld worldIn, LevelSave worldDirectory, DataFixer dataFixer,\n\t\t\tTemplateManager templateManagerIn, Executor executorIn, ChunkGenerator chunkGeneratorIn, int viewDistance,\n\t\t\tboolean spawnHostiles, IChunkStatusListener p_i51537_8_, Supplier<DimensionSavedDataManager> p_i51537_9_) {\n\t\tsuper(worldIn, worldDirectory, dataFixer, templateManagerIn, executorIn, chunkGeneratorIn, viewDistance,\n\t\t\t\tspawnHostiles, p_i51537_8_, p_i51537_9_);\n\t\tcacheThread = new Thread(this::chunkCacheCleanup, \"Chunk Cache Cleaner \" + worldIn.func_234923_W_().func_240901_a_().getPath());\n\t\tcacheThread.start();\n\t}", "public void onPostExecute(NexImage nexImage) {\n NexEditorEventListener.this.m.remove(this);\n Log.d(\"NexEditorEventHandler\", String.format(\"Done:image thread queue length:%d\", new Object[]{Integer.valueOf(NexEditorEventListener.this.m.size())}));\n }", "int getChunksCount();", "int getChunksCount();", "void notifyProcessFinishedWith(MaximaProcess mp) {\r\n \t\tusedPool.remove(mp);\r\n \t}" ]
[ "0.82175124", "0.67354816", "0.67354816", "0.6684508", "0.6462762", "0.64384663", "0.6318865", "0.60580736", "0.602951", "0.59943926", "0.5763116", "0.5588777", "0.5559463", "0.55474824", "0.5537066", "0.553692", "0.5527862", "0.550344", "0.546276", "0.5451836", "0.5418625", "0.5413426", "0.541178", "0.5316895", "0.5306264", "0.53058714", "0.5297065", "0.5294258", "0.5293192", "0.5287119", "0.52853996", "0.52853996", "0.52853996", "0.52853996", "0.52820283", "0.526317", "0.52428263", "0.52249396", "0.52202666", "0.5208038", "0.52059233", "0.5171755", "0.51650125", "0.51568735", "0.5156599", "0.5150576", "0.5147825", "0.51417595", "0.5141394", "0.5126914", "0.51130456", "0.5112861", "0.51073766", "0.5097108", "0.509057", "0.50890386", "0.50722575", "0.5069472", "0.505963", "0.5033015", "0.503136", "0.5028094", "0.5024815", "0.5023783", "0.50194544", "0.50194544", "0.50194544", "0.50194544", "0.50194544", "0.50194544", "0.501294", "0.5009112", "0.5001662", "0.49984965", "0.4996713", "0.49958163", "0.49956137", "0.49937394", "0.49864066", "0.4977045", "0.49760994", "0.49760994", "0.49681032", "0.49622598", "0.49607903", "0.49532804", "0.4951014", "0.49434718", "0.49408066", "0.4926943", "0.49236554", "0.49191126", "0.491425", "0.4911927", "0.49085277", "0.49070767", "0.49058327", "0.49010178", "0.49001452", "0.49001452", "0.4897794" ]
0.0
-1
TODO: canSave, Needs to be implemented on our side,
@Override public boolean d() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void save() {\n \n }", "@Override\n public void save()\n {\n \n }", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n public void Save() {\n\t \n }", "@Override\n public void save() {\n\n }", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void saveValues() {\n \n }", "@Override\n public boolean save()\n {\n return false;\n }", "@Override\r\n\tpublic void innerSave() {\n\r\n\t}", "public void save() {\t\n\t\n\t\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"save method\");\n\t}", "public void save() {\n }", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "@Override\n\tpublic void posSave() {\n\t\t\n\t}", "protected abstract void doSave();", "private void saveData() {\n }", "public boolean canSave()\n {\n return true;\n }", "public boolean canSave()\n {\n return true;\n }", "protected void prepareSave() {\r\n EObject cur;\r\n for (Iterator<EObject> iter = getAllContents(); iter.hasNext();) {\r\n cur = iter.next();\r\n \r\n EStructuralFeature idAttr = cur.eClass().getEIDAttribute();\r\n if (idAttr != null && !cur.eIsSet(idAttr)) {\r\n cur.eSet(idAttr, EcoreUtil.generateUUID());\r\n }\r\n }\r\n }", "@Override\n protected void validateSave(Fornecedor post) {\n\n }", "@Override\n public int save( Mention obj ) {\n return 0;\n }", "@Override\r\n\tpublic void save() throws SaveException {\n\t\t\r\n\t}", "@Override\n\tpublic void save(Field entity) {\n\t\t\n\t}", "@Override\n String save() {\n return \"\";\n }", "public boolean canSave()\n\t{\n\t\treturn false;\n\t}", "int needsSaving();", "public void save();", "public void save();", "public void save();", "public void save();", "public boolean doSave() {\n return true;\n }", "@Exclude\n public abstract void save();", "public boolean save() {\n return false;\n }", "@Override\r\n\tpublic void validateSave() throws Exception {\n\r\n\t}", "private void saveFunction() {\n }", "public Saving() {\n super();\n }", "protected boolean save() {\r\n\t\tboolean saved=true;\r\n\t\tif(validated()){\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tsaved=false;\r\n\t\t}\r\n\t\treturn saved;\r\n\t}", "@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}", "private void saveCurrentObject() {\n\t}", "@Override\n\tpublic void save(DataKey arg0) {\n\t\t\n\t}", "@Override\n\tpublic void save(CorsoDiLaurea corso) {\n\t\t\n\t}", "@Override\n public void persist() {\n }", "void save();", "void save();", "void save();", "@Override\r\n\tpublic void persist() {\n\t}", "public void saveExtraData() {}", "@Override\n\tpublic void save(Religiao obj) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void save(List<Field> entity) {\n\t\t\n\t}", "@Override\r\n\tpublic Ngo save(Ngo obj) {\n\t\treturn null;\r\n\t}", "protected void doSave() {\n GWT.log(\"Please override\");\n }", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "public abstract boolean saveRequired();", "public int save() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void doSaveAs() {\n\n\t}", "public void saveState() { }", "@Override\r\n\tpublic GameState save() {\n\t\treturn null;\r\n\t}", "public boolean getSave(){\n return this.didSave;\n }", "public void operationSave() {\n\r\n\t\tstatusFeldSave();\r\n\t}", "@Override\n public boolean isDirty()\n {\n return false;\n }", "@Override\r\n protected XMLSave createXMLSave() {\r\n prepareSave();\r\n return super.createXMLSave();\r\n }", "public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}", "@PrePersist\n private void onSave()\n {\n this.lastUpdateDateTime = new Date();\n if(this.registerDateTime == null)\n {\n this.registerDateTime = new Date();\n }\n \n if(this.personKey == null || this.personKey.isEmpty())\n {\n this.personKey = UUID.randomUUID().toString();\n }\n \n if(this.activationDate == null && (this.activationKey == null || this.activationKey.isEmpty()))\n {\n this.activationKey = UUID.randomUUID().toString();\n this.activationDate = new Date();\n }\n \n // O ID só será 0 (zero) se for a criação do registro no banco\n if(this.id == 0)\n {\n this.isValid = false;\n }\n }", "@Override\r\n\tpublic void saveMap() {\n\r\n\t}", "private Permit saveToPermitObject() {\n\n\n\n return null;\n\n }", "public boolean save(BaseVo vo) {\n\t\t\t\treturn false;\n\t\t\t}", "public void saveState() {\n\t\tsuper.saveState();\n\t}", "public boolean save();", "@Override\n public void save(Game game) {\n }", "@Override\n public boolean isDirty() {\n return false;\n }", "public void save(){\r\n\t\tmanager.save(this);\r\n\t}", "@Override\n public void saveGame() {\n\n }", "@Override\r\n\tpublic void save(Plate tipo) {\n\t\t\r\n\t}", "public final Long save() {\n\t\tid = Ollie.save(this);\n\t\tOllie.putEntity(this);\n\t\tnotifyChange();\n\t\treturn id;\n\t}", "@Override\r\n\tpublic int save() throws NotesApiException {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void onSave(Bundle outState) {\n\t}", "protected void saveValues() {\n dataModel.persist();\n }", "@Override\n\t\tpublic Parcelable saveState() {\n\t\t\treturn null;\n\t\t}", "@Override\n public void onSave(MessageContainer messages) {\n }", "@Override\n\tpublic void doSaveAs() {\n\t}", "@Override\n\tpublic int save(CursoAsignatura ca) {\n\t\treturn 0;\n\t}", "public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}", "@Override\n\tpublic String save() throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic void saveSettings() {\n\n\t}", "public void save(){\n\t\tlowresModelManager.save();\n\t}", "@Override\n\tpublic void save(Person person) {\n\t\t\n\t}", "@Override\n\tpublic void save(EmpType entity) {\n\t\t\n\t}", "@Override\n\tpublic void save(Employee theEmployee) {\n\t\t\n\t}", "public void saveValue() {\n String[] idCol = assignedDataObject.getIdentifyTemplate().getIdentifyColumnNames();\n if (!(idCol.length == 1 && name.equals(idCol[0]))) { // method \"copy\" must not change unique key name! For any other methods it is not needed to save from frame.\n if (this.getText().equals(\"\")) {\n assignedDataObject.setInt(name, 0);\n } else {\n assignedDataObject.setInt(name, this.getIntValue());\n }\n }\n }", "public abstract void leerPersistencia();", "@Override\n public Owner save(Owner object) {\n return super.save(object);\n }", "public void save() {\n\t\tList<EmbeddedEntity> embeddedEntities = new ArrayList<>();\n\t\tfor (FeedItem item : items)\n\t\t\tembeddedEntities.add(item.getEntity());\n\t\tEntity feed = new Entity(getKey());\n\t\tfeed.setUnindexedProperty(\"items\", embeddedEntities); //NOI18N\n\t\tdatastore.put(feed);\n\t}", "public void attributSave() {\n\r\n\t\tstatusFeldSave();\r\n\t}", "@Override\n\tpublic String save(Model m) throws Exception {\n\t\treturn null;\n\t}", "private boolean saveData() {\n // get data from input controls\n collectDataFromUI();\n\n if (!validateData()) return false;\n\n boolean isTransfer = mCommon.transactionEntity.getTransactionType().equals(TransactionTypes.Transfer);\n if (!isTransfer) {\n mCommon.resetTransfer();\n }\n\n // Transaction. Need the id for split categories.\n\n if (!saveTransaction()) return false;\n\n // Split Categories\n\n if (mCommon.convertOneSplitIntoRegularTransaction()) {\n saveTransaction();\n }\n\n if(!mCommon.isSplitSelected()) {\n // Delete any split categories if split is unchecked.\n mCommon.removeAllSplitCategories();\n }\n if (!saveSplitCategories()) return false;\n\n return true;\n }", "private boolean isSave() {\n return \"save\".equalsIgnoreCase(data.substring(tokenStart, tokenStart + 4));\n }", "@Override\n public ContentValues db_save(ContentValues values) {\n return null;\n }" ]
[ "0.7495393", "0.74702555", "0.7352044", "0.7352044", "0.72242785", "0.7190185", "0.71859187", "0.71859187", "0.717169", "0.7044017", "0.6823615", "0.6663378", "0.6601893", "0.65603715", "0.64836866", "0.6446835", "0.6415952", "0.6415952", "0.64123344", "0.63510436", "0.63395613", "0.63395613", "0.63328975", "0.6323638", "0.6322869", "0.62719005", "0.6246182", "0.6225991", "0.62198573", "0.621762", "0.61865234", "0.61865234", "0.61865234", "0.61865234", "0.61783785", "0.61769503", "0.6165384", "0.6119409", "0.6102519", "0.60988563", "0.60967356", "0.6094752", "0.6087971", "0.6050667", "0.60481244", "0.60418177", "0.60372305", "0.60372305", "0.60372305", "0.6036753", "0.5968901", "0.5963448", "0.5955165", "0.5950533", "0.5944372", "0.594298", "0.59314686", "0.59197766", "0.5906748", "0.59033674", "0.58788294", "0.5871354", "0.58690727", "0.58685994", "0.58638525", "0.58622795", "0.58548653", "0.5849351", "0.5840074", "0.5839149", "0.583639", "0.58342594", "0.58217645", "0.58211577", "0.58202696", "0.5819013", "0.5817402", "0.58076185", "0.58015984", "0.577327", "0.5771508", "0.57645595", "0.57634115", "0.5762127", "0.5760953", "0.5760176", "0.575496", "0.57433254", "0.573262", "0.5724965", "0.5721276", "0.5711155", "0.5701125", "0.570096", "0.5699915", "0.56958467", "0.569328", "0.56916046", "0.56840116", "0.5680853", "0.5673927" ]
0.0
-1
TODO Autogenerated method stub
@Override public List a(EnumCreatureType enumcreaturetype, int i0, int i1, int i2) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public ChunkPosition a(World world, String s0, int i0, int i1, int i2) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO: GetNum loaded chunks
@Override public int f() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunksCount();", "int getChunksCount();", "int getChunksLocationCount();", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "int getNumOfChunks();", "int getChunkSize();", "public int getChunksCount() {\n return chunksCount_;\n }", "public static long getChunks() {\n return chunks;\n }", "public int getChunksLocationCount() {\n return chunksLocation_.size();\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "public int getChunksCount() {\n return chunksCount_;\n }", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "boolean hasChunksCount();", "public int getChunksCount() {\n if (chunksBuilder_ == null) {\n return chunks_.size();\n } else {\n return chunksBuilder_.getCount();\n }\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "public long getSize() {\n long size = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n size += encoder.size();\n }\n }\n \n return size;\n }", "@NotNull\n int getTrustedChunks();", "public int getChunkSize() {\n return chunkSize;\n }", "public long getCount() {\n long count = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n count += encoder.getCount();\n }\n }\n \n return count;\n }", "private long computeNumChunks() {\n Long storedLastSCId = lobProps.getLastSuperChunkId();\n\n if (storedLastSCId == null) {\n /* Failed between write of first chunk and metadata. */\n storedLastSCId = 1l;\n }\n\n /* Determine the last recorded saved super chunk. */\n long lastSCId = storedLastSCId + 1;\n long lastCId = findLastChunkInSuperChunk(lastSCId);\n if (lastCId == -1) {\n /* Look in the previous super chunk. */\n lastSCId--;\n lastCId = findLastChunkInSuperChunk(lastSCId);\n if (lastCId == -1) {\n if (lastSCId == 1) {\n /* At start, no chunks were written. */\n return 0;\n }\n final String msg = \"Expected at least one chunk for \" +\n lastSCId + \" Delete the LOB and retry.\";\n throw new IllegalStateException(msg);\n\n }\n }\n\n /* Have the last chunk. */\n return ((lastSCId - 1) * chunksPerPartition) + lastCId;\n }", "private static int getSize(double loadFactor){\n return (primeSize((int) (3739/loadFactor))); // 3739 is the number of entries from the lexicon list\n }", "int getChunkIndex();", "int getChunkIndex();", "public int getChunksLocationCount() {\n if (chunksLocationBuilder_ == null) {\n return chunksLocation_.size();\n } else {\n return chunksLocationBuilder_.getCount();\n }\n }", "private double loadFactor()\n {\n double bucketsLength = buckets.length;\n return currentSize / bucketsLength;\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "void loadAll() {\n\t\tsynchronized (this) {\n\t\t\tif (isFullyLoaded) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (Entry<Integer, Supplier<ChunkMeta<?>>> generator : ChunkMetaFactory.getInstance()\n\t\t\t\t\t.getEmptyChunkFunctions()) {\n\t\t\t\tChunkMeta<?> chunk = generator.getValue().get();\n\t\t\t\tchunk.setChunkCoord(this);\n\t\t\t\tchunk.setPluginID(generator.getKey());\n\t\t\t\ttry {\n\t\t\t\t\tchunk.populate();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// need to catch everything here, otherwise we block the main thread forever\n\t\t\t\t\t// once it tries to read this\n\t\t\t\t\tCivModCorePlugin.getInstance().getLogger().log(Level.SEVERE, \n\t\t\t\t\t\t\t\"Failed to load chunk data\", e);\n\t\t\t\t}\n\t\t\t\taddChunkMeta(chunk);\n\t\t\t}\n\t\t\tisFullyLoaded = true;\n\t\t\tthis.notifyAll();\n\t\t}\n\t}", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "public int currentChunkNum() {\n\t\treturn cp.chunk().getChunkNum();\n\t}", "abstract public int getNumberOfBlocks();", "public int getChunkSize() {\n return chunkSize_;\n }", "private int readChunkSize(int desired) {\n return Math.min(availableFirst(), desired);\n }", "boolean hasChunkSize();", "@Override\n public int available() throws IOException {\n return fileSize - nextChunkPos + (count - pos);\n }", "public long getBlockCount ( ) {\r\n\t\treturn 436;\r\n\t}", "private static int neededBlocks(int bytes) {\n\t\tint ret = bytes / BLOCK_SIZE;\n\t\tif (bytes % BLOCK_SIZE != 0) {\n\t\t\tret++;\n\t\t}\n\t\treturn ret;\n\t}", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "public int numPages() {\n \t//numOfPages = (int)(this.fileName.length()/BufferPool.PAGE_SIZE);\n return numOfPages;\n }", "public synchronized long size() {\n return IDX_START_OF_CONTENT + (slots * bytesPerSlot);\n }", "public int getChunkSize() {\n return chunkSize_;\n }", "public int getChunkHeight() {\n return 256;\n }", "void minecraftChunkLoaded() {\n\t\tthis.lastLoadingTime = System.currentTimeMillis();\n\t}", "public int getHeightInChunks() {\n return (int)Math.ceil((double)getHeight() / (double)getChunkHeight());\n }", "int getPagesize();", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "public int numPages() {\n // some code goes here\n return (int)Math.ceil(f.length()/BufferPool.PAGE_SIZE);\n \n }", "public int getNumPageFrames() {\n return ram.length;\n }", "@Override\n public void preSourceTasks () throws SQLException {\n chunkSize = 0L;\n\n // Only calculate the chunk size when parallel execution is active\n if (this.options.getJobs() != 1) {\n /*\n * Calculating the chunk size for parallel job processing\n */\n Statement statement = this.getConnection().createStatement();\n String sql = \"SELECT \" + \" CEIL(count(*) / \" + options.getJobs() + \") chunk_size\" + \", count(*) total_rows\" + \" FROM \";\n\n // Source Query\n if (options.getSourceQuery() != null && !options.getSourceQuery().isEmpty()) {\n sql = sql + \"( \" + this.options.getSourceQuery() + \" ) as REPLICADB_TABLE\";\n\n } else {\n\n sql = sql + this.options.getSourceTable();\n // Source Where\n if (options.getSourceWhere() != null && !options.getSourceWhere().isEmpty()) {\n sql = sql + \" WHERE \" + options.getSourceWhere();\n }\n }\n\n LOG.debug(\"Calculating the chunks size with this sql: {}\", sql);\n ResultSet rs = statement.executeQuery(sql);\n rs.next();\n chunkSize = rs.getLong(1);\n long totalNumberRows = rs.getLong(2);\n LOG.debug(\"chunkSize: {} totalNumberRows: {}\", chunkSize, totalNumberRows);\n\n statement.close();\n this.getConnection().commit();\n }\n }", "@Override\n public void preSourceTasks () throws SQLException {\n chunkSize = 0L;\n\n // Only calculate the chunk size when parallel execution is active\n if (this.options.getJobs() != 1) {\n // Calculating the chunk size for parallel job processing\n Statement statement = this.getConnection().createStatement();\n String sql = \"SELECT \" + \" CEIL(count(*) / \" + options.getJobs() + \") chunk_size\" + \", count(*) total_rows\" + \" FROM \";\n\n // Source Query\n if (options.getSourceQuery() != null && !options.getSourceQuery().isEmpty()) {\n sql = sql + \"( \" + this.options.getSourceQuery() + \" ) as REPLICADB_TABLE\";\n\n } else {\n\n sql = sql + this.options.getSourceTable();\n // Source Where\n if (options.getSourceWhere() != null && !options.getSourceWhere().isEmpty()) {\n sql = sql + \" WHERE \" + options.getSourceWhere();\n }\n }\n\n LOG.debug(\"Calculating the chunks size with this sql: {}\", sql);\n ResultSet rs = statement.executeQuery(sql);\n rs.next();\n chunkSize = rs.getLong(1);\n long totalNumberRows = rs.getLong(2);\n LOG.debug(\"chunkSize: {} totalNumberRows: {}\", chunkSize, totalNumberRows);\n\n statement.close();\n this.getConnection().commit();\n }\n }", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "entities.Torrent.ChunkInfo getChunks(int index);", "public int getChunkWidth() {\n return 256;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "public int getHighestChunk() {\n return highestChunk_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "public int getMemoryLoad() { return memoryLoad; }", "public Integer getNumberOfLoadedMolecules() {\n if(result == null){\n return 0;\n }\n return result.getNumberOfMolecules();\n }", "@Override\n\tpublic long getFreeBlocks() {\n\t\treturn 0;\n\t}", "void loadChunk(Reader reader, ScriptContext scriptContext)\n\t\t\tthrows ScriptException {\n\t\tloadChunk(new ReaderInputStream(reader), scriptContext);\n\t}", "private double getLoadFactor() {\r\n\t\t\treturn numberOfElements / (double) currentCapacity;\r\n\t\t}", "int getPartsCount();", "int getPartsCount();", "public int getBlockNumbersCount() {\n return blockNumbers_.size();\n }", "public void beginLoad(int libraryCount);", "public int numPages() {\n // some code goes here\n //System.out.println(\"File length :\" + f.length());\n\n return (int) Math.ceil(f.length() * 1.0 / BufferPool.PAGE_SIZE * 1.0);\n }", "boolean hasStoreChunk();", "public int getLoad() {\n\t\treturn load;\n\t}", "public int numPages() {\n // some code goes here\n return (int) Math.ceil(m_f.length() / BufferPool.PAGE_SIZE);\n }", "void mo54426b(int i, List<DownloadChunk> list);", "public static void loadDatabase(){\n\t\ttry(BufferedReader reader = new BufferedReader(new FileReader(filePath))){\n\t\t\tfor(String line; (line = reader.readLine()) != null; ){\n\t\t\t\tString[] info = line.split(Pattern.quote(\"|\"));\n\t\t\t\tString path = info[0].trim();\n\t\t\t\tString fileID = info[1];\n\t\t\t\tInteger nOfChunks = Integer.parseInt(info[2]);\n\t\t\t\tPair<FileID, Integer> pair = new Pair<FileID, Integer>(new FileID(fileID), nOfChunks);\n\t\t\t\tPeer.fileList.put(path, pair);\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/*\n\t\t * LOAD THE CHUNK LIST\n\t\t */\n\t\ttry(BufferedReader reader = new BufferedReader(new FileReader(chunkPath))){\n\t\t\tfor(String line; (line = reader.readLine()) != null; ){\n\t\t\t\tString[] info = line.split(Pattern.quote(\"|\"));\n\t\t\t\tString fileID = info[0].trim();\n\t\t\t\tInteger chunkNo = Integer.parseInt(info[1]);\n\t\t\t\tInteger drd = Integer.parseInt(info[2]);\n\t\t\t\tInteger ard = Integer.parseInt(info[3]);\n\t\t\t\tChunkInfo ci = new ChunkInfo(fileID,chunkNo,drd,ard);\n\t\t\t\tPeer.chunks.add(ci);\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public final int cacheNodeChunkSize() {\n return -1;\r\n }", "public float getLoad(){\n\t\treturn 1.0f*size/capacity;\n\t}", "public boolean unload100OldestChunks()\n {\n return false;\n }", "public boolean unload100OldestChunks()\n {\n return false;\n }", "public void filterChunkLoadQueue(EntityPlayerMP player)\r\n {\r\n ArrayList var2 = Lists.newArrayList(player.loadedChunks);\r\n int var3 = 0;\r\n int var4 = this.playerViewRadius;\r\n int var5 = (int)player.posX >> 4;\r\n int var6 = (int)player.posZ >> 4;\r\n int var7 = 0;\r\n int var8 = 0;\r\n ChunkCoordIntPair var9 = this.getPlayerInstance(var5, var6, true).chunkCoords;\r\n player.loadedChunks.clear();\r\n\r\n if (var2.contains(var9))\r\n {\r\n player.loadedChunks.add(var9);\r\n }\r\n\r\n int var10;\r\n\r\n for (var10 = 1; var10 <= var4 * 2; ++var10)\r\n {\r\n for (int var11 = 0; var11 < 2; ++var11)\r\n {\r\n int[] var12 = this.xzDirectionsConst[var3++ % 4];\r\n\r\n for (int var13 = 0; var13 < var10; ++var13)\r\n {\r\n var7 += var12[0];\r\n var8 += var12[1];\r\n var9 = this.getPlayerInstance(var5 + var7, var6 + var8, true).chunkCoords;\r\n\r\n if (var2.contains(var9))\r\n {\r\n player.loadedChunks.add(var9);\r\n }\r\n }\r\n }\r\n }\r\n\r\n var3 %= 4;\r\n\r\n for (var10 = 0; var10 < var4 * 2; ++var10)\r\n {\r\n var7 += this.xzDirectionsConst[var3][0];\r\n var8 += this.xzDirectionsConst[var3][1];\r\n var9 = this.getPlayerInstance(var5 + var7, var6 + var8, true).chunkCoords;\r\n\r\n if (var2.contains(var9))\r\n {\r\n player.loadedChunks.add(var9);\r\n }\r\n }\r\n }", "public int loadedPlayers(){\n return playerMap.size();\n }", "void loadChunk(InputStream inputStream, ScriptContext scriptContext)\n\t\t\tthrows ScriptException {\n\t\ttry {\n\t\t\tluaState.load(inputStream, getChunkName(scriptContext));\n\t\t} catch (LuaException e) {\n\t\t\tthrow getScriptException(e);\n\t\t} catch (IOException e) {\n\t\t\tthrow new ScriptException(e);\n\t\t}\n\t}" ]
[ "0.7547618", "0.7547618", "0.7314243", "0.7166069", "0.7007612", "0.6810492", "0.6788171", "0.6782211", "0.6707135", "0.66788685", "0.6662366", "0.6593474", "0.6593474", "0.6593474", "0.6593474", "0.65822136", "0.65471923", "0.64545953", "0.6445732", "0.64224195", "0.64224195", "0.63217926", "0.6268282", "0.6199392", "0.6085544", "0.6073191", "0.6068809", "0.6064508", "0.6064508", "0.60548687", "0.6041744", "0.6041249", "0.60210204", "0.60033965", "0.5978949", "0.5952233", "0.59274006", "0.59245646", "0.5923886", "0.59191966", "0.59022194", "0.5878482", "0.587368", "0.58732325", "0.5871134", "0.5871134", "0.5871134", "0.5871134", "0.5871134", "0.5871134", "0.58446795", "0.5830757", "0.5803414", "0.580003", "0.5792521", "0.57883096", "0.5782065", "0.5772337", "0.5771038", "0.57562405", "0.57501477", "0.57450396", "0.5739484", "0.5737968", "0.5722327", "0.5720496", "0.5687234", "0.5687234", "0.5687234", "0.5687234", "0.5669006", "0.5669006", "0.56554496", "0.564625", "0.564625", "0.56450737", "0.56416446", "0.5630876", "0.56304467", "0.56295663", "0.56264704", "0.56264704", "0.5622723", "0.562209", "0.56050205", "0.55901134", "0.5587832", "0.55824244", "0.55796874", "0.55756116", "0.55708516", "0.55708516", "0.55708516", "0.55708516", "0.556245", "0.55484664", "0.55443513", "0.55443513", "0.5540594", "0.5537678", "0.55303997" ]
0.0
-1
TODO: ReCreate structures (is this maybe a repopulate?)
@Override public void e(int i0, int i1) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void recreateStructures(int p_82695_1_, int p_82695_2_)\n\t{\n\t}", "Structure createStructure();", "abstract void updateStructure();", "private void initStructures() throws RIFCSException {\n initTexts();\n initDates();\n }", "private void fillDataStructures()\n \t{\n \t\tfor (Field field : fields) {\n \t\t\tif (field.object != null) {\n \t\t\t\tObject o = field.object;\n \t\t\t\tif (o instanceof Agent) {\n \t\t\t\t\tagents.add((Agent)o);\n \t\t\t\t\t((Agent) o).td = this;\n \t\t\t\t} else { // Box\n \t\t\t\t\tboxes.add((Box)o);\n \t\t\t\t\t((Box) o).td = this;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t\n \t\t// sort boxes and agents by color\n \t\tfor (int i=0; i<8; i++) {\n \t\t\tboxesByColor.add(new ArrayList<Box>());\n \t\t\tagentsByColor.add(new ArrayList<Agent>());\n \t\t\tgoalsByColor.add(new ArrayList<Goal>());\n \t\t}\n \t\tfor (Box box : boxes) {\n \t\t\tboxesByColor.get(box.color.ordinal()).add(box);\n \t\t}\n \t\tfor (Agent agent : agents) {\n \t\t\tagentsByColor.get(agent.color.ordinal()).add(agent);\n \t\t}\n \t\tfor (Goal goal : goals) {\n \t\t\tgoalsByColor.get(goal.color.ordinal()).add(goal);\n \t\t}\n \n \t\t\n \t\t// sort boxes and goals by ID\n \t\tfor (Box box : boxes) {\n \t\t\tif (boxesByID.get(box.id) == null) {\n \t\t\t\tboxesByID.put(box.id,new ArrayList<Box>());\n \t\t\t}\n \t\t\tboxesByID.get(box.id).add(box);\n \t\t}\n \t\tfor (Goal goal : goals) {\n \t\t\tif (goalsByID.get(goal.id) == null) {\n \t\t\t\tgoalsByID.put(goal.id,new ArrayList<Goal>());\n \t\t\t}\n \t\t\tgoalsByID.get(goal.id).add(goal);\n \t\t}\n \n \t\t\n \t\t// sort boxes and agents by Node\n \t\tfor (Node node : graph) {\n \t\t\tboxesByNode.put(node, new ArrayList<Box>());\n \t\t\tagentsByNode.put(node,new ArrayList<Agent>());\n \t\t}\n \t\tfor (Box box : boxes) {\n \t\t\tNode node = box.atField.node;\n \t\t\tboxesByNode.get(node).add(box);\n \t\t}\n \t\tfor (Agent agent : agents) {\n \t\t\tNode node = agent.atField.node;\n \t\t\tagentsByNode.get(node).add(agent);\n \t\t}\n \t}", "@Override\r\n\tpublic void visit(StructDefinition structDefinition) {\n\r\n\t}", "public Struct(String a, int b){\r\n\tid=a;\r\n\tsize=b;\t\r\n\tform=0;\r\n }", "@Override\n protected List<Map<String, Object>> getInputRecords() {\n Map[] simpleStructs = new Map[]{\n null, createStructInput(\"structString\", \"abc\", \"structLong\", 1000L, \"structDouble\", 5.99999),\n createStructInput(\"structString\", \"def\", \"structLong\", 2000L, \"structDouble\", 6.99999),\n createStructInput(\"structString\", \"ghi\", \"structLong\", 3000L, \"structDouble\", 7.99999)\n };\n\n // complex struct - contains a string and nested struct of int and long\n Map[] complexStructs = new Map[]{\n createStructInput(\"structString\", \"abc\", \"nestedStruct\",\n createStructInput(\"nestedStructInt\", 4, \"nestedStructLong\", 4000L)),\n createStructInput(\"structString\", \"def\", \"nestedStruct\",\n createStructInput(\"nestedStructInt\", 5, \"nestedStructLong\", 5000L)), null,\n createStructInput(\"structString\", \"ghi\", \"nestedStruct\",\n createStructInput(\"nestedStructInt\", 6, \"nestedStructLong\", 6000L))\n };\n\n // complex list element - each element contains a struct of int and double\n List[] complexLists = new List[]{\n Arrays.asList(createStructInput(\"complexListInt\", 10, \"complexListDouble\", 100.0),\n createStructInput(\"complexListInt\", 20, \"complexListDouble\", 200.0)), null,\n Collections.singletonList(createStructInput(\"complexListInt\", 30, \"complexListDouble\", 300.0)),\n Arrays.asList(createStructInput(\"complexListInt\", 40, \"complexListDouble\", 400.0),\n createStructInput(\"complexListInt\", 50, \"complexListDouble\", 500.0))\n };\n\n // single value integer\n Integer[] userID = new Integer[]{1, 2, null, 4};\n\n // single value string\n String[] firstName = new String[]{null, \"John\", \"Ringo\", \"George\"};\n\n // collection of integers\n List[] bids = new List[]{Arrays.asList(10, 20), null, Collections.singletonList(1), Arrays.asList(1, 2, 3)};\n\n // single value double\n double[] cost = new double[]{10000, 20000, 30000, 25000};\n\n // single value long\n long[] timestamp = new long[]{1570863600000L, 1571036400000L, 1571900400000L, 1574000000000L};\n\n // simple map with string keys and integer values\n Map[] simpleMaps = new Map[]{\n createStructInput(\"key1\", 10, \"key2\", 20), null, createStructInput(\"key3\", 30),\n createStructInput(\"key4\", 40, \"key5\", 50)\n };\n\n // complex map with struct values - struct contains double and string\n Map[] complexMap = new Map[]{\n createStructInput(\"key1\", createStructInput(\"doubleField\", 2.0, \"stringField\", \"abc\")), null,\n createStructInput(\"key1\", createStructInput(\"doubleField\", 3.0, \"stringField\", \"xyz\"), \"key2\",\n createStructInput(\"doubleField\", 4.0, \"stringField\", \"abc123\")),\n createStructInput(\"key1\", createStructInput(\"doubleField\", 3.0, \"stringField\", \"xyz\"), \"key2\",\n createStructInput(\"doubleField\", 4.0, \"stringField\", \"abc123\"), \"key3\",\n createStructInput(\"doubleField\", 4.0, \"stringField\", \"asdf\"))\n };\n\n List<Map<String, Object>> inputRecords = new ArrayList<>(4);\n for (int i = 0; i < 4; i++) {\n Map<String, Object> record = new HashMap<>();\n record.put(\"userID\", userID[i]);\n record.put(\"firstName\", firstName[i]);\n record.put(\"bids\", bids[i]);\n record.put(\"cost\", cost[i]);\n record.put(\"timestamp\", timestamp[i]);\n record.put(\"simpleStruct\", simpleStructs[i]);\n record.put(\"complexStruct\", complexStructs[i]);\n record.put(\"complexList\", complexLists[i]);\n record.put(\"simpleMap\", simpleMaps[i]);\n record.put(\"complexMap\", complexMap[i]);\n\n inputRecords.add(record);\n }\n return inputRecords;\n }", "void initStructure(int totalNumBonds, int totalNumAtoms, int totalNumGroups, int totalNumChains, \n\t\t\tint totalNumModels, String structureId);", "public Structure getStructure() {\n/* 3557 */ return this.structure;\n/* */ }", "private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }", "protected abstract boolean buildStructure(OpenableElementInfo info,\n\t\t\tIProgressMonitor pm,\n\t\t\tOpenableMap newElements,\n\t\t\tIResource underlyingResource) throws RodinDBException;", "public Struct(String b){\r\n\tid=b;\r\n\tsize=0;\r\n\tform=0;\r\n }", "private void newGroup()\n\t{\n\t\t// There is no need anymore to take care of the meta-data.\n\t\t// That is done once in DenormaliserMeta.getFields()\n\t\t//\n data.targetResult = new Object[meta.getDenormaliserTargetFields().length];\n \n for (int i=0;i<meta.getDenormaliserTargetFields().length;i++)\n {\n data.targetResult[i] = null;\n\n data.counters[i]=0L; // set to 0\n data.sum[i]=null;\n }\n\t}", "private void parseData() {\n\t\t\r\n\t}", "public AttachedPartsStruct()\n\t{\n\t\tthis.station = new EnumHolder<>( StationEnum32.Nothing_Empty );\n\t\tthis.storeType = new EntityTypeStruct();\n\t\t\n\t\t// Add to the elements in the parent so that it can do its generic fixed-record stuff\n\t\tsuper.add( station );\n\t\tsuper.add( storeType );\n\t}", "private void prepare()\n {\n AmbulanceToLeft ambulanceToLeft = new AmbulanceToLeft();\n addObject(ambulanceToLeft,717,579);\n Car2ToLeft car2ToLeft = new Car2ToLeft();\n addObject(car2ToLeft,291,579);\n Car3 car3 = new Car3();\n addObject(car3,45,502);\n CarToLeft carToLeft = new CarToLeft();\n addObject(carToLeft,710,262);\n Car car = new Car();\n addObject(car,37,190);\n AmbulanceToLeft ambulanceToLeft2 = new AmbulanceToLeft();\n addObject(ambulanceToLeft2,161,264);\n }", "public void attachStructure(CrosswordStructure structure);", "BElementStructure createBElementStructure();", "@Override\r\n\tpublic void visit(StructExpression structExpression) {\n\r\n\t}", "public void load() {\n structure = SpigotUtils.structBetweenTwoLocations(pos1, pos2, material);\n }", "@Override\r\n\tpublic void visit(StructType structType) {\n\r\n\t}", "protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }", "@Override\r\n\tpublic boolean isStructure() {\n\t\treturn false;\r\n\t}", "private void buildInternalRepresentations() {\n new DAGBuilder(data).buildMethods(this);//.dump();\n }", "@Override\n\tpublic void reorganize() {\n\n\t}", "@Override\n\tpublic void onStructChanged() {\n\t\t\n\t}", "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "private void buildObject(Element current) {\n\t\tList<Element> children = current.getChildren();\n\t\tIterator<Element> iterator = children.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElement child = iterator.next();\n\t\t\tString category = child.getAttributeValue(\"description\");\n\t\t\tString reference = child.getAttributeValue(\"reference\");\n\n\t\t\tEplusObject ob = new EplusObject(category, reference);\n\t\t\tprocessFields(child, ob);\n\t\t\tobjects.add(ob);\n\t\t}\n\t}", "CreationData creationData();", "public void updateStructure()\n\t{\n\t\tboolean itWorked = true;\n\t\t\n\t\t// Get block's rotational information as a ForgeDirection\n\t\tForgeDirection rotation = ForgeDirection.getOrientation(Utils.backFromMeta(worldObj.getBlockMetadata(xCoord, yCoord, zCoord)));\n\t\t\n\t\t//\n\t\t// Step one: validate all blocks\n\t\t//\n\t\t\n\t\t// Get the MachineStructures from the MachineStructureRegistrar\n\t\t// But if the machine is already set up it should only check the desired structure.\n\t\tfor (MachineStructure struct : (structureComplete() ? MachineStructureRegistrar.getStructuresForMachineID(getMachineID()) : MachineStructureRegistrar.getStructuresForMachineID(getMachineID())))\n\t\t{\n\t\t\t// Check each block in requirements\n\t\t\tfor (PReq req : struct.requirements)\n\t\t\t{\n\t\t\t\t// Get the rotated block coordinates.\n\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\n\t\t\t\t// Check the requirement.\n\t\t\t\tif (!req.requirement.isMatch(tier, worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord))\n\t\t\t\t{\n\t\t\t\t\t// If it didn't work, stop checking.\n\t\t\t\t\titWorked = false; break;\n\t\t\t\t}\n\t\t\t\t// If it did work keep calm and carry on\n\t\t\t}\n\t\t\t\n\t\t\t// We've gone through all the blocks. They all match up!\n\t\t\tif (itWorked)\n\t\t\t{\n\t\t\t\t// **If the structure is new only**\n\t\t\t\t// Which implies the blocks have changed between checks\n\t\t\t\tif (struct.ID != structureID)\n\t\t\t\t{\n\t\t\t\t\t//\n\t\t\t\t\t// This is only called when structures are changed/first created.\n\t\t\t\t\t//\n\t\t\t\t\t\n\t\t\t\t\t// Save what structure we have.\n\t\t\t\t\tstructureID = struct.ID;\n\t\t\t\t\t\n\t\t\t\t\t// Make an arraylist to save all teh structures\n\t\t\t\t\tArrayList<StructureUpgradeEntity> newEntities = new ArrayList<StructureUpgradeEntity>();\n\n\t\t\t\t\t// Tell all of the blocks to join us!\n\t\t\t\t\tfor (PReq req : struct.requirements)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Get the blocks that the structure has checked.\n\t\t\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z); if (brock == null) continue;\n\n\t\t\t\t\t\tif (brock instanceof IStructureAware)\n\t\t\t\t\t\t\t((IStructureAware)brock).onStructureCreated(worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Check the tile entity for upgrades\n\t\t\t\t\t\tTileEntity ent = worldObj.getTileEntity(pos.x, pos.y, pos.z);\n\t\t\t\t\t\tif (ent != null && ent instanceof StructureUpgradeEntity)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tStructureUpgradeEntity structEnt = (StructureUpgradeEntity)ent;\n\t\t\t\t\t\t\tnewEntities.add(structEnt);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* // Not sure about this.\n\t\t\t\t\t\t\tif (structEnt.coreX != xCoord && structEnt.coreY != yCoord && structEnt.coreZ != zCoord)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tstructEnt.onCoreConnected()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// do stuff with that\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// I haven't figured out how the hell to do toArray() in this crap\n\t\t\t\t\t// so here's a weird combination of iterator and for loop\n\t\t\t\t\tupgrades = new StructureUpgradeEntity[newEntities.size()];\n\t\t\t\t\tfor (int i = 0; i < newEntities.size(); i++)\n\t\t\t\t\t\tupgrades[i] = newEntities.get(i);\n\n\t\t\t\t\t// Tell all of the structure blocks to stripe it up!\n\t\t\t\t\tfor (RelativeFaceCoords relPos : struct.relativeStriped)\n\t\t\t\t\t{\n\t\t\t\t\t\tBlockPosition pos = relPos.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// If it's a structure block tell it to stripe up\n\t\t\t\t\t\tif (brock != null && brock instanceof StructureBlock)\n\t\t\t\t\t\t\tworldObj.setBlockMetadataWithNotify(pos.x, pos.y, pos.z, 2, 2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// If not, reset the loop and try again.\n\t\t\telse { itWorked = true; continue; }\n\t\t}\n\t\t\n\t\t//\n\t\t// None of the structures worked!\n\t\t//\n\t\t\n\t\t// If we had a structure before, we need to clear it\n\t\tif (structureComplete())\n\t\t{\n\t\t\tfor (PReq req : MachineStructureRegistrar.getMachineStructureByID(structureID).requirements)\n\t\t\t{\n\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z);\n\t\t\t\t\n\t\t\t\t// This will also un-stripe all structure blocks.\n\t\t\t\tif (brock instanceof IStructureAware)\n\t\t\t\t\t((IStructureAware)brock).onStructureBroken(worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord);\n\t\t\t}\n\t\t\t// We don't have a structure.\n\t\t\tstructureID = null;\n\t\t}\n\t\t\n\t}", "public void organizeInternalStructure( ) throws LoaderException\r\n {\r\n // Fist cast the object for easier use and validation\r\n IEmpty empty = null;\r\n try\r\n {\r\n empty = ( IEmpty )element;\r\n }\r\n catch( ClassCastException e )\r\n {\r\n throw new LoaderException( \"Class does not implement IEmpty.\", e );\r\n }\r\n \r\n if(((IActivity)element).getName( )==null)\r\n throw new LoaderException(\"The empty element must have a name defined\");\r\n }", "public interface StructureAdapterInterface {\n\n\t/**\n\t * Used before any additions to do any required pre-processing.\n\t * For example the user could use this to specify the amount of memory to be allocated.\n\t * @param totalNumBonds the total number of bonds in the structure\n\t * @param totalNumAtoms the total number of atoms found in the data.\n\t * @param totalNumGroups the total number of groups found in the data.\n\t * @param totalNumChains the total number of chains found in the data.\n\t * @param totalNumModels the total number of models found in the data.\n\t * @param structureId an identifier for the structure (e.g. PDB id).\n\t */\n\tvoid initStructure(int totalNumBonds, int totalNumAtoms, int totalNumGroups, int totalNumChains, \n\t\t\tint totalNumModels, String structureId);\n\n\t/**\n\t * A generic function to be used at the end of all data addition to do required cleanup on the structure\n\t */\n\tvoid finalizeStructure();\n\n\t/**\n\t * Sets the number of chains for a given model.\n\t * @param modelId identifier of the model within the structure\n\t * @param chainCount total number of chains within this model\n\t */\n\tvoid setModelInfo(int modelId, int chainCount);\n\n\t/**\n\t * Sets the information for a given chain.\n\t * @param chainId chain identifier - length of one to four\n\t * @param chainName chain name - public chain id\n\t * @param groupCount number of groups/residues in chain\n\t */\n\tvoid setChainInfo(String chainId, String chainName, int groupCount);\n\n\t/**\n\t * Sets the entity level annotation for a chain(s). ChainIds is a list of integers that indicate the chains this information\n\t * refers to. Sequence is the one letter amino acid sequence. Description and title are both free forms strings describing the entity and \n\t * acting as a title for the entity.\n\t * @param chainIndices the indices of the chain this refers to.\n\t * @param sequence the full sequence of the entity\n\t * @param description the text description of the entity\n\t * @param type as a string (POLYMER/NON-POLYMER and WATER)\n\t */\n\tvoid setEntityInfo(int[] chainIndices, String sequence, String description, String type);\n\n\t/**\n\t * Sets the information for a given group / residue with atomic data.\n\t * @param groupName 3 letter code name of this group/residue\n\t * @param groupNumber sequence position of this group\n\t * @param insertionCode the one letter insertion code\n\t * @param groupType a string indicating the type of group (as found in the chemcomp dictionary. Empty string if none available.\n\t * @param atomCount the number of atoms in the group\n\t * @param bondCount the number of unique bonds in the group\n\t * @param singleLetterCode the single letter code of the group\n\t * @param sequenceIndex the index of this group in the sequence\n\t * @param secondaryStructureType the type of secondary structure used (types are according to DSSP and number to \n\t * type mappings are defined in the specification)\n\t */\n\tvoid setGroupInfo(String groupName, int groupNumber, char insertionCode,\n\t\t\tString groupType, int atomCount, int bondCount, char singleLetterCode, \n\t\t\tint sequenceIndex, int secondaryStructureType);\n\n\n\t/**\n\t * Sets the atom level information for a given atom.\n\t * @param atomName 1-3 long string of the unique name of the atom\n\t * @param serialNumber a number counting atoms in a structure\n\t * @param alternativeLocationId a character indicating the alternate\n\t * location of the atom\n\t * @param x the x cartesian coordinate\n\t * @param y the y cartesian coordinate\n\t * @param z the z cartesian coordinate\n\t * @param occupancy the atomic occupancy\n\t * @param temperatureFactor the B factor (temperature factor)\n\t * @param element a 1-3 long string indicating the chemical element of the atom\n\t * @param charge the atomic charge\n\t */\n\tvoid setAtomInfo(String atomName, int serialNumber, char alternativeLocationId, \n\t\t\tfloat x, float y, float z, float occupancy, float temperatureFactor, String element, int charge);\n\n\t/**\n\t * Sets a single Bioassembly transformation to a structure. bioAssemblyId indicates the index of the bioassembly.\n\t * @param bioAssemblyIndex an integer index of this bioassembly.\n\t * @param inputChainIndices the integer indices of the chains involved in this bioassembly. \n\t * @param inputTransform a list of doubles indicating the transform for this bioassembly.\n\t * @param name the name of the bioassembly\n\t */\n\tvoid setBioAssemblyTrans(int bioAssemblyIndex, int[] inputChainIndices, double[] inputTransform, String name);\n\n\t/**\n\t * Sets the space group and unit cell information.\n\t *\n\t * @param spaceGroup the space group name, e.g. \"P 21 21 21\"\n\t * @param unitCell an array of length 6 with the unit cell parameters in order: a, b, c, alpha, beta, gamma\n\t * @param ncsOperatorList the list of NCS operation matrices\n\t */\n\tvoid setXtalInfo(String spaceGroup, float[] unitCell, double[][] ncsOperatorList);\n\n\t/**\n\t * Sets an intra-group bond.\n\t *\n\t * @param atomIndexOne the atom index of the first partner in the bond\n\t * @param atomIndexTwo the atom index of the second partner in the bond\n\t * @param bondOrder the bond order\n\t */\n\tvoid setGroupBond(int atomIndexOne, int atomIndexTwo, int bondOrder);\n\n\t/**\n\t * Sets an inter-group bond.\n\t * @param atomIndexOne the atom index of the first partner in the bond\n\t * @param atomIndexTwo the atom index of the second partner in the bond\n\t * @param bondOrder the bond order\n\t */\n\tvoid setInterGroupBond(int atomIndexOne, int atomIndexTwo, int bondOrder);\n\n\n\t/**\n\t * Sets the header information.\n\t * @param rFree the measured R-Free for the structure\n\t * @param rWork the measure R-Work for the structure\n\t * @param resolution the resolution of the structure\n\t * @param title the title of the structure\n\t * @param depositionDate the deposition date of the structure\n\t * @param releaseDate the release date of the structure\n\t * @param experimnetalMethods the list of experimental methods in the structure\n\t */\n\tvoid setHeaderInfo(float rFree, float rWork, float resolution, String title, String depositionDate, \n\t\t\tString releaseDate, String[] experimnetalMethods);\n\n}", "@Override\r\n\t\tpublic Struct createStruct(String typeName, Object[] attributes)\r\n\t\t\t\tthrows SQLException {\n\t\t\treturn null;\r\n\t\t}", "StructureType createStructureType();", "protected void prepareEntityToNodeMap()\r\n\t{\n\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "@Override\n public StructFields duplicate() {\n final StructFields newStruct = new StructFields();\n newStruct.fields.putAll(fields.entrySet().stream()\n .map(ent -> new Tuple<>(ent.getKey(), ent.getValue().duplicate()))\n .collect(Collectors.toMap(Tuple::getA, Tuple::getB)));\n return newStruct;\n }", "public Structure() {\n this.universeSize = universeSize;\n this.E = GraphFactory.emptyGraph();\n this.relations = new HashMap<>();\n this.arity = new HashMap<>();\n this.universeSize = -1;\n }", "public interface Structure\r\n{\r\n\tint getStart();\r\n\r\n\tint getEnd();\r\n\r\n\t/**\r\n\t * set position to start position.\r\n\t */\r\n\tvoid moveToStart();\r\n\r\n\t/**\r\n\t * set position to end position.\r\n\t */\r\n\tvoid moveToEnd();\t\r\n\r\n\t/**\r\n\t * reset to factory settings\r\n\t */\r\n\tvoid reset();\r\n\r\n\tint size();\r\n\t\r\n\tByteBuffer getByteBuffer();\r\n}", "@Override\n\tpublic void createCellStructure() {\n\t\t\n\t}", "private void setupInheritanceStructure() throws PhiException{\n\n a = new PhiCollection();\n b = new PhiCollection();\n c = new PhiCollection();\n d = new PhiCollection();\n aSuper = new PhiCollection();\n bSuper = new PhiCollection();\n PhiCollection cSuper = new PhiCollection();\n\n //Setup inheritance\n aSuper.createMember(new PhiInt(1));\n aSuper.setUnnamed(0, b);\n aSuper.setUnnamed(1, c);\n a.setNamed(\"super\", aSuper);\n\n bSuper.createMember(new PhiInt(0));\n bSuper.setUnnamed(0, d);\n b.setNamed(\"super\", bSuper);\n\n cSuper.createMember(new PhiInt(0));\n cSuper.setUnnamed(0, d);\n c.setNamed(\"super\", cSuper);\n\n //Fill collections\n a.createMember(new PhiSymbol(\"test1\"));\n a.createMember(new PhiInt(0));\n a.setNamed(\"test1\", new PhiString(\"a\"));\n a.setUnnamed(0, new PhiInt(1));\n\n b.createMember(new PhiSymbol(\"test1\"));\n b.createMember(new PhiSymbol(\"test2\"));\n b.createMember(new PhiInt(0));\n b.setNamed(\"test1\", new PhiString(\"b\"));\n b.setNamed(\"test2\", new PhiString(\"x\"));\n b.setUnnamed(0, new PhiInt(2));\n\n c.createMember(new PhiSymbol(\"test1\"));\n c.createMember(new PhiInt(1));\n c.setNamed(\"test1\", new PhiString(\"c\"));\n c.setUnnamed(0, new PhiInt(3));\n c.setUnnamed(1, new PhiInt(5));\n\n d.createMember(new PhiSymbol(\"test1\"));\n d.createMember(new PhiSymbol(\"test2\"));\n d.createMember(new PhiInt(1));\n d.setNamed(\"test1\", new PhiString(\"d\"));\n d.setNamed(\"test2\", new PhiString(\"y\"));\n d.setUnnamed(0, new PhiInt(4));\n d.setUnnamed(1, new PhiInt(6));\n }", "public ModelStructure(){\n dcModelPurposeIndexMap = new HashMap<String,Integer>();\n dcModelIndexPurposeMap = new HashMap<Integer,String>();\n dcSoaUecIndexMap = new HashMap<String,Integer>();\n dcUecIndexMap = new HashMap<String,Integer>();\n tourModeChoiceUecIndexMap = new HashMap<String,Integer>();\n stopFreqUecIndexMap = new HashMap<String,Integer>();\n stopLocUecIndexMap = new HashMap<String,Integer>();\n tripModeChoiceUecIndexMap = new HashMap<String,Integer>();\n \n segmentedPurposeIndexMap = new HashMap<String,Integer>();\n segmentedIndexPurposeMap = new HashMap<Integer,String>();\n\n primaryPurposeIndexMap = new HashMap<String,Integer>();\n primaryIndexPurposeMap = new HashMap<Integer,String>();\n primaryPurposeIndexMap.put( \"Home\", -1 );\n primaryPurposeIndexMap.put( \"Work\", -2 );\n primaryPurposeIndexMap.put( WORK_PURPOSE_NAME, WORK_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( UNIVERSITY_PURPOSE_NAME, UNIVERSITY_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( SCHOOL_PURPOSE_NAME, SCHOOL_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( ESCORT_PURPOSE_NAME, ESCORT_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( SHOPPING_PURPOSE_NAME, SHOPPING_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( OTH_MAINT_PURPOSE_NAME, OTH_MAINT_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( EAT_OUT_PURPOSE_NAME, EAT_OUT_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( SOCIAL_PURPOSE_NAME, SOCIAL_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( OTH_DISCR_PURPOSE_NAME, OTH_DISCR_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( AT_WORK_PURPOSE_NAME, AT_WORK_PURPOSE_INDEX );\n primaryIndexPurposeMap.put( -1, \"Home\" );\n primaryIndexPurposeMap.put( -2, \"Work\" );\n primaryIndexPurposeMap.put( WORK_PURPOSE_INDEX, WORK_PURPOSE_NAME );\n primaryIndexPurposeMap.put( UNIVERSITY_PURPOSE_INDEX, UNIVERSITY_PURPOSE_NAME );\n primaryIndexPurposeMap.put( SCHOOL_PURPOSE_INDEX, SCHOOL_PURPOSE_NAME );\n primaryIndexPurposeMap.put( ESCORT_PURPOSE_INDEX, ESCORT_PURPOSE_NAME );\n primaryIndexPurposeMap.put( SHOPPING_PURPOSE_INDEX, SHOPPING_PURPOSE_NAME );\n primaryIndexPurposeMap.put( OTH_MAINT_PURPOSE_INDEX, OTH_MAINT_PURPOSE_NAME );\n primaryIndexPurposeMap.put( EAT_OUT_PURPOSE_INDEX, EAT_OUT_PURPOSE_NAME );\n primaryIndexPurposeMap.put( SOCIAL_PURPOSE_INDEX, SOCIAL_PURPOSE_NAME );\n primaryIndexPurposeMap.put( OTH_DISCR_PURPOSE_INDEX, OTH_DISCR_PURPOSE_NAME );\n primaryIndexPurposeMap.put( AT_WORK_PURPOSE_INDEX, AT_WORK_PURPOSE_NAME );\n }", "private void doReplaceWithUnaligned(Structure struct) throws IOException {\n\t\tif (struct.isNotYetDefined()) {\n\t\t\treturn;\n\t\t}\n\n\t\tstructLength = struct.getLength();\n\t\tnumComponents = structLength;\n\n\t\tDataTypeComponent[] otherComponents = struct.getDefinedComponents();\n\t\tfor (int i = 0; i < otherComponents.length; i++) {\n\t\t\tDataTypeComponent dtc = otherComponents[i];\n\n\t\t\tDataType dt = resolve(dtc.getDataType());\n\t\t\tcheckAncestry(dt);\n\n\t\t\tint length = getPreferredComponentLength(dt, dtc.getLength());\n\n\t\t\tRecord rec = componentAdapter.createRecord(dataMgr.getResolvedID(dt), key, length,\n\t\t\t\tdtc.getOrdinal(), dtc.getOffset(), dtc.getFieldName(), dtc.getComment());\n\t\t\tdt.addParent(this);\n\t\t\tDataTypeComponentDB newDtc =\n\t\t\t\tnew DataTypeComponentDB(dataMgr, componentAdapter, this, rec);\n\t\t\tcomponents.add(newDtc);\n\t\t}\n\t\tadjustComponents(false);\n\t}", "public void method_6436() {\r\n super();\r\n this.field_6225 = new ArrayList();\r\n this.field_6226 = new HashMap();\r\n }", "protected void _updateG2AttributesFromLocal(Structure atts)\n {\n }", "@Override\n\tpublic boolean isMemberOfStructure() {\n\t\treturn false;\n\t}", "void finalizeStructure();", "@Override\n protected void inputObjects() {\n alpha1 = Utils.computeRandomNumber(Modulus, sp);\n alpha2 = Utils.computeRandomNumber(Modulus, sp);\n gamma = Utils.computeRandomNumber(Modulus, sp);\n gammaTilde = Utils.computeRandomNumber(Modulus, sp);\n\n capC = g2.modPow(gamma, Modulus);\n capCTilde = g2.modPow(gammaTilde, Modulus);\n\n beta1 = alpha1.multiply(x);\n beta2 = alpha2.multiply(x);\n BigInteger capU1 = t_i.modPow(alpha1, Modulus).multiply(b_i.modPow(beta1.negate(), Modulus))\n .mod(Modulus);\n BigInteger capU2 = g1.modPow(alpha1, Modulus).multiply(g2.modPow(alpha2, Modulus)).mod(Modulus);\n\n objects.put(\"tInverse\", t.modInverse(Modulus));\n objects.put(\"b\", b);\n objects.put(\"g1\", g1);\n objects.put(\"g2\", g2);\n objects.put(\"U1Inverse\", capU1.modInverse(Modulus));\n objects.put(\"U2Inverse\", capU2.modInverse(Modulus));\n objects.put(\"CInverse\", capC.modInverse(Modulus));\n objects.put(\"CTildeInverse\", capCTilde.modInverse(Modulus));\n objects.put(\"t_i\", t_i);\n objects.put(\"b_iInverse\", b_i.modInverse(Modulus));\n }", "protected void _updateLocalAttributesFromG2(Structure atts)\n {\n }", "public StructDef(FEContext context, String name, String pkg, String parentName,\n boolean isInstantiable,\n List<String> fields, List<Type> ftypes,\n HashmapList<String, Annotation> annotations)\n {\n super(context);\n if (parentName != null && parentName.contains(\"@\")) {\n parentName = parentName.substring(0, parentName.indexOf('@'));\n }\n this.name = name;\n this.pkg = pkg;\n this.parentName = parentName;\n this.isInstantiable = isInstantiable;\n this.actFieldsSize = -1;\n TypedHashMap<String, Type> types = new TypedHashMap<String, Type>();\n fieldOrder = fields;\n for (int i = 0; i < fields.size(); i++)\n types.put(fields.get(i), ftypes.get(i));\n this.fieldTypMap = types.immutable();\n this.annotations = annotations;\n if (this.hasAnnotation(\"Immutable\"))\n this.immutable = true;\n }", "private void parseStructs(IProgressMonitor monitor, String aTraceFile) {\n\t\tboolean stack=false;\n\n\t\tif (aTraceFile.contains(MocaConstants.STACK_FILE_TYPE))\n\t\t\tstack=true;\n\n\t\tBufferedReader br;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new InputStreamReader(new DataInputStream(\n\t\t\t\t\tnew FileInputStream(aTraceFile))));\n\n\t\t\tString[] line;\n\t\t\tline = getLine(br);//Ignore first line (description\n\n\t\t\twhile ((line = getLine(br)) != null) {\n\t\t\t\t//Remove whitespaces\n\t\t\t\tfor(int i=0; i < line.length; i++) {\n\t\t\t\t\tline[i]=line[i].trim();\n\t\t\t\t}\n\n\t\t\t\tString name=line[MocaConstants.S_NAME];\n\t\t\t\tlong addr=Long.valueOf(line[MocaConstants.S_ADDR]);\n\t\t\t\tlong sz=Long.valueOf(line[MocaConstants.S_SIZE]);\n\t\t\t\tlong end;\n\n\t\t\t\tif(stack){\n\t\t\t\t\tend=addr*memoryPageSize;\n\t\t\t\t\taddr-=sz;\n\t\t\t\t\tname=MocaConstants.STACK_NAME+name;\n\t\t\t\t}else{\n\t\t\t\t\tend=addr+sz;\n\t\t\t\t}\n\t\t\t\t\t// Create a producer with root pid\n\t\t\t\tEventProducer[] EPs = new EventProducer[2];\n\t\t\t\tfor(MocaTraceType tt: MocaConstants.MocaVirtualTraceType){\n\t\t\t\t\tEPs[tt.ordinal()]=createProducer(name,\n\t\t\t\t\t\t\troot.get(tt).getId());\n\t\t\t\t}\n\t\t\t\t// Create the data structure and add it to the list\n\t\t\t\tdataStructures.add(new DataStruct(addr, end, EPs));\n\t\t\t}\n\t\t\tCollections.sort(dataStructures);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public AllOOneDataStructure() {\n\t\thead=new Node(\"\", 0);\n\t\ttail=new Node(\"\", 0);\n\t\thead.next=tail;\n\t\ttail.prev=head;\n\t\tmap=new HashMap<>();\n\t}", "static void recorreT(){\r\n\tStruct aux=lt;\r\n\twhile(aux!=null){\r\n\t\taux.view();\r\n\t\taux=aux.sig;\r\n\t}\r\n }", "@Deprecated\n public Structure(NetcdfFile ncfile, Group group, Structure parent, String shortName) {\n super(ncfile, group, parent, shortName);\n setDataType(DataType.STRUCTURE);\n this.elementSize = -1; // gotta wait before calculating\n members = new ArrayList<>();\n memberHash = new HashMap<>();\n }", "public DesignADataStructure() {\n arr = new ArrayList<>();\n map = new HashMap<>();\n }", "public StructureCustom(){\r\n\t\tsetMonotonicity(Monotonicity.DECREASING);\r\n\t}", "private void init_fields(String subor, Maps map) throws FileNotFoundException{ //inicializacia vsetkych zoznamov -> hlavne tych z triedy Maps\n map.setCars(new ArrayList<>());\n map.setStations(new ArrayList<>());\n Free_time_window free[][] = map.getFree_windows();\n Reserved_time_window reserved[][] = map.getReserved_windows();\n Road[][] road_matrix = map.getRoads();\n ArrayList<Car>cars;\n \n fr = new FileReader(subor); //nabijem do File Readera moj subor\n br = new BufferedReader(fr); //a budem ho citat\n \n cars = new ArrayList<>();\n \n for(int i= 0;i< max_NO_of_stations; i++){\n for(int j = 0;j< max_NO_of_stations; j++){\n if(i==j){ \n road_matrix[i][j] = new Road(0,-1,-1,-1);\n }\n else{\n road_matrix[i][j] = new Road(-1,-1,-1,-1);\n }\n }\n }\n \n for(int i= 0;i< max_NO_of_stations; i++){\n for(int j = 0;j< max_NO_of_windows; j++){\n free[i][j] = new Free_time_window(-1,-1,-1, -1);\n \n reserved[i][j] = new Reserved_time_window(-1,-1, new Car(-1));\n }\n }\n \n map.setFree_windows(free);\n map.setReserved_windows(reserved);\n map.setRoads(road_matrix);\n map.setCars(cars);\n }", "static void constructUnionFindDataStructure() {\n\n\t\t// construct a scanner for an input file\n\t\tScanner scanner = null;\n\t\ttry {\n\n\t\t\tscanner = new Scanner(new File(\"tinyUF.txt\"));\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// read the number of objects from the standard input\n\t\tint n = Integer.parseInt(scanner.nextLine());\n\n\t\t// initialise a union-find data structure\n\t\tUnionFind unionFind = new UnionFind(n);\n\n\t\t/* Repeatedly read in pairs of integers (object identifiers). If they are not yet connected, connect them\n\t\t * and print out the pair */\n\n\t\twhile (scanner.hasNextLine()) {\n\n\t\t\t// read integers\n\t\t\tString pair = scanner.nextLine();\n\t\t\tString[] objects = pair.split(\" \");\n\t\t\tint p = Integer.parseInt(objects[0]);\n\t\t\tint q = Integer.parseInt(objects[1]);\n\n\t\t\t// connect them if not already\n\t\t\tif (!unionFind.connected(p, q)) {\n\n\t\t\t\tunionFind.union(p, q);\n\t\t\t\tSystem.out.println(p + \" \" + q);\n\t\t\t}\n\t\t}\n\t}", "public Structure load(String name) {\n \t\treturn null;\n \t}", "private void prepare()\n {\n Victoria victoria = new Victoria();\n addObject(victoria,190,146);\n Salir salir = new Salir();\n addObject(salir,200,533);\n Volver volver = new Volver();\n addObject(volver,198,401);\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "SSElements createSSElements();", "private void makeObject() {\n\t\t\n\t\tItem I1= new Item(1,\"Cap\",10.0f,\"to protect from sun\");\n\t\tItemMap.put(1, I1);\n\t\t\n\t\tItem I2= new Item(2,\"phone\",100.0f,\"Conversation\");\n\t\tItemMap.put(2, I2);\n\t\t\n\t\tSystem.out.println(\"Objects Inserted\");\n\t}", "private void parse() {\n if (getFields() == null) {\n List<? extends StructField> fieldRefs =\n ((StructObjectInspector)getInspector()).getAllStructFieldRefs();\n setFields(new LazyObject[fieldRefs.size()]);\n for (int i = 0; i < getFields().length; i++) {\n String hbaseColumnFamily = hbaseColumnFamilies.get(i);\n String hbaseColumnQualifier = hbaseColumnQualifiers.get(i);\n\n ObjectInspector fieldObjectInspector = fieldRefs.get(i).getFieldObjectInspector();\n if (hbaseColumnQualifier == null && !HBaseSerDe.isSpecialColumn(hbaseColumnFamily)) {\n // a column family\n getFields()[i] = new LazyHBaseCellMap(\n (LazyMapObjectInspector) fieldObjectInspector);\n continue;\n }\n if(fieldObjectInspector instanceof LazyListObjectInspector) {\n \tgetFields()[i] = new LazyJsonArray((LazyListObjectInspector)fieldObjectInspector);\n \tcontinue;\n }\n\n getFields()[i] = LazyFactory.createLazyObject(fieldRefs.get(i).getFieldObjectInspector());\n }\n setFieldInited(new boolean[getFields().length]);\n }\n Arrays.fill(getFieldInited(), false);\n setParsed(true);\n }", "@Override\n protected void createInputFile()\n throws IOException {\n // CHECKSTYLE:OFF\n // @format:off\n TypeDescription schema = TypeDescription.fromString(\n \"struct<\" + \"userID:int,\" + \"firstName:string,\" + \"bids:array<int>,\" + \"cost:double,\" + \"timestamp:bigint,\"\n + \"simpleStruct:struct<structString:string,structLong:bigint,structDouble:double>,\"\n + \"complexStruct:struct<structString:string,nestedStruct:struct<nestedStructInt:int,\"\n + \"nestedStructLong:bigint>>,\"\n + \"complexList:array<struct<complexListInt:int,complexListDouble:double>>,\" + \"simpleMap:map<string,int>,\"\n + \"complexMap:map<string,struct<doubleField:double,stringField:string>>\" + \">\");\n // @format:on\n // CHECKSTYLE:ON\n\n int numRecords = _inputRecords.size();\n VectorizedRowBatch rowBatch = schema.createRowBatch(numRecords);\n LongColumnVector userIdVector = (LongColumnVector) rowBatch.cols[0];\n userIdVector.noNulls = false;\n BytesColumnVector firstNameVector = (BytesColumnVector) rowBatch.cols[1];\n firstNameVector.noNulls = false;\n\n // simple list containing long\n ListColumnVector bidsVector = (ListColumnVector) rowBatch.cols[2];\n bidsVector.noNulls = false;\n LongColumnVector bidsElementVector = (LongColumnVector) bidsVector.child;\n bidsElementVector.ensureSize(6, false);\n\n DoubleColumnVector costVector = (DoubleColumnVector) rowBatch.cols[3];\n LongColumnVector timestampVector = (LongColumnVector) rowBatch.cols[4];\n\n // simple struct - string, long, and double\n StructColumnVector simpleStructVector = (StructColumnVector) rowBatch.cols[5];\n simpleStructVector.noNulls = false;\n BytesColumnVector simpleStructBytesVector = (BytesColumnVector) simpleStructVector.fields[0];\n LongColumnVector simpleStructLongVector = (LongColumnVector) simpleStructVector.fields[1];\n DoubleColumnVector simpleStructDoubleVector = (DoubleColumnVector) simpleStructVector.fields[2];\n\n // complex struct - string and struct containing int and long\n StructColumnVector complexStructVector = (StructColumnVector) rowBatch.cols[6];\n complexStructVector.noNulls = false;\n BytesColumnVector complexStructBytesVector = (BytesColumnVector) complexStructVector.fields[0];\n StructColumnVector complexStructInnerVector = (StructColumnVector) complexStructVector.fields[1];\n LongColumnVector complexStructIntVector = (LongColumnVector) complexStructInnerVector.fields[0];\n LongColumnVector complexStructLongVector = (LongColumnVector) complexStructInnerVector.fields[1];\n\n // complex list elements - each element is a struct containing int and long\n ListColumnVector complexListVector = (ListColumnVector) rowBatch.cols[7];\n complexListVector.noNulls = false;\n StructColumnVector complexListElementVector = (StructColumnVector) complexListVector.child;\n LongColumnVector complexListIntVector = (LongColumnVector) complexListElementVector.fields[0];\n complexListIntVector.ensureSize(5, false);\n DoubleColumnVector complexListDoubleVector = (DoubleColumnVector) complexListElementVector.fields[1];\n complexListDoubleVector.ensureSize(5, false);\n\n // simple map - string key and value long\n MapColumnVector simpleMapVector = (MapColumnVector) rowBatch.cols[8];\n simpleMapVector.noNulls = false;\n BytesColumnVector simpleMapKeysVector = (BytesColumnVector) simpleMapVector.keys;\n LongColumnVector simpleMapValuesVector = (LongColumnVector) simpleMapVector.values;\n simpleMapKeysVector.ensureSize(6, false);\n simpleMapValuesVector.ensureSize(6, false);\n\n // complex map - string key and struct value containing double and string\n MapColumnVector complexMapVector = (MapColumnVector) rowBatch.cols[9];\n complexMapVector.noNulls = false;\n BytesColumnVector complexMapKeysVector = (BytesColumnVector) complexMapVector.keys;\n complexMapKeysVector.ensureSize(6, false);\n StructColumnVector complexMapValuesVector = (StructColumnVector) complexMapVector.values;\n DoubleColumnVector complexMapValueDoubleVector = (DoubleColumnVector) complexMapValuesVector.fields[0];\n complexMapValueDoubleVector.ensureSize(6, false);\n BytesColumnVector complexMapValueBytesVector = (BytesColumnVector) complexMapValuesVector.fields[1];\n complexMapValueBytesVector.ensureSize(6, false);\n\n Writer writer = OrcFile.createWriter(new Path(_dataFile.getAbsolutePath()),\n OrcFile.writerOptions(new Configuration()).setSchema(schema));\n for (int i = 0; i < numRecords; i++) {\n Map<String, Object> record = _inputRecords.get(i);\n\n Integer userId = (Integer) record.get(\"userID\");\n if (userId != null) {\n userIdVector.vector[i] = userId;\n } else {\n userIdVector.isNull[i] = true;\n }\n\n String firstName = (String) record.get(\"firstName\");\n if (firstName != null) {\n firstNameVector.setVal(i, firstName.getBytes(UTF_8));\n } else {\n firstNameVector.isNull[i] = true;\n }\n\n List<Integer> bids = (List<Integer>) record.get(\"bids\");\n if (bids != null) {\n bidsVector.offsets[i] = bidsVector.childCount;\n bidsVector.lengths[i] = bids.size();\n for (int bid : bids) {\n bidsElementVector.vector[bidsVector.childCount++] = bid;\n }\n } else {\n bidsVector.isNull[i] = true;\n }\n\n costVector.vector[i] = (double) record.get(\"cost\");\n timestampVector.vector[i] = (long) record.get(\"timestamp\");\n\n // simple map with string key and int value\n Map<String, Integer> simpleMap = (Map<String, Integer>) record.get(\"simpleMap\");\n if (simpleMap != null) {\n simpleMapVector.offsets[i] = simpleMapVector.childCount;\n simpleMapVector.lengths[i] = simpleMap.size();\n for (Map.Entry<String, Integer> entry : simpleMap.entrySet()) {\n simpleMapKeysVector.setVal(simpleMapVector.childCount, entry.getKey().getBytes(UTF_8));\n simpleMapValuesVector.vector[simpleMapVector.childCount] = entry.getValue();\n simpleMapVector.childCount++;\n }\n } else {\n simpleMapVector.isNull[i] = true;\n }\n\n // simple struct with long and double values\n Map<String, Object> struct1 = (Map<String, Object>) record.get(\"simpleStruct\");\n if (struct1 != null) {\n simpleStructBytesVector.setVal(i, ((String) struct1.get(\"structString\")).getBytes(UTF_8));\n simpleStructLongVector.vector[i] = (long) struct1.get(\"structLong\");\n simpleStructDoubleVector.vector[i] = (double) struct1.get(\"structDouble\");\n } else {\n simpleStructVector.isNull[i] = true;\n }\n\n // complex struct - string, struct containing int and long\n Map<String, Object> complexStruct = (Map<String, Object>) record.get(\"complexStruct\");\n if (complexStruct != null) {\n complexStructBytesVector.setVal(i, ((String) complexStruct.get(\"structString\")).getBytes(UTF_8));\n // Set nested struct vector\n complexStructIntVector.vector[i] =\n (Integer) ((Map<String, Object>) complexStruct.get(\"nestedStruct\")).get(\"nestedStructInt\");\n complexStructLongVector.vector[i] =\n (Long) ((Map<String, Object>) complexStruct.get(\"nestedStruct\")).get(\"nestedStructLong\");\n } else {\n complexStructVector.isNull[i] = true;\n }\n\n // complex list elements\n List<Map<String, Object>> complexList = (List<Map<String, Object>>) record.get(\"complexList\");\n if (complexList != null) {\n complexListVector.offsets[i] = complexListVector.childCount;\n complexListVector.lengths[i] = complexList.size();\n for (Map<String, Object> complexElement : complexList) {\n complexListIntVector.vector[complexListVector.childCount] = (int) complexElement.get(\"complexListInt\");\n complexListDoubleVector.vector[complexListVector.childCount] =\n (double) complexElement.get(\"complexListDouble\");\n complexListVector.childCount++;\n }\n } else {\n complexListVector.isNull[i] = true;\n }\n\n // complex map with key string and struct. struct contains double and string.\n Map<String, Map<String, Object>> complexMap = (Map<String, Map<String, Object>>) record.get(\"complexMap\");\n if (complexMap != null) {\n complexMapVector.offsets[i] = complexMapVector.childCount;\n complexMapVector.lengths[i] = complexMap.size();\n for (Map.Entry<String, Map<String, Object>> entry : complexMap.entrySet()) {\n complexMapKeysVector.setVal(complexMapVector.childCount, entry.getKey().getBytes(UTF_8));\n complexMapValueDoubleVector.vector[complexMapVector.childCount] =\n (double) entry.getValue().get(\"doubleField\");\n complexMapValueBytesVector.setVal(complexMapVector.childCount,\n ((String) entry.getValue().get(\"stringField\")).getBytes(UTF_8));\n complexMapVector.childCount++;\n }\n } else {\n complexMapVector.isNull[i] = true;\n }\n\n rowBatch.size++;\n }\n\n writer.addRowBatch(rowBatch);\n rowBatch.reset();\n writer.close();\n }", "private void createInternalStorage(int length) {\n\t\tif(internalStorage == null) {\n\t\t\tinternalStorage = new java.util.ArrayList<java.util.HashMap<String,LinkedList<T>>> ();\n\t\t\tfor(int i=0;i<length;i++)\n\t\t\t\tinternalStorage.add(new HashMap<String,LinkedList<T>>());\n\t\t}\n\t\t\n\t}", "public AllOOneDataStructure() {\n map = new HashMap<>();\n vals = new HashMap<>();\n maxKey = minKey = \"\";\n max = min = 0;\n }", "private void doReplaceWithAligned(Structure struct) {\n\t\tDataTypeComponent[] otherComponents = struct.getDefinedComponents();\n\t\tfor (int i = 0; i < otherComponents.length; i++) {\n\t\t\tDataTypeComponent dtc = otherComponents[i];\n\t\t\tDataType dt = dtc.getDataType();\n\t\t\tint length = (dt instanceof Dynamic) ? dtc.getLength() : -1;\n\t\t\tdoAdd(dt, length, false, dtc.getFieldName(), dtc.getComment(), false);\n\t\t}\n\t\tadjustInternalAlignment(false);\n\t\tdataMgr.dataTypeChanged(this);\n\t}", "public void inicialisation(){\r\n\t\t\r\n\t\tgoods = new AutoParts[0];\r\n\t\tclient = new Client[0];\r\n\t\t\r\n\t\tshop = new Shopping[0];\r\n\t\tsale = new Sale[0];\r\n\t\ttransaction = new Document[0];\r\n\t\t\r\n\t\tbalancesAutoParts = new BalancesAutoParts[0];\r\n\t\t\r\n\t\tprices = new Prices[0];\r\n\t\t\r\n\t\tagriment = new Agreement[0];\r\n\t\t\r\n\t}", "private void fillEmbeddedTypes() {\n List<String> otherClassesNames = new ArrayList<>(PRIMITIVE_TYPES);\n otherClassesNames.add(\"[]\");\n otherClassesNames.add(\"...\");\n\n List<TypeConstructor> otherClasses = new ArrayList<>();\n for (String type : otherClassesNames) {\n Classifier classifier = new Classifier(type, Language.JAVA, \"\", null, new ArrayList<MemberEntity>(), \"\");\n otherClasses.add(classifier);\n QualifiedName name = new QualifiedName(OTHER_PACKAGE, type);\n classes.put(name, classifier);\n parameters.put(name, new ParametersDescription());\n superTypes.put(name, new ArrayList<JavaType>());\n createClassMaps(name);\n }\n\n PackageEntity otherPackage = new PackageEntity(OTHER_PACKAGE, Language.JAVA, otherClasses,\n new ArrayList<MemberEntity>(), new ArrayList<PackageEntity>(), \"\", null);\n packages.put(OTHER_PACKAGE, otherPackage);\n\n for (TypeConstructor otherClass : otherClasses) {\n otherClass.setContainingPackage(otherPackage);\n }\n }", "protected void createContents() {\n\n\t}", "@Override\n\tprotected void initializeFields() {\n\n\t}", "public void initForAddNew() {\r\n\r\n\t}", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "Information createInformation();", "HdbSequenceElements createHdbSequenceElements();", "private void encodeStructure(Encoder encoder, Structure type, int size) throws IOException {\n\t\tencoder.openElement(ELEM_TYPE);\n\t\tencodeNameIdAttributes(encoder, type);\n\t\t// if size is 0, insert an Undefined4 component\n\t\t//\n\t\tint sz = type.getLength();\n\t\tif (sz == 0) {\n\t\t\ttype = new StructureDataType(type.getCategoryPath(), type.getName(), 1);\n\t\t\tsz = type.getLength();\n\t\t}\n\t\tencoder.writeString(ATTRIB_METATYPE, \"struct\");\n\t\tencoder.writeSignedInteger(ATTRIB_SIZE, sz);\n\t\tDataTypeComponent[] comps = type.getDefinedComponents();\n\t\tfor (DataTypeComponent comp : comps) {\n\t\t\tif (comp.isBitFieldComponent() || comp.getLength() == 0) {\n\t\t\t\t// TODO: bitfields, zero-length components and zero-element arrays are not yet supported by decompiler\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tencoder.openElement(ELEM_FIELD);\n\t\t\tString field_name = comp.getFieldName();\n\t\t\tif (field_name == null || field_name.length() == 0) {\n\t\t\t\tfield_name = comp.getDefaultFieldName();\n\t\t\t}\n\t\t\tencoder.writeString(ATTRIB_NAME, field_name);\n\t\t\tencoder.writeSignedInteger(ATTRIB_OFFSET, comp.getOffset());\n\t\t\tDataType fieldtype = comp.getDataType();\n\t\t\tencodeTypeRef(encoder, fieldtype, comp.getLength());\n\t\t\tencoder.closeElement(ELEM_FIELD);\n\t\t}\n\t\tencoder.closeElement(ELEM_TYPE);\n\t}", "void populateData();", "private void updateRecords() throws Exception {\n if (records==null){\n records = new ArrayList<>();\n if (shp!=null){\n Iterator<Record> it = getRecords();\n while (it.hasNext()){\n records.add(it.next());\n numShapes++;\n }\n }\n }\n }", "@Test\n void schemaExplosion() throws Exception {\n for (int i = 1; i < 15; i++) { // 15 is big enough to trigger\n // create a list of records, each with a single field whose type is a\n // union of all of the records.\n List<Schema> recs = new ArrayList<>();\n for (int j = 0; j < i; j++)\n recs.add(Schema.createRecord(\"\" + (char) ('A' + j), null, null, false));\n for (Schema s : recs) {\n Schema union = Schema.createUnion(recs);\n Field f = new Field(\"x\", union, null, null);\n List<Field> fields = new ArrayList<>();\n fields.add(f);\n s.setFields(fields);\n }\n // check that equals and hashcode are correct and complete in a\n // reasonable amount of time\n for (Schema s1 : recs) {\n Schema s2 = new Schema.Parser().parse(s1.toString());\n assertEquals(s1.hashCode(), s2.hashCode());\n assertEquals(s1, s2);\n }\n }\n }", "private void prepare( ) {\n super.prepare( schema.getCount( ) );\n serializer = new FieldSerializer[ fieldCount ];\n for ( int i = 0; i < fieldCount; i++ ) {\n FieldSchema field = schema.getField( i );\n serializer[i] = serializerByType[ field.getType().ordinal() ];\n }\n }", "public void createPackageContents() {\n\t\tif (isCreated)\n\t\t\treturn;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tbagTypeEClass = createEClass(BAG_TYPE);\n\n\t\ttupleTypeEClass = createEClass(TUPLE_TYPE);\n\t\tcreateEReference(tupleTypeEClass, TUPLE_TYPE__OCL_LIBRARY);\n\n\t\tcollectionTypeEClass = createEClass(COLLECTION_TYPE);\n\t\tcreateEReference(collectionTypeEClass, COLLECTION_TYPE__ELEMENT_TYPE);\n\t\tcreateEReference(collectionTypeEClass, COLLECTION_TYPE__OCL_LIBRARY);\n\t\tcreateEAttribute(collectionTypeEClass, COLLECTION_TYPE__KIND);\n\n\t\tinvalidTypeEClass = createEClass(INVALID_TYPE);\n\t\tcreateEReference(invalidTypeEClass, INVALID_TYPE__OCL_LIBRARY);\n\n\t\torderedSetTypeEClass = createEClass(ORDERED_SET_TYPE);\n\n\t\tsequenceTypeEClass = createEClass(SEQUENCE_TYPE);\n\n\t\tsetTypeEClass = createEClass(SET_TYPE);\n\n\t\tvoidTypeEClass = createEClass(VOID_TYPE);\n\t\tcreateEReference(voidTypeEClass, VOID_TYPE__OCL_LIBRARY);\n\n\t\ttypeTypeEClass = createEClass(TYPE_TYPE);\n\t\tcreateEReference(typeTypeEClass, TYPE_TYPE__REPRESENTED_TYPE);\n\n\t\toclLibraryEClass = createEClass(OCL_LIBRARY);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_BOOLEAN);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_STRING);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_INTEGER);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_REAL);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_ANY);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_VOID);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_INVALID);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_TYPE);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_COLLECTION);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_SEQUENCE);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_BAG);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_SET);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_ORDERED_SET);\n\t\tcreateEReference(oclLibraryEClass, OCL_LIBRARY__OCL_TUPLE);\n\n\t\tanyTypeEClass = createEClass(ANY_TYPE);\n\t}", "public void structuralChange();", "public DataStructure() {\r\n firstX = null;\r\n lastX = null;\r\n firstY = null;\r\n lastY = null;\r\n size = 0;\r\n }", "public void cleanUpDuplicatedStructures() throws Exception {\n\t\tif (currentDeployedStructs == null)\n\t\t\treturn;\n\t\t\n\t\tSet<DeployedPhysicalStructure> duplicatedStructsToBeRemoved = findDuplicatedStructures(currentDeployedStructs);\n\t\t\n\t\t// now let us remove the duplicated ones! they exist in the DB because currentDeployedStructs is guaranteed to always reflect what's deployed in the DB\n\t\tfor (DeployedPhysicalStructure p : duplicatedStructsToBeRemoved) {\n\t\t\tlog.status(LogLevel.WARNING, \"found a repeated deployed structure, going to remove it: \" + p.getSchema() +\".\"+ p.getBasename());\n\t\t\tdropPhysicalStructure(dbConnection, p.getSchema(), p.getBasename());\n\t\t}\t\t\n\t}", "public DataStructure() {\n\t\tthis.minx = null;\n\t\tthis.maxx = null;\n\t\tthis.miny = null;\n\t\tthis.maxy = null;\n\t\tthis.current = null;\n\t\tsize = 0;\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\troleEClass = createEClass(ROLE);\n\t\tcreateEReference(roleEClass, ROLE__SOCIETY);\n\t\tcreateEReference(roleEClass, ROLE__IS_REALIZED_BY_INDIVIDUAL);\n\t\tcreateEReference(roleEClass, ROLE__PARENT);\n\t\tcreateEReference(roleEClass, ROLE__CHILDREN);\n\t\tcreateEAttribute(roleEClass, ROLE__ID);\n\t\tcreateEAttribute(roleEClass, ROLE__NAME);\n\n\t\tindividualRealizationEClass = createEClass(INDIVIDUAL_REALIZATION);\n\t\tcreateEReference(individualRealizationEClass, INDIVIDUAL_REALIZATION__TARGET);\n\t\tcreateEReference(individualRealizationEClass, INDIVIDUAL_REALIZATION__SOURCE);\n\t\tcreateEReference(individualRealizationEClass, INDIVIDUAL_REALIZATION__SOCIETY);\n\t\tcreateEAttribute(individualRealizationEClass, INDIVIDUAL_REALIZATION__ID);\n\n\t\tsocietyEClass = createEClass(SOCIETY);\n\t\tcreateEReference(societyEClass, SOCIETY__GENERALIZATIONS);\n\t\tcreateEReference(societyEClass, SOCIETY__RELAIZATIONS);\n\t\tcreateEReference(societyEClass, SOCIETY__INDIVIDUALS);\n\t\tcreateEAttribute(societyEClass, SOCIETY__NAME);\n\t\tcreateEReference(societyEClass, SOCIETY__ROLES);\n\n\t\tspecializationEClass = createEClass(SPECIALIZATION);\n\t\tcreateEReference(specializationEClass, SPECIALIZATION__TARGET);\n\t\tcreateEReference(specializationEClass, SPECIALIZATION__SOURCE);\n\t\tcreateEReference(specializationEClass, SPECIALIZATION__SOCIETY);\n\t\tcreateEAttribute(specializationEClass, SPECIALIZATION__ID);\n\n\t\tindividualInstanceEClass = createEClass(INDIVIDUAL_INSTANCE);\n\t\tcreateEReference(individualInstanceEClass, INDIVIDUAL_INSTANCE__REALIZES);\n\t\tcreateEAttribute(individualInstanceEClass, INDIVIDUAL_INSTANCE__ID);\n\t\tcreateEAttribute(individualInstanceEClass, INDIVIDUAL_INSTANCE__NAME);\n\t\tcreateEReference(individualInstanceEClass, INDIVIDUAL_INSTANCE__SOCIETY);\n\n\t\tsocialInstanceEClass = createEClass(SOCIAL_INSTANCE);\n\t\tcreateEOperation(socialInstanceEClass, SOCIAL_INSTANCE___GET_ID);\n\t\tcreateEOperation(socialInstanceEClass, SOCIAL_INSTANCE___GET_NAME);\n\t}", "private void shallowPopulate()\n\t{\n\t\tfor(int y = 0; y < mySizeY; y++)\t\t \n\t\t\tfor(int x = 0; x < mySizeX; x++)\t\t\t\n\t\t\t\tadd(new FirstCell(this, x, y));\n\t}", "public Hashtable createStructure(Context context, String[] args) throws Exception\n\t{\n\t\tHashMap argumentsMap = (HashMap) JPO.unpackArgs(args);\n\t\t\n\t\tMCADGlobalConfigObject inputGCO = (MCADGlobalConfigObject) argumentsMap.get(\"GCO\");\n\t\tMCADLocalConfigObject inputLCO = (MCADLocalConfigObject) argumentsMap.get(\"LCO\");\n\n String languageName\t\t\t= (String) argumentsMap.get(\"language\");\n String partID\t\t\t\t= (String) argumentsMap.get(\"partID\");\n\t\tString integrationName\t\t= (String) argumentsMap.get(\"integrationName\");\n\t\tString assemblyTemplateID\t= (String) argumentsMap.get(\"assemblyTemplateID\");\n\t\tString componentTemplateID\t= (String) argumentsMap.get(\"componentTemplateID\");\n\t\tString folderId\t\t\t\t= (String) argumentsMap.get(\"folderId\");\n\t\tthis.source = integrationName;\t\t\n\n\t\ttry\n\t\t{\n\t\t\tinitialize(context, inputGCO, inputLCO, languageName);\n\n\t\t\tassemblyTemplateObject\t= new BusinessObject(assemblyTemplateID);\n\t\t\tcomponentTemplateObject\t= new BusinessObject(componentTemplateID);\n\n\t\t\tassemblyTemplateObject.open(context);\n\t\t\tcomponentTemplateObject.open(context);\n\n\t\t\tboolean isStructureCreated = traversePartStructure(context, partID, null, null, args,folderId);\n\n\t\t\tassemblyTemplateObject.close(context);\n\t\t\tcomponentTemplateObject.close(context);\n\n\t\t\tif(isStructureCreated)\n\t\t\t\tdesignObjIDTemplateObjIDMap.put(\"OPERATION_STATUS\", \"true\");\n\t\t\telse\n\t\t\t{\n\t\t\t\tdesignObjIDTemplateObjIDMap.put(\"OPERATION_STATUS\", \"false\");\n\t\t\t\tdesignObjIDTemplateObjIDMap.put(\"ERROR_MESSAGE\", resourceBundle.getString(\"mcadIntegration.Server.Message.CADStructureAlreadyCreated\"));\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tString errorMessage = e.getMessage();\n\t\t\tdesignObjIDTemplateObjIDMap.put(\"OPERATION_STATUS\", \"false\");\n\t\t\tdesignObjIDTemplateObjIDMap.put(\"ERROR_MESSAGE\", errorMessage);\n\t\t}\n\n\t\treturn designObjIDTemplateObjIDMap;\n\t}", "public static Block createBlock(String edfRecord, String data) throws UnsupportedEncodingException {\r\n\t\tString[] values = edfRecord.split(\",\");\r\n\t\tTemporalProperties temporalProperties = new TemporalProperties(reformatDatetime(values[7]));\r\n\t\tSpatialProperties spatialProperties = new SpatialProperties(parseFloat(values[24]), parseFloat(values[25]));\r\n\t\tFeatureSet features = new FeatureSet();\r\n\t\tfeatures.put(new Feature(\"platform_id\", values[0]));\t\t\r\n\t\tfeatures.put(new Feature(\"date\", values[1]));\r\n\t\tfeatures.put(new Feature(\"time\", values[2]));\r\n\t\tfeatures.put(new Feature(\"datetime\", values[3]));\r\n\t\tfeatures.put(new Feature(\"frac_days_since_jan1\", parseFloat(values[4])));\r\n\t\tfeatures.put(new Feature(\"frac_hrs_since_jan1\", parseFloat(values[5])));\r\n\t\tfeatures.put(new Feature(\"julian_days\", parseFloat(values[6])));\r\n\t\tfeatures.put(new Feature(\"epoch_time\", reformatDatetime(values[7])));\r\n\t\tfeatures.put(new Feature(\"alarm_status\", parseFloat(values[8])));\r\n\t\tfeatures.put(new Feature(\"inst_status\", parseFloat(values[9])));\r\n\t\tfeatures.put(new Feature(\"cavity_pressure\", parseFloat(values[10])));\r\n\t\tfeatures.put(new Feature(\"cavity_temp\", parseFloat(values[11])));\r\n\t\tfeatures.put(new Feature(\"das_temp\", parseFloat(values[12])));\r\n\t\tfeatures.put(new Feature(\"etalon_temp\", parseFloat(values[13])));\r\n\t\tfeatures.put(new Feature(\"warm_box_temp\", parseFloat(values[14])));\r\n\t\tfeatures.put(new Feature(\"species\", parseFloat(values[15])));\r\n\t\tfeatures.put(new Feature(\"mvp_position\", parseFloat(values[16])));\r\n\t\tfeatures.put(new Feature(\"outlet_valve\", parseFloat(values[17])));\r\n\t\tfeatures.put(new Feature(\"solenoid_valves\", parseFloat(values[18])));\r\n\t\tfeatures.put(new Feature(\"co2\", parseFloat(values[19])));\r\n\t\tfeatures.put(new Feature(\"co2_dry\", parseFloat(values[20])));\r\n\t\tfeatures.put(new Feature(\"ch4\", parseFloat(values[21])));\r\n\t\tfeatures.put(new Feature(\"ch4_dry\", parseFloat(values[22])));\r\n\t\tfeatures.put(new Feature(\"h2o\", parseFloat(values[23])));\r\n\t\tfeatures.put(new Feature(\"gps_abs_lat\", parseFloat(values[24])));\r\n\t\tfeatures.put(new Feature(\"gps_abs_lon\", parseFloat(values[25])));\r\n\t\tfeatures.put(new Feature(\"gps_fit\", parseFloat(values[26])));\r\n\t\tfeatures.put(new Feature(\"gps_time\", parseFloat(values[27])));\r\n\t\tfeatures.put(new Feature(\"ws_wind_lon\", parseFloat(values[28])));\r\n\t\tfeatures.put(new Feature(\"ws_wind_lat\", parseFloat(values[29])));\r\n\t\tfeatures.put(new Feature(\"ws_cos_heading\", parseFloat(values[30])));\r\n\t\tfeatures.put(new Feature(\"ws_sin_heading\", parseFloat(values[31])));\r\n\t\tfeatures.put(new Feature(\"wind_n\", parseFloat(values[32])));\r\n\t\tfeatures.put(new Feature(\"wind_e\", parseFloat(values[33])));\r\n\t\tfeatures.put(new Feature(\"wind_dir_sdev\", parseFloat(values[34])));\r\n\t\tfeatures.put(new Feature(\"ws_rotation\", parseFloat(values[35])));\r\n\t\tfeatures.put(new Feature(\"car_speed\", parseFloat(values[36])));\r\n\t\tfeatures.put(new Feature(\"postal_code\", values[37]));\r\n\t\tfeatures.put(new Feature(\"locality\", values[38]));\r\n\t\tfeatures.put(new Feature(\"s2_30_int\", parseLong(values[39])));\r\n\t\t\t\r\n\t\tMetadata metadata = new Metadata();\r\n\t\tmetadata.setName(GeoHash.encode(parseFloat(values[24]), parseFloat(values[25]), 7));\r\n\t\tmetadata.setTemporalProperties(temporalProperties);\r\n\t\tmetadata.setsIndex(new SearchIndex(\"24\",\"25\",\"7\"));\r\n\t\tmetadata.setSpatialProperties(spatialProperties);\r\n\t\tmetadata.setSpatialHint(new SpatialHint(\"gps_abs_lat\", \"gps_abs_lon\"));\r\n\t\tmetadata.setAttributes(features);\r\n\t\t\r\n\t\treturn new Block(\"airview\", metadata, data.getBytes(\"UTF-8\"));\r\n\t}", "LinkedListCelest<celestialBody> createList() {\n\t\tLinkedListCelest<celestialBody> b = new LinkedListCelest<celestialBody>();\r\n\t\tfilehandler f = new filehandler();\r\n\t\tf.openfile(f.path);\r\n\t\tf.GetAtt();\r\n\t\tb.pixeldist = f.distance;\r\n\t\tfor(int i = 2; i< f.g.size(); i++) {\r\n\t\t\tcelestialBody j = new celestialBody();\r\n\t\t\tString [] arr = f.g.get(i).split(\",\");\r\n\t\t\tfor(int g=0; g< arr.length; g++) {\r\n\t\t\t\tswitch(g) {\r\n\t\t\t\tcase 1:j.setName(arr[0]);\r\n\t\t\t\tcase 2: j.setMass(Double.parseDouble(arr[1]));\r\n\t\t\t\tcase 3: j.setXC(Integer.parseInt(arr[2]));\r\n\t\t\t\tcase 4: j.setYC(Integer.parseInt(arr[3]));\r\n\t\t\t\tcase 5: j.setXV(Double.parseDouble(arr[4]));\r\n\t\t\t\tcase 6: j.setYV( Double.parseDouble(arr[5]));\r\n\t\t\t\tcase 7: j.setPixels( Integer.parseInt(arr[6]));\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tb.add(j);\r\n\t\t//b.pixeldist = f.distance;\r\n\t\t}\r\n\t\t\r\n\t\treturn b;\r\n\t}" ]
[ "0.6721755", "0.63773596", "0.6118086", "0.5881288", "0.57869446", "0.57328695", "0.56852466", "0.566512", "0.56334615", "0.5629867", "0.5588263", "0.55423605", "0.5522662", "0.5461335", "0.54319334", "0.5423644", "0.53623337", "0.53509283", "0.53167415", "0.5316053", "0.53130573", "0.5266216", "0.52602285", "0.5259011", "0.52393836", "0.52301586", "0.52274865", "0.52194583", "0.52164626", "0.52139807", "0.52017283", "0.5197857", "0.5192826", "0.51826847", "0.5176777", "0.51592433", "0.5157071", "0.51527244", "0.51461214", "0.5138957", "0.51372516", "0.5136372", "0.51200294", "0.5118917", "0.51074237", "0.510328", "0.5101114", "0.50926876", "0.50833994", "0.5075599", "0.5068834", "0.50678587", "0.5067441", "0.50665194", "0.5054077", "0.5053219", "0.5052061", "0.5051247", "0.50199324", "0.50155145", "0.50029755", "0.50025386", "0.5002436", "0.50005364", "0.49838132", "0.49767196", "0.49603307", "0.49525657", "0.49499413", "0.49493656", "0.4947292", "0.49450302", "0.49397686", "0.4939145", "0.49369258", "0.49366915", "0.49362648", "0.49362648", "0.49362648", "0.49362648", "0.49362648", "0.49362648", "0.4935754", "0.4935754", "0.49340326", "0.49338806", "0.4930114", "0.49265373", "0.49210516", "0.49209648", "0.49206364", "0.4920617", "0.49163583", "0.49158692", "0.4913859", "0.4908797", "0.49086678", "0.48952138", "0.48950872", "0.48909345", "0.4885322" ]
0.0
-1
TODO save extra data, needs to be handled canary side
@Override public void b() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void saveExtraData() {}", "protected abstract void retrievedata();", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "public abstract Object getCustomData();", "Object getCurrentData();", "private void saveData() {\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "private void remplirUtiliseData() {\n\t}", "@Override\n public void perish() {\n \n }", "private void remplirPrestaraireData() {\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "@Override\n public void save() {\n \n }", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "private void remplirFabricantData() {\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "private void verificaData() {\n\t\t\n\t}", "@Override\n public void save()\n {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "protected void prepareSave() {\r\n EObject cur;\r\n for (Iterator<EObject> iter = getAllContents(); iter.hasNext();) {\r\n cur = iter.next();\r\n \r\n EStructuralFeature idAttr = cur.eClass().getEIDAttribute();\r\n if (idAttr != null && !cur.eIsSet(idAttr)) {\r\n cur.eSet(idAttr, EcoreUtil.generateUUID());\r\n }\r\n }\r\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void getDataFromUCF() {\n\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Override\n protected Object[] getData() {\n return new Object[] { creator };\n }", "@Override\n\tpublic void processData() {\n\t\t\n\t}", "@Override\n public void saveValues() {\n \n }", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private void parseData() {\n\t\t\r\n\t}", "abstract void initializeNeededData();", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "protected void additionalProcessing() {\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "private ProcessedDynamicData( ) {\r\n super();\r\n }", "private void Initialized_Data() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "abstract public Object getUserData();", "CreationData creationData();", "protected void loadData()\n {\n }", "@Override\n public void Save() {\n\t \n }", "protected void storeCurrentValues() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void innerSave() {\n\r\n\t}", "@Override\r\n\tprotected Object getData() {\n\t\treturn null;\r\n\t}", "public void creightonIsExtraSpecial() {\n\t\tHashMap<String, Object> partToStatus = new HashMap<String, Object>();\n\t\t\n\t\tpartToStatus.put(\"autoTime\", autoTime);\n\t\tpartToStatus.put(\"matchTime\", matchTime);\n\t\t\n\t\tpartToStatus.get(\"autoTime\");\n\t\t\n\t\t\n\t}", "private synchronized void zzlx() {\n try {\n JSONObject jSONObject = new JSONObject();\n jSONObject.put(\"castSessionId\", this.zzTp);\n jSONObject.put(\"playerTokenMap\", new JSONObject(this.zzTn));\n this.zztB.edit().putString(\"save_data\", jSONObject.toString()).commit();\n } catch (JSONException e) {\n zzQW.zzf(\"Error while saving data: %s\", e.getMessage());\n }\n return;\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "private void remplirMaterielData() {\n\t}", "abstract protected void addExtras();", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void save() {\n\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }", "public interface AccountExtraInfo {\n\n public IndexResponse save(String id, BasicDocModel model);\n\n /**\n * @param id 指的是用户的imei码(0.9.0版本及其之前的头机)\n * @param keyValueArgs\n * @return\n */\n public IndexResponse save(String id, Object... keyValueArgs);\n\n public UpdateResponse update(String id, BasicDocModel model);\n\n public UpdateResponse upsert(String id, BasicDocModel model) throws DocumentMissingException,InterruptedException,ExecutionException;\n\n}", "private void initialData() {\n\n }", "@Override\n\t\tvoid loadData() throws IOException {\n\t\t\tsuper.loadData();\n\t\t}", "@Override\n public void saveData() {\n System.out.println(\"GateWay\");\n }", "private void validateExtra() {\n\t\tif (getArguments()!=null)\n\t\t{\n\t\t\tentity = (NoteEntity)getArguments().getSerializable(\"NOTE\");\n\t\t}\n\t}", "@Override\n protected void onDataChanged() {\n }", "@Override\r\n protected void fetchData() {\n\r\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n protected void prot() {\n }", "public void saveInformation(){\n market.saveInformationOfMarket();\n deckProductionCardOneBlu.saveInformationOfProductionDeck();\n deckProductionCardOneGreen.saveInformationOfProductionDeck();\n deckProductionCardOneViolet.saveInformationOfProductionDeck();\n deckProductionCardOneYellow.saveInformationOfProductionDeck();\n deckProductionCardThreeBlu.saveInformationOfProductionDeck();\n deckProductionCardThreeGreen.saveInformationOfProductionDeck();\n deckProductionCardThreeYellow.saveInformationOfProductionDeck();\n deckProductionCardThreeViolet.saveInformationOfProductionDeck();\n deckProductionCardTwoBlu.saveInformationOfProductionDeck();\n deckProductionCardTwoGreen.saveInformationOfProductionDeck();\n deckProductionCardTwoViolet.saveInformationOfProductionDeck();\n deckProductionCardTwoYellow.saveInformationOfProductionDeck();\n\n\n }", "@Override\n\tpublic void setExtraData(String arg0) {\n\n\t}", "protected @Override\r\n abstract void initData();", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\t\t\n\t}", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "private void restore(XmlDoc.Element meta) throws Throwable {\n\t\t\n\t\t// It could be that only a subset of DICOM elements are provided\n\t\t_uid = meta.value(\"uid\");\n\t\t_id = meta.value(\"id\");\n\t\t_desc = meta.value(\"description\");\n\t\t_date = meta.element(\"date\").hasValue() ? meta.dateValue(\"date\") : null;\n\t\t_modality = meta.value(\"modality\");\n\t\t_rpn = meta.value(\"dicom/rpn\");\n\t\t_institution = meta.value(\"institution\");\n\t\t_station = meta.value(\"station\");\n\t\t_manufacturer = meta.value (\"manufacturer\");\n\t\t//\n\t\tXmlDoc.Element subject = meta.element(\"subject\");\n\t\tif (subject!=null) {\n\t\t\t_patientSex = subject.value(\"sex\");\n\t\t\t_patientAge = meta.element(\"age\")!=null ? meta.doubleValue(\"age\") : -1;\n\t\t\t_patientWeight = meta.element(\"weight\")!=null ? meta.doubleValue(\"weight\") : -1;\n\t\t\t_patientLength = meta.element(\"size\")!=null ? meta.doubleValue(\"size\") : -1;\n\t\t\t_patientID = subject.value(\"id\");\t\n\t\t\tString t = subject.value(\"name\");\n\t\t\tif (t!=null) {\n\t\t\t\t_patientName = new DicomPersonName(t, null, null, null, null, null);\n\t\t\t} else {\n\t\t\t\t_patientName = null;\n\t\t\t}\n\t\t\t_dob = meta.element(\"dob\")!=null ? meta.dateValue(\"dob\") : null;\n\t\t}\n\t}", "@Override\n\tprotected void initData() {\n\t\tsuper.initData();\n\t\tinitParam();\n\t\t// 判断环节点是否上传,若已上传删掉\n\t\thandleApprovalPermission();\n\t\tinitInfo();\n\t\tinitPage();\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object getData();", "@Override\n\tpublic void readData() {\n\t\t\n\t}", "public void saveData() {\n\t\t//place to save notes e.g to file\n\t}", "@Override\n public RavenJObject getAdditionalData() {\n return additionalData;\n }" ]
[ "0.5891448", "0.5784495", "0.5776145", "0.5709969", "0.56265765", "0.56265765", "0.54740363", "0.54740363", "0.54740363", "0.54740363", "0.54740363", "0.54740363", "0.5454508", "0.5438752", "0.54233813", "0.53720224", "0.5363994", "0.5336112", "0.5322647", "0.5322073", "0.5318059", "0.5318059", "0.53074664", "0.53074664", "0.53036195", "0.53028625", "0.52914906", "0.52813005", "0.5274128", "0.52567106", "0.52563345", "0.5239553", "0.5231203", "0.5214963", "0.5214773", "0.52062196", "0.52060753", "0.51996726", "0.5190864", "0.5190778", "0.5176369", "0.51740986", "0.51740986", "0.51682943", "0.51544327", "0.5148869", "0.5141558", "0.5123846", "0.5119294", "0.511397", "0.5093849", "0.5091783", "0.50819945", "0.50784785", "0.50711197", "0.5055071", "0.50445443", "0.50433934", "0.50425327", "0.5041634", "0.5041634", "0.50223106", "0.5020782", "0.5010757", "0.50083315", "0.5004106", "0.50005597", "0.4999284", "0.49970466", "0.499579", "0.4985799", "0.49831814", "0.4975321", "0.49602658", "0.49568585", "0.4955774", "0.49470466", "0.49391228", "0.48976254", "0.48866376", "0.48865974", "0.48728305", "0.4872508", "0.4872508", "0.48709893", "0.48700878", "0.48697266", "0.48652804", "0.4852013", "0.4852013", "0.4852013", "0.48505864", "0.48486915", "0.4847057", "0.48464417", "0.4845696", "0.48331228", "0.48277545", "0.48217887", "0.48184565", "0.48173714" ]
0.0
-1
test of leading comment
public void method() // trailing comment here { int a; /* non-trailing comment */ int b; /* trailing comment */ // continuation trailing comment int c1; /* non-trailing comment */ int d2; /* trailing comment */ // non-continuation comment }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isComment () {\r\n int startvalue = index - 1;\r\n if (index + 3 >= length)\r\n return false;\r\n return (pagepart[index] == '!' &&\r\n pagepart[index + 1] == '-' &&\r\n pagepart[index + 2] == '-');\r\n }", "private boolean comment() {\r\n return STRING(\"--\") && visibles() && newline();\r\n }", "private boolean isComment(String line) {\n\t\tif (line.equals(\"\")) return true;\n\t\t\n\t\t// If the line starts with \"//\".\n\t\tif (line.substring(0, 2).equals(\"//\")) return true;\n\t\t\n\t\treturn false;\n\t}", "static boolean isComment(Token t) {\n return t.getText().startsWith(\"#\");\n }", "private boolean isComment(int nextVal) {\n\t\treturn nextVal == COMMENT;\n\t}", "@Test\n public void commentMatch() {\n comment.match(\"//hier steht text\\n\");\n assertEquals(comment.getClass(), comment.getToken().getClass());\n }", "private static boolean isComment(String line) {\n String trimLine = line.trim();\n return trimLine.startsWith(\"#\") || trimLine.isEmpty();\n }", "static boolean comment(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"comment\")) return false;\n if (!nextTokenIs(b, \"\", DOUBLE_COMMENT, TRIPLE_COMMENT)) return false;\n boolean r;\n r = consumeToken(b, TRIPLE_COMMENT);\n if (!r) r = consumeToken(b, DOUBLE_COMMENT);\n return r;\n }", "@Test\n public void wrongCommentMatch() {\n comment.match(\"jhadj //kasf \");\n assertEquals(null, comment.getToken());\n }", "@Test\n public void commentMatchNotNull() {\n comment.match(\"//hier steht text\\n@test zuziuziuziu\");\n assertNotSame(null, comment.getToken().getClass());\n }", "private void skipComment() {\r\n int length = sourceCode.length();\r\n if (++index < length) {\r\n char character = sourceCode.charAt(index);\r\n if (character == '/') {\r\n // If it's a line comment (//) then skip to the next line.\r\n // Find the next line.\r\n index = sourceCode.indexOf('\\n', index);\r\n // Skip to after it if it's found, or the end of the source code\r\n // otherwise.\r\n index = index == -1 ? length : index + 1;\r\n } else if (character == '*') {\r\n // If it's a long comment (/* ... */) then skip to after the\r\n // occurrence of \"*/\".\r\n // Find \"*/\".\r\n index = sourceCode.indexOf(\"*/\", index);\r\n // Skip to after it if it's found, or the end of the source code\r\n // otherwise.\r\n index = index == -1 ? length : index + 2;\r\n }\r\n }\r\n }", "private void skipCommentLine() {\n while (position < length) {\n int c = data.charAt(position);\n if (c == '\\r' || c == '\\n') {\n return;\n }\n position++;\n }\n }", "public boolean isComment(String line){\n //Assume false\n boolean lineHasComment = false;\n //Prevent double counting\n if (inJavaDoc) {\n return false;\n }\n //Check if already in comment\n if (inStarComment) {\n lineHasComment = true;\n }\n //Single line comments\n if(line.contains(\"//\")){\n lineHasComment = true;\n }\n //Multiline comments\n if(line.contains(\"/*\")){\n lineHasComment = true;\n inStarComment = true;\n }\n //End of comments\n if(line.contains(\"*/\") && this.inStarComment){\n inJavaDoc = false;\n inStarComment = false;\n }\n return lineHasComment;\n }", "@Test\n public void testCommentLine() {\n setupReaderAndErrorHandler(\"# This is a comment line\");\n scanner.nextToken();\n\n assertTrue(\"EOFSY expected\", scanner.getCurrentToken().getSymbol() == Symbol.EOFSY);\n }", "boolean hasComment();", "public boolean isCommented(int offset) throws Exception {\n\t\t//Yaml only has end of line comments marked with a '#'.\n\t\t//So comments never span multiple lines of text and we only have scan back\n\t\t//from offset upto the start of the current line.\n\t\tIRegion lineInfo = doc.getLineInformationOfOffset(offset);\n\t\tint startOfLine = lineInfo.getOffset();\n\t\twhile (offset>=startOfLine) {\n\t\t\tchar c = getChar(offset);\n\t\t\tif (c=='#') {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\toffset--;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isCommentedLine(@NotNull String line) {\n return line.trim().startsWith(comment);\n }", "public static boolean CommentTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"CommentTest\")) return false;\n if (!nextTokenIs(b, K_COMMENT)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, COMMENT_TEST, null);\n r = consumeTokens(b, 2, K_COMMENT, L_PAR, R_PAR);\n p = r; // pin = 2\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "public boolean isComment() {\r\n\t\treturn specialTag==SpecialTag.COMMENT;\r\n\t}", "protected int scanComment () throws HTMLParseException {\r\n int startvalue = index - 1;\r\n int i = -1;\r\n int j = index;\r\n while (j+2 < length) {\r\n if (pagepart[j] == '-' &&\r\n pagepart[j + 1] == '-' &&\r\n pagepart[j + 2] == '>') {\r\n i = j;\r\n break;\r\n }\r\n j++;\r\n }\r\n if (i > -1) {\r\n index = i + 2;\r\n nextToken = MT;\r\n match (MT);\r\n stringLength = index - startvalue;\r\n return COMMENT;\r\n }\r\n block.setRest (startvalue);\r\n return END;\r\n }", "@Test\n public void noCommentMatch() {\n comment.match(\"@test\");\n assertEquals(null, comment.getToken());\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n StringReader stringReader0 = new StringReader(\"<SINGLE_LINE_COMMENT>\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 47, 32);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(18, javaCharStream0.bufpos);\n assertEquals(50, javaCharStream0.getEndColumn());\n }", "boolean hasComments();", "private boolean shouldEvaluateMultilineComment(String remainingText) {\n return (remainingText.contains(MULTILINE_COMMENT_START_CHARACTERS)\n && !remainingText.contains(SINGLE_LINE_COMMENT_CHARACTERS))\n || (remainingText.contains(MULTILINE_COMMENT_START_CHARACTERS)\n && remainingText.contains(SINGLE_LINE_COMMENT_CHARACTERS)\n && Integer.valueOf(remainingText.indexOf(MULTILINE_COMMENT_START_CHARACTERS))\n .compareTo(remainingText.indexOf(SINGLE_LINE_COMMENT_CHARACTERS)) < 0);\n }", "public void skipComments() {\r\n this.ignoreLinesStartWith(this.charComment);\r\n }", "@Test\n public void TestTrailingComment() throws Exception {\n RuleBasedCollator coll = new RuleBasedCollator(\"&c<b#comment1\\n<a#comment2\");\n assertTrue(\"c<b\", coll.compare(\"c\", \"b\") < 0);\n assertTrue(\"b<a\", coll.compare(\"b\", \"a\") < 0);\n }", "@Test\n public void commentGetContent() {\n comment.match(\"//irgendein Kommentar\\n\");\n Token t = comment.getToken();\n assertEquals(\"//irgendein Kommentar\\n\", t.getContent());\n }", "@Test\n public final void testGetXPathWithCommentProlog() {\n \n Document testDoc = TestDocHelper.createDocument(\n \"<!-- comment --><a>text</a>\");\n \n //Move to beforeclass method\n XPathFactory xPathFac = XPathFactory.newInstance();\n XPath xpathExpr = xPathFac.newXPath();\n \n testXPathForNode(testDoc, xpathExpr);\n \n }", "@Test\n public void commentGetHtmlStart() {\n // White-Box! Temporär mit NotNull-Test ersetzt\n // assertEquals(\"<i><font color=\\\"grey\\\">\", comment.htmlStart());\n assertNotNull(comment.htmlStart());\n }", "public static void openComment() {\n Log.write(\"<!-- \");\n }", "@CheckForNull\n String getLineCommentPrefix();", "private void scanComment(LocatedChar ch) {\n\t\tch = input.next();\n\t\twhile(!ch.matchChar('%') && !ch.matchChar('\\n')) {\n\t\t\tch = input.next();\n\t\t}\n\t}", "public static ParseAction<Located<Void>> matchTLALineComment(){\n\t\treturn sequence(\n\t\t\t\tdrop(matchString(\"\\\\*\")),\n\t\t\t\tdrop(matchPattern(TLA_NOT_A_COMMENT_MARKER_LINE))\n\t\t).map(seq -> new Located<>(seq.getLocation(), null));\n\t}", "boolean hasStartLineNumber();", "private static void testComments() throws IOException {\n\t// say what output is expected\n\tSystem.err.println(\"\\nTESTING COMMENTS -- NO OUTPUT EXPECTED\");\n\n\t// open input file\n\tFileReader inFile = null;\n\ttry {\n\t inFile = new FileReader(\"inComments\");\n\t} catch (FileNotFoundException ex) {\n\t System.err.println(\"File inUntermComment not found.\");\n\t System.exit(-1);\n\t}\n\n\t// create and call the scanner\n\tYylex scanner = new Yylex(inFile);\n\tSymbol token = scanner.next_token();\n\tif (token.sym != sym.EOF) {\n\t System.err.println(\"ERROR TESTING COMMENTS: not at EOF\");\n\t System.err.println(\"sym: \" + token.sym);\n\t}\n }", "public static boolean isCommentValid(String comment){\r\n return (!comment.matches(\"^.*<.*?>*.$\") && comment.length()<400);\r\n }", "@Test\n public void testGetImportComment() throws Exception {\n assertThat(\"Expect null value\", testling.getImportComment(), is(\"Imported by \" + CliConstants.FS_CLI));\n }", "private boolean reformatMultilineComments() {\n \n \t\tString curLine = line.trim();\n \n \t\t// abort the operation?\n \t\tboolean bAbort = false;\n \t\t// the level of nested comments\n \t\tint nestedCommentsLevel = 0;\n \t\t// a comment until the end of the line\n \t\tMatcher matcherCommentEOL = patternCommentEOL.matcher(curLine);\n \t\tif (matcherCommentEOL.find()) {\n \n \t\t\tif (matcherCommentEOL.start() + 2 < curLine.length()) {\n \t\t\t\tchar firstChar = curLine.charAt(matcherCommentEOL.start() + 2);\n \t\t\t\t// this character means \"do not reformat this comment\"\n \t\t\t\tif (firstChar == '*' || firstChar == '|') {\n \t\t\t\t\tbDoNotFormatComment = true;\n \t\t\t\t\tbAbort = true;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t// check that this comment is not closed (or else, we would loop\n \t\t\t// indefinitely)\n \t\t\tMatcher matcherComment = patternComment.matcher(curLine);\n \t\t\twhile (matcherComment.find())\n \t\t\t\tif (matcherComment.start() == matcherCommentEOL.start())\n \t\t\t\t\tbAbort = true;\n \n \t\t\t// if we are inside a string, do nothing\n \t\t\tMatcher matcherString = patternString.matcher(curLine);\n \t\t\twhile (matcherString.find()) {\n \t\t\t\tif ((matcherString.start() < matcherCommentEOL.start())\n \t\t\t\t\t\t&& (matcherCommentEOL.start() < matcherString.end()))\n \t\t\t\t\tbAbort = true;\n \t\t\t}\n \n \t\t\tif (!bAbort && preferenceFormatComments) {\n \n \t\t\t\tnestedCommentsLevel = 1;\n \n \t\t\t\t// look for the end of the comment\n \t\t\t\tPattern patternCommentBeginEnd = Pattern.compile(\"(\\\\(\\\\*)|(\\\\*\\\\))\");\n \n \t\t\t\t// all the lines of the comment, concatenated\n \t\t\t\tString commentLines = curLine.substring(matcherCommentEOL.start() + 2);\n \n \t\t\t\t// what's before the comment on its first line\n \t\t\t\tString beforeComment = curLine.substring(0, matcherCommentEOL.start());\n \n \t\t\t\t// what's left after the comment on its last line\n \t\t\t\tString afterComment = \"\";\n \n \t\t\t\t// the index of the current line\n \t\t\t\tint l;\n \t\t\t\tgetWholeComment: for (l = currentLine; l < lines.length; l++) {\n \n \t\t\t\t\tString commentLine;\n \t\t\t\t\t// first line\n \t\t\t\t\tif (l == currentLine) {\n \t\t\t\t\t\tcommentLine = commentLines;\n \t\t\t\t\t\tcommentLines = \"\";\n \t\t\t\t\t} else\n \t\t\t\t\t\tcommentLine = lines[l].trim();\n \n \t\t\t\t\tMatcher matcherCommentBeginEnd = patternCommentBeginEnd.matcher(commentLine);\n \n \t\t\t\t\t/*\n \t\t\t\t\t * parse all the delimiters, and delete the nested ones, while keeping the body of the\n \t\t\t\t\t * comment\n \t\t\t\t\t */\n \t\t\t\t\twhile (matcherCommentBeginEnd.find()) {\n \n \t\t\t\t\t\t// check that we are not inside a string\n \t\t\t\t\t\tMatcher matcherString2 = patternString.matcher(commentLine);\n \t\t\t\t\t\tboolean bInString = false;\n \n \t\t\t\t\t\twhile (matcherString2.find()) {\n \n \t\t\t\t\t\t\tif (matcherString2.start() <= matcherCommentBeginEnd.start()\n \t\t\t\t\t\t\t\t\t&& matcherCommentBeginEnd.start() < matcherString2.end()) {\n \t\t\t\t\t\t\t\tbInString = true;\n \t\t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t\tif (!bInString) {\n \n \t\t\t\t\t\t\tif (matcherCommentBeginEnd.group().equals(\"(*\"))\n \t\t\t\t\t\t\t\tnestedCommentsLevel++;\n \t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t\tnestedCommentsLevel--;\n \n \t\t\t\t\t\t\t// delete the comment delimiter from the body of the\n \t\t\t\t\t\t\t// comment\n \t\t\t\t\t\t\tif (nestedCommentsLevel != 0) {\n \t\t\t\t\t\t\t\tString before = commentLine.substring(0, matcherCommentBeginEnd.start());\n \t\t\t\t\t\t\t\tString after = commentLine.substring(matcherCommentBeginEnd.start() + 2);\n \t\t\t\t\t\t\t\tcommentLine = before + after;\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\tif (nestedCommentsLevel == 0) {\n \n \t\t\t\t\t\t\t\tcommentLines = commentLines + \" \"\n \t\t\t\t\t\t\t\t\t\t+ commentLine.substring(0, matcherCommentBeginEnd.start());\n \t\t\t\t\t\t\t\tafterComment = commentLine.substring(matcherCommentBeginEnd.start() + 2);\n \n \t\t\t\t\t\t\t\tbreak getWholeComment;\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t// we modified the string: we have to restart the\n \t\t\t\t\t\t\t// matcher\n \t\t\t\t\t\t\tmatcherCommentBeginEnd = patternCommentBeginEnd.matcher(commentLine);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tcommentLines = commentLines + \" \" + commentLine;\n \t\t\t\t}\n \n \t\t\t\t// if we are at the beginning, we must insert blank lines (or\n \t\t\t\t// else we would access\n \t\t\t\t// out of\n \t\t\t\t// bounds)\n \t\t\t\tif (l < 3) {\n \t\t\t\t\tString[] lines2 = new String[lines.length + 2];\n \t\t\t\t\tfor (int k = 0; k < lines.length; k++)\n \t\t\t\t\t\tlines2[k + 2] = lines[k];\n \t\t\t\t\tlines = lines2;\n \t\t\t\t\tl += 2;\n \t\t\t\t}\n \n \t\t\t\t// if we didn't go through at least one iteration of the loop\n \t\t\t\tif (l >= lines.length)\n \t\t\t\t\tl--;\n \n \t\t\t\t/*\n \t\t\t\t * Now, we put all the modified lines in the table, and we modify the current line so that the\n \t\t\t\t * formatter will take the modifications into account.\n \t\t\t\t */\n \n \t\t\t\t// Do not put blank lines\n \t\t\t\tif (beforeComment.trim().equals(\"\") && afterComment.trim().equals(\"\")) {\n \t\t\t\t\tlines[l] = \"(*\" + commentLines + \"*)\";\n \t\t\t\t\tcurrentLine = l;\n \t\t\t\t\treturn true;\n \t\t\t\t} else if (beforeComment.trim().equals(\"\")) {\n \t\t\t\t\tlines[l - 1] = \"(*\" + commentLines + \"*)\";\n \t\t\t\t\tlines[l] = afterComment;\n \t\t\t\t\tcurrentLine = l - 1;\n \t\t\t\t\treturn true;\n \t\t\t\t} else if (afterComment.trim().equals(\"\")) {\n \t\t\t\t\tlines[l - 1] = beforeComment;\n \t\t\t\t\tlines[l] = \"(*\" + commentLines + \"*)\";\n \t\t\t\t\tcurrentLine = l - 1;\n \t\t\t\t\treturn true;\n \t\t\t\t} else {\n \t\t\t\t\t// the source code before the comment\n \t\t\t\t\tlines[l - 2] = beforeComment;\n \t\t\t\t\t// the body of the comment\n \t\t\t\t\tlines[l - 1] = \"(*\" + commentLines + \"*)\";\n \t\t\t\t\t// the source code after the comment\n \t\t\t\t\tlines[l] = afterComment;\n \t\t\t\t\t// the line on which we will continue formatting\n \t\t\t\t\tcurrentLine = l - 2;\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\treturn false;\n \t}", "public final void mCOMMENT() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = COMMENT;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:9: ( ( '//' ( . )* NEWLINE | '/*' ( . )* '*/' ) )\n\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:11: ( '//' ( . )* NEWLINE | '/*' ( . )* '*/' )\n\t\t\t{\n\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:11: ( '//' ( . )* NEWLINE | '/*' ( . )* '*/' )\n\t\t\tint alt9=2;\n\t\t\tint LA9_0 = input.LA(1);\n\t\t\tif ( (LA9_0=='/') ) {\n\t\t\t\tint LA9_1 = input.LA(2);\n\t\t\t\tif ( (LA9_1=='/') ) {\n\t\t\t\t\talt9=1;\n\t\t\t\t}\n\t\t\t\telse if ( (LA9_1=='*') ) {\n\t\t\t\t\talt9=2;\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tint nvaeMark = input.mark();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinput.consume();\n\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\tnew NoViableAltException(\"\", 9, 1, input);\n\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tinput.rewind(nvaeMark);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 9, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\n\t\t\tswitch (alt9) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:13: '//' ( . )* NEWLINE\n\t\t\t\t\t{\n\t\t\t\t\tmatch(\"//\"); \n\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:18: ( . )*\n\t\t\t\t\tloop7:\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tint alt7=2;\n\t\t\t\t\t\tint LA7_0 = input.LA(1);\n\t\t\t\t\t\tif ( (LA7_0=='\\r') ) {\n\t\t\t\t\t\t\talt7=2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ( (LA7_0=='\\n') ) {\n\t\t\t\t\t\t\talt7=2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ( ((LA7_0 >= '\\u0000' && LA7_0 <= '\\t')||(LA7_0 >= '\\u000B' && LA7_0 <= '\\f')||(LA7_0 >= '\\u000E' && LA7_0 <= '\\uFFFF')) ) {\n\t\t\t\t\t\t\talt7=1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tswitch (alt7) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:18: .\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmatchAny(); \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\tbreak loop7;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tmNEWLINE(); \n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:31: '/*' ( . )* '*/'\n\t\t\t\t\t{\n\t\t\t\t\tmatch(\"/*\"); \n\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:36: ( . )*\n\t\t\t\t\tloop8:\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tint alt8=2;\n\t\t\t\t\t\tint LA8_0 = input.LA(1);\n\t\t\t\t\t\tif ( (LA8_0=='*') ) {\n\t\t\t\t\t\t\tint LA8_1 = input.LA(2);\n\t\t\t\t\t\t\tif ( (LA8_1=='/') ) {\n\t\t\t\t\t\t\t\talt8=2;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if ( ((LA8_1 >= '\\u0000' && LA8_1 <= '.')||(LA8_1 >= '0' && LA8_1 <= '\\uFFFF')) ) {\n\t\t\t\t\t\t\t\talt8=1;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ( ((LA8_0 >= '\\u0000' && LA8_0 <= ')')||(LA8_0 >= '+' && LA8_0 <= '\\uFFFF')) ) {\n\t\t\t\t\t\t\talt8=1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tswitch (alt8) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:320:36: .\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmatchAny(); \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\tbreak loop8;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tmatch(\"*/\"); \n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t _channel=HIDDEN; \n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "public boolean isAfterNL()\n \t{\n \t\tif (getContext() == null)\n \t\t{\n \t\t\treturn false;\n \t\t}\n \t\tMatcherContext ctx = (MatcherContext) getContext();\n \t\tInputLocation loc = ctx.getCurrentLocation();\n \t\tInputBuffer buf = ctx.getInputBuffer();\n \t\tint delta = -1;\n \t\tchar c;\n \t\t // MultiLine comment might have \\n to be ignored\n \t\tboolean inMlComment = false;\n \t\t// Lok back into the buffer for a '\\n'\n \t\twhile ((c = loc.lookAhead(buf, delta)) != Chars.EOI)\n \t\t{\n \t\t\tif (c == '\\n')\n \t\t\t{\n \t\t\t\tif (!inMlComment)\n \t\t\t\t{\n \t\t\t\t\treturn true;\n \t\t\t\t} else if (c == '/')\n \t\t\t\t{\n \t\t\t\t\tif (loc.lookAhead(buf, delta - 1) == '*')\n \t\t\t\t\t{\n \t\t\t\t\t\t// in ML comment\n \t\t\t\t\t\tinMlComment = true;\n \t\t\t\t\t\tdelta--;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse if (c == '*')\n \t\t\t\t{\n \t\t\t\t\tif (loc.lookAhead(buf, delta - 1) == '/')\n \t\t\t\t\t{\n \t\t\t\t\t\t// out of ML comment\n \t\t\t\t\t\tinMlComment = false;\n \t\t\t\t\t\tdelta--;\n \t\t\t\t\t}\n \t\t\t\t} else\n \t\t\t\t{\n \t\t\t\t\tif (! (inMlComment || c==' ' || c=='\\t' ||\n \t\t\t\t\t\tc=='\\r' || c=='\\u000c'))\n \t\t\t\t\t{\n \t\t\t\t\t\t// if not in a multiLineComment\n \t\t\t\t\t\t// or not a whitespace charcater, then we failed finding \\n\n \t\t\t\t\t\treturn false;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t// keep going\n \t\t\tdelta--;\n \t\t}\n \t\treturn false;\n \t}", "private static void testUntermComment() throws IOException {\n\t// say what output is expected\n\tSystem.err.println(\"\\nTEST UNTERMINATED COMMENTS: \" +\n\t\t\t \"UNTERM COMMENT ON LINE 4\");\n\n\t// open input file\n\tFileReader inFile = null;\n\ttry {\n\t inFile = new FileReader(\"inUntermComment\");\n\t} catch (FileNotFoundException ex) {\n\t System.err.println(\"File inUntermComment not found.\");\n\t System.exit(-1);\n\t}\n\n\t// create and call the scanner\n\tYylex scanner = new Yylex(inFile);\n\tSymbol token = scanner.next_token();\n\tif (token.sym != sym.EOF) {\n\t System.err.println(\"ERROR TESTING UNTERMINATED COMMENT: not at EOF\");\n\t System.err.println(\"sym: \" + token.sym);\n\t}\n }", "public boolean hasComment() {\n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"hasComment()\" );\n Via via=(Via)sipHeader;\n return via.hasComment();\n }", "public boolean isJavaDoc(String line){\n boolean lineIsJavaDoc = false;\n if(this.inJavaDoc){\n lineIsJavaDoc = true;\n }\n if(line.contains(\"/**\")){\n lineIsJavaDoc = true;\n inJavaDoc = true;\n }\n if(line.contains(\"*/\") && this.inJavaDoc){\n inJavaDoc = false;\n inStarComment = false;\n }\n return lineIsJavaDoc;\n }", "@Test\n\tpublic void simpleComment() throws ParseException {\n\t\t// -->\n\t\tILineMatcher startMatcher = JavaSourceLineMatcher.startMatcher();\n\t\tILineMatcher endMatcher = JavaSourceLineMatcher.endMatcher();\n\t\tBlockToBlockListConverter converter = new BlockToBlockListConverter(startMatcher, endMatcher);\n\n\t\tList<String> lines = Lists.newArrayList();\n\n\t\tlines.add(\" // -->\");\n\t\tlines.add(\" // shift one left\");\n\t\tlines.add(\" // this line too\");\n\t\tlines.add(\" // <--\");\n\n\t\tList<Block> blocks = converter.convert(new Block(lines));\n\n\t\tassertEquals(1, blocks.size());\n\t\tBlock block = blocks.get(0);\n\t\tassertNotNull(block);\n\t\tassertEquals(\"// shift one left\", block.lines().get(0));\n\t\tassertEquals(\"// this line too\", block.lines().get(1));\n\t\t// <--\n\t}", "public final void mCOMMENT() throws RecognitionException {\n try {\n int _type = COMMENT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:619:5: ( ( '--' | '//' ) ( . )* ( '\\\\n' | '\\\\r' ) )\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:619:7: ( '--' | '//' ) ( . )* ( '\\\\n' | '\\\\r' )\n {\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:619:7: ( '--' | '//' )\n int alt11=2;\n int LA11_0 = input.LA(1);\n\n if ( (LA11_0=='-') ) {\n alt11=1;\n }\n else if ( (LA11_0=='/') ) {\n alt11=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 11, 0, input);\n\n throw nvae;\n }\n switch (alt11) {\n case 1 :\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:619:8: '--'\n {\n match(\"--\"); \n\n\n }\n break;\n case 2 :\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:619:15: '//'\n {\n match(\"//\"); \n\n\n }\n break;\n\n }\n\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:619:21: ( . )*\n loop12:\n do {\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( (LA12_0=='\\n'||LA12_0=='\\r') ) {\n alt12=2;\n }\n else if ( ((LA12_0>='\\u0000' && LA12_0<='\\t')||(LA12_0>='\\u000B' && LA12_0<='\\f')||(LA12_0>='\\u000E' && LA12_0<='\\uFFFF')) ) {\n alt12=1;\n }\n\n\n switch (alt12) {\n \tcase 1 :\n \t // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:619:21: .\n \t {\n \t matchAny(); \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop12;\n }\n } while (true);\n\n if ( input.LA(1)=='\\n'||input.LA(1)=='\\r' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n _channel = HIDDEN; \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "private static boolean hasDDComment(String sql) {\n if (!(sql.startsWith(\"/*\"))) {\n return false;\n }\n // else check to see if it's a DBM trace sql comment\n int i = 2;\n boolean found = false;\n if (sql.length() > 2) {\n // check if the next word starts with one of the specified keys\n if (hasMatchingSubstring(sql, i, PARENT_SERVICE)) {\n found = true;\n } else if (hasMatchingSubstring(sql, i, DATABASE_SERVICE)) {\n found = true;\n } else if (hasMatchingSubstring(sql, i, DD_ENV)) {\n found = true;\n } else if (hasMatchingSubstring(sql, i, DD_VERSION)) {\n found = true;\n } else if (hasMatchingSubstring(sql, i, TRACEPARENT)) {\n found = true;\n }\n }\n return found;\n }", "private String nocomment(String s) {\r\n\t\tint excLocation=s.indexOf('!');\r\n\t\tif(excLocation!=-1) s=s.substring(0,excLocation);\r\n\t\treturn s.trim();\r\n\t}", "@Override\n\t/**\n\t * returns false because comments are disabled for classes\n\t * \n\t * @return false \n\t */\n\tpublic boolean hasComment() {\n\t\treturn false;\n\t}", "public boolean containsComment(String path) {\n return getComment(path) != null;\n }", "boolean isComment(Object object);", "int getCommentEndOffset(CharSequence commentText);", "@Override\n\t/**\n\t * returns false because comments are disabled for classes\n\t * \n\t * @return false \n\t */\n\tpublic boolean isComment() {\n\t\treturn false;\n\t}", "private int ignoreComment(int nextVal) throws java.io.IOException {\n\t\tint c = nextVal;\n\t\twhile (!isNewLine(c) && c != EOF) {\n\t\t\tc = reader.read();\n\t\t}\n\t\treturn c;\n\t}", "@Test\n public void commentGetHtmlEnd() {\n // White-Box! Temporär mit NotNull-Test ersetzt\n // assertEquals(\"</i></font><br />\", comment.htmlEnd());\n assertNotNull(comment.htmlStart());\n }", "public void check_comment_at_the_end_of_statement(boolean on){\r\n this.e_comment_at_the_end_of_statement = on;\r\n }", "private void skipWhiteSpace()\n throws Exception\n {\n char currentChar = currentChar();\n char next;\n boolean foundAsterisk = false; // flag to detect closing */ in comments\n \n while (Character.isWhitespace(currentChar) || (currentChar == '/')) \n { // Start of a comment?\n if (currentChar == '/')\n {\n next = source.peekChar();\n \n // Consume comments with '//'\n if (next == '/')\n {\n do currentChar = nextChar();\n while (currentChar != EOL && currentChar != EOF);\n \n if (currentChar == EOL)\n currentChar = nextChar();\n }\n // Consume comments with '/* */'\n else if (next == '*')\n {\n currentChar = nextChar(); // Consume '/'\n do \n { \n currentChar = nextChar();\n if (foundAsterisk && currentChar == '/')\n break;\n else \n foundAsterisk = currentChar == '*';\n } while (currentChar != EOF);\n \n if (currentChar == '/')\n currentChar = nextChar();\n }\n else\n break;\n }\n // Not a comment.\n else {\n currentChar = nextChar(); // consume whitespace character\n }\n }\n }", "public final void mCOMMENT() throws RecognitionException {\n try {\n int _type = COMMENT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2697:3: ( ( ( ( '//' (~ ( '\\\\r' | '\\\\n' ) )* ) ) ) )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:6: ( ( ( '//' (~ ( '\\\\r' | '\\\\n' ) )* ) ) )\n {\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:6: ( ( ( '//' (~ ( '\\\\r' | '\\\\n' ) )* ) ) )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:7: ( ( '//' (~ ( '\\\\r' | '\\\\n' ) )* ) )\n {\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:7: ( ( '//' (~ ( '\\\\r' | '\\\\n' ) )* ) )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:8: ( '//' (~ ( '\\\\r' | '\\\\n' ) )* )\n {\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:8: ( '//' (~ ( '\\\\r' | '\\\\n' ) )* )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:9: '//' (~ ( '\\\\r' | '\\\\n' ) )*\n {\n match(\"//\"); if (state.failed) return ;\n\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:14: (~ ( '\\\\r' | '\\\\n' ) )*\n loop1:\n do {\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( ((LA1_0>='\\u0000' && LA1_0<='\\t')||(LA1_0>='\\u000B' && LA1_0<='\\f')||(LA1_0>='\\u000E' && LA1_0<='\\uFFFF')) ) {\n alt1=1;\n }\n\n\n switch (alt1) {\n \tcase 1 :\n \t // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2698:15: ~ ( '\\\\r' | '\\\\n' )\n \t {\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='\\t')||(input.LA(1)>='\\u000B' && input.LA(1)<='\\f')||(input.LA(1)>='\\u000E' && input.LA(1)<='\\uFFFF') ) {\n \t input.consume();\n \t state.failed=false;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return ;}\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n _channel=HIDDEN;\n }\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public abstract char getCommentChar();", "public final void mCOMMENT() throws RecognitionException {\r\n try {\r\n final int _type = SparqlMarcoLexer.COMMENT;\r\n int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:64:5: ( '//' (~ ( '\\\\n'\r\n // | '\\\\r' ) )* ( '\\\\r' )? '\\\\n' | '/*' ( options {greedy=false; } : . )* '*/' )\r\n int alt15 = 2;\r\n final int LA15_0 = this.input.LA(1);\r\n\r\n if (LA15_0 == '/') {\r\n final int LA15_1 = this.input.LA(2);\r\n\r\n if (LA15_1 == '/') {\r\n alt15 = 1;\r\n } else if (LA15_1 == '*') {\r\n alt15 = 2;\r\n } else {\r\n final NoViableAltException nvae = new NoViableAltException(\"\", 15, 1,\r\n this.input);\r\n\r\n throw nvae;\r\n }\r\n } else {\r\n final NoViableAltException nvae = new NoViableAltException(\"\", 15, 0, this.input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt15) {\r\n case 1:\r\n this.match(\"//\");\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:64:14: (~ ( '\\\\n'\r\n // | '\\\\r' ) )*\r\n loop12: do {\r\n int alt12 = 2;\r\n final int LA12_0 = this.input.LA(1);\r\n\r\n if (LA12_0 >= '\\u0000' && LA12_0 <= '\\t' || LA12_0 >= '\\u000B'\r\n && LA12_0 <= '\\f' || LA12_0 >= '\\u000E' && LA12_0 <= '\\uFFFF') {\r\n alt12 = 1;\r\n }\r\n\r\n switch (alt12) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:64:14: ~\r\n // ( '\\\\n' | '\\\\r' )\r\n {\r\n if (this.input.LA(1) >= '\\u0000' && this.input.LA(1) <= '\\t'\r\n || this.input.LA(1) >= '\\u000B' && this.input.LA(1) <= '\\f'\r\n || this.input.LA(1) >= '\\u000E'\r\n && this.input.LA(1) <= '\\uFFFF') {\r\n this.input.consume();\r\n\r\n } else {\r\n final MismatchedSetException mse = new MismatchedSetException(\r\n null, this.input);\r\n this.recover(mse);\r\n throw mse;\r\n }\r\n\r\n }\r\n break;\r\n\r\n default:\r\n break loop12;\r\n }\r\n } while (true);\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:64:28: ( '\\\\r' )?\r\n int alt13 = 2;\r\n final int LA13_0 = this.input.LA(1);\r\n if (LA13_0 == '\\r') {\r\n alt13 = 1;\r\n }\r\n switch (alt13) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:64:28: '\\\\r'\r\n {\r\n this.match('\\r');\r\n\r\n }\r\n break;\r\n\r\n }\r\n this.match('\\n');\r\n _channel = BaseRecognizer.HIDDEN;\r\n break;\r\n case 2:\r\n this.match(\"/*\");\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:65:14: ( options\r\n // {greedy=false; } : . )*\r\n loop14: do {\r\n int alt14 = 2;\r\n final int LA14_0 = this.input.LA(1);\r\n\r\n if (LA14_0 == '*') {\r\n final int LA14_1 = this.input.LA(2);\r\n\r\n if (LA14_1 == '/') {\r\n alt14 = 2;\r\n } else if (LA14_1 >= '\\u0000' && LA14_1 <= '.' || LA14_1 >= '0'\r\n && LA14_1 <= '\\uFFFF') {\r\n alt14 = 1;\r\n }\r\n\r\n } else if (LA14_0 >= '\\u0000' && LA14_0 <= ')' || LA14_0 >= '+'\r\n && LA14_0 <= '\\uFFFF') {\r\n alt14 = 1;\r\n }\r\n\r\n switch (alt14) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:65:42: .\r\n {\r\n this.matchAny();\r\n\r\n }\r\n break;\r\n\r\n default:\r\n break loop14;\r\n }\r\n } while (true);\r\n this.match(\"*/\");\r\n _channel = BaseRecognizer.HIDDEN;\r\n break;\r\n default:\r\n break;\r\n\r\n }\r\n this.state.type = _type;\r\n this.state.channel = _channel;\r\n } finally {\r\n }\r\n }", "private void findComments(String remainingText) {\n while (remainingText.length() > 0) {\n if (shouldEvaluateMultilineComment(remainingText)) {\n findComments(remainingText.substring(0, remainingText.indexOf(MULTILINE_COMMENT_START_CHARACTERS)));\n remainingText = remainingText.substring(remainingText.indexOf(MULTILINE_COMMENT_START_CHARACTERS));\n\n if (Pattern.compile(MULTILINE_COMMENT_PATTERN).matcher(remainingText).matches()) {\n appendToPane(remainingText.substring(0, remainingText.indexOf(MULTILINE_COMMENT_END_CHARACTERS,\n remainingText.indexOf(MULTILINE_COMMENT_START_CHARACTERS) + MULTILINE_COMMENT_START_CHARACTERS.length())\n + MULTILINE_COMMENT_END_CHARACTERS.length()), true);\n if (remainingText.length() > remainingText.indexOf(MULTILINE_COMMENT_END_CHARACTERS,\n remainingText.indexOf(MULTILINE_COMMENT_START_CHARACTERS)\n + MULTILINE_COMMENT_START_CHARACTERS.length()) + MULTILINE_COMMENT_END_CHARACTERS.length()) {\n remainingText = remainingText.substring(remainingText.indexOf(MULTILINE_COMMENT_END_CHARACTERS,\n remainingText.indexOf(MULTILINE_COMMENT_START_CHARACTERS)\n + MULTILINE_COMMENT_START_CHARACTERS.length()) + MULTILINE_COMMENT_END_CHARACTERS.length());\n } else {\n remainingText = \"\";\n }\n } else {\n appendToPane(remainingText, true);\n remainingText = \"\";\n }\n } else if (remainingText.contains(SINGLE_LINE_COMMENT_CHARACTERS)) {\n appendToPane(remainingText.substring(0, remainingText.indexOf(SINGLE_LINE_COMMENT_CHARACTERS)), false);\n remainingText = remainingText.substring(remainingText.indexOf(SINGLE_LINE_COMMENT_CHARACTERS));\n if (remainingText.contains(NEWLINE_CHARACTERS)) {\n appendToPane(remainingText.substring(0, remainingText.indexOf(NEWLINE_CHARACTERS)), true);\n remainingText = remainingText.substring(remainingText.indexOf(NEWLINE_CHARACTERS));\n } else {\n appendToPane(remainingText, true);\n remainingText = \"\";\n }\n } else {\n appendToPane(remainingText, false);\n remainingText = \"\";\n }\n }\n }", "public boolean hasComment() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public final void mCOMMENT() throws RecognitionException {\r\n try {\r\n int _type = COMMENT;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:253:9: ( '/*' ( options {greedy=false; } : . )* '*/' )\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:253:12: '/*' ( options {greedy=false; } : . )* '*/'\r\n {\r\n match(\"/*\"); \r\n\r\n\r\n\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:253:17: ( options {greedy=false; } : . )*\r\n loop1:\r\n do {\r\n int alt1=2;\r\n int LA1_0 = input.LA(1);\r\n\r\n if ( (LA1_0=='*') ) {\r\n int LA1_1 = input.LA(2);\r\n\r\n if ( (LA1_1=='/') ) {\r\n alt1=2;\r\n }\r\n else if ( ((LA1_1 >= '\\u0000' && LA1_1 <= '.')||(LA1_1 >= '0' && LA1_1 <= '\\uFFFF')) ) {\r\n alt1=1;\r\n }\r\n\r\n\r\n }\r\n else if ( ((LA1_0 >= '\\u0000' && LA1_0 <= ')')||(LA1_0 >= '+' && LA1_0 <= '\\uFFFF')) ) {\r\n alt1=1;\r\n }\r\n\r\n\r\n switch (alt1) {\r\n \tcase 1 :\r\n \t // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:253:45: .\r\n \t {\r\n \t matchAny(); \r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop1;\r\n }\r\n } while (true);\r\n\r\n\r\n match(\"*/\"); \r\n\r\n\r\n\r\n _channel = HIDDEN; \r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }", "private boolean formatComment(StringBuilder result, String tab) {\n \n \t\tif (!preferenceFormatComments)\n \t\t\treturn false;\n \n \t\t/* The list of remaining words to continue on the next line */\n \t\tLinkedList<String> commentWords = new LinkedList<String>();\n \n \t\tint maxLineLength = OcamlPlugin.getInstance().getPreferenceStore().getInt(\n \t\t\t\tPreferenceConstants.P_FORMATTER_COMMENT_WIDTH);\n \n \t\tint nCommentLine = currentLine;\n \n \t\tbInMultilineComment = false;\n \n \t\tString firstCommentLine = line;\n \n \t\t/* Read all the following lines having a single comment */\n \t\tboolean bWholeLineComment;\n \t\tdo {\n \t\t\tif (bDoNotFormatComment)\n \t\t\t\tbreak;\n \n \t\t\tbWholeLineComment = false;\n \n \t\t\tString commentLine = lines[nCommentLine];\n \n \t\t\tString trimmed2 = commentLine.trim();\n \t\t\t/*\n \t\t\t * Matcher matcherString = patternString.matcher(trimmed); trimmed =\n \t\t\t * matcherString.replaceAll(\"\\\"\\\"\");\n \t\t\t */\n \n \t\t\t/*\n \t\t\t * Count the number of comments on the line, because patternWholeLineComment matches several\n \t\t\t * comments in a single match. If there are several comments on the same line, then we leave them\n \t\t\t * as is.\n \t\t\t */\n \t\t\tMatcher matcherComment = patternComment.matcher(trimmed2);\n \t\t\tboolean bMoreThanOneComment = matcherComment.find() && matcherComment.find();\n \n \t\t\tif (!bMoreThanOneComment) {\n \n \t\t\t\t/*\n \t\t\t\t * Read all the words (anything separated by spaces) of this comment, and add them to the\n \t\t\t\t * list.\n \t\t\t\t */\n \t\t\t\tMatcher matcherWholeLineComment = patternWholeLineComment.matcher(trimmed2);\n \n \t\t\t\tString commentBody = null;\n \n \t\t\t\tif (trimmed2.startsWith(\"(*\") && !trimmed2.contains(\"*)\"))\n \t\t\t\t\tbInMultilineComment = true;\n \n \t\t\t\tif (matcherWholeLineComment.find() || bInMultilineComment) {\n \n \t\t\t\t\tif (bInMultilineComment) {\n \t\t\t\t\t\tif (trimmed2.endsWith(\"*)\")) {\n \t\t\t\t\t\t\tbInMultilineComment = false;\n \t\t\t\t\t\t\tcommentBody = trimmed2.substring(0, trimmed2.length() - 2);\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\telse if (trimmed2.startsWith(\"(*\")) {\n \t\t\t\t\t\t\tcommentBody = trimmed2.substring(2, trimmed2.length());\n \t\t\t\t\t\t} else\n \t\t\t\t\t\t\tcommentBody = trimmed2;\n \t\t\t\t\t}\n \n \t\t\t\t\tif (commentBody == null)\n \t\t\t\t\t\tcommentBody = matcherWholeLineComment.group(1);\n \n \t\t\t\t\t// Special character that means: do not format this comment\n \t\t\t\t\t// We don't format documentation comments either\n \t\t\t\t\tif (commentBody.startsWith(\"|\") || commentBody.startsWith(\"*\")) {\n \t\t\t\t\t\tbDoNotFormatComment = true;\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \n \t\t\t\t\tString[] words = commentBody.split(\"\\\\s\");\n \n \t\t\t\t\t// add the words to the list\n \t\t\t\t\tfor (String w : words)\n \t\t\t\t\t\tif (!w.trim().equals(\"\"))\n \t\t\t\t\t\t\tcommentWords.addLast(w);\n \n \t\t\t\t\tbWholeLineComment = true;\n \n \t\t\t\t\tnCommentLine++;\n \t\t\t\t\tif (nCommentLine >= lines.length)\n \t\t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \n \t\t} while (bWholeLineComment);\n \n \t\tint nLastCommentLine = nCommentLine - 1;\n \n \t\t/* If we found at least one comment */\n \t\tif (!commentWords.isEmpty()) {\n \t\t\t/*\n \t\t\t * Get the indentation of the first comment line. The following ones will get the same\n \t\t\t * indentation.\n \t\t\t */\n \t\t\tint firstCommentLineIndent = getLineIndent(firstCommentLine);\n \n \t\t\tint currentOffset = 0;\n \t\t\tint tabSize = ocaml.editors.OcamlEditor.getTabSize();\n \n \t\t\t/*\n \t\t\t * Now that we have a list of words, we spread it onto the following lines\n \t\t\t */\n \n \t\t\t// indentation in number of spaces from the beginning of the line\n \t\t\tint leadingSpace = 0;\n \t\t\tfor (int j = 0; j < firstCommentLineIndent; j++) {\n \t\t\t\tresult.append(tab);\n \t\t\t\tcurrentOffset += tabSize;\n \t\t\t\tleadingSpace += tabSize;\n \t\t\t}\n \n \t\t\tresult.append(\"(* \");\n \t\t\tcurrentOffset += 3;\n \n \t\t\tint nCommentLines = 1;\n \t\t\t// for each word of the comment\n \t\t\tfor (String word : commentWords) {\n \t\t\t\t// if the word fits into the remaining space on the line or if\n \t\t\t\t// the line is empty\n \t\t\t\tif ((currentOffset + word.length() + 3 < maxLineLength || currentOffset == firstCommentLineIndent + 3)) {\n \t\t\t\t\tresult.append(word + \" \");\n \t\t\t\t\tcurrentOffset += word.length() + 1;\n \t\t\t\t}\n \n \t\t\t\t/*\n \t\t\t\t * if the word doesn't fit on the remaining space on the line, then we create a new line\n \t\t\t\t */\n \t\t\t\telse {\n \t\t\t\t\tnCommentLines++;\n \n \t\t\t\t\twhile (currentOffset++ < maxLineLength - 3)\n \t\t\t\t\t\tresult.append(\" \");\n \n \t\t\t\t\tresult.append(\"*)\" + OcamlPlugin.newline);\n \n \t\t\t\t\tcurrentOffset = 0;\n \t\t\t\t\tfor (int j = 0; j < firstCommentLineIndent; j++) {\n \t\t\t\t\t\tresult.append(\"\\t\");\n \t\t\t\t\t\tcurrentOffset += tabSize;\n \t\t\t\t\t}\n \n \t\t\t\t\tresult.append(\"(* \" + word + \" \");\n \t\t\t\t\tcurrentOffset += word.length() + 4;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t/*\n \t\t\t * if there are several comment lines, we put the ending \"*)\" against the margin, so that the\n \t\t\t * comment endings are all aligned\n \t\t\t */\n \t\t\tif (nCommentLines != 1)\n \t\t\t\twhile (currentOffset++ < maxLineLength - 3)\n \t\t\t\t\tresult.append(\" \");\n \n \t\t\tresult.append(\"*)\" + OcamlPlugin.newline);\n \n \t\t\t/*\n \t\t\t * We're done with this comment: analyze the remaining lines: continue at i (the +1 is done by the\n \t\t\t * loop)\n \t\t\t */\n \t\t\tcurrentLine = nLastCommentLine;\n \t\t\t// true means: jump back\n \t\t\treturn true;\n \t\t}\n \t\t// continue normally (do not jump in the loop)\n \t\treturn false;\n \t}", "public boolean hasComment() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "@Test\n\tpublic void embeddedComment() throws ParseException {\n\t\t// -->\n\t\tILineMatcher startMatcher = JavaSourceLineMatcher.startMatcher();\n\t\tILineMatcher endMatcher = JavaSourceLineMatcher.endMatcher();\n\t\tBlockToBlockListConverter converter = new BlockToBlockListConverter(startMatcher, endMatcher);\n\n\t\tList<String> lines = Lists.newArrayList();\n\n\t\tlines.add(\" // -->\");\n\t\tlines.add(\" // shift one left\");\n\t\tlines.add(\" \t// <--\");\n\t\tlines.add(\" \t// -->\");\n\t\tlines.add(\" \t// shift one left (embedded)\");\n\t\tlines.add(\" \t// this line too (embedded)\");\n\t\tlines.add(\" \t// <--\");\n\t\tlines.add(\" \t// -->\");\n\t\tlines.add(\" // this line too\");\n\t\tlines.add(\" // <--\");\n\n\t\tList<Block> blocks = converter.convert(new Block(lines));\n\n\t\tassertEquals(1, blocks.size());\n\t\tBlock block = blocks.get(0);\n\t\tassertNotNull(block);\n\t\tassertEquals(\"// shift one left\", block.lines().get(0));\n\t\tassertEquals(\"\t// shift one left (embedded)\", block.lines().get(1));\n\t\tassertEquals(\"\t// this line too (embedded)\", block.lines().get(2));\n\t\tassertEquals(\"// this line too\", block.lines().get(3));\n\t\t// <--\n\t}", "int getCommentsMode();", "public final void mSINGLE_COMMENT() throws RecognitionException {\r\n try {\r\n int _type = SINGLE_COMMENT;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:256:2: ( '//' (~ ( '\\\\n' | '\\\\r' ) )* )\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:256:4: '//' (~ ( '\\\\n' | '\\\\r' ) )*\r\n {\r\n match(\"//\"); \r\n\r\n\r\n\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:256:9: (~ ( '\\\\n' | '\\\\r' ) )*\r\n loop2:\r\n do {\r\n int alt2=2;\r\n int LA2_0 = input.LA(1);\r\n\r\n if ( ((LA2_0 >= '\\u0000' && LA2_0 <= '\\t')||(LA2_0 >= '\\u000B' && LA2_0 <= '\\f')||(LA2_0 >= '\\u000E' && LA2_0 <= '\\uFFFF')) ) {\r\n alt2=1;\r\n }\r\n\r\n\r\n switch (alt2) {\r\n \tcase 1 :\r\n \t // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:\r\n \t {\r\n \t if ( (input.LA(1) >= '\\u0000' && input.LA(1) <= '\\t')||(input.LA(1) >= '\\u000B' && input.LA(1) <= '\\f')||(input.LA(1) >= '\\u000E' && input.LA(1) <= '\\uFFFF') ) {\r\n \t input.consume();\r\n \t }\r\n \t else {\r\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\r\n \t recover(mse);\r\n \t throw mse;\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop2;\r\n }\r\n } while (true);\r\n\r\n\r\n _channel = HIDDEN; \r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }", "public static String noComments(String strIn){\n\n int position = strIn.indexOf(\"//\");\n\n if (position != -1){\n\n strIn = strIn.substring(0, position);\n\n }\n\n return strIn;\n }", "private static boolean isStartTag(String line) {\n final char c = line.charAt(line.length() - 2);\n return brackets(line) && line.charAt(1) != '/' && (c != '/' && c != '?');\n }", "public static int commentStart(String line) {\n\t\tboolean insidequote = false;\n\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\tchar current = line.charAt(i);\n\t\t\tif (current == '\\'') {\n\t\t\t\tinsidequote = !insidequote;\n\t\t\t} else if (!insidequote) {\n\t\t\t\tif (current == ';') {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t\t\n\t}", "public final void mCOMMENT() throws RecognitionException {\n try {\n int _type = COMMENT;\n // /Users/benjamincoe/HackWars/C.g:158:9: ( '//' (~ ( '\\\\r\\\\n' | '\\\\r' | '\\\\n' ) )* )\n // /Users/benjamincoe/HackWars/C.g:158:11: '//' (~ ( '\\\\r\\\\n' | '\\\\r' | '\\\\n' ) )*\n {\n match(\"//\"); \n\n // /Users/benjamincoe/HackWars/C.g:158:16: (~ ( '\\\\r\\\\n' | '\\\\r' | '\\\\n' ) )*\n loop1:\n do {\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( ((LA1_0>='\\u0000' && LA1_0<='\\t')||(LA1_0>='\\u000B' && LA1_0<='\\f')||(LA1_0>='\\u000E' && LA1_0<='\\uFFFE')) ) {\n alt1=1;\n }\n\n\n switch (alt1) {\n \tcase 1 :\n \t // /Users/benjamincoe/HackWars/C.g:158:16: ~ ( '\\\\r\\\\n' | '\\\\r' | '\\\\n' )\n \t {\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='\\t')||(input.LA(1)>='\\u000B' && input.LA(1)<='\\f')||(input.LA(1)>='\\u000E' && input.LA(1)<='\\uFFFE') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse =\n \t new MismatchedSetException(null,input);\n \t recover(mse); throw mse;\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n channel=HIDDEN;\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "protected boolean ignoreLinesStartWith(char a) {\r\n if (!this.hasNextToken()) return false;\r\n boolean b = false;\r\n while (true) {\r\n char c = this.stream.peek();\r\n if (c==a) {\r\n this.getUntilMeetChar('\\n');\r\n b = true;\r\n continue;\r\n }\r\n return b;\r\n }\r\n }", "@Override\n public String visit(LineComment n, Object arg) {\n return null;\n }", "protected ValidationResult validateComments(String text) {\r\n\t\tStack<Integer> posStack = new Stack<Integer>();\r\n\t\tint lastSymbol = -1;\r\n\t\tint commentDepth = 0;\r\n\t\t\r\n\t\tValidationResult result = null;\r\n\t\t\r\n\t\tfor (int i = 0; i < text.length(); ++i) {\r\n\t\t\t\r\n\t\t\tchar current = text.charAt(i);\r\n\t\t\t\r\n\t\t\tif (current == START_COMMENT_CHAR) {\r\n\t\t\t\tCharacter prev = (i == 0 ? null : text.charAt(i - 1));\r\n\t\t\t\t// Start of line, or preceeded by blank, open or close bracket\r\n\t\t\t\tif (prev == null || \" <>\".indexOf(prev) >= 0) {\r\n\t\t\t\t\t// Start of line - is a delimiting bracket\r\n\t\t\t\t\tposStack.push(i);\r\n\t\t\t\t\tcommentDepth++;\r\n\t\t\t\t\tlastSymbol = i;\r\n\t\t\t\t} \t\t\t\t\r\n\t\t\t} else if (current == END_COMMENT_CHAR) {\r\n\t\t\t\t// End of line, or succeeded by a blank, open or close bracket or slash\r\n\t\t\t\tCharacter next = i < text.length() - 1 ? text.charAt(i + 1) : null; \r\n\t\t\t\tif (next == null || \" <>\\\\\".indexOf(next) >= 0) {\r\n\t\t\t\t\tcommentDepth--;\r\n\t\t\t\t\tlastSymbol = i;\r\n\t\t\t\t\tif (posStack.size() > 0) {\r\n\t\t\t\t\t\tposStack.pop();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (commentDepth != 0) {\r\n\t\t\tif (posStack.size() > 0) {\r\n\t\t\t\tlastSymbol = posStack.pop();\r\n\t\t\t}\r\n\t\t\tresult = ValidationResult.error(COMMENT_MISMATCH, lastSymbol);\r\n\t\t}\r\n\r\n\t\treturn result == null ? new ValidationResult() : result;\r\n\t}", "private boolean shouldInspectTextForComments(KeyEvent e) {\n return e.getKeyCode() == KeyEvent.VK_V\n || (!e.isControlDown() && e.getKeyCode() != KeyEvent.VK_CONTROL);\n }", "public static ParseAction<Located<Void>> matchTLAComment(){\n\t\treturn parseOneOf(\n\t\t\t\tmatchTLAMultilineComment(),\n\t\t\t\tmatchTLALineComment()\n\t\t);\n\t}", "public void testRemoveDescriptionHeader_05() {\n checkRemoveDescriptionHeader(\"Something\\n\", \"\\nHeader of PHPDoc comment\\nDescription.\\nSomething\\n\");\n }", "private void countNonCommentCodeLine(String currentLine) {\n\t\t\tif (!\"\".equals(currentLine)) {\n\t\t\t\tif (!Pattern.compile(\"^[{}();]*$\").matcher(currentLine).matches()) {\n\t\t\t\t\tlogicLines++;\n\t\t\t\t}\n\t\t\t\tphysicalLines++;\n\t\t\t}\n\t\t}", "private String filterComments(String[] initial) {\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor (int a = 0; a < initial.length; a++) {\n\t\t\tString potential = initial[a];\n\t\t\tint index = potential.indexOf(START_COMMENT);\n\t\t\tif(index != -1)\n\t\t\t\tpotential = potential.substring(0,index);\n\t\t\tif (!potential.trim().isEmpty())\n\t\t\t\tanswer.append(potential + \" \");\n\t\t}\n\t\treturn answer.toString();\n\t}", "boolean processCommentsContainingIdentifier( String identifier, SearchScope searchScope, Processor<PsiElement> processor);", "private void startBlockContentComment(final Token tt) {\n if (wereTokens && !wasNewLine) {\n space();\n } else {\n if (tt.start().column() != TextPos.START_COLUMN) {\n startIndentedLine();\n } else {\n startLine();\n }\n }\n }", "private String magicComment( CharSequence needle, String haystack,\r\n CharSequence replacement )\r\n {\r\n int startIndex = haystack.indexOf( \"//# \" + needle );\r\n String endString = \"//# END \" + needle;\r\n int endIndex = haystack.indexOf( endString ) + endString.length();\r\n CharSequence region = haystack.subSequence( startIndex, endIndex + 1 );\r\n\r\n return haystack.replace( region, replacement );\r\n }", "public void addFirstComment(String comment) {\n if (methodMode) {\n methodCode.addFirst(new Line(comment));\n } else {\n program.addFirst(new Line(comment));\n }\n }", "public final void mCOMMENT() throws RecognitionException {\n try {\n int _type = COMMENT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // Office.g:965:8: ( ( '//' (~ ( '\\\\n' | '\\\\r' | '\\\\uffff' ) )* ) )\n // Office.g:966:2: ( '//' (~ ( '\\\\n' | '\\\\r' | '\\\\uffff' ) )* )\n {\n // Office.g:966:2: ( '//' (~ ( '\\\\n' | '\\\\r' | '\\\\uffff' ) )* )\n // Office.g:966:3: '//' (~ ( '\\\\n' | '\\\\r' | '\\\\uffff' ) )*\n {\n match(\"//\"); \n\n\n\n // Office.g:966:7: (~ ( '\\\\n' | '\\\\r' | '\\\\uffff' ) )*\n loop1:\n do {\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( ((LA1_0 >= '\\u0000' && LA1_0 <= '\\t')||(LA1_0 >= '\\u000B' && LA1_0 <= '\\f')||(LA1_0 >= '\\u000E' && LA1_0 <= '\\uFFFE')) ) {\n alt1=1;\n }\n\n\n switch (alt1) {\n \tcase 1 :\n \t // Office.g:\n \t {\n \t if ( (input.LA(1) >= '\\u0000' && input.LA(1) <= '\\t')||(input.LA(1) >= '\\u000B' && input.LA(1) <= '\\f')||(input.LA(1) >= '\\u000E' && input.LA(1) <= '\\uFFFE') ) {\n \t input.consume();\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n\n }\n\n\n _channel = 99; \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "public boolean hasComments() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "private void emitComment() throws SAXException {\n if (wantsComments) {\n if (longStrBufPending != '\\u0000') {\n appendLongStrBuf(longStrBufPending);\n }\n }\n tokenHandler.comment(longStrBuf, longStrBufLen);\n }", "public final void mCOMMENT() throws RecognitionException {\r\n\t\ttry {\r\n\t\t\tint _type = COMMENT;\r\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\r\n\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:154:6: ( '/*' ( . )* '*/' | '//' (~ '\\\\n' )* )\r\n\t\t\tint alt3=2;\r\n\t\t\tint LA3_0 = input.LA(1);\r\n\t\t\tif ( (LA3_0=='/') ) {\r\n\t\t\t\tint LA3_1 = input.LA(2);\r\n\t\t\t\tif ( (LA3_1=='*') ) {\r\n\t\t\t\t\talt3=1;\r\n\t\t\t\t}\r\n\t\t\t\telse if ( (LA3_1=='/') ) {\r\n\t\t\t\t\talt3=2;\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse {\r\n\t\t\t\t\tint nvaeMark = input.mark();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tinput.consume();\r\n\t\t\t\t\t\tNoViableAltException nvae =\r\n\t\t\t\t\t\t\tnew NoViableAltException(\"\", 3, 1, input);\r\n\t\t\t\t\t\tthrow nvae;\r\n\t\t\t\t\t} finally {\r\n\t\t\t\t\t\tinput.rewind(nvaeMark);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse {\r\n\t\t\t\tNoViableAltException nvae =\r\n\t\t\t\t\tnew NoViableAltException(\"\", 3, 0, input);\r\n\t\t\t\tthrow nvae;\r\n\t\t\t}\r\n\r\n\t\t\tswitch (alt3) {\r\n\t\t\t\tcase 1 :\r\n\t\t\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:154:10: '/*' ( . )* '*/'\r\n\t\t\t\t\t{\r\n\t\t\t\t\tmatch(\"/*\"); \r\n\r\n\t\t\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:154:15: ( . )*\r\n\t\t\t\t\tloop1:\r\n\t\t\t\t\twhile (true) {\r\n\t\t\t\t\t\tint alt1=2;\r\n\t\t\t\t\t\tint LA1_0 = input.LA(1);\r\n\t\t\t\t\t\tif ( (LA1_0=='*') ) {\r\n\t\t\t\t\t\t\tint LA1_1 = input.LA(2);\r\n\t\t\t\t\t\t\tif ( (LA1_1=='/') ) {\r\n\t\t\t\t\t\t\t\talt1=2;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if ( ((LA1_1 >= '\\u0000' && LA1_1 <= '.')||(LA1_1 >= '0' && LA1_1 <= '\\uFFFF')) ) {\r\n\t\t\t\t\t\t\t\talt1=1;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if ( ((LA1_0 >= '\\u0000' && LA1_0 <= ')')||(LA1_0 >= '+' && LA1_0 <= '\\uFFFF')) ) {\r\n\t\t\t\t\t\t\talt1=1;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tswitch (alt1) {\r\n\t\t\t\t\t\tcase 1 :\r\n\t\t\t\t\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:154:15: .\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmatchAny(); \r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tdefault :\r\n\t\t\t\t\t\t\tbreak loop1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tmatch(\"*/\"); \r\n\r\n\t\t\t\t\t_channel=HIDDEN;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2 :\r\n\t\t\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:155:10: '//' (~ '\\\\n' )*\r\n\t\t\t\t\t{\r\n\t\t\t\t\tmatch(\"//\"); \r\n\r\n\t\t\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:155:15: (~ '\\\\n' )*\r\n\t\t\t\t\tloop2:\r\n\t\t\t\t\twhile (true) {\r\n\t\t\t\t\t\tint alt2=2;\r\n\t\t\t\t\t\tint LA2_0 = input.LA(1);\r\n\t\t\t\t\t\tif ( ((LA2_0 >= '\\u0000' && LA2_0 <= '\\t')||(LA2_0 >= '\\u000B' && LA2_0 <= '\\uFFFF')) ) {\r\n\t\t\t\t\t\t\talt2=1;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tswitch (alt2) {\r\n\t\t\t\t\t\tcase 1 :\r\n\t\t\t\t\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif ( (input.LA(1) >= '\\u0000' && input.LA(1) <= '\\t')||(input.LA(1) >= '\\u000B' && input.LA(1) <= '\\uFFFF') ) {\r\n\t\t\t\t\t\t\t\tinput.consume();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\r\n\t\t\t\t\t\t\t\trecover(mse);\r\n\t\t\t\t\t\t\t\tthrow mse;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tdefault :\r\n\t\t\t\t\t\t\tbreak loop2;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t_channel=HIDDEN;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t\t\tstate.type = _type;\r\n\t\t\tstate.channel = _channel;\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\t// do for sure before leaving\r\n\t\t}\r\n\t}", "public void writeComment(String s) throws Exception {\r\n\tif (s.indexOf(EOL) != -1 && s.startsWith(commentString))\r\n\t\tthrow new Exception(\"bad line\");\r\n\r\n\tout.write(commentSeparator);\r\n\tout.write(s.getBytes());\r\n\tout.write(EOL);\r\n}", "public boolean hasComments() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public void testRemoveDescriptionHeader_12() {\n checkRemoveDescriptionHeader(\"Something\", \"\\nHeader of PHPDoc comment\\nDescription.\\nSomething\");\n }", "private void commentStates() throws SAXException, IOException {\n CommentState state = CommentState.COMMENT_START_STATE;\n for (;;) {\n char c = read();\n switch (state) {\n case COMMENT_START_STATE:\n /*\n * Comment start state\n * \n * \n * Consume the next input character:\n */\n switch (c) {\n case '-':\n /*\n * U+002D HYPHEN-MINUS (-) Switch to the comment\n * start dash state.\n */\n state = CommentState.COMMENT_START_DASH_STATE;\n continue;\n case '>':\n /*\n * U+003E GREATER-THAN SIGN (>) Parse error.\n */\n err(\"Premature end of comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Switch to the data state.\n */\n return;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"End of file inside comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n default:\n /*\n * Anything else Append the input character to the\n * comment token's data.\n */\n appendToComment(c);\n /*\n * Switch to the comment state.\n */\n state = CommentState.COMMENT_STATE;\n continue;\n }\n case COMMENT_START_DASH_STATE:\n /*\n * Comment start dash state\n * \n * Consume the next input character:\n */\n switch (c) {\n case '-':\n /*\n * U+002D HYPHEN-MINUS (-) Switch to the comment end\n * state\n */\n state = CommentState.COMMENT_END_STATE;\n continue;\n case '>':\n /*\n * U+003E GREATER-THAN SIGN (>) Parse error.\n */\n err(\"Premature end of comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Switch to the data state.\n */\n return;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"End of file inside comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n default:\n /*\n * Anything else Append a U+002D HYPHEN-MINUS (-)\n * character and the input character to the comment\n * token's data.\n */\n appendToComment('-');\n appendToComment(c);\n /*\n * Switch to the comment state.\n */\n state = CommentState.COMMENT_STATE;\n continue;\n }\n case COMMENT_STATE:\n /*\n * Comment state Consume the next input character:\n */\n switch (c) {\n case '-':\n /*\n * U+002D HYPHEN-MINUS (-) Switch to the comment end\n * dash state\n */\n state = CommentState.COMMENT_END_DASH_STATE;\n continue;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"End of file inside comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n default:\n /*\n * Anything else Append the input character to the\n * comment token's data.\n */\n appendToComment(c);\n /*\n * Stay in the comment state.\n */\n continue;\n }\n case COMMENT_END_DASH_STATE:\n /*\n * Comment end dash state Consume the next input character:\n */\n switch (c) {\n case '-':\n /*\n * U+002D HYPHEN-MINUS (-) Switch to the comment end\n * state\n */\n state = CommentState.COMMENT_END_STATE;\n continue;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"End of file inside comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n default:\n /*\n * Anything else Append a U+002D HYPHEN-MINUS (-)\n * character and the input character to the comment\n * token's data.\n */\n appendToComment('-');\n appendToComment(c);\n /*\n * Switch to the comment state.\n */\n state = CommentState.COMMENT_STATE;\n continue;\n }\n case COMMENT_END_STATE:\n /*\n * Comment end dash state Consume the next input character:\n */\n switch (c) {\n case '>':\n /*\n * U+003E GREATER-THAN SIGN (>) Emit the comment\n * token.\n */\n emitComment();\n /*\n * Switch to the data state.\n */\n return;\n case '-':\n /* U+002D HYPHEN-MINUS (-) Parse error. */\n err(\"Consecutive hyphens did not terminate a comment.\");\n /*\n * Append a U+002D HYPHEN-MINUS (-) character to the\n * comment token's data.\n */\n appendToComment('-');\n /*\n * Stay in the comment end state.\n */\n continue;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"End of file inside comment.\");\n /* Emit the comment token. */\n emitComment();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n default:\n /*\n * Anything else Parse error.\n */\n err(\"Consecutive hyphens did not terminate a comment.\");\n /*\n * Append two U+002D HYPHEN-MINUS (-) characters and\n * the input character to the comment token's data.\n */\n appendToComment('-');\n appendToComment('-');\n appendToComment(c);\n /*\n * Switch to the comment state.\n */\n state = CommentState.COMMENT_STATE;\n continue;\n }\n }\n }\n }", "public boolean isMultiLine() {\n/* 1236 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic void comment() {\n\t\t\n\t}", "@Override\n public String visit(BlockComment n, Object arg) {\n return null;\n }", "public static boolean getNextNonWhitespace(TokenSequence<PlsqlTokenId> ts, boolean ignoreComment) {\n boolean moveNext = ts.moveNext();\n Token<PlsqlTokenId> tmp = ts.token();\n\n\n while (moveNext) {\n if (tmp.id() == PlsqlTokenId.WHITESPACE) {\n moveNext = ts.moveNext();\n tmp = ts.token();\n } else {\n if ((ignoreComment == true) && (tmp.id() == PlsqlTokenId.LINE_COMMENT\n || tmp.id() == PlsqlTokenId.BLOCK_COMMENT)) {\n moveNext = ts.moveNext();\n tmp = ts.token();\n } else {\n break;\n }\n\n }\n }\n\n return moveNext;\n }", "private void handleSlash() {\n // Single line comment\n if (secondCharIs('/')) {\n // Rune has C-style comments, so goes until end of line\n while ((peek() != '\\n') && !reachedEnd()) {\n advance(); // Keep advancing until newline or EOF, thus ignoring the comment lexeme\n }\n } else if (secondCharIs('*')) {\n // Block comments go until * / is reached\n while (!reachedEnd()) {\n if (peek() == '*' && peekFurther(1) == '/') {\n advance();\n advance();\n return;\n }\n advance();\n }\n } else {\n addToken(SLASH);\n }\n }", "@Override\n public void comment(String comment)\n {\n }", "public void testRemoveDescriptionHeader_11() {\n checkRemoveDescriptionHeader(\"\", \"\\nHeader of PHPDoc comment\\nDescription.\");\n }", "private static void checkCommentMatches(JavadocCommentOwner commentOwner, String expectedText) {\n JavadocComment comment = commentOwner.getJavadocComment();\n assertEquals(expectedText, comment.getText().toString());\n\n // this is fetched adhoc\n List<JavaComment> collected = JavaComment.getLeadingComments(commentOwner).collect(Collectors.toList());\n assertEquals(listOf(comment), collected);\n }", "public void testRemoveDescriptionHeader_04() {\n checkRemoveDescriptionHeader(\"\", \"\\nHeader of PHPDoc comment\\nDescription.\\n\");\n }" ]
[ "0.7891393", "0.7515907", "0.7508203", "0.746067", "0.735618", "0.73405087", "0.7315219", "0.7235411", "0.7203273", "0.7199348", "0.71430224", "0.7033862", "0.70163894", "0.7009792", "0.696197", "0.6956626", "0.6923456", "0.6841271", "0.6800811", "0.67620546", "0.67067486", "0.6637103", "0.66334313", "0.66297144", "0.6548903", "0.6547425", "0.6508895", "0.6500905", "0.64897114", "0.64711905", "0.6436315", "0.6432521", "0.63941246", "0.63291603", "0.63046306", "0.6293815", "0.62645555", "0.6248723", "0.6247378", "0.6221563", "0.62102026", "0.620196", "0.61915845", "0.6176419", "0.61618", "0.6128442", "0.61086714", "0.6103957", "0.60970455", "0.6090217", "0.6089166", "0.60731256", "0.60291016", "0.602716", "0.6026892", "0.6022182", "0.6010092", "0.59971535", "0.5995535", "0.5980538", "0.59651506", "0.5961592", "0.5960347", "0.5959334", "0.5957854", "0.5937493", "0.59156466", "0.5911107", "0.5896942", "0.58738506", "0.58671415", "0.5839054", "0.57781726", "0.5752621", "0.57483137", "0.57398283", "0.57301825", "0.5716254", "0.57080823", "0.57076794", "0.5703186", "0.5691388", "0.56882656", "0.5682095", "0.5677854", "0.56763506", "0.56744033", "0.5654706", "0.5644536", "0.56347525", "0.5629203", "0.5617838", "0.5614033", "0.56132126", "0.5612602", "0.56040645", "0.5602783", "0.5593182", "0.55802244", "0.555559" ]
0.5681081
84
Created by AntonYaskiv on 29.09.2017.
public interface WayMapAPI { @GET("maps/api/directions/json?") Call<WayPoints> getWayFromCoordinate(@Query("origin")String from, @Query("destination") String to, @Query("key") String api_key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public int describeContents() { return 0; }", "public final void mo51373a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void getExras() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void init() {}", "public void mo38117a() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n protected void init() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void init() {}", "@Override\n public void memoria() {\n \n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "private void m50366E() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n public void initialize() { \n }", "private void kk12() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {\n \n }", "@Override public int describeContents() { return 0; }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "public void mo6081a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private void init() {\n\n\n\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}" ]
[ "0.58505267", "0.57294387", "0.56107247", "0.55323434", "0.55323434", "0.55229676", "0.5521318", "0.5463941", "0.54629546", "0.54443485", "0.5426333", "0.54263204", "0.5414136", "0.5413946", "0.5378243", "0.5376966", "0.53734773", "0.53660107", "0.5357534", "0.5355337", "0.5353873", "0.5353873", "0.5353873", "0.5353873", "0.5353873", "0.5353873", "0.5351859", "0.5346661", "0.5336593", "0.5328287", "0.5328287", "0.5328287", "0.5328287", "0.5328287", "0.53279716", "0.5325406", "0.5320222", "0.53104806", "0.5306869", "0.5293019", "0.5274393", "0.5266654", "0.52614486", "0.52614486", "0.5255111", "0.524897", "0.5245513", "0.5241423", "0.5237328", "0.5237328", "0.5237328", "0.5233947", "0.5233947", "0.5230514", "0.5228143", "0.5219208", "0.52079105", "0.52075344", "0.5194266", "0.5192927", "0.5192927", "0.51903796", "0.51903796", "0.51903796", "0.51841295", "0.517938", "0.517938", "0.517938", "0.5178482", "0.5177746", "0.51728743", "0.51642996", "0.51611245", "0.515912", "0.51559496", "0.51539606", "0.51523197", "0.51489496", "0.51446205", "0.51433665", "0.51349384", "0.51286834", "0.51286834", "0.51286834", "0.51286834", "0.51286834", "0.51286834", "0.51286834", "0.51036626", "0.51036626", "0.51036626", "0.5090989", "0.5089204", "0.50843436", "0.50811714", "0.50811714", "0.50776047", "0.50742763", "0.5068195", "0.5063789", "0.50542855" ]
0.0
-1
Below lies the random "testing"(?), try not to cringe
public static void main(String[] args) throws IOException{ int cells = 16; MnistManager mm = new MnistManager(Config.MNIST_TRAIN_IMAGES, Config.MNIST_TRAIN_LABELS); // Grab first image mm.setCurrent(1); int[][] image = mm.readPixelMatrix(); BufferedImage bimg = mm.readImage(); ImageHelper.printImage(mm.readImage(), "llf_test.png"); System.out.println("The number is: " + mm.readLabel()); // Make sure the cell size is correct -> 7 pixels int cellSize = image.length / (int)Math.sqrt(cells); System.out.println("The size of the cells are " + cellSize + " pixels"); // Check that the cell iteration is correct for(int i = 0; i < image.length; i += cellSize) { for(int j = 0; j < image[0].length; j += cellSize) { String info = "Top left X: "+i+" Y: "+j+" Bottom right X: "+(i + cellSize)+" Y: "+(j + cellSize); System.out.println(info); double b = slope(i, j, cellSize, image); System.out.println(b); System.out.println("\n\n"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void random() {\n\n\t}", "@Test\n\tpublic void testEvilPuzzleGeneration() {\n\t}", "@Test\n public void sanityTest() {\n Random random = new Random(0);\n long long1 = random.nextLong();\n long long2 = random.nextLong();\n long long3 = random.nextLong();\n assertEquals(RandomConstants.LONG_1_WITH_SEED_0, long1);\n assertEquals(RandomConstants.LONG_2_WITH_SEED_0, long2);\n assertEquals(RandomConstants.LONG_3_WITH_SEED_0, long3);\n }", "public static int randomNext() { return 0; }", "@Test\n\tpublic void myRandomTest() throws IllegalArgumentException, IllegalAccessException {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.mp3 &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.tracktime) {\n\t\t\n\t\tstart();\n\t\tint n = gui.myRandom(1, 1);\n\t\tassertTrue(n == 1);\n\n\t\tn = gui.myRandom(2, 2);\n\t\tassertTrue(n == 2);\n\n\t\tn = gui.myRandom(0, 0);\n\t\tassertTrue(n == 0);\n\t\t\n\t\tn = gui.myRandom(4, 4);\n\t\tassertTrue(n == 4);\n\n\t\tn = gui.myRandom(1000, 1001);\n\t\tassertTrue(n == 1000 || n == 1001);\n\t\t\n\t\t}\n\t}", "@Test\n public void testRandomSeries() {\n\tlong overallStart = System.currentTimeMillis();\n for (long a = Short.MIN_VALUE ; a <= Short.MAX_VALUE; a+= random.nextInt(300) + 113) {\n for (long b = Short.MAX_VALUE; b >= Short.MIN_VALUE; b-= random.nextInt(300) + 113) {\n\t\tlong start = System.currentTimeMillis();\n\t\tint ua = (int)(a + Short.MAX_VALUE + 1),\n\t\t\tub = (int)(b + Short.MAX_VALUE + 1);\n verify(ua, ub, false);\n verify(a, b, true);\n\t\tlong end = System.currentTimeMillis();\n\t\tSystem.out.println(\"a \" + a + \"b \" + b + \": \" + (end - start) + \"ms\");\n }\n }\n\tlong overallEnd = System.currentTimeMillis();\n\tSystem.out.println(\"Test Duration: \" + ((overallEnd - overallStart) / 1000) + \"s\");\n }", "int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }", "public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;\r\n\t\t//random=1;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tif((ch[who].status)>0) {\r\n\t\t\tch[who].location=(ch[who].location)+random;\r\n\t\t\tch[who].status=(ch[who].status)-1;\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\r\n\t}", "Boolean getRandomize();", "@Override\n\tpublic boolean isRandomizable() {\n\t\treturn false;\n\t}", "@Test\n public void test20False() {\n long start = System.currentTimeMillis();\n for (int i = 1; i <= 20; i++) {\n RandomGUID myguid = new RandomGUID(false);\n System.out.println(i + \" \" + myguid.toString());\n }\n System.out.println(Ansi.ansi().eraseScreen().render(String.format(\"20 条@|blue 耗时 |@@|yellow %s |@@|blue 毫秒|@\", System.currentTimeMillis() - start)));\n }", "public void testRandomStrings() throws Exception {\n checkRandomData(random(), a, 200 * RANDOM_MULTIPLIER);\n }", "public boolean DoBlackMagic()\n{\n\tRandom generator=new Random();\n\tint result=generator.nextInt(4);\n\tif(result==0)\n\t{\n\t\treturn false;\n\t}\n\telse\n\t{\n\t\treturn true;\n\t}\n\n}", "@Test\n public void test100True() {\n long start = System.currentTimeMillis();\n for (int i = 0; i < 100; i++) {\n RandomGUID myGUID = new RandomGUID(true);\n System.out.println(\"Seeding String=\" + myGUID.valueBeforeMD5);\n System.out.println(\"rawGUID=\" + myGUID.valueAfterMD5);\n System.out.println(\"RandomGUID=\" + myGUID.toString());\n }\n System.out.println(Ansi.ansi().eraseScreen().render(String.format(\"100 条@|blue 耗时 |@@|yellow %s |@@|blue 毫秒|@\", System.currentTimeMillis() - start)));\n }", "private static void test1() {\n\n\tint n=10000;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint val=rand7();\n\t\t\tcount[val]++;\n\t\t}\n\t\t\n\t\tfor(int i:count)\n\t\t\tSystem.out.println(i);\n\t}", "public static void main(String[] args) {\n\r\n\t\tRandom rr=new Random();\r\n\t\t\r\n\t\tSystem.out.println(Math.random());//[0,1)\r\n\t\t \r\n\t\t// 第一种情况 int(强转之后最终的值一定是0)\r\n\t\t// 第二种情况 int(强转之后将小数点舍去 1-5)\r\n\t\tSystem.out.println((int)Math.random()*5);//0.99*5永远到不了5\r\n\t\tSystem.out.println((int)(Math.random()*5+1));//[1,5.)\r\n\t\t\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\t\r\n\t\tfor(int i=0;i<=20;i++){\r\n\t\t\tSystem.out.print(i%7+\"-\");\r\n\t\t\t\r\n\t\t}\r\n\t\t//1-M的随机产生\r\n\t\t//(int)(Math.random()*M+1)\r\n\t\t\r\n\t\t\r\n\t\t//产生0 1的概率不同 Math.random()<p?0:1\r\n\t\tSystem.out.println(\"----\"+rr.rand01p());\r\n\t\tSystem.out.println(\"----\"+rr.rand01());\r\n\t\tfor(int i=0;i<=11;i++){\r\n\t\t\tSystem.out.print(i%6+\"-\");\r\n\t\t \t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(rr.rand106());\r\n\t}", "private boolean needXray() {\n\t\treturn Math.random() < XRAY_PROBABILITY;\n\t}", "@Test\n public void randomSeedNumTest()\n {\n int x = _city.getRandomNum(5);\n int y = _city.getRandomNum(5);\n assertEquals(x, y);\n }", "@Test\n public void RandomBallLocationStopped() {\n final boolean seenAll[] = new boolean[1];\n seenAll[0] = false;\n\n WheelObserver wheelObserver = new WheelObserver() {\n Set<Integer> seen = new HashSet<Integer>();\n public void stopped(final int location) {\n if (location < 0 || location > 36)\n throw new IllegalArgumentException();\n seen.add(location);\n if (seen.size() == 37) seenAll[0] = true;\n }\n };\n RouletteWheel wheel = new RouletteWheel(wheelObserver);\n\n for (int x = 0; x < 1000; x++)\n {\n wheel.spin(0);\n wheel.tick(20000);\n }\n\n assertTrue(seenAll[0]);\n }", "private void generateRandomPosition() {\r\n int indexX, indexY;\r\n boolean collidesWithPlayers;\r\n playerState.position.x = Integer.MIN_VALUE; // While we trying...\r\n playerState.position.y = Integer.MIN_VALUE;\r\n final ExtensiveMovingObject testObject = new ExtensiveMovingObject( 0.0f, 0.0f, 0.0f, 0.0f, GeneralConsts.WORM_WIDTH, GeneralConsts.WORM_HEIGHT );\r\n int positionGenerationTrialFailureCounter = 0;\r\n do {\r\n do {\r\n indexX = 1 + (int) ( Math.random() * ( map.getWidth () - 1 ) );\r\n indexY = 1 + (int) ( Math.random() * ( map.getHeight() - 1 ) );\r\n if ( positionGenerationTrialFailureCounter++ == MAX_POSITION_GENERATION_TRIAL_FAILURE_COUNT )\r\n if ( map.getWall( indexX, indexY ) == Map.WALL_STONE )\r\n map.setWall( indexX, indexY, Map.WALL_BRICK ); // Not to empty: it can be under water!!\r\n } while( map.getWall( indexX, indexY ) == Map.WALL_STONE ); // Stone can't be cleared: it can be part of swimming pool boundaries. (But if there isn't other places where to start, we clear it!)\r\n testObject.position.x = ( indexX << GeneralConsts.WALL_WIDTH_SHIFT ) + GeneralConsts.WALL_WIDTH / 2;\r\n testObject.position.y = ( indexY << GeneralConsts.WALL_HEIGHT_SHIFT ) + GeneralConsts.WALL_HEIGHT / 2;\r\n collidesWithPlayers = false;\r\n for ( int playerIndex = 0; playerIndex < players.length && !collidesWithPlayers; playerIndex++ )\r\n if ( playerIndex != ownIndex && players[ playerIndex ] != null && testObject.hitsExtensiveObject( players[ playerIndex ].playerState ) )\r\n collidesWithPlayers = true;\r\n try {\r\n Thread.sleep( 0, 100 );\r\n }\r\n catch( InterruptedException ie ) {\r\n }\r\n } while ( collidesWithPlayers );\r\n playerState.position.x = testObject.position.x;\r\n playerState.position.y = testObject.position.y;\r\n map.clearMapForEnteringPlayer( indexX, indexY );\r\n }", "@Test public void testStillLife() throws Exception {\n int[][] boat =\n {{0, 0, 0, 0, 0}, {0, 1, 1, 0, 0}, {0, 1, 0, 1, 0}, {0, 0, 1, 0, 0}, {0, 0, 0, 0, 0}};\n\n GameOfLife gameOfLife = createGame();\n\n gameOfLife.seed(boat);\n Assert.assertArrayEquals(boat, gameOfLife.next());\n Assert.assertArrayEquals(boat, gameOfLife.next());\n }", "@Test //covers loop test with one pass through the loop\n\tpublic void exampleTest() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"+5 Dexterity Vest\", 10, 20));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality has decreased by one\n\t\tassertEquals(\"Failed quality for Dexterity Vest\", 19, quality);\n\t}", "@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }", "public void randomize() {\n\t\tx = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t\ty = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t}", "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\r\n\tpublic void randomTest() {\r\n\t\tItem item = new Item();\r\n\t\ttry {\r\n\t\t\tItem tempSet[] = item.getRandom(0);\r\n\t\t\tassertNotSame(tempSet.length, 0);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to execute search of random items: SQLException\");\r\n\t\t}\r\n\t}", "private Random rand()\n\t{\n\t\treturn new Random();\n\t}", "@Test\n public void random() {\n Shorts.random();\n }", "@Test\n public void pickUpSomeGoldTest() {\n\tassertNotEquals(0,score);\n }", "private double getRandom() {\n return 2*Math.random() - 1;\n }", "@Test\n public void test100False() {\n long start = System.currentTimeMillis();\n for (int i = 0; i < 100; i++) {\n RandomGUID myGUID = new RandomGUID();\n System.out.println(\"Seeding String=\" + myGUID.valueBeforeMD5);\n System.out.println(\"rawGUID=\" + myGUID.valueAfterMD5);\n System.out.println(\"RandomGUID=\" + myGUID.toString());\n }\n System.out.println(Ansi.ansi().eraseScreen().render(String.format(\"100 条@|blue 耗时 |@@|yellow %s |@@|blue 毫秒|@\", System.currentTimeMillis() - start)));\n// printMessage = String.format(\"@|blue [Up-Date]|@@|green %s|@\\t@|blue [Log-Date]|@@|magenta %s|@\\t@|blue [Box-Mac]|@@|yellow %s|@\\t@|blue [OSS-Key]|@@|cyan %s|@\", this.turnDateFormat(matcher.group(1), \"yyyyMMdd\", \"yyyy-MM-dd\"), this.turnDateFormat(matcher.group(3), \"yyyyMMddHH\", \"yyyy-MM-dd HH:mm:ss\"), matcher.group(2), ossObjectKey);\n }", "SimulatedAnnealing() {\n generator = new Random(System.currentTimeMillis());\n }", "@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(500, 800);\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}", "public void premesaj() {\r\n Collections.shuffle(kup);\r\n }", "private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}", "@Before\n public void setUp() {\n randSeeder = new Random(42);\n\n //Show we haven't seeded the test's random number generator\n randSeed = RAND_UNSEEDED;\n comp = IntPlus.getIntComparator();\n }", "@Test\n public void test20True() {\n long start = System.currentTimeMillis();\n for (int i = 1; i <= 20; i++) {\n RandomGUID myguid = new RandomGUID(true);\n System.out.println(i + \" \" + myguid.toString());\n }\n System.out.println(Ansi.ansi().eraseScreen().render(String.format(\"20 条@|blue 耗时 |@@|yellow %s |@@|blue 毫秒|@\", System.currentTimeMillis() - start)));\n }", "public void testTwoWayDistribution() {\n for(int p = 0; p < 20; p++) {\n int[] landings = new int[2];\n for(long in = 0; in < 100000; in++) {\n long longHash = FPGenerator.std64.fp(p+\"a\"+in);\n// long longHash = rand.nextLong();\n// long longHash = ArchiveUtils.doubleMurmur((p+\":\"+in).getBytes());\n landings[conhash.bucketFor(longHash, 2)]++;\n }\n// System.out.println(landings[0]+\",\"+landings[1]);\n assertTrue(\"excessive changes\",Math.abs(landings[0]-landings[1]) < 2000); \n }\n }", "public abstract boolean isRandom();", "public abstract void randomize();", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n void doEffectcyberblade(){\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"cyberblade\");\n Weapon w20 = new Weapon(\"cyberblade\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w20);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w20.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt1\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"opt1\", \"base\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt1\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt2\", \"opt1\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"opt1\", \"base\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n }", "private static void randomlyGeneratedInput() {\n\t\tint pages[] = new int[50];\n\t\tint numOfFrames[] = new int[] {3, 4, 5, 6};\n\t\t\n\t\t//Sum of page faults for each algorithm\n\t\tint totalPageFaultsFIFO = 0;\n\t\tint totalPageFaultsLRU = 0;\n\t\tint totalPageFaultsOptimal = 0;\n\t\t\n\t\tfor(int frameAmount = 0; frameAmount < numOfFrames.length; frameAmount++) {\n\t\t\tfor(int trials = 0; trials < 50; trials++) {\n\t\t\t\tfor(int i = 0; i < pages.length; i++) {\n\t\t\t\t\tRandom rng = new Random();\n\t\t\t\t\tpages[i] = rng.nextInt(8);\t\n\t\t\t\t}\n\t\t\t\tint pageFaultsFIFO = fifoRNG(pages, numOfFrames[frameAmount]);\n\t\t\t\ttotalPageFaultsFIFO = totalPageFaultsFIFO + pageFaultsFIFO;\n\t\t\t\tint pageFaultsLRU = lruRNG(pages, numOfFrames[frameAmount]);\n\t\t\t\ttotalPageFaultsLRU = totalPageFaultsLRU + pageFaultsLRU;\n\t\t\t\tint pageFaultsOptimal = optimalRNG(pages, numOfFrames[frameAmount]);\n\t\t\t\ttotalPageFaultsOptimal = totalPageFaultsOptimal + pageFaultsOptimal;\n\t\t\t\tSystem.out.println(\"Number of page frames: \" + numOfFrames[frameAmount] + \" Trial #: \" + (trials+1));\n\t\t\t\tSystem.out.println(\"FIFO page fault: \" + pageFaultsFIFO);\n\t\t\t\tSystem.out.println(\"LRU page fault: \" + pageFaultsLRU);\n\t\t\t\tSystem.out.println(\"Optimal page fault: \" + pageFaultsOptimal);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println(\"Number of page frames: \" + numOfFrames[frameAmount]);\n\t\t\tSystem.out.println(\"Average FIFO Page Faults after 50 trials: \" + (float) totalPageFaultsFIFO / 50f);\n\t\t\tSystem.out.println(\"Average LRU Page Faults after 50 trials: \" + (float) totalPageFaultsLRU / 50f);\n\t\t\tSystem.out.println(\"Average Optimal Page Faults after 50 trials: \" + (float) totalPageFaultsOptimal / 50f);\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\ttotalPageFaultsFIFO = 0;\n\t\t\ttotalPageFaultsLRU = 0;\n\t\t\ttotalPageFaultsOptimal = 0;\n\t\t}\n\t}", "@Test\n\tpublic void testNormalPuzzleGeneration() {\n\t}", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "public static boolean isPresent() {\n // random genrate\n //double ranValue = Math.floor(Math.random() * 10 ) % 3;\n //int ranValue = 0/1;\n return 1 == new Random().nextInt(1000)%2;\n }", "@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(10, 20); \t\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}", "@Test\n\tpublic void testSuccess() {\n\t\tMobitexRandomizer randomizer = new MobitexRandomizer();\n\t\tbyte[] data = new byte[] { -17, -93, -18, 17, 112, 24, -116, -48, -21, -51, -82, -71, -19, -68, -124, -41, -56, 14, 122, -56, -42, -68, -53, -114, -49, 51, 37, -39, -113, 123 };\n\t\tbyte[] result = new byte[] { 16, 32, 49, 6, 66, 17, -62, 1, 12, 0, 36, 40, 43, 105, 64, 19, -120, 47, 98, -122, -125, 58, 63, 82, 69, 38, -126, 53, 29, -92 };\n\t\trandomizer.shuffle(data);\n\t\tassertArrayEquals(result, data);\n\t\tdata = new byte[] { -111, 83, 50, 124, -40, 40, -7, -110, 103, -32, 65, -41, -72, -20, 75, -59, 107, -3, 21, 9, 103, -38, 3, 72, 18, 85, -71, 5, -109, 104 };\n\t\tresult = new byte[] { 2, 0, 2, 100, 18, 28, 70, 48, -96, -71, 38, 88, 2, -31, 38, 29, 70, -128, 65, 3, 48, 77, 115, 113, -64, 47, 83, 33, -96, -19 };\n\t\trandomizer.shuffle(data);\n\t\tassertArrayEquals(result, data);\n\t\tdata = new byte[] { -17, -120, 25, -56, 126, 37, -44, 126, 71, -127, 31, 43, -69, -80, 20, -93, -39, -61, -117, -70, 34, -102, 20, -80, -19, 45, 116, -61, 17, -81 };\n\t\tresult = new byte[] { 2, 18, 4, 41, -127, 34, 106, 80, 35, -109, -126, -120, 116, 43, 1, -128, 84, 104, 2, 50, -94, -40, 36, 44, 70, 32, -99, 122, 5, -124 };\n\t\trandomizer.shuffle(data);\n\t\tassertArrayEquals(result, data);\n\t}", "private void thinking(){\n int sleepTime = (int)(Math.random()*2000);\n try{\n Thread.sleep(sleepTime);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }", "private void random() {\n GameState gs = cc.getGameState();\n ArrayList<int[]> moves = cc.getPlayerMoves(player);\n ArrayList<GameState> states = nextStates(moves, gs);\n for (int[] m : moves) {\n GameState next = checkMove(m, cc);\n states.add(next);\n }\n Random rand = new Random(System.nanoTime());\n int i = rand.nextInt(states.size());\n cc.setAIMove(states.get(i));\n }", "private static void allRandomTest()\r\n{\r\n\tpriv \t= hexStringToByteArray\t(\"111112222233333444445555566666777778888899999aaaaabbbbbcccccdddd\");\t // Priv.Key\r\n\tpub[0] \t= new BigInteger\t(\"CAD5E868FC3437CB26423166631D6DA9185991D37252AA6A5C898956BF288AA2\",16); // Pub.Key x\r\n\tpub[1] \t= new BigInteger\t(\"E5866FE1B7A9E0DB979F48A118B987148E97C50F76F585FAFD2D2A791164C74F\",16); // Pub.Key y\r\n\tfor(int i = 0; i<testRuns; i++) \r\n\t{\t\r\n\t\tRandom k = new Random();\r\n\t\trand = (new BigInteger(256, k)).toByteArray();\t\t\r\n\t\tRandom h = new Random();\r\n\t\thash = (new BigInteger(256, h)).toByteArray();\r\n\t\thash = Secp256k1.to_fixLength(hash,32);\r\n\t\tif(bouncastleSigTest() == false) break;\r\n\t\tif(maxwell_sigTest() == false) break;\r\n\t}\r\n\tVergleichsTest();\r\n\tsecp256k1_speed_Test(); // 3,0ms\r\n}", "@Test\n public void testShuffle() {\n System.out.println(\"shuffle\");\n // can't really test something random\n }", "private static String testGetRandomInstance(int iterations)\n {\n String output = \"\";\n for (int i = 0; i < iterations; i++) \n {\n output += \"Saying hello to the random greeter: \" \n + Greeter.getRandomInstance().sayHello() + \"\\n\";\n }\n return output;\n }", "@Test\n public void picksOpponentRandom() throws Exception {\n Map<Integer,Integer> allMovesMade = new HashMap<Integer,Integer>();\n allMovesMade.put(1, 2);\n SmartPlayer x = new SmartPlayer(0,0);\n x.setMovesMadeByOtherPlayers(allMovesMade);\n //suppose this game has 5 total players including the player x\n int opponent = x.picksOpponent(5);\n //the opponent cannot be himself or a player with a player number outside the total number of players in game\n assertTrue(opponent!=0 && opponent<5 && opponent>0);\n }", "protected void initializeExecutionRandomness() {\r\n\r\n\t}", "@Test\n void doEffectsledgehammer() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"sledgehammer\");\n Weapon w13 = new Weapon(\"sledgehammer\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w13);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w13.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try {\n p.getPh().getWeaponDeck().getWeapon(w13.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w13.getName()).doEffect(\"alt\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(10));\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n s.clear();\n try {\n p.getPh().getWeaponDeck().getWeapon(w13.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(6));\n }", "@Test\n void shuffleTest() {\n CardDeck deck = new CardDeck(testCardTexts);\n int[] occurences = new int[testCardTexts.length];\n int numberOfCards = testCardTexts.length;\n int numberOfDraws = 10000;\n\n for (int i = 0; i < numberOfDraws ; i++) {\n //Shuffles deck\n deck.shuffle();\n\n //Draws upper card and gets id - increments occurence\n occurences[deck.draw().getId()]++;\n }\n\n for (int i = 0; i < testCardTexts.length; i++) {\n assertTrue(occurences[i]<(numberOfDraws/numberOfCards)+50 && occurences[i]> (numberOfDraws/numberOfCards)-50);\n }\n\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n void doEffectrocketlauncher() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"rocket launcher\");\n Weapon w19 = new Weapon(\"rocket launcher\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w19);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w19.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n ArrayList<Player> players = new ArrayList<>();\n ArrayList<GenericSquare> s = new ArrayList<>();\n players.add(victim);\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w19.getName()).doEffect(\"base\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim.getPlayerPosition() == Board.getSquare(10));\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(7));\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w19.getName()).doEffect(\"opt1\", \"base\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim.getPlayerPosition() == Board.getSquare(10) && p.getPlayerPosition() == Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSpawnpoint('y'));\n RealPlayer victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(7));\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w19.getName()).doEffect(\"opt1\", \"base\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(10) && p.getPlayerPosition() == Board.getSquare(7) && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSpawnpoint('y'));\n victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(10));\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w19.getName()).doEffect(\"base\", \"opt2\", \"opt1\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(10) && p.getPlayerPosition() == Board.getSquare(7) && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n }", "AttackResult randomAttack();", "private static void badApproach() {\n\t\t\n\t\tList<Double> result = new ArrayList<>();\n\t\t\n\t\tThreadLocalRandom.current()\n\t\t\t.doubles(10_000).boxed()\n\t\t\t.forEach(\n\t\t\t\t\td -> NewMath.inv(d)\n\t\t\t\t\t\t.ifPresent(\n\t\t\t\t\t\t\tinv -> NewMath.sqrt(inv)\n\t\t\t\t\t\t\t\t.ifPresent(\n\t\t\t\t\t\t\t\t\t\tsqrt -> result.add(sqrt)\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\n\t\tSystem.out.println(\"# result = \"+result.size());\n\t\t\n\t}", "@Test\n\tpublic void testRandInt() {\n\t\tGameState test = new GameState();\n\t\tassertTrue(test.randInt() < 25);\n\t}", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "@Test\r\n public void testPlayer_selectNewColor_dumb() {\r\n player2 = new Player(\"\", true);\r\n player2.setStrategy(Player.STRATEGY_DUMB);\r\n player2.setHand(strategyHand.getAllCards());\r\n player2.setLastPlayedCard(wild);\r\n String firstRandomColor = player2.selectNewColor();\r\n boolean differentColorFound = false;\r\n for(int i = 0; i < 25; i++) {\r\n String nextRandomColor = player2.selectNewColor();\r\n if(!nextRandomColor.equalsIgnoreCase(firstRandomColor)) {\r\n differentColorFound = true;\r\n }\r\n }\r\n assertTrue(differentColorFound);\r\n }", "@Override\n public int attack() {\n return new Random().nextInt(5);\n }", "private int grabANewNumberForTest() {\n clockPanel.updateTestClock(testNumbersList);\n if (testNumbersList.size() == 0) {\n testOver();\n }\n return testNumbersList.remove((int)(Math.random()*testNumbersList.size()));\n }", "private void randomTest(){\n\n int time = 5 ;\n\n test(time) ;\n }", "@Test\n public void testGetCantRandom() {\n System.out.println(\"getCantRandom\");\n RandomX instance = null;\n int expResult = 0;\n int result = instance.getCantRandom();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "@Test\r\n public void testPlayer_setRandomStrategy_2() {\r\n player2 = new Player(\"\", true);\r\n player2.setRandomStrategy();\r\n String firstStrategy = player2.getStrategy();\r\n boolean strategyReplaced = false;\r\n // generate 20 random strategies and assert at least one of them comes back different.\r\n for(int i = 0; i < 20; i++) {\r\n player2.setRandomStrategy();\r\n if (!player2.getStrategy().equalsIgnoreCase(firstStrategy)) {\r\n strategyReplaced = true;\r\n }\r\n }\r\n assertTrue(strategyReplaced);\r\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "private static boolean toAllocateOrDeallocate() {\n return random.nextInt() % 2 == 0;\n\n }", "@Override\n public Integer pee() {\n return (int) (random() * 8);\n }", "public void testPython() throws IOException {\n\t\tString alice_bits = \"\", alice_bases = \"\", bob_bases = \"\", eve_bases = \"\";\n\t\tRandom rand = new Random();\n\t\tfinal int bitsSent = 300;\n\t\tfor (int i = 0; i < bitsSent; i++) {\n\t\t\talice_bases += rand.nextBoolean() ? '1' : '0';\n\t\t\talice_bits += rand.nextBoolean() ? '1' : '0';\n\t\t\teve_bases += rand.nextBoolean() ? '1' : '0';\n\t\t\tbob_bases += rand.nextBoolean() ? '1' : '0';\n\t\t}\n\t\tSystem.out.println(\"Test with eavesdropper\");\n\t\tString aliceCircuits = python.getResults(alice_bits.length() + \" \" + alice_bits + \" \" + alice_bases);\n\t\tString[] eve = python.getResults(eve_bases + \" \" + aliceCircuits).split(\" \", 2);\n\t\tString eveResults = eve[0];\n\t\tString eveCircuits = eve[1];\n\t\tString bobResults = python.getResults(bob_bases + \" \" + eveCircuits).split(\" \", 2)[0];//bob throws away the new circuits\n\t\tassertM(bobResults.length() == eveResults.length(), \"results must be same length\");\n\n\t\tint numNotMatchingMeasurements = 0;\n\t\tint numNotMatchingBases = 0;\n\t\t//check if measurements line up when measurement bases line up\n\t\t//and that bob's measurements differ sometimes when he measures in a different base from Alice\n\t\tfor (int i = 0; i < bobResults.length(); i++) {\n\t\t\tif (alice_bases.charAt(i) == eve_bases.charAt(i)\n\t\t\t\t\t&& eve_bases.charAt(i) == bob_bases.charAt(i)) {\n\t\t\t\tassertM(bobResults.charAt(i) == eveResults.charAt(i)\n\t\t\t\t\t\t&& bobResults.charAt(i) == alice_bits.charAt(i), \"bob and eve\"\n\t\t\t\t\t\t+ \" must measure the same as alice prepared when they \"\n\t\t\t\t\t\t+ \"measure in the same base\");\n\t\t\t} else {\n\t\t\t\tnumNotMatchingBases++;\n\t\t\t\tif (bobResults.charAt(i) != alice_bits.charAt(i)) {\n\t\t\t\t\tnumNotMatchingMeasurements++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tassertM(numNotMatchingMeasurements > 0, \n\t\t\t\t\"bob sometimes measures differently when measures in a different base\");\n\t\tassertM(numNotMatchingBases > 0, \"There should be some measurements in a adifferent base\");\n\t\tassertM(Math.abs(numNotMatchingBases/(bitsSent+0.0) - 0.75) < 0.1, \n\t\t\t\t\"measurement bases should be different about 3/4 the time\");\n\n\t\t\n\t\t\n\t\tSystem.out.println(\"Test without eavesdropper\");\n\t\talice_bases = \"\";\n\t\talice_bits = \"\";\n\t\tbob_bases = \"\";\n\t\tfor (int i = 0; i < bitsSent; i++) {\n\t\t\talice_bases += rand.nextBoolean() ? '1' : '0';\n\t\t\talice_bits += rand.nextBoolean() ? '1' : '0';\n\t\t\tbob_bases += rand.nextBoolean() ? '1' : '0';\n\t\t}\n\t\t\n\t\taliceCircuits = python.getResults(alice_bits.length() + \" \" + alice_bits + \" \" + alice_bases);\n\t\tbobResults = python.getResults(bob_bases + \" \" + aliceCircuits).split(\" \", 2)[0];//bob throws away his new circuits\n\t\tassertM(bobResults.length() == alice_bases.length(), \"results should be length of input bases\");\n\t\t\n\t\tnumNotMatchingMeasurements = 0;\n\t\tnumNotMatchingBases = 0;\n\t\t//check if measurements line up when measurement bases line up\n\t\t//and that bob's measurements sometimes differ when he measures in a different base from Alice\n\t\tfor (int i = 0; i < bobResults.length(); i++) {\n\t\t\tif (alice_bases.charAt(i) == bob_bases.charAt(i)) {\n\t\t\t\tassertM(bobResults.charAt(i) == alice_bits.charAt(i), \"bob \"\n\t\t\t\t\t\t+ \" must measure the same as alice encoded when\"\n\t\t\t\t\t\t+ \" encode and measure in same base\");\n\t\t\t} else {\n\t\t\t\tnumNotMatchingBases++;\n\t\t\t\tif (bobResults.charAt(i) != alice_bits.charAt(i)) {\n\t\t\t\t\tnumNotMatchingMeasurements++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tassertM(numNotMatchingMeasurements > 1, \"Bob's measurement should differ from alice's prepared bits in some places\");\n\t\tassertM(numNotMatchingBases > 0, \"There should be some measurements in a adifferent base\");\n\t\tassertM(Math.abs(numNotMatchingBases/(bitsSent+0.0) - 0.5) < 0.1, \n\t\t\t\t\"measurement bases should be different about 1/2 the time\");\n\t\t\n\t\tSystem.out.println(\"Test done, \" + this.numberFails + \" fails and \" + \n\t\t\t\tthis.numberSuccesses + \" successes.\");\n\t}", "@Test\n public void radnomtest() throws Throwable {\n\n long startTime = Calendar.getInstance().getTimeInMillis();\n long elapsed = Calendar.getInstance().getTimeInMillis() - startTime;\n\n\n System.out.println(\"Start testing...\");\n\n\n for (int iteration = 0; elapsed < TestTimeout; iteration++) {\n long randomseed =10;//System.currentTimeMillis();\n //\t\t\tSystem.out.println(\" Seed:\"+randomseed );\n Random random = new Random(randomseed);\n\n int startHour=13;\n int startMinute=30;\n int startDay=10;\n int startMonth=4;\n int startYear=2017;\n String title=\"Birthday Party\";\n String description=ValuesGenerator.getString(random);\n //Construct a new Appointment object with the initial data\t \n Appt appt = new Appt(startHour,\n startMinute ,\n startDay ,\n startMonth ,\n startYear ,\n title,\n description);\n if ((iteration % 50) == 0){\n appt.setDescription(null);\n }\n for (int i = 0; i < NUM_TESTS; i++) {\n String methodName = ApptRandomTest.RandomSelectMethod(random);\n if (methodName.equals(\"isValid\")){\n int hour=(int) ValuesGenerator.getRandomIntBetween(random, 0, 23);\n appt.setStartHour(hour);\t\t\t\t\t\t \n int minute=(int) ValuesGenerator.getRandomIntBetween(random, 0, 59);\n appt.setStartMinute(minute);\t\t\t\t\t\t \n int day=(int) ValuesGenerator.getRandomIntBetween(random, 1, 31);\n appt.setStartDay(day);\t\t\t\t\t\t \n int month=(int) ValuesGenerator.getRandomIntBetween(random, 1, 12);\n appt.setStartMonth(month);\n //change to invalid hours\n hour=(int) ValuesGenerator.getRandomIntBetween(random, -10, -1);\n appt.setStartHour(hour);\n hour=(int) ValuesGenerator.getRandomIntBetween(random, 0, 23);\n appt.setStartHour(hour);\n hour=(int) ValuesGenerator.getRandomIntBetween(random, 24, 30);\n appt.setStartHour(hour);\n hour=(int) ValuesGenerator.getRandomIntBetween(random, 0, 23);\n appt.setStartHour(hour);\n //change to invalid minutes\n minute=(int) ValuesGenerator.getRandomIntBetween(random, -20, -1);\n appt.setStartMinute(minute);\n minute=(int) ValuesGenerator.getRandomIntBetween(random, 0, 59);\n appt.setStartMinute(minute);\n minute=(int) ValuesGenerator.getRandomIntBetween(random, 60, 70);\n appt.setStartMinute(minute);\n minute=(int) ValuesGenerator.getRandomIntBetween(random, 0, 59);\n appt.setStartMinute(minute);\n //change to invalid days\n day=(int) ValuesGenerator.getRandomIntBetween(random, -10, 0);\n appt.setStartDay(day);\n day=(int) ValuesGenerator.getRandomIntBetween(random, 1, 31);\n appt.setStartDay(day);\n day=(int) ValuesGenerator.getRandomIntBetween(random, 32, 40);\n appt.setStartDay(day);\n day=(int) ValuesGenerator.getRandomIntBetween(random, 1, 31);\n appt.setStartDay(day);\n //change to invalid months\n month=(int) ValuesGenerator.getRandomIntBetween(random, -10, 0);\n appt.setStartMonth(month);\t\t\t\t\t\t \n month=(int) ValuesGenerator.getRandomIntBetween(random, 1, 12);\n appt.setStartMonth(month);\n month=(int) ValuesGenerator.getRandomIntBetween(random, 12, 20);\n appt.setStartMonth(month);\n month=(int) ValuesGenerator.getRandomIntBetween(random, 1, 12);\n appt.setStartMonth(month);\n }\n\n }\n\n elapsed = (Calendar.getInstance().getTimeInMillis() - startTime);\n if((iteration%10000)==0 && iteration!=0 )\n System.out.println(\"elapsed time: \"+ elapsed + \" of \"+TestTimeout);\n\n }\n\n\n System.out.println(\"Done testing...\");\n }", "public void randomNumberTest() {\n //Generating streams of random numbers\n Random random = new Random();\n random.ints(5)//(long streamSize, double randomNumberOrigin, double randomNumberBound)\n .sorted()\n .forEach(System.out::println);\n /*\n -1622707470\n -452508309\n 1346762415\n 1456878623\n 1783692417\n */\n }", "@Test\r\n\tvoid testGetRandomLetterAShouldReturnTrue() {\r\n\t\tString[] alphabet = { \"e\", \"a\", \"i\", \"o\", \"n\", \"r\", \"t\", \"l\", \"s\", \"u\", \"d\", \"g\", \"b\", \"c\", \"m\", \"p\", \"f\", \"h\",\r\n\t\t\t\t\"v\", \"w\", \"y\", \"k\", \"j\", \"x\", \"q\", \"z\" };\r\n\t\tfor (int count = 0; count < 10000; count++) {\r\n\t\t\tRandomLetter a2z = new RandomLetter();\r\n\t\t\tif (!Arrays.asList(alphabet).contains(a2z.getRandomLetter())) {\r\n\t\t\t\tfail(\"returned a value that was not in the alphabet ---\" + a2z.getRandomLetter());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n public void genRandom() {\n runAndWait(() -> genRandom(10_000, 500, 1), 32, 2000);\n runAndWait(() -> genRandom(10_000, 500, 100), 32, 2000);\n runAndWait(() -> genRandom(250_000, 4000, 50), 4, 5_000);\n }", "@Test\n\t\tpublic void woeIsMeUnreachabletest() {\n\t\t\tassertTrue(System.currentTimeMillis() > 0);\n\t\t}", "public void addRandoms() {\n //Add random boulders on tiles that aren't Lava\n int tileNumber;\n int selector;\n Tile t;\n String tileTexture;\n Random random = new Random();\n SquareVector playerPos = getPlayerEntity().getPosition();\n int tileCount = GameManager.get().getWorld().getTiles().size();\n AbstractWorld world = GameManager.get().getWorld();\n int randIndex;\n\n for (int i = 0; i < 20; i++) {\n //Get respective volcano tile (5 <= Lava tiles Index <= 8\n do {\n randIndex = random.nextInt(tileCount);\n t = world.getTile(randIndex);\n } while (t.getCoordinates().isCloseEnoughToBeTheSame(playerPos));\n\n tileTexture = t.getTextureName();\n tileNumber = Integer.parseInt(tileTexture.split(\"_\")[1]);\n\n selector = random.nextInt(2);\n if (tileNumber < 5 && tileNumber > 1 && selector == 1 && !t.hasParent()) {\n entities.add(new Rock(t, true));\n } else if (t != null && (tileNumber == 3 || tileNumber == 4) &&\n selector == 0 && !t.hasParent()) {\n entities.add(new VolcanoBurningTree(t, true));\n } else {\n i--;\n }\n }\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "@Test\n void doEffectshotgun() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"shotgun\");\n Weapon w9 = new Weapon(\"shotgun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w9);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w9.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(0));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n try{\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(0));\n\n s.add(Board.getSquare(1));\n try{\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"base\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 6 && victim.getPlayerPosition() == Board.getSquare(1));\n\n s.clear();\n s.add(Board.getSpawnpoint('b'));\n try {\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"base\", null, null, p, players, s); //A choice of yours is yours\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n players.clear();\n players.add(victim);\n s.clear();\n try {\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n players.clear();\n players.add(victim);\n s.clear();\n try{\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"alt\", null, null, p, players, null); //A choice of yours is wrong\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n }", "@Test\n\tpublic void check_distribution() {\n\t\t// todo\n UnicodeSet alphabet = LocaleData.getExemplarSet(ULocale.FRENCH, LocaleData.ES_STANDARD);\n Transition transition = new Transition(1.0f/(float)(alphabet.size()), ULocale.FRENCH);\n Set<Character> observed = new HashSet<>();\n Transition runtimeTransition = transition.build();\n float step = 1.0f/alphabet.size();\n for(float i = 0f; i < 1.0; i+= step) {\n Character letter = runtimeTransition.pick(i);\n Assert.assertFalse(String.format(\"Letters were meant to be generated deterministically, so it should \" +\n \"not be possible to see %s again after already seeing letters %s\", letter,\n observed.toString()),\n observed.contains(letter));\n observed.add(letter);\n }\n Assert.assertEquals(String.format(\"It was expected that all %d possible letters would be generated, but \" +\n \"actually it was %d.\", alphabet.size(), observed.size()), alphabet.size(), observed.size());\n\t}", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "public static int randomGet() { return 0; }", "@Test\n\tpublic void testHardPuzzleGeneration() {\n\t}", "public void spin () {\n //Decide outcome.\n Random rand=new Random();\n result=rand.nextInt(100)+1+prevSpin;\n\n /**\n * Set the images\n * Image 1-11 are pictures listed bellow. 12 is wild.\n */\n //Loss\n if (result<=10) {\n //Prevention of loss streak\n prevSpin+=1;\n spinsLeft-=1;\n\n img1=rand.nextInt(12)+1;\n if (img1==12) {\n img2=rand.nextInt(11)+1;\n }\n else {\n img2=rand.nextInt(12)+1;\n }\n\n if (img1==img2) {\n img3=rand.nextInt(11)+1;\n while (img1==img3) {\n img3=rand.nextInt(11)+1;\n }\n }\n else if (img1==12 || img2==12) {\n img3=rand.nextInt(11)+1;\n while (img1==img3 || img2==img3) {\n img3=rand.nextInt(11)+1;\n }\n }\n else {\n img3=rand.nextInt(12)+1;\n }\n }\n\n //Cherry (1)\n else if (11<=result && result<=27) {\n prevSpin=0;\n spinsLeft-=1;\n score+=10;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=1;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=1;\n if (rand.nextInt(wildChance)+1==1 && (img1==1 || img2==1))\n img3=12;\n else\n img3=1;\n }\n\n //Pine tree (2)\n else if (28<=result && result<=38) {\n prevSpin=0;\n spinsLeft-=1;\n score+=20;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=2;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=2;\n if (rand.nextInt(wildChance)+1==1 && (img1==2 || img2==2))\n img3=12;\n else\n img3=2;\n }\n\n //\"Bar\" (3)\n else if (39<=result && result<=49) {\n prevSpin=0;\n spinsLeft-=1;\n score+=40;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=3;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=3;\n if (rand.nextInt(wildChance)+1==1 && (img1==3 || img2==3))\n img3=12;\n else\n img3=3;\n }\n\n //Bell (4)\n else if (50<=result && result<=58) {\n prevSpin=0;\n spinsLeft-=1;\n score+=60;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=4;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=4;\n if (rand.nextInt(wildChance)+1==1 && (img1==4 || img2==4))\n img3=12;\n else\n img3=4;\n }\n\n //Snowflake (5)\n else if (59<=result && result<=67) {\n prevSpin=0;\n spinsLeft-=1;\n score+=100;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=5;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=5;\n if (rand.nextInt(wildChance)+1==1 && (img1==5 || img2==5))\n img3=12;\n else\n img3=5;\n }\n\n //Mead tankard (6)\n else if (68<=result && result<=75) {\n prevSpin=0;\n spinsLeft-=1;\n score+=150;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=6;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=6;\n if (rand.nextInt(wildChance)+1==1 && (img1==6 || img2==6))\n img3=12;\n else\n img3=6;\n }\n\n //Snowball (7)\n else if (76<=result && result<=82) {\n prevSpin=0;\n spinsLeft-=1;\n score+=250;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=7;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=7;\n if (rand.nextInt(wildChance)+1==1 && (img1==7 || img2==7))\n img3=12;\n else\n img3=7;\n }\n\n //Moose (8)\n else if (83<=result && result<=88) {\n prevSpin=0;\n spinsLeft-=1;\n score+=350;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=8;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=8;\n if (rand.nextInt(wildChance)+1==1 && (img1==8 || img2==8))\n img3=12;\n else\n img3=8;\n }\n\n //Coin (9)\n else if (89<=result && result<=93) {\n prevSpin=0;\n score+=500;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=9;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=9;\n if (rand.nextInt(wildChance)+1==1 && (img1==9 || img2==9))\n img3=12;\n else\n img3=9;\n }\n\n //\"7\" (10)\n else if (94<=result && result<=98) {\n prevSpin=0;\n spinsLeft+=2;\n score+=777;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=10;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=10;\n if (rand.nextInt(wildChance)+1==1 && (img1==10 || img2==10))\n img3=12;\n else\n img3=10;\n }\n\n //Barbarian \"Bar\" (11)\n else if (99<=result) {\n //Prevention of \"high win\" streak\n prevSpin-=1;\n spinsLeft+=9;\n score+=1000;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=11;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=11;\n if (rand.nextInt(wildChance)+1==1)\n img3=12;\n else\n img3=11;\n }\n\n else {\n System.out.println(\"Result Error.\");\n }\n }", "@Test\n void doEffectpowerglove() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"power glove\");\n Weapon w10 = new Weapon(\"power glove\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w10);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w10.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n try {\n p.getPh().getWeaponDeck().getWeapon(w10.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(p.getPlayerPosition() == Board.getSquare(1) && victim.getPb().countDamages() == 1 && victim.getPb().getMarkedDamages('b') == 2);\n\n p.setPlayerPosition(Board.getSquare(0));\n s.add(Board.getSquare(1));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n players.clear();\n players.add(victim);\n s.add(Board.getSpawnpoint('b'));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSpawnpoint('b'));\n players.add(victim2);\n try{\n p.getPh().getWeaponDeck().getWeapon(w10.getName()).doEffect(\"alt\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(p.getPlayerPosition() == Board.getSpawnpoint('b') && victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 2);\n\n p.setPlayerPosition(Board.getSquare(0));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(1));\n s.add(Board.getSpawnpoint('b'));\n try{\n p.getPh().getWeaponDeck().getWeapon(w10.getName()).doEffect(\"alt\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { System.out.println(\"ERROR\");}\n\n assertTrue(p.getPlayerPosition() == Board.getSpawnpoint('b') && victim.getPb().countDamages() == 2);\n }", "@Test\n void doEffectPlasmaGun() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"plasma gun\");\n Weapon w17 = new Weapon(\"plasma gun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w17);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w17.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n p.setPlayerPosition(Board.getSpawnpoint(2));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(6));\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"opt1\", \"base\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && p.getPlayerPosition() == Board.getSquare(6));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(1));\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"base\", \"opt1\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && p.getPlayerPosition() == Board.getSquare(1));\n\n p.setPlayerPosition(Board.getSpawnpoint(2));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(6));\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"opt1\", \"base\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && p.getPlayerPosition() == Board.getSquare(6));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSpawnpoint('b'));\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"base\", \"opt2\", \"opt1\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && p.getPlayerPosition() == Board.getSpawnpoint('b'));\n }", "long random(long ws) {\r\n\t\treturn (System.currentTimeMillis() % ws);\r\n\t}", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n public void randomTest() {\n Deck deck1 = new DeckImplementation();\n Deck deck2 = new DeckImplementation();\n\n assertEquals(\"Wrong size!\", 180, deck1.numberOfCardsRemaining());\n assertEquals(\"Wrong size!\", 180, deck2.numberOfCardsRemaining());\n\n assertEquals(\"Decks are equal!\", false, deck1.equals(deck2));\n }", "@Test\n public void badChoicePunisher() {\n Edge[] edgelist = {new Edge(new int[] {1, 7}), new Edge(new int[] {1, 8}),\n new Edge(new int[] {7, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist, 8, 2);\n\n\n Edge[] edgelist1 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist1, 7, 1);\n\n Edge[] edgelist2 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5}), new Edge(new int[] {2, 8})};\n timeMethod(edgelist2, 8, 2);\n\n Edge[] edgelist3 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist3, 7, 1);\n }", "public void testRandomChainsWithLargeStrings() throws Throwable {\n int numIterations = TEST_NIGHTLY ? atLeast(20) : 3;\n Random random = random();\n for (int i = 0; i < numIterations; i++) {\n try (MockRandomAnalyzer a = new MockRandomAnalyzer(random.nextLong())) {\n if (VERBOSE) {\n System.out.println(\"Creating random analyzer:\" + a);\n }\n try {\n checkRandomData(\n random,\n a,\n 50 * RANDOM_MULTIPLIER,\n 80,\n false,\n false /* We already validate our own offsets... */);\n } catch (Throwable e) {\n System.err.println(\"Exception from random analyzer: \" + a);\n throw e;\n }\n }\n }\n }", "@Test\n void doEffectflamethrower() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"flamethrower\");\n Weapon w7 = new Weapon(\"flamethrower\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w7);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w7.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n Terminator t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w7.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && t.getPb().countDamages() == 1);\n\n players.get(1).setPlayerPosition(Board.getSquare(5));\n try{\n p.getPh().getWeaponDeck().getWeapon(w7.getName()).doEffect(\"base\", null, null, p, players, null); //\"A choice of yours is wrong\"\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && t.getPb().countDamages() == 1);\n\n players.remove(1);\n\n try {\n p.getPh().getWeaponDeck().getWeapon(w7.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n RealPlayer p2 = new RealPlayer('v', \"ciccia\");\n p2.setPlayerPosition(Board.getSquare(1));\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.clear();\n s.add(victim.getPlayerPosition());\n s.add(t.getPlayerPosition());\n\n try {\n p.getPh().getWeaponDeck().getWeapon(w7.getName()).doEffect(\"alt\", null, null, p, null, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && p2.getPb().countDamages() == 2 && t.getPb().countDamages() == 1);\n }", "private int randomWeight()\n {\n return dice.nextInt(1000000);\n }", "double getMissChance();", "private int randomPiece() {\n return (int)(Math.random()*N_PIECES);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"probToLogOdds: probability must be in [0,1] \");\n assertEquals(\"probtologod: prob must be in [0,1] \", string0);\n }", "void random_alien_fires() {\n Random rand = new Random();\n int alien_index = rand.nextInt(aliens.size());\n alien_shoot_missile(aliens.get(alien_index));\n }", "@Test\n\tpublic void testGenerateaPlaybleHardSudoku() {\n\t\tSudoku s = SudokuGenerator.generatePlayableRandomSudoku(SudokuLevel.DIFFICULT);\n\t\tSystem.out.println(s);\n\t\tassertTrue(s.isValid());\n\t\t\n\t}" ]
[ "0.69159466", "0.6586367", "0.6415478", "0.64059025", "0.63963825", "0.6388817", "0.6361165", "0.6323716", "0.62989444", "0.62841934", "0.62501997", "0.62399906", "0.62140644", "0.6207537", "0.6188671", "0.61576986", "0.61317265", "0.6108637", "0.610547", "0.60985017", "0.60908806", "0.6090096", "0.60889715", "0.6083253", "0.60680234", "0.60645384", "0.60517764", "0.60512936", "0.60490817", "0.6044135", "0.6037854", "0.60362625", "0.6031888", "0.6027257", "0.6026285", "0.60191834", "0.60162723", "0.60131276", "0.6005953", "0.5993673", "0.59788156", "0.59686744", "0.5967172", "0.5962415", "0.59462816", "0.5944025", "0.5942934", "0.5941071", "0.5940716", "0.5934391", "0.59341085", "0.5933812", "0.592864", "0.5927347", "0.5925947", "0.5925837", "0.5923372", "0.5918566", "0.5906723", "0.59003514", "0.5898254", "0.58976847", "0.58900064", "0.58868426", "0.5884633", "0.58801997", "0.5876633", "0.58755493", "0.5874712", "0.58708274", "0.58696425", "0.5868067", "0.58610296", "0.585725", "0.5857156", "0.58546066", "0.5853575", "0.5852902", "0.5850009", "0.584971", "0.5849493", "0.58492315", "0.58427775", "0.5834429", "0.5833424", "0.58299047", "0.5823531", "0.5821622", "0.5820077", "0.5819442", "0.5815874", "0.58151877", "0.58112764", "0.5811122", "0.580763", "0.5807395", "0.58046234", "0.5799883", "0.57993424", "0.57983965", "0.57961166" ]
0.0
-1
recuperer la liste de categories avec leur activites
@GET("categories/activities") Call<List<ActivitiesByCategorieOutput>> getActivitiesByCategory();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void lanzarListadoCategorias() {\n\t\tIntent i = new Intent(this, ListCategorias.class);\n\t\tstartActivity(i);\n\t\t\n\t}", "private void listadoCategorias() {\r\n sessionProyecto.getCategorias().clear();\r\n sessionProyecto.setCategorias(itemService.buscarPorCatalogo(CatalogoEnum.CATALOGOPROYECTO.getTipo()));\r\n }", "public ArrayList<Categoria> listarCategorias();", "public List<Categorie> getAllCategories();", "public static void consultarListaCategorias(Activity activity) {\n ConexionSQLite conectar = new ConexionSQLite(activity, BASE_DATOS, null, 1);\n SQLiteDatabase db = conectar.getReadableDatabase();\n CategoriaVo categoria = null;\n listaCategorias = new ArrayList<CategoriaVo>();\n Cursor cursor = db.rawQuery(\"SELECT * FROM \"+TABLA_CATEGORIAS, null);\n\n while (cursor.moveToNext()) {\n categoria = new CategoriaVo();\n categoria.setId(cursor.getInt(0));\n categoria.setCategoria(cursor.getString(1));\n categoria.setDescripcion(cursor.getString(2));\n\n listaCategorias.add(categoria);\n }\n db.close();\n }", "private void listCategory() {\r\n \r\n cmbCategoryFilter.removeAllItems();\r\n cmbCategory.removeAllItems();\r\n \r\n cmbCategoryFilter.addItem(\"All\");\r\n for (Category cat : Category.listCategory()) {\r\n cmbCategoryFilter.addItem(cat.getName());\r\n cmbCategory.addItem(cat.getName());\r\n }\r\n \r\n }", "private ArrayList<Integer> getActiveCategories() {\n\n\t\tArrayList<Integer> activeCategories = new ArrayList<Integer>();\n\t\tfor (Category cat : allCategories)\n\t\t\tif (cat.isActive())\n\t\t\t\tactiveCategories.add(cat.getId());\n\n\t\treturn activeCategories;\n\n\t}", "List<Category> getAllCategories();", "public List<String> getCategories();", "public controladorCategorias() {\r\n }", "List<Category> lisCat() {\n return dao.getAll(Category.class);\n }", "List<Category> selectCategoryList();", "@Override\r\n\tpublic List<Category> list() {\n\t\treturn categories;\r\n\t}", "public void LlenarC(){\n for(int i=0;i< new GestionCategorias().getListCategoria().size();i++){\n catBox.addItem(new GestionCategorias().getListCategoria().get(i).getCat_nombre());\n \n }\n }", "public Collection<Categoria> listar() {\n\t\tQuery q = manager.createQuery(\"SELECT p FROM Categoria p\");\n\t\treturn (Collection<Categoria>) q.getResultList();\n\t}", "WebBookNewsCateListResult listAllBookNewsCategories();", "public List<Categoria> listarCategorias(){\n //este metodo devuelve una lista.\n return categoriaRepo.findAll(); \n\n }", "@Override\n\tpublic List<Categoryb> GetCategpryb() {\n\t\treturn null;\n\t}", "private void getCategoryList() {\n jsonArray = dataBaseHelper.getCategoriesFromDB();\n if (jsonArray != null && jsonArray.length() > 0) {\n rvCategories.setVisibility(View.VISIBLE);\n setupCategoryListAdapter(jsonArray);\n }else {\n rvCategories.setVisibility(View.GONE);\n Toast.makeText(getActivity(), Constants.ERR_NO_CATEGORY_FOUND, Toast.LENGTH_SHORT).show();\n }\n }", "@GetMapping\n\t public List<Categories> touslescategories() {\n\t\treturn catsociete.findAll();}", "public static List<Categorias> obtenerCategorias(){\n List<Categorias> categorias = new ArrayList<>();\n \n Categorias c = new Categorias();\n \n c.conectar();\n \n c.crearQuery(\"select * from categoria_libro\");\n \n ResultSet informacion = c.getResultSet();\n \n try {\n while (informacion.next())\n categorias.add(new Categorias(informacion));\n } catch (Exception error) {}\n \n c.desconectar();\n \n return categorias;\n }", "@Override\r\n\tpublic List<Categorie> getAllCategorie() {\n\t\treturn cateDao.getAllCategorie();\r\n\t}", "public String categoryList(CategoryDetails c);", "@Override\n\tpublic List<Categories> getListCat() {\n\t\treturn categoriesDAO.getListCat();\n\t}", "public List<CategoriaVO> mostrarCategorias() {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tCategoriaDAO OwlDAO = new CategoriaDAO();\n\t\t\tList<CategoriaVO> resultado = new ArrayList();\n\t\t\tresultado = OwlDAO.obtenerCategorias(mysql);\n\t\t\treturn resultado;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\t\t\treturn null;\n\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}", "public List<DVDCategorie> listDVDCategorie();", "public ObservableList<String> getCategories()\n {\n ArrayList<Category> categoryList = rentalModel.getCategoryList();\n ArrayList<String> categoryListString = new ArrayList<>();\n for (int i = 0; i < categoryList.size(); i++)\n {\n categoryListString.add(categoryList.get(i).toString());\n }\n categoriesList = FXCollections.observableArrayList(categoryListString);\n return categoriesList;\n }", "public List<Cvcategory> findAllCvcategories();", "public final void readCategoria() {\n cmbCategoria.removeAllItems();\n cmbCategoria.addItem(\"\");\n categoryMapCategoria.clear();\n AtividadePreparoDAO atvprepDAO = new AtividadePreparoDAO();\n for (AtividadePreparo atvprep : atvprepDAO.readMotivoRetrabalho(\"Categoria\")) {\n Integer id = atvprep.getMotivo_retrabalho_id();\n String name = atvprep.getMotivo_retrabalho();\n cmbCategoria.addItem(name);\n categoryMapCategoria.put(id, name);\n }\n }", "List<ProductCategory> getAll();", "public void librosPorCategorian() {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tCategoriaDAO OwlDAO = new CategoriaDAO();\n\t\t\tList<LibroVO> resultado = new ArrayList();\n\t\t\tOwlDAO.actualizarCategorian(mysql);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}", "private void loadCategories() {\n\t\tcategoryService.getAllCategories(new CustomResponseListener<Category[]>() {\n\t\t\t@Override\n\t\t\tpublic void onHeadersResponse(Map<String, String> headers) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onErrorResponse(VolleyError error) {\n\t\t\t\tLog.e(\"EditTeamProfileActivity\", \"Error while loading categories\", error);\n\t\t\t\tToast.makeText(EditTeamProfileActivity.this, \"Error while loading categories \" + error.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onResponse(Category[] response) {\n\t\t\t\tCollections.addAll(categories, response);\n\n\t\t\t\tif (null != categoryRecyclerAdapter) {\n\t\t\t\t\tcategoryRecyclerAdapter.setSelected(0);\n\t\t\t\t\tcategoryRecyclerAdapter.notifyDataSetChanged();\n\t\t\t\t}\n\n\t\t\t\tupdateSelectedCategory();\n\t\t\t}\n\t\t});\n\t}", "private void buildCategories() {\n List<Category> categories = categoryService.getCategories();\n if (categories == null || categories.size() == 0) {\n throw new UnrecoverableApplicationException(\n \"no item types found in database\");\n }\n\n Map<Category, List<Category>> categoriesMap = new HashMap<Category, List<Category>>();\n for (Category subCategory : categories) {\n Category parent = subCategory.getParentCategory();\n if (categoriesMap.get(parent) == null) {\n categoriesMap.put(parent, new ArrayList<Category>());\n categoriesMap.get(parent).add(subCategory);\n } else {\n categoriesMap.get(parent).add(subCategory);\n }\n }\n\n this.allCategories = categories;\n this.sortedCategories = categoriesMap;\n }", "public void chooseCategory(String category) {\n for (Category c : categories) {\n if (c.getName().equals(category)) {\n if (c.isActive()) {\n c.setInActive();\n } else {\n c.setActive();\n }\n }\n }\n for (int i = 0; i < categories.size(); i++) {\n System.out.println(categories.get(i).getName());\n System.out.println(categories.get(i).isActive());\n }\n }", "public Categories getCategories() {\n return this.categories;\n }", "public void getCategorory(){\n\t\tDynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(AssetCategory.class, \"category\", PortalClassLoaderUtil.getClassLoader());\n\t\ttry {\n\t\t\tList<AssetCategory> assetCategories = AssetCategoryLocalServiceUtil.dynamicQuery(dynamicQuery);\n\t\t\tfor(AssetCategory category : assetCategories){\n\t\t\t\tlog.info(category.getName());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}", "@Override\n public void gotCategories(ArrayList<String> categories) {\n ArrayAdapter<String> categoryAdapter = new ArrayAdapter<>(this,\n android.R.layout.simple_list_item_1 , categories);\n categoriesListView.setAdapter(categoryAdapter);\n }", "@Override\n\tpublic ArrayList<Categoria> getCategorie() {\n\t\tDB db = getDB();\n\t\tArrayList<Categoria> categorie = new ArrayList<Categoria>();\n\t\tMap<Long, Categoria> list = db.getTreeMap(\"categorie\");\n\t\tfor(Map.Entry<Long, Categoria> categoria : list.entrySet())\n\t\t\tif(categoria.getValue() instanceof Categoria)\n\t\t\t\tcategorie.add((Categoria)categoria.getValue());\n\t\treturn categorie;\n\t}", "@Override\n public void loadCategories() {\n loadCategories(mFirstLoad, true);\n mFirstLoad = false;\n }", "public ArrayList<Category> getCategories() {\n ArrayList<Category> categories = new ArrayList<>();\n Cursor cursor = database.rawQuery(\"SELECT * FROM tbl_categories\", null);\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n Category category = new Category();\n category.setCategory_id(cursor.getInt(cursor.getColumnIndex(\"category_id\")));\n category.setCategory_name(cursor.getString(cursor.getColumnIndex(\"category_name\")));\n\n\n categories.add(category);\n cursor.moveToNext();\n }\n cursor.close();\n return categories;\n }", "List<Channel> getJXCategory();", "@Override\n\tpublic List<Categorya> GetCategorya() {\n\t\treturn null;\n\t}", "public List<Category> getCategories() {\n CategoryRecords cr = company.getCategoryRecords();\n List<Category> catList = cr.getCategories();\n return catList;\n }", "@RequestMapping(\"\")\n\tpublic ModelAndView category(){\n\t\tJSONObject json = categoryService.getAllCategorys();\n\t\tModelAndView mv = new ModelAndView(\"category/category\");\n\t\tmv.addObject(\"categories\",json);\n\t\tmv.addObject(\"active\", \"2\");\n\t\treturn mv;\n\t}", "@Override\n\tpublic List<Category> getAllCategories() {\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(\"FROM \"+Category.class.getName());\n\t\treturn (List<Category>)query.list();\t\t\n\t}", "public static ArrayList<String> getCategories() {\n String query;\n ArrayList<String> categories = new ArrayList<String>();\n\n try {\n Connection con = Database.createDBconnection();\n Statement stmt = con.createStatement();\n query = \"SELECT category FROM category;\";\n ResultSet rs = stmt.executeQuery(query);\n\n while(rs.next()) {\n categories.add(rs.getString(\"category\"));\n }\n\n Database.closeDBconnection(con);\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n return categories;\n }", "public List<ProductCatagory> getAllCategory() throws BusinessException;", "public List<Category> getAllCategories() {\n\t\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\tQuery q = session.createQuery(\"from Category\");\n\t\t\tList<Category> catlist = q.list();\n\t\t\t\n\t\t\treturn catlist;\n\t\t}", "@Override\n public int getItemCount() {\n return categorieList.size();\n }", "public List<String> categories() {\n return this.categories;\n }", "List<Categorie> findAll();", "public View_Categoria() {\n c = new Categoria();\n daoCategoria = new Dao_CadastroCategoria();\n categorias = new ArrayList<>();\n initComponents();\n TextCodigo.setDocument(new LimitaDigitosNum(11));\n TextNome.setDocument(new LimitaDigitos(30));\n TextNomeCons.setDocument(new LimitaDigitos(30));\n atualizarTabela();\n inicio();\n }", "@Override\n\tpublic List<Category> list() {\n\t\tList<Category> list=(List<Category>)\n\t\tsessionFactory.getCurrentSession().createCriteria(Category.class).setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY).list();\n\t\treturn list;\n\t}", "public static ArrayList<AdminCategory> fetchCategoryList() {\r\n\r\n\t\tArrayList<AdminCategory> categoryList = new ArrayList<AdminCategory>();\r\n\r\n\t\tsqlQuery = \"SELECT categoryName, status, B.level,\" +\r\n\t\t\t\t\"(SELECT categoryName FROM flipkart_category A WHERE A.categoryID=C.parentID) AS parentCategory, \" +\r\n\t\t\t\t\"B.categoryID \" +\r\n\t\t\t\t\"FROM flipkart_category B, flipkart_path C \" +\r\n\t\t\t\t\"WHERE B.categoryID=C.categoryID ORDER BY B.level;\";\r\n\r\n\t\ttry{\r\n\t\t\tconn=DbConnection.getConnection();\r\n\t\t\tps=conn.prepareStatement(sqlQuery);\r\n\t\t\trs=ps.executeQuery();\r\n\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tAdminCategory category = new AdminCategory();\r\n\t\t\t\tcategory.setCategoryName(rs.getString(1));\r\n\t\t\t\tcategory.setStatus(rs.getInt(2));\r\n\t\t\t\tcategory.setLevel(rs.getInt(3));\r\n\t\t\t\tcategory.setParentCategory(rs.getString(4));\r\n\t\t\t\tcategory.setCategoryID(rs.getInt(5));\r\n\t\t\t\tcategoryList.add(category);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn categoryList;\r\n\t}", "@ModelAttribute(\"categories\")\r\n\tpublic List<Category> getCategoryList() {\r\n\t\treturn categoryDAO.list();\r\n\t}", "private Collection<IInstallableUnit>queryCategories(final IProgressMonitor monitor, IProvisioningAgent agent)\r\n\t{\t\t\r\n\t\tCollection<IInstallableUnit>iuSet = new LinkedList<IInstallableUnit>();\r\n\t\tIQueryable<IInstallableUnit> queryable = ((IProfileRegistry) agent\r\n\t\t\t\t.getService(IProfileRegistry.SERVICE_NAME))\r\n\t\t\t\t.getProfile(PROFILE_ID);\r\n\r\n\t\tif (queryable != null)\r\n\t\t{\r\n\t\t\t// Kategorien abfragen\r\n\t\t\tIQueryResult<IInstallableUnit> resultCategory = queryable.query(\r\n\t\t\t\t\tQueryUtil.createIUCategoryQuery(), monitor);\r\n\t\t\t\r\n\t\t\tIterator<IInstallableUnit> itMembers = resultCategory.iterator();\r\n\t\t\twhile (itMembers.hasNext())\r\n\t\t\t{\r\n\t\t\t\tIInstallableUnit uiMember = itMembers.next();\r\n\t\t\t\tiuSet.add(uiMember);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn iuSet;\r\n\t}", "public List<Category> getAllAvailableCategory() {\n\t\treturn categoryManager.getAllAvailable();\n\t}", "public List<VehicleCategoryMasterBean> categoryList() throws Exception;", "public List<Category> list() {\n\t\tSession session = getSession();\n\n\t\tQuery query = session.createQuery(\"from Category\");\n\t\tList<Category> categoryList = query.list();\n session.close();\n\t\treturn categoryList;\n\t}", "public ArrayList<Categories> getAllCategories() {\n\t\t\n\t\tCategories cg;\n\t\tArrayList<Categories> list=new ArrayList<Categories>();\n\t\t\n\t\ttry {\n\t\t\t String query=\"select * from categories;\";\n\t\t\tPreparedStatement pstm=con.prepareStatement(query);\n\t\t\tResultSet set= pstm.executeQuery();\n\t\t\t\n\t\t\twhile(set.next()) {\n\t\t\t\tint cid=set.getInt(1);\n\t\t\t\tString cname=set.getString(2);\n\t\t\t\tString cdes=set.getString(3);\n\t\t\t\t\n\t\t\t\tcg=new Categories(cid, cname, cdes);\n\t\t\t\tlist.add(cg);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "@Override\n\tpublic List<Category> getAllCategory() {\n\t\treturn category.selectAllCategory();\n\t}", "@Override\r\n\tpublic List<Category> getAllCategory() {\n\t\treturn categoryDao.getAll();\r\n\t}", "public List<Category> getlist() {\n\t\tSession session = getSession();\n\t\t\n\t\tQuery query = session.createQuery(\"from Category\");\n\t\tList<Category> categoryList = query.list();\n\t\treturn categoryList;\n\t}", "@Transactional\r\n\tpublic List<CmVocabularyCategory> getCmVocabularyCategorys() {\r\n\t\treturn dao.findAllWithOrder(CmVocabularyCategory.class, \"modifyTimestamp\", false);\r\n\t}", "public List<Category> getListCategory() {\n List<Category> list = new ArrayList<>();\n SQLiteDatabase sqLiteDatabase = dbHelper.getWritableDatabase();\n\n Cursor cursor = sqLiteDatabase.rawQuery(\"SELECT * FROM Category\", null);\n while (cursor.moveToNext()) {\n int id =cursor.getInt(0);\n\n Category category = new Category(id, cursor.getString(cursor.getColumnIndex(\"Name\")), cursor.getString(cursor.getColumnIndex(\"Image\")));\n Log.d(\"TAG\", \"getListCategory: \" + category.getId());\n list.add(category);\n }\n cursor.close();\n dbHelper.close();\n return list;\n }", "public String getManageCategories( HttpServletRequest request )\r\n {\r\n setPageTitleProperty( PAGE_TITLE_MANAGE_CATEGORY );\r\n\r\n CategoryFilter filter = getCategoryFilter( request );\r\n List<String> orderList = new ArrayList<String>( );\r\n orderList.add( BilletterieConstants.NAME );\r\n filter.setOrders( orderList );\r\n filter.setOrderAsc( true );\r\n\r\n // Fill the model\r\n Map<String, Object> model = new HashMap<String, Object>( );\r\n\r\n // Obtention des objets sauvegardés en session\r\n DataTableManager<ShowCategoryDTO> dataTableToUse = getDataTable( request, filter );\r\n model.put( MARK_DATA_TABLE_CATEGORY, dataTableToUse );\r\n\r\n model.put( TicketsConstants.MARK_NB_ITEMS_PER_PAGE, String.valueOf( _nItemsPerPage ) );\r\n model.put( TicketsConstants.MARK_FILTER, filter );\r\n\r\n HtmlTemplate template = AppTemplateService.getTemplate( TEMPLATE_MANAGE_CATEGORIES, getLocale( ), model );\r\n\r\n // opération nécessaire pour eviter les fuites de mémoires\r\n dataTableToUse.clearItems( );\r\n\r\n return getAdminPage( template.getHtml( ) );\r\n }", "public static List<Category> getAllCategory() {\n\n List<Category> categoryList = new ArrayList<>();\n try {\n categoryList = Category.listAll(Category.class);\n } catch (Exception e) {\n\n }\n return categoryList;\n\n }", "@Override\n\tpublic List<Category> getCategories(){\n\t\treturn null;\n\t}", "public List<Category> getAllCategories() {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tQuery query = (Query) session.createQuery(\"from Category\");\r\n\t\tList<Category> categories = query.list();\r\n\r\n\t\treturn categories;\r\n\t}", "@Override\n\tpublic List<CategoryVO> mainCategory() {\n\t\treturn mapper.mainCategory();\n\t}", "public void llenarComboCategoria() {\n comboCategoria.removeAllItems();\n getIDCategoria();\n comboCategoria.setVisible(true);\n labelCategoria.setVisible(true);\n if (IDCategoria < 0) {\n comboCategoria.setVisible(false);\n comboCategoria.setEditable(false);\n labelCategoria.setVisible(false);\n this.repaint();\n } else {\n try {\n ResultSet resultado = buscador.getResultSet(\"select ID, valor from INSTANCIACATEGORIA where IDTIpoCategoria = \" + IDCategoria + \";\");\n while (resultado.next()) {\n String ID = resultado.getObject(\"ID\").toString();\n String valor = resultado.getObject(\"valor\").toString();\n comboCategoria.addItem(makeObj(valor, Integer.parseInt(ID)));\n }\n } catch (SQLException e) {\n System.out.println(\"*SQL Exception: *\" + e.toString());\n }\n }\n }", "public ArrayList<DataCategoria> listarCategorias(String nickNameRestaurante) throws Exception;", "void getCategories(Callback activity){\n this.activity = activity;\n String url = \"https://resto.mprog.nl/categories\";\n\n RequestQueue queue = Volley.newRequestQueue(context);\n try {\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(url, null, this, this);\n queue.add(jsonObjectRequest);\n }\n catch (Exception error){\n\n // Return an error message if the request is not succesfull\n Log.e(\"Request\", error.getMessage());\n }\n }", "public Vector<Vector<String>> getCategoryList()\r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\tString sql = \"SELECT * FROM categories\";\r\n\t\t\t\r\n\t\t\t//ResultSet rs= this.statement.executeQuery(sql);\t\t\r\n\t\t\tDataAccess data = new DataAccess();\r\n\t\t\tResultSet rs=data.getResultSet(sql);\t\t\r\n\t\t\tVector<Vector<String>> list= new Vector<Vector<String>>();\r\n\t\t\twhile (rs.next())\r\n\t\t\t{\r\n\t\t\t\tVector <String> result = new Vector <String>();\r\n\t\t\t\tresult.add(rs.getString(1));\r\n\t\t\t\tresult.add(rs.getString(2));\r\n\t\t\t\tresult.add(rs.getString(3));\t\t\t\t\t\t\r\n\t\t\t\tlist.add(result);\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\treturn list;\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch (Exception ex)\r\n\t\t{\r\n\t\t\tex.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public Collection<Integer> obterCategorias(Integer idConsumoTarifa) throws ErroRepositorioException;", "public List<String> getCategories(Boolean internationalSelected){\n\t\tif (internationalSelected) {\n\t\t\treturn _intCategories;\n\t\t}\n\t\telse {\n\t\t\treturn _nzCategories;\n\t\t}\n\t}", "List<Category> getAllCategories() throws DataBaseException;", "public static void afficherCategories(HttpServletRequest request){\n\t\trequest.setAttribute(\"categories\", ManagerProduit.getCategories());\n\t}", "public Categoria() {\n initComponents();\n desabilitarComponentes();\n carregarTabela();\n }", "@Override\n public Single<List<CategoryModel>> getCategories() {\n return api.getCategories().map(categories -> iVmMapper.mapToViewModel(categories));\n }", "public abstract ArrayList<DtPropuesta> listarPropuestasPorCategoria(String nombreCat);", "@Override\n\tpublic List<Category> getAllCategory() {\n\t\treturn dao.getAllCategory();\n\t}", "public List<CategoryDTO> getCategories(String bbbChannel, String siteId, List<String> relatedCategories) ;", "String getCategoria();", "public void selectCategory() {\n\t\t\r\n\t}", "public List<String> findAllCategories() {\r\n\t\tList<String> result = new ArrayList<>();\r\n\r\n\t\t// 1) get a Connection from the DataSource\r\n\t\tConnection con = DB.gInstance().getConnection();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// 2) create a PreparedStatement from a SQL string\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GET_CATEGORIES_SQL);\r\n\r\n\t\t\t// 3) execute the SQL\r\n\t\t\tResultSet resultSet = ps.executeQuery();\r\n\t\t\twhile (resultSet.next()) {\r\n\r\n\t\t\t\tString cat = resultSet.getString(1);\r\n\t\t\t\tresult.add(cat);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException se) {\r\n\t\t\tse.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tDB.gInstance().returnConnection(con);\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "@GetMapping(\"/active\")\n\t@ResponseStatus(code = HttpStatus.OK)\n\tpublic List<Category> viewActiveCategory() throws ServiceException {\n\t\tList<Category> viewResponse = categoryService.listActiveCategory();\n\t\treturn viewResponse;\n\n\t}", "private void initialiseCategories() {\n\t\t_nzCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/nz\");\n\t\t_intCategories = BashCmdUtil.bashCmdHasOutput(\"ls categories/international\");\n\t}", "private List<ExploreSitesCategory> createDefaultCategoryTiles() {\n List<ExploreSitesCategory> categoryList = new ArrayList<>();\n\n // Sport category.\n ExploreSitesCategory category = new ExploreSitesCategory(\n SPORT, getContext().getString(R.string.explore_sites_default_category_sports));\n category.setDrawable(getVectorDrawable(R.drawable.ic_directions_run_blue_24dp));\n categoryList.add(category);\n\n // Shopping category.\n category = new ExploreSitesCategory(\n SHOPPING, getContext().getString(R.string.explore_sites_default_category_shopping));\n category.setDrawable(getVectorDrawable(R.drawable.ic_shopping_basket_blue_24dp));\n categoryList.add(category);\n\n // Food category.\n category = new ExploreSitesCategory(\n FOOD, getContext().getString(R.string.explore_sites_default_category_cooking));\n category.setDrawable(getVectorDrawable(R.drawable.ic_restaurant_menu_blue_24dp));\n categoryList.add(category);\n return categoryList;\n }", "@Override\n public Collection<String> getMenuCategories() {\n return emptyCollection;\n }", "@GET(\"/empresa/listaCategoria\")\n public void listacategoria(Callback<List<Categoria>> callback);", "private List<JCheckBox> queryMainCategory() {\n\t\tList<JCheckBox> boxes = new ArrayList<>();\r\n\t\t//boxes.add(b);\r\n\t\t\r\n\t\tDBconn db = new DBconn();\r\n\t\t\r\n\t\tResultSet res = db.executeQuery(\"SELECT * FROM MAIN_CATE\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\twhile(res.next()) {\r\n\t\t\t\tJCheckBox b = new JCheckBox(res.getString(2));\t\t\t\t\r\n\t\t\t\tb.setActionCommand(Integer.toString(res.getInt(1)));\r\n\t\t\t\tboxes.add(b);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tdb.closeDB();\r\n\t\t\r\n\t\treturn boxes;\r\n\t}", "public static List<Category> getCategories(Context context) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getReadableDatabase();\r\n\r\n Cursor cursor = db.query(\r\n CategoryTable.TABLE_NAME,\r\n new String[]{CategoryTable._ID, CategoryTable.COLUMN_NAME_CATEGORY_NAME},\r\n CategoryTable.COLUMN_NAME_IS_DELETED + \" = 0\",\r\n null,\r\n null,\r\n null,\r\n CategoryTable.COLUMN_NAME_CATEGORY_NAME + \" ASC\"\r\n );\r\n\r\n List<Category> categories = new ArrayList<>();\r\n while(cursor.moveToNext()) {\r\n Category category = new Category();\r\n category._id = cursor.getInt(cursor.getColumnIndexOrThrow(CategoryTable._ID));\r\n category.category = cursor.getString(cursor.getColumnIndexOrThrow(CategoryTable.COLUMN_NAME_CATEGORY_NAME));\r\n categories.add(category);\r\n }\r\n cursor.close();\r\n db.close();\r\n\r\n return categories;\r\n }", "private void connect() throws ClassNotFoundException, SQLException {\r\n\r\n String[] main_categories = {\"Active Life\", \"Arts & Entertainment\",\r\n \"Automotive\", \"Car Rental\", \"Cafes\", \"Beauty & Spas\",\r\n \"Convenience Stores\", \"Dentists\", \"Doctors\", \"Drugstores\",\r\n \"Department Stores\", \"Education\", \"Event Planning & Services\",\r\n \"Flowers & Gifts\", \"Food\", \"Health & Medical\", \"Home Services\",\r\n \"Home & Garden\", \"Hospitals\", \"Hotels & Travel\", \"Hardware Stores\",\r\n \"Grocery\", \"Medical Centers\", \"Nurseries & Gardening\", \"Nightlife\",\r\n \"Restaurants\", \"Shopping\", \"Transportation\"};\r\n jList1.setCellRenderer(new CheckboxListRenderer());\r\n jList1.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\r\n jList1.addMouseListener(new MouseAdapter() {\r\n public void mouseClicked(MouseEvent event) {\r\n JList<CheckboxListItem> list\r\n = (JList<CheckboxListItem>) event.getSource();\r\n // Get index of item clicked\r\n int index = list.locationToIndex(event.getPoint());\r\n CheckboxListItem item = (CheckboxListItem) list.getModel()\r\n .getElementAt(index);\r\n // Toggle selected state\r\n item.setSelected(!item.isSelected());\r\n if (item.isSelected()) {\r\n finalCat.add(item.toString());\r\n// for(String t:finalCat){\r\n// System.out.println(t);\r\n// }\r\n } else {\r\n finalCat.remove(item.toString());\r\n }\r\n //System.out.println(\"Size of arraylist : \"+finalCat.size());\r\n // Repaint cell\r\n\r\n list.repaint(list.getCellBounds(index, index));\r\n }\r\n });\r\n for (int i = 0; i < main_categories.length; i++) {\r\n\r\n CheckboxListItem cbl = new CheckboxListItem(main_categories[i]);\r\n model.addElement(cbl);\r\n }\r\n }", "public static List<String> buscarCategoriaDoLivro(){\n List<String> categoriasLivros=new ArrayList<>();\n Connection connector=ConexaoDB.getConnection();\n String sql=\"Select category from bookCategory\";\n Statement statement=null;\n ResultSet rs=null;\n String nome;\n try {\n statement=connector.createStatement();\n rs=statement.executeQuery(sql);\n while (rs.next()) {\n nome=rs.getString(\"category\");\n categoriasLivros.add(nome);\n }\n \n } catch (Exception e) {\n \n }finally{\n ConexaoDB.closeConnection(connector, statement, rs);\n }\n return categoriasLivros;\n}", "public void seleccionarCategoria(String name);", "public void setCategories(Categories categories) {\n this.categories = categories;\n }", "public Categories_Adapter(List<Categorie> categories, Context context, IOnclickCategories listener) {\n this.categorieList = categories;\n this.context = context;\n this.listener = listener;\n }", "public Vector listActivityCategory() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT activity_type_id,activity_type_name FROM \"+ DBHelper.USEA_ACTIVITY_CATEGORY;\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n this.activityTypeId = rs.getString(1);\n this.activityTypeName = rs.getString(2);\n String [] activityList = {activityTypeId,activityTypeName};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }", "List<Category> getCategories() throws DAOExceptionHandler;", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Categories.this, ListApps.class);\n intent.putExtra(\"imId\", categorias.get(position).getImId());\n startActivity(intent);\n }" ]
[ "0.74750125", "0.72743285", "0.71164757", "0.706959", "0.69484085", "0.67717594", "0.67370796", "0.66612005", "0.66527176", "0.6618985", "0.6566364", "0.65529907", "0.6547373", "0.6476625", "0.6434115", "0.6383226", "0.6367536", "0.6364896", "0.63476723", "0.63444704", "0.6337336", "0.63227445", "0.63045764", "0.6298864", "0.62984747", "0.62783325", "0.6270473", "0.6266233", "0.6258637", "0.6202069", "0.62015325", "0.6193782", "0.6189744", "0.6184476", "0.6147606", "0.61449677", "0.6140353", "0.61326236", "0.6131337", "0.6123698", "0.6119071", "0.60917455", "0.60830003", "0.6059334", "0.6049074", "0.60402983", "0.6035287", "0.60285103", "0.6025712", "0.60230744", "0.6018709", "0.60186", "0.6001554", "0.59948593", "0.59938496", "0.5986115", "0.59807646", "0.5975804", "0.5968128", "0.59567004", "0.59564954", "0.59492016", "0.592873", "0.5926045", "0.591295", "0.5905463", "0.59037435", "0.58997065", "0.58990645", "0.58970165", "0.58897716", "0.58811426", "0.58736074", "0.5855782", "0.58554006", "0.58534324", "0.5850858", "0.5848486", "0.5846923", "0.5843937", "0.5839845", "0.583704", "0.583193", "0.5828222", "0.5827119", "0.58249533", "0.58218783", "0.5816361", "0.5812803", "0.58104664", "0.580104", "0.5799606", "0.5798072", "0.5783581", "0.57786006", "0.57637686", "0.57596767", "0.57512647", "0.5745438", "0.57424986", "0.5741008" ]
0.0
-1
CHECK : Is needed to bill Org's Billing manager?
private AssociateOrganizationBillingManagerResponse associateBillingManager(String orgId, String userId, ReactorCloudFoundryClient reactorCloudFoundryClient) { spaceServiceV2.associateAllSpaceUserRolesByOrgId(orgId, userId, targetSpaceRole(OrgRole.BillingManager), reactorCloudFoundryClient); return reactorCloudFoundryClient.organizations().associateBillingManager(AssociateOrganizationBillingManagerRequest.builder().organizationId(orgId).billingManagerId(userId).build()).block(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasBillingSetup();", "@Override\n\tpublic int checkBill(MarketTransaction t) {\n\t\treturn 0;\n\t}", "private void CustomerPaidCheck() {\n\t\tfloat CompanyDemand = Float.parseFloat(label_7.getText());\n\t\tif (CompanyDemand > 0) {\n\n\t\t\ttry {\n\t\t\t\tPreparedStatement statement = DBConnection.connection\n\t\t\t\t\t\t.prepareStatement(\"update customer_list set `Check` = 0 where Name = '\"\n\t\t\t\t\t\t\t\t+ name + \"'And Last_Name = '\" + lastName + \"' \");\n\t\t\t\tstatement.execute();\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tPreparedStatement statement = DBConnection.connection\n\t\t\t\t\t\t.prepareStatement(\"update customer_list set `Check` = 1 where Name = '\"\n\t\t\t\t\t\t\t\t+ name + \"'And Last_Name = '\" + lastName + \"' \");\n\t\t\t\tstatement.execute();\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private boolean checkCost(int owner, ItemType item) {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public static boolean isBillingReady ()\n {\n return (!CShell.isGuest() && !CShell.isPermaguest()\n && !MemberMailUtil.isPlaceholderAddress(CShell.creds.accountName));\n }", "boolean hasAccountBudget();", "private boolean checkBudgetAvailability(Company company, double bonusForDevelopers) {\n\n double requiredBudget = 0;\n\n for (Employee employee : company.getEmployees()) {\n\n double employeeSalary = 0;\n\n if (employee instanceof Developer) {\n employeeSalary = ((Developer) employee).getSalary(bonusForDevelopers);\n } else {\n employeeSalary = employee.getSalary();\n }\n requiredBudget += employeeSalary;\n }\n\n return requiredBudget >= company.getBudget();\n }", "boolean hasAccountBudgetProposal();", "boolean CanBuySettlement();", "boolean hasLedger();", "boolean hasPayment();", "boolean hasPayment();", "@Override\r\n\tpublic boolean checkBudget() {\n\t\treturn false;\r\n\t}", "boolean hasTxnrequest();", "boolean isBillingAvailable(String packageName);", "boolean isBillingSectionPresent();", "private boolean allocateInvoice() {\n //\tcalculate actual allocation\n BigDecimal allocationAmt = getPayAmt();\t\t\t//\tunderpayment\n\n //\t\tDANIEL -- 2do.\n float pay = getPayAmt().floatValue();\n //\n\n if (getOverUnderAmt().signum() < 0 && getPayAmt().signum() > 0) {\n allocationAmt = allocationAmt.add(getOverUnderAmt());\t//\toverpayment (negative)\n }\n /**\n *\n * \t\tModificación para diferenciar\n *\tcobros/pagos en Consulta de Asignación\n *\n */\n MAllocationHdr alloc;\n\n if (isReceipt()) {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"IsReceipt\") + \": \" + getDocumentNo() + \" [1]\", get_TrxName());\n } else {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"C_Payment_ID\") + \": \" + getDocumentNo() + \" [1]\", get_TrxName());\n }\n\n alloc.setAD_Org_ID(getAD_Org_ID());\n if (!alloc.save()) {\n log.log(Level.SEVERE, \"Could not create Allocation Hdr\");\n return false;\n }\n MAllocationLine aLine = null;\n if (isReceipt()) {\n aLine = new MAllocationLine(alloc, allocationAmt,\n getDiscountAmt(), getWriteOffAmt(), getOverUnderAmt());\n } else {\n aLine = new MAllocationLine(alloc, allocationAmt.negate(),\n getDiscountAmt().negate(), getWriteOffAmt().negate(), getOverUnderAmt().negate());\n }\n aLine.setDocInfo(getC_BPartner_ID(), 0, getC_Invoice_ID());\n aLine.setC_Payment_ID(getC_Payment_ID());\n if (!aLine.save(get_TrxName())) {\n log.log(Level.SEVERE, \"Could not create Allocation Line\");\n return false;\n }\n //\tShould start WF\n alloc.processIt(DocAction.ACTION_Complete);\n alloc.save(get_TrxName());\n m_processMsg = \"@C_AllocationHdr_ID@: \" + alloc.getDocumentNo();\n\n //\tGet Project from Invoice\n int C_Project_ID = DB.getSQLValue(get_TrxName(),\n \"SELECT MAX(C_Project_ID) FROM C_Invoice WHERE C_Invoice_ID=?\", getC_Invoice_ID());\n if (C_Project_ID > 0 && getC_Project_ID() == 0) {\n setC_Project_ID(C_Project_ID);\n } else if (C_Project_ID > 0 && getC_Project_ID() > 0 && C_Project_ID != getC_Project_ID()) {\n log.warning(\"Invoice C_Project_ID=\" + C_Project_ID\n + \" <> Payment C_Project_ID=\" + getC_Project_ID());\n }\n return true;\n }", "public static void setIsAllocated(Properties ctx, int C_BPartner_ID, String trxName) {\n int counter = 0;\n String sql = \"SELECT * FROM C_Payment \"\n + \"WHERE IsAllocated='N' AND DocStatus IN ('CO','CL')\";\n if (C_BPartner_ID > 1) {\n sql += \" AND C_BPartner_ID=?\";\n } else {\n sql += \" AND AD_Client_ID=\" + Env.getAD_Client_ID(ctx);\n }\n PreparedStatement pstmt = null;\n try {\n pstmt = DB.prepareStatement(sql, trxName);\n if (C_BPartner_ID > 1) {\n pstmt.setInt(1, C_BPartner_ID);\n }\n ResultSet rs = pstmt.executeQuery();\n while (rs.next()) {\n MPayment pay = new MPayment(ctx, rs, trxName);\n if (pay.testAllocation()) {\n if (pay.save()) {\n counter++;\n }\n }\n }\n rs.close();\n pstmt.close();\n pstmt = null;\n } catch (Exception e) {\n s_log.log(Level.SEVERE, sql, e);\n }\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n pstmt = null;\n } catch (Exception e) {\n pstmt = null;\n }\n s_log.config(\"#\" + counter);\n }", "boolean hasAllowedCredit();", "@SystemAPI\n\tboolean needsApproval();", "public void validateRequestToBuyPage(){\r\n\t\tsearchByShowMeAll();\r\n\t\tclickCheckboxAndRenewBuyButton();\r\n\t\tverifyRequestToBuyPage();\r\n\t}", "boolean markPaid(long billId);", "boolean isCreditCardIsSingleAvailablePayment();", "private boolean allocatePaySelection() {\n /**\n *\n * \t\tModificación para diferenciar\n *\tcobros/pagos en Consulta de Asignación\n *\n */\n MAllocationHdr alloc;\n\n if (isReceipt()) {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"IsReceipt\") + \": \" + getDocumentNo() + \" [n]\", get_TrxName());\n } else {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"C_Payment_ID\") + \": \" + getDocumentNo() + \" [n]\", get_TrxName());\n }\n alloc.setAD_Org_ID(getAD_Org_ID());\n\n String sql = \"SELECT psc.C_BPartner_ID, psl.C_Invoice_ID, psl.IsSOTrx, \" //\t1..3\n + \" psl.PayAmt, psl.DiscountAmt, psl.DifferenceAmt, psl.OpenAmt \"\n + \"FROM C_PaySelectionLine psl\"\n + \" INNER JOIN C_PaySelectionCheck psc ON (psl.C_PaySelectionCheck_ID=psc.C_PaySelectionCheck_ID) \"\n + \"WHERE psc.C_Payment_ID=?\";\n PreparedStatement pstmt = null;\n try {\n pstmt = DB.prepareStatement(sql, get_TrxName());\n pstmt.setInt(1, getC_Payment_ID());\n ResultSet rs = pstmt.executeQuery();\n while (rs.next()) {\n int C_BPartner_ID = rs.getInt(1);\n int C_Invoice_ID = rs.getInt(2);\n if (C_BPartner_ID == 0 && C_Invoice_ID == 0) {\n continue;\n }\n boolean isSOTrx = \"Y\".equals(rs.getString(3));\n BigDecimal PayAmt = rs.getBigDecimal(4);\n BigDecimal DiscountAmt = rs.getBigDecimal(5);\n BigDecimal WriteOffAmt = rs.getBigDecimal(6);\n BigDecimal OpenAmt = rs.getBigDecimal(7);\n BigDecimal OverUnderAmt = OpenAmt.subtract(PayAmt).subtract(DiscountAmt).subtract(WriteOffAmt);\n //\n if (alloc.get_ID() == 0 && !alloc.save(get_TrxName())) {\n log.log(Level.SEVERE, \"Could not create Allocation Hdr\");\n rs.close();\n pstmt.close();\n return false;\n }\n MAllocationLine aLine = null;\n if (isSOTrx) {\n aLine = new MAllocationLine(alloc, PayAmt,\n DiscountAmt, WriteOffAmt, OverUnderAmt);\n } else {\n aLine = new MAllocationLine(alloc, PayAmt.negate(),\n DiscountAmt.negate(), WriteOffAmt.negate(), OverUnderAmt.negate());\n }\n aLine.setDocInfo(C_BPartner_ID, 0, C_Invoice_ID);\n aLine.setC_Payment_ID(getC_Payment_ID());\n if (!aLine.save(get_TrxName())) {\n log.log(Level.SEVERE, \"Could not create Allocation Line\");\n }\n }\n rs.close();\n pstmt.close();\n pstmt = null;\n } catch (Exception e) {\n log.log(Level.SEVERE, \"allocatePaySelection\", e);\n }\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n pstmt = null;\n } catch (Exception e) {\n pstmt = null;\n }\n\n //\tShould start WF\n boolean ok = true;\n if (alloc.get_ID() == 0) {\n log.fine(\"No Allocation created - C_Payment_ID=\"\n + getC_Payment_ID());\n ok = false;\n } else {\n alloc.processIt(DocAction.ACTION_Complete);\n ok = alloc.save(get_TrxName());\n m_processMsg = \"@C_AllocationHdr_ID@: \" + alloc.getDocumentNo();\n }\n return ok;\n }", "boolean addBillToReservation(long billId, long reservationId);", "public boolean isBuyable();", "public boolean allocateIt() {\n\n //\tCreate invoice Allocation -\tSee also MCash.completeIt\n if (getC_Invoice_ID() != 0) {\n return allocateInvoice();\n }\n //\tInvoices of a AP Payment Selection\n if (allocatePaySelection()) {\n return true;\n }\n\n if (getC_Order_ID() != 0) {\n return false;\n }\n\n //\tAllocate to multiple Payments based on entry\n MPaymentAllocate[] pAllocs = MPaymentAllocate.get(this);\n if (pAllocs.length == 0) {\n return false;\n }\n\n /**\n *\n * \t\tModificación para diferenciar\n *\tcobros/pagos en Consulta de Asignación\n *\n */\n MAllocationHdr alloc;\n\n if (isReceipt()) {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"IsReceipt\") + \": \" + getDocumentNo(), get_TrxName());\n } else {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"C_Payment_ID\") + \": \" + getDocumentNo(), get_TrxName());\n }\n alloc.setAD_Org_ID(getAD_Org_ID());\n\n /**\n * 25/11/2010 Camarzana Mariano\n * Estaba tomando mal el nombre de la transaccion\n * usaba getTrxType() en vez de get_TrxName()\n *\n */\n if (!alloc.save(get_TrxName())) {\n log.severe(\"P.Allocations not created\");\n return false;\n }\n //\tLines\n for (int i = 0; i < pAllocs.length; i++) {\n MPaymentAllocate pa = pAllocs[i];\n MAllocationLine aLine = null;\n\n /*\n * 30/05/2012\n * Zynnia - agregado para que actualice el campo pagado\n * JF\n * \n */\n\n String sql = \"SELECT invoiceOpen(C_Invoice_ID, 0) \"\n + \"FROM C_Invoice WHERE C_Invoice_ID=?\";\n BigDecimal open = DB.getSQLValueBD(null, sql, pa.getC_Invoice_ID());\n\n if (open.compareTo(Env.ZERO) == 0) {\n MInvoice invoice = new MInvoice(getCtx(), pa.getC_Invoice_ID(), get_TrxName());\n invoice.setIsPaid(true);\n if (!invoice.save(get_TrxName())) {\n log.severe(\"No se pudo cambiar a estado Pagado la factura \" + invoice.getDocumentNo());\n return false;\n }\n }\n\n\n if (isReceipt()) {\n aLine = new MAllocationLine(alloc, pa.getAmount(),\n pa.getDiscountAmt(), pa.getWriteOffAmt(), pa.getOverUnderAmt());\n } else {\n aLine = new MAllocationLine(alloc, pa.getAmount().negate(),\n pa.getDiscountAmt().negate(), pa.getWriteOffAmt().negate(), pa.getOverUnderAmt().negate());\n }\n aLine.setDocInfo(pa.getC_BPartner_ID(), 0, pa.getC_Invoice_ID());\n aLine.setPaymentInfo(getC_Payment_ID(), 0);\n if (!aLine.save(get_TrxName())) {\n log.warning(\"P.Allocations - line not saved\");\n } else {\n pa.setC_AllocationLine_ID(aLine.getC_AllocationLine_ID());\n pa.save(get_TrxName());\n }\n }\n //\tShould start WF\n alloc.processIt(DocAction.ACTION_Complete);\n m_processMsg = \"@C_AllocationHdr_ID@: \" + alloc.getDocumentNo();\n return alloc.save(get_TrxName());\n }", "boolean hasCustomerManagerLink();", "boolean hasAmount();", "boolean hasAmount();", "public abstract void check(Manager manager);", "public boolean isBenefitAvailableFor(Account account, Dining dining);", "@Test\n void checkTheManagerGetAlertAfterOwnerChangeTheBid() {\n String guest= tradingSystem.ConnectSystem().returnConnID();\n tradingSystem.Register(guest, \"Manager2\", \"123\");\n Response res= tradingSystem.Login(guest, \"Manager2\", \"123\");\n tradingSystem.AddNewManager(EuserId,EconnID,storeID,res.returnUserID());\n tradingSystem.subscriberBidding(NofetID,NconnID,storeID,4,20,2);\n store.changeSubmissionBid(EuserId,NofetID,4,30,1);\n }", "private void validatePurchaseOrder(MaintenanceRequest mrq) throws MalBusinessException{\n\t\tArrayList<String> messages = new ArrayList<String>();\n\t\tBigDecimal amount = new BigDecimal(0.00);\n\t\t\t\t\n\t\t//Validate PO header required data\n\t\tif(MALUtilities.isEmptyString(mrq.getJobNo()))\n\t\t\tmessages.add(\"Job No. is required\");\n\t\tif(MALUtilities.isEmptyString(mrq.getMaintReqStatus()))\n\t\t\tmessages.add(\"PO Status is required\");\n\t\tif(MALUtilities.isEmptyString(mrq.getMaintReqType()))\n\t\t\tmessages.add(\"PO Type is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getCurrentOdo()))\n\t\t\tmessages.add(\"Odo is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getActualStartDate()))\n\t\t\tmessages.add(\"Actual Start Date is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getPlannedEndDate()))\n\t\t\tmessages.add(\"End date is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getServiceProvider()))\n\t\t\tmessages.add(\"Service Provider is required\");\n\t\t/* TODO Need to determine if this check is necessary. We do not have a hard requirement for this.\n\t\tif(!MALUtilities.isEmpty(po.getServiceProvider()) \n\t\t\t\t&& (!MALUtilities.convertYNToBoolean(po.getServiceProvider().getNetworkVendor()) \n\t\t\t\t\t\t&& this.calculateMarkUp(po).compareTo(new BigDecimal(0.00)) < 1))\n\t\t\tmessages.add(\"Mark Up is required for out of network service providers\");\n\t */\n\t\t\n\t\t//Validate PO Line items (tasks) required data\n\t\tif(!MALUtilities.isEmpty(mrq.getMaintenanceRequestTasks())){\n\t\t\tfor(MaintenanceRequestTask line : mrq.getMaintenanceRequestTasks()){\n\t\t\t\tif(MALUtilities.isEmptyString(line.getMaintCatCode()))\n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Maint Category is required\");\n\t\t\t\tif(MALUtilities.isEmpty(line.getTaskQty()))\n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Qty is required\");\n\t\t\t\tif(MALUtilities.isEmpty(line.getUnitCost()))\n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Unit Price is required\");\n\t\t\t\tif(MALUtilities.isEmpty(line.getTotalCost())) \n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Total Amount is required\");\t\t\t\t\t\t\t\t\n\t\t\t\tif(!(MALUtilities.isEmpty(line.getTaskQty()) && MALUtilities.isEmpty(line.getUnitCost()))){\n\t\t\t\t\tamount = line.getUnitCost().multiply(line.getTaskQty()).setScale(2, BigDecimal.ROUND_HALF_UP); \n\t\t\t\t\tif( amount.compareTo(line.getTotalCost().setScale(2, BigDecimal.ROUND_HALF_UP)) != 0)\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Total amount is incorrect\");\t\t\t\t\t\t\t\n\t\t\t\t}\t\n/** TODO This will not work well with goodwill POs as the user will not have the changes to add cost avoidance data to subsequent lines.\t\t\t\t\n\t\t\t\tif(mrq.isGoodwillIndicator() && line.isCostAvoidanceIndicator()){\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceCode()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Reason is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceAmount()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Amount is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getGoodwillReason()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Goodwill Reason is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getGoodwillCost()) || line.getGoodwillCost().compareTo(new BigDecimal(0)) < 1)\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Goodwill Amount is required\");\t\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getGoodwillPercent()) || line.getGoodwillPercent().compareTo(new BigDecimal(0)) < 1)\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Goodwill Percent is required\");\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!mrq.isGoodwillIndicator() && line.isCostAvoidanceIndicator()){\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceCode()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Reason is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceAmount()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Amount is required\");\t\t\t\t\t\n\t\t\t\t}\n*/\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(messages.size() > 0)\n\t\t\tthrow new MalBusinessException(\"service.validation\", messages.toArray(new String[messages.size()]));\t\t\n\t\t\n\t}", "private void handleConfirmBillPayment() {\n\t\t// TODO Auto-generated method stub\n\t\ttry {\n\t\t\tPaymentBiller request = new PaymentBiller();\n\t\t\tObjectFactory f = new ObjectFactory();\n\t\t\tCommonParam2 commonParam = f.createCommonParam2();\n\t\t\t\n\t\t\tcommonParam.setProcessingCode(f.createCommonParam2ProcessingCode(\"100601\"));\n\t\t\tcommonParam.setChannelId(f.createCommonParam2ChannelId(\"6018\"));\n\t\t\tcommonParam.setChannelType(f.createCommonParam2ChannelType(\"PB\"));\n\t\t\tcommonParam.setNode(f.createCommonParam2Node(\"WOW_CHANNEL\"));\n\t\t\tcommonParam.setCurrencyAmount(f.createCommonParam2CurrencyAmount(\"IDR\"));\n\t\t\tcommonParam.setAmount(f.createCommonParam2Amount(String.valueOf(billPayBean.getBillAmount())));\n\t\t\tcommonParam.setCurrencyfee(f.createCommonParam2Currencyfee(billPayBean.getFeeCurrency()));\n\t\t\tcommonParam.setFee(f.createCommonParam2Fee(String.valueOf(billPayBean.getFeeAmount())));\n\t\t\tcommonParam.setTransmissionDateTime(f.createCommonParam2TransmissionDateTime(PortalUtils.getSaveXMLGregorianCalendar(Calendar.getInstance()).toXMLFormat()));\n\t\t\tcommonParam.setRequestId(f.createCommonParam2RequestId(MobiliserUtils.getExternalReferenceNo(isystemEndpoint)));\n\t\t\tcommonParam.setAcqId(f.createCommonParam2AcqId(\"213\"));\n\t\t\tcommonParam.setReferenceNo(f.createCommonParam2ReferenceNo(String.valueOf(billPayBean.getReferenceNumber())));\n\t\t\tcommonParam.setTerminalId(f.createCommonParam2TerminalId(\"WOW\"));\n\t\t\tcommonParam.setTerminalName(f.createCommonParam2TerminalName(\"WOW\"));\n\t\t\tcommonParam.setOriginal(f.createCommonParam2Original(billPayBean.getAdditionalData()));\n\t\t\t\n\t\t\trequest.setCommonParam(commonParam);\n\t\t\tPhoneNumber phone = new PhoneNumber(this.getMobiliserWebSession().getBtpnLoggedInCustomer().getUsername());\n\t\t\trequest.setAccountNo(phone.getNationalFormat());\n\t\t\trequest.setBillerCustNo( billPayBean.getSelectedBillerId().getId()); \n\t\t\trequest.setDebitType(\"0\");\n\t\t\trequest.setInstitutionCode(billPayBean.getBillerId());\n\t\t\trequest.setProductID(billPayBean.getProductId());\n\t\t\trequest.setUnitId(\"0901\");\n\t\t\trequest.setProcessingCodeBiller(\"501000\");\n\t\t\t\n\t\t\tString desc1=\"Bill Payment\";\n\t\t\tString desc2= billPayBean.getBillerId();\n\t\t\tString desc3=\"\";\n\t\t\t\n\t\t\trequest.setAdditionalData1(desc1);\n\t\t\trequest.setAdditionalData2(desc2);\n\t\t\trequest.setAdditionalData3(desc3);\n\t\t\t\n\t\t\tPaymentBillerResponse response = new PaymentBillerResponse();\n\t\t\t\n\t\t\tresponse = (PaymentBillerResponse) webServiceTemplete.marshalSendAndReceive(request, \n\t\t\t\t\tnew WebServiceMessageCallback() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void doWithMessage(WebServiceMessage message) throws IOException,\n\t\t\t\t\t\tTransformerException {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t((SoapMessage) message)\n\t\t\t\t\t.setSoapAction(\"com_btpn_biller_ws_provider_BtpnBillerWsTopup_Binder_paymentBiller\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tif (response.getResponseCode().equals(\"00\")) {\n\t\t\t\tbillPayBean.setStatusMessage(getLocalizer().getString(\"success.perform.billpayment\", this));\n\t\t\t\tsetResponsePage(new BankBillPaymentStatusPage(billPayBean));\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(MobiliserUtils.errorMessage(response.getResponseCode(), response.getResponseDesc(), getLocalizer(), this));\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\terror(getLocalizer().getString(\"error.exception\", this));\n\t\t\tLOG.error(\"An exception was thrown\", e);\n\t\t}\n\t}", "private boolean accountChecks(Account account){\n // ie. if the account has to be personal for the round-up service to apply\n account.getName(); // check personal\n return true;\n }", "public boolean testAllocation() {\n //\tCash Trx always allocated\n if (isCashTrx()) {\n if (!isAllocated()) {\n setIsAllocated(true);\n return true;\n }\n return false;\n }\n //\n BigDecimal alloc = getAllocatedAmt();\n\n if (alloc == null) {\n alloc = Env.ZERO;\n }\n BigDecimal total = getPayAmt();\n\n if (!isReceipt()) {\n total = total.negate();\n }\n boolean test = total.compareTo(alloc) == 0;\n boolean change = test != isAllocated();\n if (change) {\n setIsAllocated(test);\n }\n log.fine(\"Allocated=\" + test\n + \" (\" + alloc + \"=\" + total + \")\");\n return change;\n }", "@Override\n\tpublic boolean checkEWaybillNoExceptPDAPending(String waybillNo) {\n\t\treturn true;\n\t}", "public void testBidDeclineNotification(){\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing1, borrower, 800);\n }catch(Exception e){\n fail();\n }\n try {\n thing1.placeBid(bid);\n } catch (ThingUnavailableException e) {\n fail();\n }\n\n // owner.declineBid(thing1, bid);\n //assertTrue(borrower.notifiedOfDeclinedBid(bid));\n\n assertTrue(false);\n }", "boolean isSetAccountNumber();", "public void verifyBugerList()\n\t{\n\t\t\n\t}", "boolean hasBonusMoney();", "boolean canBuy( final Item item )\n {\n return !ship.contains( item ) && item.getPrice() <= credits;\n }", "boolean isSetAmount();", "public static String isBillPaid(String account){\n return \"select * from current_bills where cb_account = '\"+account+\"' and cb_paid = 1\";\n }", "private void businessValidationForOnlinePaymentServiceRequestOrder(PaymentFeeLink order, OnlineCardPaymentRequest request) {\n Optional<BigDecimal> totalCalculatedAmount = order.getFees().stream().map(paymentFee -> paymentFee.getCalculatedAmount()).reduce(BigDecimal::add);\n if (totalCalculatedAmount.isPresent() && (totalCalculatedAmount.get().compareTo(request.getAmount()) != 0)) {\n throw new ServiceRequestExceptionForNoMatchingAmount(\"The amount should be equal to serviceRequest balance\");\n }\n\n //Business validation for amount due for fees\n Optional<BigDecimal> totalAmountDue = order.getFees().stream().map(paymentFee -> paymentFee.getAmountDue()).reduce(BigDecimal::add);\n if (totalAmountDue.isPresent() && totalAmountDue.get().compareTo(BigDecimal.ZERO) == 0) {\n throw new ServiceRequestExceptionForNoAmountDue(\"The serviceRequest has already been paid\");\n }\n }", "boolean hasBidrequest();", "@Override\n\tpublic boolean queryIsExpressBill(String waybillNo) {\n\t\treturn false;\n\t}", "public boolean validateBankPackage() {\n\t\treturn this.validateBank() && this.validateBSB() && this.validateAccountNumber();\n\t}", "boolean hasDonator();", "private void validateConfigBiller(RequestFormatBanking bankingRequest, OperationType opType, Biller biller) throws ProcessingException {\n StatusCode statusCode;\n if (biller.getWeftType() != null) {\n if (biller.getStatus().equals(ItemStatus.ENABLED) && biller.getWeftType().equals(WeftType.CONNECTOR)) {\n if (UtilHelper.stringNotNullOrNotEmpty(biller.getInternalCode())) {\n bankingRequest.setInternalCode(biller.getInternalCode());\n bankingRequest.setEan13BillerCode(biller.getEanCode());\n bankingRequest.setPositionReference1(biller.getReferencePosition1());\n bankingRequest.setLengthReference1(biller.getReferenceLength1());\n bankingRequest.setServiceCode(biller.getBillerCode());\n bankingRequest.setMaxValue(biller.getMaxValue());\n bankingRequest.setMinValue(biller.getMinValue());\n bankingRequest.setWeftType(WeftType.CONNECTOR);\n if (opType.equals(OperationType.PAY_BILL)) {\n billBusinessRules.executeRuleMultiple(bankingRequest, biller);\n billBusinessRules.executeRuleMinMaxValue(bankingRequest, biller);\n }\n } else {\n statusCode = statusCodeConfig.of(\"30\");\n throw new ProcessingException(statusCode.getCode(), statusCode.getMessage());\n }\n } else if (biller.getStatus().equals(ItemStatus.SUSPENDED)) {\n statusCode = statusCodeConfig.of(\"31\");\n throw new ProcessingException(statusCode.getCode(), statusCode.getMessage());\n }\n }\n }", "private boolean canBuy(BuildingType x) {\r\n return gameDetails.buildingsStats.get(x).price <= myself.energy;\r\n }", "boolean CanBuyDevCard();", "public static boolean chkManualEncumbranceRejValid(EscmProposalMgmt proposalmgmt) {\n try {\n OBContext.setAdminMode();\n EscmProposalMgmt baseProposal = proposalmgmt.getEscmBaseproposal();\n if (baseProposal == null) {\n OBQuery<EfinBudgetManencumlines> encline = OBDal.getInstance().createQuery(\n EfinBudgetManencumlines.class,\n \" as e where e.manualEncumbrance.id=:encumId and e.id in \"\n + \" ( select b.efinBudgmanencumline.id from Escm_Proposalmgmt_Line b \"\n + \" where b.escmProposalmgmt.id=:proposalId) and e.usedAmount > 0 \");\n encline.setNamedParameter(\"encumId\", proposalmgmt.getEfinEncumbrance().getId());\n encline.setNamedParameter(\"proposalId\", proposalmgmt.getId());\n\n if (encline.list().size() > 0) {\n return true;\n } else\n return false;\n } else if (baseProposal != null) {\n for (EscmProposalmgmtLine lines : proposalmgmt.getEscmProposalmgmtLineList()) {\n if (!lines.isSummary() && lines.getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal()\n .subtract(lines.getLineTotal());\n if (amountDiffernce.compareTo(BigDecimal.ZERO) > 0\n && encline.getRemainingAmount().compareTo(amountDiffernce) < 0\n && encline.getManualEncumbrance().getEncumMethod().equals(\"M\")) {\n return true;\n } else {\n return false;\n }\n }\n }\n }\n\n } catch (final Exception e) {\n log.error(\"Exception in chkManualEncumbranceValidation after Reject : \", e);\n return false;\n } finally {\n OBContext.restorePreviousMode();\n }\n return false;\n }", "BillingSource billingSource();", "@Override\r\n\tpublic void payCheck() {\n\t\t\r\n\t}", "boolean markConfirmed(long billId);", "@Test\n\tpublic void testCheckSufficientCredits_OverdraftFacility() {\n\n\t\tint creditsRequired = 11;\n\n\t\tSmsMessage msg = new SmsMessage();\n\t\tSmsTask smsTask = new SmsTask();\n\t\tsmsTask.setSakaiSiteId(SmsConstants.SMS_DEV_DEFAULT_SAKAI_SITE_ID);\n\t\tsmsTask.setSmsAccountId(account.getId());\n\t\tsmsTask.setDateCreated(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setDateToSend(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setStatusCode(SmsConst_DeliveryStatus.STATUS_PENDING);\n\t\tsmsTask.setAttemptCount(2);\n\t\tsmsTask.setMessageBody(SmsConstants.SMS_DEV_DEFAULT_SMS_MESSAGE_BODY);\n\t\tsmsTask.setSenderUserName(\"senderUserName\");\n\t\tsmsTask.setMaxTimeToLive(1);\n\t\tsmsTask.getSmsMessages().add(msg);\n\t\tsmsTask.setCreditEstimate(creditsRequired);\n\t\tmsg.setSmsTask(smsTask);\n\n\t\tboolean sufficientCredits = smsBillingImpl.checkSufficientCredits(\n\t\t\t\taccount.getId(), creditsRequired);\n\t\tAssert.assertFalse(\"Expected insufficient credit\", sufficientCredits);\n\t\thibernateLogicLocator.getSmsAccountLogic().persistSmsAccount(account);\n\t\tsufficientCredits = smsBillingImpl.checkSufficientCredits(account\n\t\t\t\t.getId(), creditsRequired);\n\t\tAssert.assertTrue(\"Expected insufficient credit\", !sufficientCredits);\n\t}", "@Override\n\tpublic boolean createOrderBill(OrderBill orderBill) {\n\t\treturn false;\n\t}", "public String validateFleetMaintAuthBuyerLimit(MaintenanceRequest mrq, CorporateEntity corporateEntity, String user){\n\t\tString message = null;\n\t\tString docType = \"PORDER\";\n\t\tString tranType = willowConfigService.getConfigValue(\"MAINT_TRANSACTION_TYPE\");\n\t\tBigDecimal requestTotal;\n\t\tBuyerLimit buyerLimit = buyerLimitDAO.findBuyerLimit(corporateEntity.getCorpId(), docType, user, tranType);\n\t\t\n\t\tif(mrq.getMaintenanceRequestTasks() != null){\n\t\t\trequestTotal = calculatePOSubTotal(mrq);\n\t\t\tif(buyerLimit == null){\n\t\t\t\tmessage = \"Buyer limit has not been set up for user: \" + user;\n\t\t\t}else if(buyerLimit.getAuthorizeAmount().compareTo(requestTotal) < 0){\n\t\t\t\tmessage = user + \" has exceeded their \" + buyerLimit.getAuthorizeAmount() + \" authorization limit\";\n\t\t\t}\n\t\t}\n\t\treturn message;\n\t}", "protected void acceptedPaymentVerification() {\n BillingSummaryPage.tableBillingGeneralInformation.getRow(1)\n .getCell(\"Current Due\").waitFor(cell -> !cell.getValue().equals(\"Calculating...\"));\n\n assertThat(BillingSummaryPage.tableBillingGeneralInformation.getRow(1))\n .hasCellWithValue(\"Current Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Paid\", modalPremiumAmount.get().toString());\n\n assertThat(BillingSummaryPage.tableBillsAndStatements.getRow(1).getCell(\"Status\")).valueContains(PAID_IN_FULL);\n\n assertThat(BillingSummaryPage.tablePaymentsOtherTransactions)\n .with(POLICY_NUMBER, masterPolicyNumber.get())\n .with(TYPE, PAYMENT)\n .with(TableConstants.BillingPaymentsAndTransactionsGB.AMOUNT, String.format(\"(%s)\", modalPremiumAmount.get().toString()))\n .containsMatchingRow(1);\n\n }", "private boolean canAddAllBillsToRegister(Map<BillDenomination, Integer> creditBills) {\n for (Map.Entry<BillDenomination, Integer> entry : creditBills.entrySet()) {\n if (entry.getValue() < ZERO) {\n return false;\n }\n }\n return true;\n }", "private TransferPointRequest isAccountLinked(TransferPointRequest transferPointRequest) {\n Customer fromCustomer = transferPointRequest.getFromCustomer();\n\n //check whether the customer is linked\n List<LinkedLoyalty> linkedLoyalties = linkedLoyaltyService.getAllLinkedAccounts(fromCustomer.getCusCustomerNo());\n\n //if account is not linked , set account linked as false\n if(linkedLoyalties == null || linkedLoyalties.size() == 0){\n\n transferPointRequest.setAccountLinked(false);\n\n } else {\n\n //if linked , get the primary customer info\n transferPointRequest = isCustomerPrimary(linkedLoyalties,transferPointRequest);\n\n //set accountLinked as true\n transferPointRequest.setAccountLinked(true);\n }\n\n return transferPointRequest;\n }", "public void checkCreditCard() throws BusinessException;", "public boolean canBuy(@NotNull AmmoAmountUncapped cost){\n return cost.canBeBought(this);\n }", "public boolean checkoutBooking() {\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tboolean bookUpdateSuccess = false;\r\n\r\n\t\t/**\r\n\t\t*\tSet the endTime as now\r\n\t\t*/\r\n\t\t/**\r\n\t\t*\tGet the number of milliSeconds from the system time and set it to the java.sql.Date\r\n\t\t*\tobject to create a booking number and also to set the start time.\r\n\t\t*/\r\n\t\tlong dateTimeMillis = System.currentTimeMillis();\r\n\t\t/**\r\n\t\t*\tThis date is for generating String bookingNo using the date and time values\r\n\t\t*/\r\n\t\tjava.util.Date date = new java.util.Date(dateTimeMillis);\r\n\t\t/**\r\n\t\t*\tPass the current date in sql.Timestamp object.\r\n\t\t*/\r\n\t\tendTime = new java.sql.Timestamp(date.getTime());\r\n\r\n\t\t/**\r\n\t\t*\tCalculate the cost base on the time elapsed between the start time and end time\r\n\t\t*\tdurationMinutes = (difference b/w end and start time) / 1000 to convert millis to seconds / 60 to convert seconds to minutes\r\n\t\t*/\r\n\t\tlong start = startTime.getTime();\r\n\t\tlong end = endTime.getTime();\r\n\t\tlong durationMinutes = (end - start)/60000;\r\n\r\n\t\t/**\r\n\t\t*\tThe cost is set as Rs. 1.27 per minuteand hence will be calulated using durationMinutes\r\n\t\t* The cost will be calculated according to absolute minutes and no decimals will be considered there\r\n\t\t*/\r\n\t\tcost = durationMinutes * 1.27;\r\n\r\n\t\t/**\r\n\t\t*\tShow the cost and confirm to checkout.\r\n\t\t*/\r\n\t\tSystem.out.print(\"\\n\\tTotal cost calculated: \" + cost + \"\\n\\n\\t1. Confirm Checkout\\n\\t2. Cancel\\n\\t\\t>> \");\r\n\t\tint opt = scan.nextInt();\r\n\r\n\t\tswitch (opt) {\r\n\t\t\tcase 1: {\t//confirm checkout\r\n\t\t\t\t//do nothing and move ahead towards the checkout procedure\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 2: {\t//Cancel\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tdefault: {\r\n\t\t\t\tSystem.out.println(\"Invalid Option\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t*\tSince connecting to database (DbConnection()) and updating data (executeUpdateParklot())\r\n\t\t* throw SQLException and throwing an exception from multiple levels again and again is not\r\n\t\t*\ta good way, so its is needed to catch the exception here.\r\n\t\t*/\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection to the database\r\n\t\t\t*/\r\n\t\t\tDbConnection checkoutBookingConn = new DbConnection();\r\n\r\n\r\n\t\t\t/**\r\n\t\t\t*\tupdate the data in table\r\n\t\t\t*/\r\n\t\t\tbookUpdateSuccess = checkoutBookingConn.executeUpdateBooking(endTime, cost, bookingNo);\r\n\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"No booking with the given booking number found.\");\r\n\t\t\t//SqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\t//validateConn.closeDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn bookUpdateSuccess;\r\n\t}", "public void validate_Billable_Task_Using_New_Customer_And_New_Project(String custListOption,String custListName, String projectName,String taskName,String taskBudgetTime,String billingType) {\n\t\tselectSingleDropDownItem(driver, AttSelectCustListBox, custListOption);\n\t\tAttCustomerNameTextBox.sendKeys(custListName);\n\t\tAttProjectNameTextBox.sendKeys(projectName);\n\t\tAttTaskNameTextBox.sendKeys(taskName);\n\t\tAttBudgetTimeTextBox.sendKeys(taskBudgetTime);\n\t\tAttEnterDateInDateField.sendKeys(getTodaysDate());\n\t\tselectSingleDropDownItem(driver, AttSelectBillingType, billingType);\n\t\tAttSelectCheckBoxMarkToBeAdd.click();\n\t\tAttCreateTaskBtn.click();\n\t\t\n\t}", "public boolean isValid_ToBuyTicket() {\n if (this.tktSold < this.museum.getMaxVisit() && isNowTime_in_period()) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "ShipmentItemBilling createShipmentItemBilling();", "boolean checkOrderNotAcceptedYet(int idOrder);", "private boolean validaCompra() {\n\n List<Purchase> purchasesList = billingClient.queryPurchases(INAPP).getPurchasesList();\n if (purchasesList != null && !purchasesList.isEmpty()) {\n for (Purchase purchase : purchasesList) {\n if (purchase.getSku().equals(skuId)) {\n return true;\n }\n }\n }\n return false;\n\n }", "public void validate_Billable_Task_Using_All_Customer_And_All_Project(String custListOption,String projectName,String taskName,String taskBudgetTime,String billingType) {\n\t\tselectSingleDropDownItem(driver, AttSelectCustListBox, custListOption);\n\t\tselectSingleDropDownItem(driver, AttSelectProjectListBox, projectName);\n\t\tAttTaskNameTextBox.sendKeys(taskName);\n\t\tAttBudgetTimeTextBox.sendKeys(taskBudgetTime);\n\t\tAttCreateTaskBtn.click();\n\t\t\n\t}", "private boolean checkCost(int owner, ItemType item) {\n\t\tint[] cost = item.getCost();\n\t\tResourceManager rm = (ResourceManager) GameManager.get()\n\t\t\t\t.getManager(ResourceManager.class);\n\t\tif (rm.getRocks(owner) < cost[0]) {\n\t\t\treturn false;\n\t\t} else if (rm.getCrystal(owner) < cost[1]) {\n\t\t\treturn false;\n\t\t} else if (rm.getBiomass(owner) < cost[2]) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "boolean hasMoney();", "boolean isSatisfiableFor(AResourceType type, int amount) ;", "@Test\n\tpublic void testPayBill() {\n\t\tAccount acc1 = new Account(00000, \"acc1\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\n\t\ttransactions.add(0, new Transaction(10, \"acc1\", 00000, 0, \"\"));\n\t\ttransactions.add(1, new Transaction(03, \"acc1\", 00000, 100.00, \"CC\"));\n\t\ttransactions.add(2, new Transaction(00, \"acc1\", 00000, 0, \"\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Bills Paid\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to pay bills\", testResult);\n\t}", "boolean hasInvoice();", "boolean hasCampaignBudget();", "void payBills();", "@Test\n\tpublic void testCheckSufficientCredits_False() {\n\n\t\tint creditsRequired = 11;\n\n\t\tboolean sufficientCredits = smsBillingImpl.checkSufficientCredits(\n\t\t\t\taccount.getId(), creditsRequired);\n\t\tAssert.assertFalse(\"Expected insufficient credit\", sufficientCredits);\n\t}", "public void validate_Billable_Task_Using_Existing_Customer_And_Existing_Project(String custListOption,String projectName,String taskName,String taskBudgetTime,String billingType) {\n\t\tselectSingleDropDownItem(driver, AttSelectCustListBox, custListOption);\n\t\tselectSingleDropDownItem(driver, AttSelectProjectListBox, projectName);\n\n\t\tAttTaskNameTextBox.sendKeys(taskName);\n\t\tAttBudgetTimeTextBox.sendKeys(taskBudgetTime);\n\t\tAttEnterDateInDateField.sendKeys(getTodaysDate());\n\t\tselectSingleDropDownItem(driver, AttSelectBillingType, billingType);\n\t\tAttSelectCheckBoxMarkToBeAdd.click();\n\t\tAttCreateTaskBtn.click();\n\t\t\n\t}", "public boolean validateGLCode(final Transaxtion txn) throws TaskFailedException {\n\t\tif (LOGGER.isInfoEnabled())\n\t\t\tLOGGER.info(\"Inside the ValidateGLCode1\");\n\t\tfinal GLAccount glAcc = (GLAccount) getGlAccountCodes().get(txn.getGlCode());\n\t\tif (glAcc == null) {\n\t\t\tLOGGER.error(\"GLCode is null\");\n\t\t\treturn false;\n\t\t}\n\t\ttxn.setGlName(glAcc.getName());\n\t\tif (LOGGER.isInfoEnabled())\n\t\t\tLOGGER.info(txn.getGlCode() + \" is activefor posting :\" + glAcc.isActiveForPosting());\n\t\tif (!glAcc.isActiveForPosting())\n\t\t\tthrow new TaskFailedException(\"The COA(GlCode) \" + txn.getGlCode()\n\t\t\t\t\t+ \" used is not active for posting. Kindly modify COA from detailed code screen and then proceed for creating voucher\");\n\n\t\tif (LOGGER.isInfoEnabled())\n\t\t\tLOGGER.info(\"Classification....:\" + glAcc.getClassification());\n\t\tif (glAcc.getClassification() != 4) {\n\t\t\tif (LOGGER.isInfoEnabled())\n\t\t\t\tLOGGER.info(\"classification is not detailed code\");\n\t\t\tthrow new TaskFailedException(\"Cannot post to \" + txn.getGlCode());\n\t\t}\n\t\tif (LOGGER.isInfoEnabled())\n\t\t\tLOGGER.info(\"Going to check the Amount.Debit: \" + txn.getDrAmount() + \" ** Credit :\" + txn.getCrAmount());\n\t\tif (Double.parseDouble(txn.getDrAmount()) > 0 && Double.parseDouble(txn.getCrAmount()) > 0)\n\t\t\tthrow new TaskFailedException(\"Both Debit and Credit cannot be greater than Zero.\");\n\t\t// return false;\n\t\tif (!isRequiredPresent(txn, glAcc))\n\t\t\treturn false;\n\t\treturn true;\n\t}", "boolean hasMoneyID();", "boolean hasMoneyID();", "boolean hasMoneyID();", "private boolean actualizarBPartner() {\n if (!isReceipt() && getC_BPartner_ID() != 0 && !isAllocated()) {\n MBPartner bp = new MBPartner(getCtx(), getC_BPartner_ID(), get_TrxName());\n BigDecimal previo = bp.getTotalOpenBalance();\n BigDecimal actual = Env.ZERO;\n\n BigDecimal monto = getAllocatedAmt();\n if (monto == null) {\n monto = Env.ZERO;\n }\n\n //\tSuma el monto no asignado del pago, al saldo del proveedor\n actual = previo.add(getPayAmt().add(monto));\n\n bp.setTotalOpenBalance(actual);\n return bp.save();\n }\n else\n return false;\n }", "boolean hasAccount();", "boolean hasAccount();", "boolean hasAccount();", "public boolean isNonFundedBuyer(Integer buyerId);", "boolean hasBonusMoneyID();", "@Test\n\tpublic void testCheckSufficientCredits_True() {\n\n\t\tint creditsRequired = 1;\n\t\taccount.setCredits(10l);\n\t\thibernateLogicLocator.getSmsAccountLogic().persistSmsAccount(account);\n\t\tSmsMessage msg = new SmsMessage();\n\t\tSmsTask smsTask = new SmsTask();\n\t\tsmsTask.setSakaiSiteId(SmsConstants.SMS_DEV_DEFAULT_SAKAI_SITE_ID);\n\t\tsmsTask.setSmsAccountId(account.getId());\n\t\tsmsTask.setDateCreated(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setDateToSend(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setStatusCode(SmsConst_DeliveryStatus.STATUS_PENDING);\n\t\tsmsTask.setAttemptCount(2);\n\t\tsmsTask.setMessageBody(SmsConstants.SMS_DEV_DEFAULT_SMS_MESSAGE_BODY);\n\t\tsmsTask.setSenderUserName(\"senderUserName\");\n\t\tsmsTask.setMaxTimeToLive(1);\n\t\tsmsTask.getSmsMessages().add(msg);\n\t\tsmsTask.setCreditEstimate(creditsRequired);\n\t\tmsg.setSmsTask(smsTask);\n\t\tboolean sufficientCredits = smsBillingImpl.checkSufficientCredits(\n\t\t\t\taccount.getId(), creditsRequired);\n\t\tAssert.assertTrue(\"Expected sufficient credit\", sufficientCredits);\n\n\t\taccount.setCredits(0l);\n\t\thibernateLogicLocator.getSmsAccountLogic().persistSmsAccount(account);\n\t\tboolean insufficientCredits = !smsBillingImpl.checkSufficientCredits(\n\t\t\t\taccount.getId(), creditsRequired);\n\t\tAssert.assertTrue(\"Expected insufficient credit\", insufficientCredits);\n\n\t}", "public void testOneWithdrawal(){\n\t\t//Pre-conditions\n\t\tteller.setWorking(true);\n\t\tteller.setHost(host);\n\t\t\n\t\tassertEquals(\"Teller's state should be free, but instead it is: \" + teller.getState(),\"Free\",teller.getState());\n\t\tassertEquals(\"Teller's state should be free, but instead it is: \" + teller.getState(),\"Free\",teller.getState());\n\t\tassertEquals(\"Teller should have no pending transactions, but it has: \" +teller.pendingTransactions.size(),0,teller.pendingTransactions.size());\n\t\t\n\t\tassertEquals(\"Teller should have no pending loans, but it has \" + teller.pendingLoans.size(),0,teller.pendingTransactions.size());\n\t\tassertEquals(\"Teller should have no accountsListed, but it has \" + teller.accountsListed.size(),0,teller.accountsListed.size());\n\t\t\n\t\t//Step 0 of test - Teller has an account for this customer already \n\t\tteller.accountsListed.add(new BankAccount(withdraw,100));\n\t\t\n\t\t//Post-conditions of step 0 \n\t\tassertEquals(\"Teller should have one account listed, instead it has \" + teller.accountsListed.size(),1,teller.accountsListed.size());\n\t\tassertEquals(\"Teller's only account should have a balance of 100, instead it has \" + teller.accountsListed.get(0).getBalance(), \n\t\t\t\t100.0,teller.accountsListed.get(0).getBalance());\n\t\t\n\t\t//Step 1 of test\n\t\t//msgGoSeeTeller(Banker)\n\t\twithdraw.msgGoSeeTeller(teller);\n\t\t\n\t\t//Post-conditions of step 1 \n\t\tassertEquals(\"Teller's state should be busy, but instead it is: \" + teller.getState(),\"Busy\",teller.getState());\n\t\tassertEquals(\"Teller should have one pending transaction, but it has: \" +teller.pendingTransactions.size(),\n\t\t\t\t1,teller.pendingTransactions.size());\n\t\tassertEquals(\"Teller's transaction should be to withdraw 100 dollars, instead it is for \" + teller.pendingTransactions.get(withdraw), \n\t\t\t\t-100.0, teller.pendingTransactions.get(withdraw));\n\t\t\n\t\t//Step 2 of test\n\t\tassertTrue(\"Teller's scheduler should return true, but it doesn't.\", teller.pickAndExecuteAnAction());\n\t\t\n\t\t//Post-conditions of step 2 \n\t\tassertEquals(\"Teller's state should be free, but instead it is: \" + teller.getState(),\"Free\",teller.getState());\n\t\tassertEquals(\"Teller should have no pending transactions, but it has: \" +teller.pendingTransactions.size(),0,teller.pendingTransactions.size());\n\t\tassertTrue(\"Host's log should have a message stating \\\"Updated account, and added teller\\\", instead it reads: \" + host.log.getLastLoggedEvent().toString(), \n\t\t\t\thost.log.containsString(\"Updated account, and added teller\"));\n\t\tassertTrue(\"Customer's log should have a message stating \\\"Got 100.0 dollars, leaving bank.\\\", instead it reads: \" + withdraw.log.getLastLoggedEvent().toString(),\n\t\t\t\twithdraw.log.containsString(\"Got 100.0 dollars, leaving bank.\"));\n\t\tassertEquals(\"Customer's account stored in teller should be updated with the correct balance of 0.0, instead it has \" + teller.accountsListed.get(0).getBalance(), \n\t\t\t\t0.0, teller.accountsListed.get(0).getBalance());\n\t\t\n\t}", "private boolean validateTxns(final Transaxtion txnList[]) throws TaskFailedException {\n\t\tif (txnList.length < 2)\n\t\t\treturn false;\n\t\tdouble dbAmt = 0;\n\t\tdouble crAmt = 0;\n\t\ttry {\n\t\t\tfor (final Transaxtion element : txnList) {\n\t\t\t\tfinal Transaxtion txn = element;\n\t\t\t\tif (!validateGLCode(txn))\n\t\t\t\t\treturn false;\n\t\t\t\tdbAmt += Double.parseDouble(txn.getDrAmount());\n\t\t\t\tcrAmt += Double.parseDouble(txn.getCrAmount());\n\t\t\t}\n\t\t} finally {\n\t\t\tRequiredValidator.clearEmployeeMap();\n\t\t}\n\t\tdbAmt = ExilPrecision.convertToDouble(dbAmt, 2);\n\t\tcrAmt = ExilPrecision.convertToDouble(crAmt, 2);\n\t\tif (LOGGER.isInfoEnabled())\n\t\t\tLOGGER.info(\"Total Checking.....Debit total is :\" + dbAmt + \" Credit total is :\" + crAmt);\n\t\tif (dbAmt != crAmt)\n\t\t\tthrow new TaskFailedException(\"Total debit and credit not matching. Total debit amount is: \" + dbAmt\n\t\t\t\t\t+ \" Total credit amount is :\" + crAmt);\n\t\t// return false;\n\t\treturn true;\n\t}", "public Masary_Error CheckBillType(String BTC, double CusAmount, String CustId, double serv_balance, double masry_balance, double billamount, double fees, Main_Provider provider, double deductedAmount) {\n Masary_Error Status = new Masary_Error();\n try {\n Masary_Bill_Type bill_type = MasaryManager.getInstance().getBTC(BTC);\n double trunccusamount = Math.floor(CusAmount);\n// double deductedAmount = MasaryManager.getInstance().GetDeductedAmount(Integer.parseInt(CustId), Integer.parseInt(BTC), CusAmount, provider.getPROVIDER_ID());\n if ((deductedAmount > serv_balance) || deductedAmount == -1) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-501\", provider);\n } else if (!bill_type.isIS_PART_ACC() && CusAmount < billamount) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-502\", provider);\n } else if (!bill_type.isIS_OVER_ACC() && CusAmount > billamount && billamount != 0) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-503\", provider);\n } else if (!bill_type.isIS_ADV_ACC() && billamount == 0) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-504\", provider);\n } else if (!bill_type.isIS_FRAC_ACC() && (CusAmount - trunccusamount) > 0) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-505\", provider);\n } else if ((CusAmount > masry_balance) || deductedAmount == -2 || deductedAmount == -3 || deductedAmount == -4) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-506\", provider);\n } else {\n Status = MasaryManager.getInstance().GETMasary_Error(\"200\", provider);\n }\n } catch (Exception ex) {\n\n MasaryManager.logger.error(\"Exception \" + ex.getMessage(), ex);\n }\n\n return Status;\n }", "private TransferPointRequest checkTransferRequestEligibility(TransferPointRequest transferPointRequest) {\n Customer fromAccount = transferPointRequest.getFromCustomer();\n\n //get destination account\n Customer toAccount = transferPointRequest.getToCustomer();\n\n //check if account is linked\n transferPointRequest = isAccountLinked(transferPointRequest);\n\n //set request customer no as from account customer no\n transferPointRequest.setRequestorCustomerNo(fromAccount.getCusCustomerNo());\n\n //if accounts are not linked , requestor is eligible for transfer\n if(!transferPointRequest.isAccountLinked()){\n\n //set transfer eligibility to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n } else {\n\n //if linked , get the transfer point settings\n TransferPointSetting transferPointSetting = transferPointRequest.getTransferPointSetting();\n\n //check redemption settings\n switch(transferPointSetting.getTpsLinkedEligibilty()){\n\n case TransferPointSettingLinkedEligibity.NO_AUTHORIZATION:\n\n //if authorization is not needed set eligibity to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.PRIMARY_ONLY:\n\n //check the requestor is primary\n if(!transferPointRequest.isCustomerPrimary()){\n\n //if not primary , then set eligibility to INELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.INELIGIBLE);\n\n } else {\n\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.SECONDARY_WITH_AUTHORIZATION:\n\n //if customer is secondary , set eligibility to APRROVAL_NEEDED and set approver\n //and requestor customer no's\n if(!transferPointRequest.isCustomerPrimary()){\n\n //set eligibility status as approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n } else {\n\n //set eligibility to eligible\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.ANY_ACCOUNT_WITH_AUTHORIZATION:\n\n //set eligibility to approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n if(transferPointRequest.isCustomerPrimary()){\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getChildCustomerNo());\n\n } else {\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n }\n\n return transferPointRequest;\n\n }\n }\n\n return transferPointRequest;\n\n }", "public boolean isBancrupt(){\r\n \treturn _budget <= 0;\r\n }", "private boolean CheckCostToBuildOrUpgrade(double cost)\r\n {\r\n return cost <= this.bitcoins;\r\n }", "private boolean validatePuchase() {\n if (TextUtils.isEmpty(editextPurchaseSupplierName.getText().toString())) {\n editextPurchaseSupplierName.setError(getString(R.string.supplier_name));\n editextPurchaseSupplierName.requestFocus();\n return false;\n }\n\n if (TextUtils.isEmpty(edittextPurchaseAmount.getText().toString())) {\n if (flowpurchaseReceivedOrPaid == 2) {\n edittextPurchaseAmount.setError(getString(R.string.menu_purchasePaid));\n edittextPurchaseAmount.requestFocus();\n\n } else {\n edittextPurchaseAmount.setError(getString(R.string.purchase_amount));\n edittextPurchaseAmount.requestFocus();\n }\n return false;\n }\n\n if (TextUtils.isEmpty(edittextPurchasePurpose.getText().toString())) {\n edittextPurchasePurpose.setError(getString(R.string.remark_bill_number));\n edittextPurchasePurpose.requestFocus();\n return false;\n }\n\n\n return true;\n }", "public boolean isRechargeTotalWithinLimit(MaintenanceRequest mrq) throws MalBusinessException{\t\n\t\tBigDecimal rechargeTotal;\n\t\tBigDecimal limit;\n\t\tBigDecimal rechargeTotalInDB;\n\t\tboolean isWithinLimit = true;\n\t\tMaintenanceRequest mrqInDB;\n\t\t\n\t\tContractLine contractLine = contractService.getLastActiveContractLine(mrq.getFleetMaster(), Calendar.getInstance().getTime());\t\n\t\tif(contractLine != null){\n\t\t\tlimit = quotationService.getMafsAuthorizationLimit(contractLine.getContract().getExternalAccount().getExternalAccountPK().getCId(), \n\t\t\t\t\t\tcontractLine.getContract().getExternalAccount().getExternalAccountPK().getAccountType(), \n\t\t\t\t\t\tcontractLine.getContract().getExternalAccount().getExternalAccountPK().getAccountCode(), \n\t\t\t\t\t\tmrq.getFleetMaster().getUnitNo());\n\t\t\n\t\t\tif(mrq.getMaintenanceRequestTasks() != null && limit != null){\n\t\t\t\trechargeTotal = sumRechargeTotal(mrq);\n\t\t\t\tif(MALUtilities.isEmptyString(mrq.getAuthReference())){\n\t\t\t\t\tif(rechargeTotal.compareTo(limit) > 0){\n\t\t\t\t\t\tisWithinLimit = false;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t//Check if passed in maintenance Request has been approved but recharge total has increased since last save.\n\t\t\t\t\tif(mrq.getMrqId() != null){\n\t\t\t\t\t\tmrqInDB = maintenanceRequestDAO.findById(mrq.getMrqId()).orElse(null);\n\t\t\t\t\t\trechargeTotalInDB = sumRechargeTotal(mrqInDB);\n\t\t\t\t\t\tif(rechargeTotal.compareTo(rechargeTotalInDB) > 0 && rechargeTotal.compareTo(limit) > 0){\n\t\t\t\t\t\t\tisWithinLimit = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn isWithinLimit;\n\t}", "private boolean checkout() {\n if (OrderMenuUI.incompleteOrders == null || OrderMenuUI.incompleteOrders.size() == 0) {\n System.out.println(\"No orders ready for checkout. Cancelling Operation\");\n return false;\n }\n HashMap<Integer, Order> tOrders = new HashMap<>();\n OrderMenuUI.incompleteOrders.forEach((s) -> {\n Table c = s.getTable();\n if (c == null) return;\n tOrders.put(c.getTableNum(), s);\n });\n tOrders.put(-1, null);\n OrderMenuUI.printOrderList(OrderMenuUI.incompleteOrders, \"Ready for Checkout\", true);\n int tableNo = ScannerHelper.getIntegerInput(\"Select Table to checkout (-1 to cancel): \", new ArrayList<>(tOrders.keySet()), \"Invalid Table Number. Please select a valid table number or enter -1 to cancel\");\n if (tableNo == -1) {\n System.out.println(\"Checkout Operation Cancelled\");\n return false;\n }\n Order o = tOrders.get(tableNo);\n double total = printOrderDetails(o);\n System.out.println();\n System.out.println(\"Payment Mode\");\n System.out.println(\"1) Cash\");\n System.out.println(\"2) NETS\");\n System.out.println(\"3) Debit/Credit Card\");\n System.out.println(\"4) EZ-Link\");\n System.out.println(\"0) Cancel\");\n int choice = ScannerHelper.getIntegerInput(\"Select Payment Mode (0 to cancel): \", -1, 5);\n double paid;\n Invoice.PaymentType paymentType;\n switch (choice) {\n case 1:\n paid = requestCashPayment(total);\n paymentType = Invoice.PaymentType.PAYMENT_CASH;\n break;\n case 2:\n paymentType = Invoice.PaymentType.PAYMENT_NETS;\n paid = total; // All card payments are presumed paid fully\n break;\n case 3:\n paymentType = Invoice.PaymentType.PAYMENT_CARD;\n paid = total; // All card payments are presumed paid fully\n break;\n case 4:\n paymentType = Invoice.PaymentType.PAYMENT_EZLINK;\n paid = total; // All card payments are presumed paid fully\n break;\n case 0:\n System.out.println(\"Operation Cancelled\");\n return false;\n default:\n throw new MenuChoiceInvalidException(\"Checkout Payment\");\n }\n System.out.println(\"Payment Complete! Payment Mode: \" + paymentType.toString());\n if (paymentType == Invoice.PaymentType.PAYMENT_CASH) {\n System.out.println(\"Change: $\" + String.format(\"%.2f\", (paid - total)));\n }\n\n System.out.println(\"Generating Receipt...\");\n o.markPaid();\n OrderMenuUI.incompleteOrders.remove(o);\n ArrayList<String> receipt = generateReceipt(o, total, paid, paymentType);\n System.out.println();\n receipt.forEach(System.out::println);\n String receiptName = \"-\";\n if (writeReceipt(receipt, o.getOrderID())) {\n receiptName = o.getOrderID() + \".txt\";\n }\n Invoice i = new Invoice(o, receiptName, paymentType, total, paid);\n MainApp.invoices.add(i);\n System.out.println(\"\\n\");\n System.out.println(\"Returning to Main Menu...\");\n return true;\n }" ]
[ "0.6533938", "0.63529295", "0.62465817", "0.6207582", "0.6195908", "0.60777867", "0.6060169", "0.6028329", "0.59849167", "0.59567344", "0.5880283", "0.5880283", "0.58742815", "0.5870835", "0.58604133", "0.5845186", "0.58206785", "0.5815792", "0.58129", "0.5777032", "0.5774635", "0.5773587", "0.57734764", "0.57506526", "0.5689195", "0.5678445", "0.56647664", "0.56538206", "0.56469524", "0.56469524", "0.5639682", "0.5630622", "0.56004536", "0.55872136", "0.55766785", "0.5564722", "0.55524653", "0.554613", "0.55421865", "0.5539575", "0.55330336", "0.55326664", "0.55259216", "0.5525692", "0.5523403", "0.55214167", "0.5508457", "0.5504487", "0.5500515", "0.5491335", "0.54874676", "0.5483652", "0.54603916", "0.5452787", "0.5447164", "0.5434472", "0.54163694", "0.54141974", "0.5403929", "0.5400831", "0.53922945", "0.5391399", "0.5390081", "0.53889614", "0.5384687", "0.5383779", "0.5367806", "0.53659856", "0.53634953", "0.53583884", "0.5352691", "0.53414315", "0.53323734", "0.53315556", "0.5321382", "0.53194386", "0.53177303", "0.5313798", "0.53137696", "0.5310538", "0.5310269", "0.53014964", "0.5294654", "0.5294654", "0.5294654", "0.5291868", "0.5291089", "0.5291089", "0.5291089", "0.52898955", "0.5287936", "0.52824014", "0.5280142", "0.52770114", "0.52715576", "0.52700305", "0.52604777", "0.52425075", "0.52392197", "0.5238711", "0.5236769" ]
0.0
-1
TODO cancel invite user
public void cancelInvitionUser() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "User canceledUserRegistration(User user) throws LogicException;", "private void cancelGroupInviteNotification() {\n int size = mGroupInvitationInfos.size();\n Logger.d(TAG, \"cancelGroupInviteNotification() entry, size: \"\n + size);\n if (size == 0) {\n Context context = ApiManager.getInstance().getContext();\n Logger.e(TAG, \"cancelGroupInviteNotification() context: \"\n + context);\n if (context != null) {\n NotificationManager groupInviteNotification = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n groupInviteNotification.cancel(GROUP_INVITATION_TAG,\n NOTIFICATION_ID_CHAT);\n }\n }\n Logger.d(TAG, \"cancelGroupInviteNotification exit\");\n }", "public void setInviteUserId(Integer inviteUserId) {\n this.inviteUserId = inviteUserId;\n }", "InviteEntity accept(Integer inviteId);", "public void declineInvite(String player) {\r\n connection.declineInvite(player);\r\n }", "public void acceptInvitation(Player player) {\n if (invitations.containsKey(player)) {\n Player p = invitations.remove(player);\n List<Player> team = teams.get(p);\n team.add(player);\n teamMessage(p, ChatColor.BLUE + player.getName() + \" has joined the team!\");\n } else {\n player.sendMessage(ChatColor.RED + \"You were not invited to any teams! Forever alone..\");\n }\n }", "public Integer getInviteUserId() {\n return inviteUserId;\n }", "private void cancelRequest(String userId, String ownId) {\n String error = \"Failed to cancel friend request\";\n UserDatabase userDb = new UserDatabase(ownId);\n userDb.getChildCollection(\"friends\").document(userId).delete()\n .addOnSuccessListener(success -> {\n UserDatabase userDb1 = new UserDatabase(userId);\n userDb1.getChildCollection(\"friends\").document(ownId).delete()\n .addOnSuccessListener(success1 -> buttonAddFriend(userId, ownId))\n .addOnFailureListener(fail -> handleError(error, fail));\n })\n .addOnFailureListener(fail -> handleError(error, fail));\n }", "public boolean cancelEvent(String userId, String eventId){\n Organizer og = (Organizer)idToPerson.get(userId);\n if (og.getEventsSignedUp().contains(eventId)){ // check that they are currently signed up fro the event\n og.cancelSpot(eventId);\n return true;\n }\n return false;\n }", "InviteEntity decline(Integer inviteId);", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Intent intent = new Intent(ProfileActivity.this, InviteRoom.class);\n intent.putExtra(\"USERNAME\", userName);\n intent.putExtra(\"MULTI\", \"1\");\n// intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n dialogInterface.dismiss();\n\n }", "boolean unblockUser(User user);", "public void notifyCancel() {\n Player senderPlayer = this.getToTeleport().getPlayerReference(Player.class),\n targetPlayer = this.getTarget().getPlayerReference(Player.class);\n\n if (senderPlayer == null || targetPlayer == null) {\n return;\n }\n\n MainData.getIns().getMessageManager().getMessage(\"TPA_CANCELLED\").sendTo(senderPlayer);\n MainData.getIns().getMessageManager().getMessage(\"TPA_SELF_CANCELLED\").sendTo(targetPlayer);\n\n }", "public Call invite(String url);", "private void onInviteClicked() {\n Intent intent = new AppInviteInvitation.IntentBuilder(getString(R.string.invitation_title))\n .setMessage(getString(R.string.invitation_message))\n .setDeepLink(Uri.parse(getString(R.string.invitation_deep_link)))\n .setCustomImage(Uri.parse(getString(R.string.invitation_custom_image)))\n .setCallToActionText(getString(R.string.invitation_cta))\n .build();\n startActivityForResult(intent, REQUEST_INVITE);\n }", "@Override\n public void cancelIntraUser(String intraUserToCancelPublicKey) throws IntraUserCancellingFailedException {\n try {\n /**\n *Call Actor Intra User to cancel request connection\n */\n\n this.intraWalletUserManager.cancelIntraWalletUser(this.intraUserLoggedPublicKey, intraUserToCancelPublicKey);\n\n /**\n *Call Network Service Intra User to cancel request connection\n */\n\n this.intraUserNertwokServiceManager.cancelIntraUSer(this.intraUserLoggedPublicKey, intraUserToCancelPublicKey);\n\n\n } catch (CantCancelIntraWalletUserException e) {\n throw new IntraUserCancellingFailedException(\"CAN'T CANCEL INTRA USER CONNECTION- KEY:\" + intraUserToCancelPublicKey, e, \"\", \"\");\n } catch (Exception e) {\n throw new IntraUserCancellingFailedException(\"CAN'T CANCEL INTRA USER CONNECTION- KEY:\" + intraUserToCancelPublicKey, FermatException.wrapException(e), \"\", \"unknown exception\");\n }\n }", "public void setInvitedUserId(Integer invitedUserId) {\n this.invitedUserId = invitedUserId;\n }", "void updateInvitationForReceivingUser(Invitation invitation);", "public Boolean cancelRequest(User user, AsyncResultHandler handler);", "private void cancel(){\n\t\trefreshInformationsFromTableView(null);\n\t\thidePassword();\n\t\tclearFields();\n\t\tchangeCancelButton.setText(\"Zmień hasło\");\n\t\tnewUser = false;\n\t}", "public void OnRtcLiveCancelLine(String strPeerId, String strUserName);", "public boolean isIncomingInvitePending();", "public void rejectInvite(UserBean possibleOpponent)\n\t{\n\t\tSocket controlSocket;\n\t\ttry {\n\t\t\tcontrolSocket = new Socket(possibleOpponent.getIpAddress(), Model.controlDataSocketNumber);\n\t\t\tObjectOutputStream toPeer = new ObjectOutputStream(controlSocket.getOutputStream());\n\t\t\tClientMessage c = new ClientMessage();\n\t\t\tc.setCommand(\"REJECT\");\n\t\t\tc.setUser(new UserBean(this.hostName, this.userName, this.ipAddress));\n\t\t\tSystem.out.println(\"Rejecting invite\");\n\t\t\t\n\t\t\ttoPeer.writeObject(c);\n\t\t\n\t\t\tcontrolSocket.close();\n\t\t\t\n\t\t} catch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public String cancel() {\n endConversation();\n return CANCEL_OUTCOME_ID;\n }", "Task<?> addInvitationForReceivingUser(Invitation invitation);", "@PreAuthorize(\"#username == authentication.name\")\n\t@Override\n\tpublic void cancelJoin(int eventId, String username) {\n\t\tUser user = loggedinUserService.findByEmail(username);\n\t\tEvent event = findOne(eventId);\n\t\tevent.cancelJoinRequest(user);\n\t\trepository.save(event);\n\t}", "@Transactional(readOnly = false)\n\tpublic void rejectChatroomInvitation(User user, Chatroom chatroom) throws BadRequestException {\n\t\t// if there is no invite\n\t\tif (!this.memberInvitationSent(user, chatroom)) {\n\t\t\tthrow new BadRequestException(\"There is no invite to decline\");\n\t\t}\n\t\t// delete the relation\n\t\tthis.deleteMemberInvitation(user, chatroom);\n\t\t// delete the admin invite if it is there\n\t\tthis.deleteAdminInvitation(user, chatroom);\n\t}", "boolean blockUser(User user);", "@Override\n\t\tpublic void onCancel() {\n\t\t\tonLoginFinished(getErrorJsonbject(DOMException.CODE_USER_CANCEL, DOMException.MSG_USER_CANCEL), false);\n\t\t}", "protected boolean processAbortOffered(boolean toUser, int offerIndex, String oppName){\n return false;\n }", "public abstract boolean cancelRequest(int game_id, String username1, String username2) throws SQLException;", "Task<?> addInvitationForSendingUser(Invitation invitation);", "private void clickInvite(){\n WebDriverHelper.clickElement(inviteButton);\n }", "void updateInvitationForSendingUser(Invitation invitation);", "@Override\r\n\tpublic void onAddUser(BmobInvitation message) {\n\t\trefreshInvite(message);\r\n\t}", "private void deleteMemberInvitation(User user, Chatroom chatroom) {\n\t\tList<Chatroom> chatrooms = user.getChatroomInvites();\n\t\tList<User> users = chatroom.getMemberInvitees();\n\t\t// if the user has received invite\n\t\tif (memberInvitationSent(user, chatroom)) {\n\t\t\t// delete the relation\n\t\t\tchatrooms.remove(chatroom);\n\t\t\tusers.remove(user);\n\t\t\t// save the chatroom, and update its relations\n\t\t\tchatroomRepository.save(chatroom);\n\t\t}\n\t}", "public void oncancel() {\r\n Users user = ui.getUser();\r\n newRating = ratingEJB.findByUserAndRecipe(user, recipe);\r\n\r\n if (newRating != null) {\r\n ratingEJB.removeRecipeRating(newRating);\r\n }\r\n }", "@Override\n\tpublic void disinvite(Party party) throws CTPException {\n\t\t\n\t}", "private void cancel(ActionEvent e){\r\n // Clear textfields\r\n clearFields();\r\n // If coming from appt management screen, go back there\r\n if (fromAppt){\r\n goToManageApptScreen();\r\n }\r\n // Otherwise, set the current client to null and go to the landing page \r\n else {\r\n currClient = null;\r\n LandingPage.returnToLandingPage();\r\n }\r\n }", "@Override\n public void onCancel() {\n Log.d(TAG, \"User cancelled login.\");\n }", "@Override\r\n\tpublic void cancelRole(String idList, String companyId) {\n\t\t\r\n\t}", "public void reject(){\n ArrayList<User> u1 = new ArrayList<User>();\n u1.addAll(Application.getApplication().getNonValidatedUsers());\n u1.remove(this);\n\n Application.getApplication().setNonValidatedUsers(u1);\n }", "public void abortOnRequested() throws AbortException {\n\t\tsynchronized (this) {\n\t\t\tif( Messenger.abortRequested() ) {\t\n\t\t\t\tSystem.out.println(\"notify\");\n\t\t\t\tthis.notifyAll();\t\n\t\t\t\tMessenger.resetUserRequests();\n\t\t\t\tAbortException.throwNewException(SaadaException.USER_ABORT, \"User Request\");\n\t\t\t}\n\t\t\tMessenger.resetUserRequests();\n\t\t}\n\t}", "void sendCancelMessage();", "public Integer getInvitedUserId() {\n return invitedUserId;\n }", "public void cancelTrip() {\n\t\n\t\t// TODO - fill in here\n\t\tIntent intent = new Intent();\n\t\tsetResult(RESULT_CANCELED,intent);\n\t\tfinish();\n\t}", "private void buttonCancelRequest(String userId, String ownId) {\n friendsButton.setText(\"Cancel Request\");\n friendsButton.setOnClickListener(view -> cancelRequest(userId, ownId));\n profileOptions.setVisibility(View.GONE);\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "void removeInvitedTrans(ITransaction transaction, String userId);", "private void autoAcceptGroupChat(Context context,\n Intent invitation) {\n Logger.v(TAG, \"autoAcceptGroupChat entry\");\n ArrayList<ChatMessage> messages = new ArrayList<ChatMessage>();\n ChatMessage msg = invitation\n .getParcelableExtra(FIRST_MESSAGE);\n if (msg != null) {\n messages.add(msg);\n }\n invitation.putParcelableArrayListExtra(MESSAGES, messages);\n ModelImpl.getInstance().handleNewGroupInvitation(invitation,\n false);\n Logger.v(TAG, \"autoAcceptGroupChat exit\");\n }", "@Override\n public void onInvite(final int type, final boolean isOpen) {\n runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n postInvite(type, isOpen);\n }\n });\n }", "public SPResponse sendCalInvite(User user, Object[] params) {\n final SPResponse resp = new SPResponse();\n \n MeetingInviteForm inviteForm = (MeetingInviteForm) params[1];\n \n // String actionPlanId = (String) params[0];\n // Assert.hasText(actionPlanId, \"Organization Plan id is required.\");\n // ActionPlanDao actionPlan = getActionPlan(actionPlanId);\n // String stepId = (String) params[2];\n // String uid = (String) params[3];\n // if (StringUtils.isNotBlank(uid)) {\n // if (!actionPlan.validateUID(uid)) {\n // throw new DashboardRedirectException(MessagesHelper.getMessage(\"service.growl.message5\"));\n // }\n // }\n \n // validate the form\n inviteForm.validate();\n \n // add the current user to the to list\n inviteForm.getTo().add(user.getEmail());\n \n // get the parameters from the form and send the invite\n EmailParams emailParams = inviteForm.getEmailParam();\n emailParams.addParam(Constants.PARAM_FIRSTNAME, user.getFirstName());\n emailParams.addParam(Constants.PARAM_LASTNAME, user.getLastName());\n \n gateway.sendMessage(emailParams);\n \n return resp.isSuccess();\n }", "public HiveRemoveUserFromInitiative(Context context){\n this.context = context;\n }", "@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}", "public void quitarParticipante(UsuarioDeLista echado){\r\n\t\ttry {\r\n\t\t\tthis.participantes.remove(echado);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());//Seria mejor poner un messagebox.\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n public void onCanceled() {\n\n logOutNow();\n\n }", "public void youWinByAbandonment() {\n try {\n if (getClientInterface() != null)\n getClientInterface().gameEndedByAbandonment(\"YOU WON BECAUSE YOUR OPPONENTS HAVE ABANDONED!!\");\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending ended by abandonment error\");\n }\n }", "boolean editInvitation(Invitation invitation);", "public boolean onInviteReceived(MMXChannel.MMXInvite invite) {\n //default implementation is a no-op\n return false;\n }", "@Override\r\n\tpublic void ShowInvite(Context _in_context, String _in_data) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void ShowInvite(Context _in_context, String _in_data) {\n\t\t\r\n\t}", "@Override\n public void onClick(View v) {\n aManager.cancel(pIntent);\n Toast.makeText(getApplicationContext(), \"Cancel\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\t\n\t\t\t}", "@Override\n public void run() {\n try {\n pendingConfirms.remove(target.getName(),sender.getName());\n } catch (Exception ignored) {/*player has already confirmed*/}\n }", "public static synchronized void handleInvitation(Context context,\n Intent intent) {\n Logger.d(TAG,\n \"handleInvitation() entry with intend action is \"\n + intent.getAction());\n String action = intent.getAction();\n if (action == null) {\n return;\n }\n String contact = formatCallerId(intent);\n intent.putExtra(DISPLAY_NAME, contact);\n if (ChatIntent.ACTION_NEW_CHAT.equalsIgnoreCase(action)) {\n Chat chatSession = RcsNotification.getInstance()\n .getChatSession(intent);\n if (chatSession == null) {\n Logger.d(TAG, \"The chat session is null\");\n return;\n }\n try {\n handleChatInvitation(context, intent);\n } catch (Exception e) {\n Logger.d(TAG, \"Chat operation error\");\n e.printStackTrace();\n }\n } else if (FileTransferIntent.ACTION_NEW_INVITATION\n .equalsIgnoreCase(action)) {\n getInstance().handleFileTransferInvitation(context,\n intent);\n } else if (GroupChatIntent.ACTION_NEW_INVITATION\n .equalsIgnoreCase(action)) {\n Logger.d(TAG, \"Group Chat invitation arrived\");\n try {\n if (!(intent.getBooleanExtra(\"isGroupChatExist\",\n false))) {\n boolean autoAccept = intent.getBooleanExtra(\n AUTO_ACCEPT, false);\n RcsNotification.getInstance()\n .handleGroupChatInvitation(context,\n intent, autoAccept);\n }\n } catch (Exception e) {\n Logger.d(TAG, \"Group Chat operation error\");\n e.printStackTrace();\n }\n } else if (ImageSharingIntent.ACTION_NEW_INVITATION\n .equalsIgnoreCase(action)) {\n handleImageSharingInvitation(context, intent);\n } else if (VideoSharingIntent.ACTION_NEW_INVITATION\n .equalsIgnoreCase(action)) {\n handleVideoSharingInvitation(context, intent);\n } /*\n * else if (ChatIntent.CHAT_SESSION_REPLACED.equalsIgnoreCase(action))\n * { handleChatInvitation(context, intent); }\n */\n Logger.v(TAG, \"handleInvitation() exit\");\n }", "@Override\r\n\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "private void deleteAdminInvitation(User user, Chatroom chatroom) {\n\t\tList<Chatroom> chatrooms = user.getChatroomAdminInvites();\n\t\tList<User> users = chatroom.getAdminInvitees();\n\t\t// if the user has received invite\n\t\tif (adminInvitationSent(user, chatroom)) {\n\t\t\t// delete the relation\n\t\t\tchatrooms.remove(chatroom);\n\t\t\tusers.remove(user);\n\t\t\t// save the chatroom, and update its relations\n\t\t\tchatroomRepository.save(chatroom);\n\t\t}\n\t}", "public void onClick(View v) {\n\t\t\t\tif(authorities[0] == Authority.Email.ordinal()) {\n\t\t\t\t\tfinal String subject = \"You have a new Musubi message!\";\n\t\t\t\t\tfinal String body = message + \" \" + MUSUBI_MARKET_URL;\n\t\t\t\t\tIntent send = new Intent(Intent.ACTION_SENDTO);\n\t\t\t\t\tStringBuilder recipientsString = new StringBuilder();\n\t\t\t\t\t// only add emails\n\t\t\t\t\tfor(int i = 0; i < recipients.length; i++) {\n\t\t\t\t\t\tif(authorities[i] == Authority.Email.ordinal()) {\n\t\t\t\t\t\t\trecipientsString.append(recipients[i]).append(\",\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\trecipientsString.deleteCharAt(recipientsString.length()-1);\n\t\t\t\t\tString uriText;\n\t\t\t\t\turiText = \"mailto:\" + recipientsString.toString() +\n\t\t\t\t\t\"?subject=\" + subject + \n\t\t\t\t\t\"&body=\" + body;\n\t\t\t\t\t//TODO: real url encoding?\n\t\t\t\t\turiText = uriText.replace(\" \", \"%20\");\n\t\t\t\t\tUri uri = Uri.parse(uriText);\n\t\t\t\t\tsend.setData(uri);\n\t\t\t\t\tstartActivity(Intent.createChooser(send, \"Send invitation...\"));\n\n\t\t\t\t\tMIdentity[] identities = markAsHasSent(mIntent);\n\t\t\t\t\t//let other people in the feed know that spamming is unnecessary\n\t\t\t\t\tif(mFeedUri != null) {\n\t\t\t\t\t\tObj invitedObj = OutOfBandInvitedObj.from(Arrays.asList(identities).iterator());\n\t\t\t\t\t\tHelpers.sendToFeed(EmailUnclaimedMembersActivity.this, invitedObj, mFeedUri);\n\t\t\t\t\t}\n\n\t\t\t\t\tEmailUnclaimedMembersActivity.this.finish();\n\t\t\t\t} else if(authorities[0] == Authority.Facebook.ordinal()) {\n\t\t\t\t\tFacebook fb = AccountLinkDialog.getFacebookInstance(EmailUnclaimedMembersActivity.this);\n//\t\t\t\t\tAsyncFacebookRunner asyncRunner = new AsyncFacebookRunner(fb);\n//\n\t\t \t\tif(fb.isSessionValid()) {\n//\t\t \t\t\t// TODO: batch request in json array. currently facebook limits 50 requests per batch\n//\t\t \t\t\t// need to split up it if it's more than 50\n//\t\t \t\t\tfinal String fbmsg = new StringBuilder()\n//\t\t \t\t\t\t.append(\"message=\").append(message)\n//\t\t \t\t\t\t.append(\"&link=\").append(link)\n//\t\t \t\t\t\t.append(\"&picture=\").append(LOGO_PICTURE_URL).toString();\n//\t\t \t\t\t\n//\t\t \t\t\tJSONArray batchObj = new JSONArray();\n//\t\t \t\t\ttry {\n//\t\t \t\t\t\tfor(String id : recipients) {\n//\t\t \t\t\t\tJSONObject post = new JSONObject();\n//\t\t \t\t\t\tpost.put(\"method\", \"POST\");\n//\t\t \t\t\t\tpost.put(\"relative_url\", id+\"/feed\");\n//\t\t \t\t\t\tpost.put(\"body\", fbmsg);\n//\t\t \t\t\t\tbatchObj.put(post);\n//\t\t \t\t\t}\n//\t\t \t\t\t} catch (JSONException e) {\n//\t\t \t\t\t\tLog.e(TAG, e.toString());\n//\t\t \t\t\t}\n//\t\t \t\t\tBundle batch = new Bundle();\n//\t\t \t\t\tbatch.putString(\"batch\", batchObj.toString());\n//\t\t \t\t\tasyncRunner.request(\"/\", batch, \"POST\", new FriendRequestListener(), null);\n\t\t \t\t\t\n\t\t \t\t\tStringBuilder recipientsString = new StringBuilder();\n\t\t\t\t\t\t// only add fb ids\n\t\t\t\t\t\tfor(int i = 0; i < recipients.length; i++) {\n\t\t\t\t\t\t\tif(authorities[i] == Authority.Facebook.ordinal()) {\n\t\t\t\t\t\t\t\trecipientsString.append(recipients[i]).append(\",\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\trecipientsString.deleteCharAt(recipientsString.length()-1);\n\t\t \t\t\tBundle params = new Bundle();\n\t\t \t\t\tparams.putString(\"message\", message);\n\t\t \t\t\tparams.putString(\"to\", recipientsString.toString());\n\t\t \t\t\tfb.dialog(EmailUnclaimedMembersActivity.this, \"apprequests\", params, new AppRequestDialogListener());\n\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t}", "public void onClick(View v) {\n AcceptRequest(Instructors.get(v.getId()));\n //restart activity\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n }", "private static void handleVideoSharingInvitation(Context context,\n Intent invitation) {\n }", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\ttalkDialog.cancel();\r\n\t\t\t\t}", "public void cancel(Object content){\n\t\t\n\t\tif (isInitiator() && (getState() != RequestProtocolState.DONE) && (getState() != RequestProtocolState.CANCELED)\n\t\t\t\t&& (getState() != RequestProtocolState.NOT_STARTED)) \n\t\t{\n\t\t\tsendMessage(content, Performative.CANCEL, getParticipants().get(0));\n\t\t\tsetState(RequestProtocolState.CANCELING);\n\t\t}\n\t\telse if (isParticipant()) {\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.21\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.22\")); //$NON-NLS-1$\n\t\t}\n\t}", "@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}", "@Override\r\n\tpublic RemoteResult deactivateIMUser(String userName) {\n\t\treturn null;\r\n\t}", "@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "public void removeGuest(Invitato in){\n AssegnamentiTavolo.remove(in);\n num_posti++;\n openAssignment();\n }", "void cancel(long inId);", "@EventHandler\r\n\tpublic void oninvClick(InventoryClickEvent e) {\r\n\t\tif(e.getWhoClicked() instanceof Player) {\r\n\t\t\tInventory shopinv = e.getInventory();\t\r\n\t\t\tif(shopinv.getName() == \"§6Gamble-Shop §7| §6Kleidung\") {\r\n\t\t\t\te.setCancelled(true);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(shopinv.getName() == \"§6Gamble-Shop §7| §6Partikel\") {\r\n\t\t\t\te.setCancelled(true);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(shopinv.getName() == \"§6Gamble-Shop §7| §6Effekte\") {\r\n\t\t\t\te.setCancelled(true);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(shopinv.getName() == \"§6Gamble-Shop §7| §6Kleidung\") {\r\n\t\t\t\te.setCancelled(true);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(shopinv.getName() == \"§6Gamble-Shop §7| §6Haustiere\") {\r\n\t\t\t\te.setCancelled(true);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\t\t\t\tpublic boolean onCancel() {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public void sendInvite(String userName)\n\t{\n\t\tString user = userName.split(\": \")[1];\n\t\tUserBean receiver = null;\n\t\t\n\t\tfor(UserBean u: this.onlineUsers)\n\t\t{\n\t\t\tif(u.getUserName().equals(user))\n\t\t\t{\n\t\t\t\treceiver = u;\n\t\t\t\tSystem.out.println(user);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSocket controlSocket;\n\t\ttry {\n\t\t\tSystem.out.println(\"Setting up connection to: \" + receiver.getIpAddress());\n\t\t\tcontrolSocket = new Socket(receiver.getIpAddress(), Model.controlDataSocketNumber);\n\t\t\tObjectOutputStream toPeer = new ObjectOutputStream(controlSocket.getOutputStream());\n\t\t\tClientMessage c = new ClientMessage();\n\t\t\tc.setCommand(\"INVITE\");\n\t\t\tc.setUser(new UserBean(this.hostName, this.userName, this.ipAddress));\n\t\t\tthis.piece = this.generatePiece();\n\t\t\tc.setPiece(piece);\n\t\t\t\n\t\t\tthis.opponent = receiver;\n\t\t\t\n\t\t\ttoPeer.writeObject(c);\n\t\t\t\n\t\t\tcontrolSocket.close();\n\t\t\t\n\t\t} catch (IOException e) {\t\t\t\n\t\t\te.printStackTrace();\n\t\t} \n\n\t}", "@RequestMapping(value = \"/accept/team/invitation/{invitationId}\", method = PUT)\n public LobbyTeam acceptTeamInvitation(@AuthenticationPrincipal UserSimpleDetails user,\n @PathVariable(\"invitationId\") String invitationId)\n throws TeamInvitationNotFoundException, TeamFullException, TeamNotFoundException {\n log.info(\"user {} accepts team invitation {}\", user.getIdentity(), invitationId);\n return lobbyService.acceptTeamInvitation(user.getProfileId(), invitationId);\n }", "public void onClick(View v) {\n setResult(Activity.RESULT_CANCELED);\n // write a toast message\n Toast.makeText(v.getContext(), \"Canceled!\", Toast.LENGTH_SHORT).show();\n // finish activity\n finish();\n }", "abstract protected ActionForward processCancel( UserRequest request )\n throws IOException, ServletException;", "@Override\n public void onClick(View view) {\n CharSequence options[] =new CharSequence[] {\n \"Cancel Chat Request\"\n };\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setTitle(name + \" Already Sent Request\");\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n //i = position of CharSequence\n if (i == 0) { // if the user click on cancel btn\n\n //i want to remove that request from the requests fragment//\n //first, we need to remove for sender\n RequestsRef.child(currentUserID).child(userID)\n .removeValue()\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n //then for receiver\n if (task.isSuccessful()){\n RequestsRef.child(userID).child(currentUserID)\n .removeValue()\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n Toast.makeText(getContext(), \"You have cancelled the chat request.\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n });\n }\n\n }\n });\n builder.show();\n }", "Boolean acceptRequest(User user);", "public void openCancelReservation(){\n Intent intent = new Intent(this, CancelLogInActivity.class);\n startActivity(intent);\n }", "public void requestcanceled() {\n\n requestcancelcheck = true;\n\n String diatitle = \"Request cancelled.\";\n String msg = \"Request cancelled by Rider.\";\n\n marker.setEnabled(false);\n // mGoogleMap.clear();\n fullbutton.setVisibility(View.GONE);\n usercheck = false;\n touch.setVisibility(View.GONE);\n marker.setVisibility(View.INVISIBLE);\n checkonclick = false;\n timercheck = true;\n whilecheck = true;\n accheck = true;\n receivecheck = true;\n\n acc1 = acc;\n\n registerReceiver(mHandleMessageReceiver, new IntentFilter(Config.DISPLAY_MESSAGE_ACTION));\n dialogshow(diatitle, msg);\n\n }", "public void cancelNotification() {\n Context context = ApiManager.getInstance().getContext();\n if (context != null) {\n NotificationManager notificationManager = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n if (notificationManager != null) {\n Logger.d(TAG, \"cancelNotification() entry\");\n notificationManager.cancel(UNREAD_MESSAGE,\n NOTIFICATION_ID_UNREAD_MESSAGE);\n notificationManager.cancel(FILE_TRANSFER,\n NOTIFICATION_ID_FILE_TRANSFER);\n } else {\n Logger.e(TAG,\n \"cancelNotification the notificationManager is null\");\n }\n } else {\n Logger.e(TAG,\n \"cancelGroupInviteNotification the context is null\");\n }\n mUnReadMessagesChatInfos.clear();\n mFileInvitationInfos.clear();\n Logger.d(TAG, \"cancelNotification() exit\");\n }", "@After\n public void cancelIfActive() {\n\n try {\n UserBusinessActivity uba = UserBusinessActivityFactory.userBusinessActivity();\n uba.cancel();\n } catch (Throwable th2) {\n // do nothing, already closed\n }\n }", "public void onClick(View v) {\n\t\t\t\tmarkAsHasSent(mIntent);\n\t\t\t\tEmailUnclaimedMembersActivity.this.finish();\n\t\t\t}", "@Override\n\t\tpublic void onCancel() {\n \n \t}", "@Override\n\tpublic void cancel() {\n\t\t\n\t}", "@Override\n public void cancel() {\n\n }", "public void setInvincible(boolean invincible) {\r\n \t\tthis.isInvincible = invincible;\r\n \t}", "@Override\n\t\t\tpublic boolean isCanceled() {\n\t\t\t\treturn false;\n\t\t\t}", "public void cancelTask(){\n\t\tif(main.teleporting.containsKey(teleporter.getName())){\n\t\t\tmain.teleporting.remove(teleporter.getName());\n\t\t}\n\t\tthis.cancel();\n\t}", "private void cancel (String name, String vehicle, String uName, int points){\n Intent intent = new Intent(MatchedActivity.this, UserAreaActivity.class);\n intent.putExtra(\"name\", name);\n intent.putExtra(\"vehicle\", vehicle);\n intent.putExtra(\"Uname\", uName);\n intent.putExtra(\"points\", points);\n\n MatchedActivity.this.startActivity(intent);\n }" ]
[ "0.6839794", "0.6445333", "0.6217392", "0.6195105", "0.612916", "0.60424936", "0.60317093", "0.5944809", "0.5941504", "0.59298426", "0.5921058", "0.5914528", "0.58978295", "0.5889597", "0.58670735", "0.586178", "0.5859757", "0.58483875", "0.58411175", "0.5830831", "0.58262783", "0.581747", "0.5778399", "0.57505995", "0.5749429", "0.5739519", "0.57300603", "0.5721502", "0.56899494", "0.567658", "0.566955", "0.56573826", "0.56542933", "0.5647203", "0.56408894", "0.5604153", "0.5575941", "0.5562851", "0.5561834", "0.5522567", "0.5522313", "0.5514415", "0.5511312", "0.55098575", "0.5508121", "0.5495259", "0.5493262", "0.5489446", "0.54713005", "0.546995", "0.54609776", "0.5458719", "0.5458426", "0.5456521", "0.5451063", "0.54508793", "0.5447553", "0.54437935", "0.5443216", "0.5441849", "0.5441849", "0.542493", "0.5421537", "0.5412379", "0.5398485", "0.5396657", "0.5387447", "0.53841597", "0.5370508", "0.53694314", "0.53632843", "0.53632635", "0.5357246", "0.535616", "0.5350854", "0.5350556", "0.5350556", "0.5350556", "0.534818", "0.5347407", "0.53456646", "0.5339982", "0.5331778", "0.5330308", "0.53296775", "0.5325686", "0.532283", "0.5320264", "0.53177196", "0.53169763", "0.5315611", "0.5314679", "0.53104055", "0.5309779", "0.53068525", "0.5306777", "0.5306082", "0.53049815", "0.5302066", "0.53015554" ]
0.78985673
0
remueve los datos de la tabla
public void limpiar(DefaultTableModel tabla) { for (int i = 0; i < tabla.getRowCount(); i++) { tabla.removeRow(i); i -= 1; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearData() throws SQLException {\n//Lay chi so dong cuoi cung\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }", "private void limparTabela() {\n while (tmLivro.getRowCount() > 0) {\n tmLivro.removeRow(0);\n }\n }", "private void limparTabela() { \n while (tmLivro.getRowCount() > 0) { \n tmLivro.removeRow(0);\n }\n }", "public final void detalleTabla()\n {\n \n try\n {\n ResultSet obj=nueva.executeQuery(\"SELECT cli_nit,cli_razon_social FROM clientes.cliente ORDER BY cli_razon_social ASC\");\n \n while (obj.next()) \n {\n \n Object [] datos = new Object[2];\n \n \n for (int i=0;i<2;i++)\n {\n datos[i] =obj.getObject(i+1);\n }\n\n modelo.addRow(datos);\n \n }\n tabla_cliente.setModel(modelo);\n nueva.desconectar();\n \n \n \n }catch(Exception e)\n {\n JOptionPane.showMessageDialog(null, e, \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }", "private void clearTableData() {\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n model.setRowCount(0);\n }", "private void loadTable() {\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n try {\n String sql = \"select * from tb_mahasiswa\";\n Statement n = a.createStatement();\n ResultSet rs = n.executeQuery(sql);\n while (rs.next()) {\n Object[] o = new Object[6];\n o[0] = rs.getString(\"id_mahasiswa\");\n o[1] = rs.getString(\"nama\");\n o[2] = rs.getString(\"tempat\");\n o[3] = rs.getString(\"waktu\");\n o[4] = rs.getString(\"status\");\n model.addRow(o);\n }\n } catch (Exception e) {\n }\n }", "public void readTable() {\n DefaultTableModel modelo = (DefaultTableModel) jTable1.getModel();\n modelo.setRowCount(0);\n\n }", "public void LimpiarJTablaPorFecha()\n {\n for(int i=modeloPorFecha.getRowCount()-1;i>=0;i--)\n {\n modeloPorFecha.removeRow(i); \n }\n }", "public void vaciarTabla() {\n\n DefaultTableModel modelo = (DefaultTableModel) table1Calificaciones.getModel();\n int total = table1Calificaciones.getRowCount();\n for (int i = 0; i < total; i++) {\n modelo.removeRow(0);\n }\n\n }", "private void clearTable() {\n fieldTable.removeAllRows();\n populateTableHeader();\n }", "public void removeAllDataEmpleado() {\n DefaultTableModel dm = (DefaultTableModel) table.getModel();\n dm.getDataVector().removeAllElements();\n dm.fireTableDataChanged(); // notifies the JTable that the model has changed\n }", "public DefaultTableModel cargarDatos () {\r\n DefaultTableModel modelo = new DefaultTableModel(\r\n new String[]{\"ID SALIDA\", \"IDENTIFICACIÓN CAPITÁN\", \"NÚMERO MATRICULA\", \"FECHA\", \"HORA\", \"DESTINO\"}, 0); //Creo un objeto del modelo de la tabla con los titulos cargados\r\n String[] info = new String[6];\r\n String query = \"SELECT * FROM actividad WHERE eliminar = false\";\r\n try {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(query);\r\n while (rs.next()) { \r\n info[0] = rs.getString(\"id_salida\");\r\n info[1] = rs.getString(\"identificacion_navegate\");\r\n info[2] = rs.getString(\"numero_matricula\");\r\n info[3] = rs.getString(\"fecha\");\r\n info[4] = rs.getString(\"hora\");\r\n info[5] = rs.getString(\"destino\");\r\n Object[] fila = new Object[]{info[0], info[1], info[2], info[3], info[4], info[5]};\r\n modelo.addRow(fila);\r\n }\r\n st.close();\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return modelo;\r\n }", "public void removeAllDataCliente() {\n DefaultTableModel dm = (DefaultTableModel) table.getModel();\n dm.getDataVector().removeAllElements();\n dm.fireTableDataChanged(); // notifies the JTable that the model has changed\n }", "Tablero consultarTablero();", "public void reloadTable() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (list.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Balanza object = list.get(i);\n this.AddtoTable(object);\n }\n\n }", "public void clearTable(){\n\t\tloaderImage.loadingStart();\n\t\tfullBackup.clear();\n\t\tlist.clear();\n\t\toracle.clear();\n\t\tselectionModel.clear();\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t}", "private void refreshTable() {\n dataPanel.getModel().setRowCount(0);\n try {\n ResultSet resultSet = reg.get();\n while (resultSet.next()) {\n dataPanel.getModel().addRow(new Object[]{\n resultSet.getInt(\"id\"),\n resultSet.getString(\"first_name\"),\n resultSet.getString(\"last_name\"),\n resultSet.getString(\"username\"),\n resultSet.getString(\"password\"),\n resultSet.getInt(\"age\"),\n resultSet.getString(\"gender\"),\n });\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public void llenadoDeTablas() {\n \n DefaultTableModel modelo1 = new DefaultTableModel();\n modelo1 = new DefaultTableModel();\n modelo1.addColumn(\"ID Usuario\");\n modelo1.addColumn(\"NOMBRE\");\n UsuarioDAO asignaciondao = new UsuarioDAO();\n List<Usuario> asignaciones = asignaciondao.select();\n TablaPerfiles.setModel(modelo1);\n String[] dato = new String[2];\n for (int i = 0; i < asignaciones.size(); i++) {\n dato[0] = (Integer.toString(asignaciones.get(i).getId_usuario()));\n dato[1] = asignaciones.get(i).getNombre_usuario();\n\n modelo1.addRow(dato);\n }\n }", "private void TampilData() {\n DefaultTableModel model = new DefaultTableModel();\n model.addColumn(\"NO\");\n model.addColumn(\"ID\");\n model.addColumn(\"NAME\");\n model.addColumn(\"USERNAME\");\n tabelakses.setModel(model);\n\n //menampilkan data database kedalam tabel\n try {\n int i=1;\n java.sql.Connection conn = new DBConnection().connect();\n java.sql.Statement stat = conn.createStatement();\n ResultSet data = stat.executeQuery(\"SELECT * FROM p_login order by Id asc\");\n while (data.next()) {\n model.addRow(new Object[]{\n (\"\" + i++),\n data.getString(\"Id\"),\n data.getString(\"Name\"),\n data.getString(\"Username\")\n });\n tabelakses.setModel(model);\n }\n } catch (Exception e) {\n System.err.println(\"ERROR:\" + e);\n }\n }", "private void fillData() {\n table.setRowList(data);\n }", "private void refreshTable() {\n data = getTableData();\n updateTable();\n }", "private void preencherTabela() {\n\t\tList<Cidade> listCidade;\n\t\tCidadeDAO cidadeDAO;\n\t\tObservableList<Cidade> oListCidade;\n\n\t\t// Determina os atributos que irão preencher as colunas\n\t\tcolCidade.setCellValueFactory(new PropertyValueFactory<>(\"nomeCidades\"));\n\t\tcolEstado.setCellValueFactory(new PropertyValueFactory<>(\"nomeEstado\"));\n\t\tcolSigla.setCellValueFactory(new PropertyValueFactory<>(\"siglaEstado\"));\n\t\tcolCodigoCidade.setCellValueFactory(new PropertyValueFactory<>(\"idCidade\"));\n\t\tcolIdEstado.setCellValueFactory(new PropertyValueFactory<>(\"idEstado\"));\n\n\t\t// Instancia a lista de cidades e a DAO\n\t\tlistCidade = new ArrayList<Cidade>();\n\t\tcidadeDAO = new CidadeDAO();\n\n\t\t// Chama o metodo para selecionar todas as cidades e atribuir a lista\n\t\tlistCidade = cidadeDAO.selecionar();\n\n\t\t// Converte a lista de cidades em observablearray\n\t\toListCidade = FXCollections.observableArrayList(listCidade);\n\n\t\t// Adiciona a lista na tabela\n\t\ttblCidades.setItems(oListCidade);\n\t}", "private void repopulateTableForDelete()\n {\n clearTable();\n populateTable(null);\n }", "public void createTable() {\n try {\n tableLayout = findViewById(R.id.tabla);\n tb = new TableDinamic(tableLayout, getApplicationContext(), \"cargarDetalle\", clc, cap_1, cap_2, cap_ct, txtidReg, txtId, txtBloque, txtVariedad);\n tableLayout.removeAllViews();\n tb.addHeader(header);\n tb.addData(cargarTabla());\n tb.backgroundHeader(\n Color.parseColor(\"#20C0FF\")\n );\n tb.backgroundData(\n Color.parseColor(\"#FFFFFF\"),\n Color.parseColor(\"#81F0EDED\")\n );\n } catch (Exception e) {\n Toast.makeText(this, \"Error de la table: \" + e.toString(), Toast.LENGTH_LONG).show();\n }\n }", "private void tampilkan() {\n int row = table.getRowCount();\n for(int a= 0; a<row;a++){\n model.removeRow(0);\n }\n \n \n }", "public void limpiartabla(JTable pantallaclientes){\n modelo = (DefaultTableModel) pantallaclientes.getModel();\n while(modelo.getRowCount()>0) modelo.removeRow(0);\n }", "public void llenadoDeTablas() {\n /**\n *\n * creaccion de la tabla de de titulos \n */\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Bitacora\");\n modelo.addColumn(\"Usuario\");\n modelo.addColumn(\"Fecha\");\n modelo.addColumn(\"Hora\");\n modelo.addColumn(\"Ip\");\n modelo.addColumn(\"host\");\n \n modelo.addColumn(\"Accion\");\n modelo.addColumn(\"Codigo Aplicacion\");\n modelo.addColumn(\"Modulo\");\n /**\n *\n * instaciamiento de las las clases Bitacora y BiracoraDAO\n * intaciamiento de la clases con el llenado de tablas\n */\n BitacoraDao BicDAO = new BitacoraDao();\n List<Bitacora> usuario = BicDAO.select();\n JtProductos1.setModel(modelo);\n String[] dato = new String[9];\n for (int i = 0; i < usuario.size(); i++) {\n dato[0] = usuario.get(i).getId_Bitacora();\n dato[1] = usuario.get(i).getId_Usuario();\n dato[2] = usuario.get(i).getFecha();\n dato[3] = usuario.get(i).getHora();\n dato[4] = usuario.get(i).getHost();\n dato[5] = usuario.get(i).getIp();\n dato[6] = usuario.get(i).getAccion();\n dato[7] = usuario.get(i).getCodigoAplicacion();\n dato[8] = usuario.get(i).getModulo();\n \n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }}", "public void setTableData()\n\t{\n\t\tsetTableData(false);\n\t}", "private void refreshTable(){\n DefaultTableModel dm = (DefaultTableModel)table.getModel();\r\n dm.getDataVector().removeAllElements();\r\n System.out.println(\"Refresh Table\");\r\n\r\n //calling method addRows\r\n addRows();\r\n }", "public void limpiartabla(JTable listaempleados){\n modelo = (DefaultTableModel) listaempleados.getModel();\n while(modelo.getRowCount()>0)modelo.removeRow(0);\n }", "public void LlenarPagos(){\n datos=new DefaultTableModel();\n LlenarModelo();\n this.TablaPagos.setModel(datos);\n }", "public void clearAllTable() {\n\t\tint rowCount = dmodel.getRowCount();\n\t\tfor (int i = rowCount - 1; i >= 0; i--) {\n\t\t\tdmodel.removeRow(i);\n\t\t}\n\t}", "public void llenadoDeTablas() {\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Articulo\");\n modelo.addColumn(\"Fecha Ingreso\");\n modelo.addColumn(\"Nombre Articulo\");\n modelo.addColumn(\"Talla XS\");\n modelo.addColumn(\"Talla S\");\n modelo.addColumn(\"Talla M\");\n modelo.addColumn(\"Talla L\");\n modelo.addColumn(\"Talla XL\");\n modelo.addColumn(\"Color Articulo\");\n modelo.addColumn(\"Nombre Proveedor\");\n modelo.addColumn(\"Existencias\");\n\n RegistroArticuloDAO registroarcticuloDAO = new RegistroArticuloDAO();\n\n List<RegistroArticulo> registroarticulos = registroarcticuloDAO.select();\n TablaArticulo.setModel(modelo);\n String[] dato = new String[11];\n for (int i = 0; i < registroarticulos.size(); i++) {\n dato[0] = Integer.toString(registroarticulos.get(i).getPK_id_articulo());\n dato[1] = registroarticulos.get(i).getFecha_ingreso();\n dato[2] = registroarticulos.get(i).getNombre_articulo();\n dato[3] = registroarticulos.get(i).getTalla_articuloXS();\n dato[4] = registroarticulos.get(i).getTalla_articuloS();\n dato[5] = registroarticulos.get(i).getTalla_articuloM();\n dato[6] = registroarticulos.get(i).getTalla_articuloL();\n dato[7] = registroarticulos.get(i).getTalla_articuloXL();\n dato[8] = registroarticulos.get(i).getColor_articulo();\n dato[9] = registroarticulos.get(i).getNombre_proveedor();\n dato[10] = registroarticulos.get(i).getExistencia_articulo();\n\n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }\n }", "public void tblLimpiar(JTable tabla, DefaultTableModel modelo1){\n for (int i = 0; i < tabla.getRowCount(); i++) {\n modelo1.removeRow(i);\n i-=1;\n }\n }", "public void PreencherTabela() throws SQLException {\n try (Connection connection = ConnectionFactory.getConnection()) {\n String[] colunas = new String[]{\"ID\", \"Nome\", \"Nomenclatura\", \"Quantidade\"};\n ArrayList dados = new ArrayList();\n for (ViewProdutoPedido v : viewProdutoPedidos) {\n dados.add(new Object[]{v.getId(), v.getNome(), v.getNomenclatura(), v.getQuantidade()});\n }\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n jTableItensPedido.setModel(modelo);\n jTableItensPedido.setRowSorter(new TableRowSorter(modelo));\n jTableItensPedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTableItensPedido.getColumnModel().getColumn(0).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(1).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(2).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(2).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(3).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(3).setResizable(false);\n\n }\n }", "public void preencherTabelaResultado() {\n\t\tArrayList<Cliente> lista = Fachada.getInstance().pesquisarCliente(txtNome.getText());\n\t\tDefaultTableModel modelo = (DefaultTableModel) tabelaResultado.getModel();\n\t\tObject[] linha = new Object[4];\n\t\tmodelo.setRowCount(0);\n\n\t\tfor (Cliente c : lista) {\n\t\t\tlinha[0] = c.getIdCliente();\n\t\t\tlinha[1] = c.getNome();\n\t\t\tlinha[2] = c.getTelefone().toString();\n\t\t\tif (c.isAptoAEmprestimos())\n\t\t\t\tlinha[3] = \"Apto\";\n\t\t\telse\n\t\t\t\tlinha[3] = \"A devolver\";\n\t\t\tmodelo.addRow(linha);\n\n\t\t}\n\n\t}", "public void clearData(){\n\t\t\n\t\tclearTable(conditionTableModel);\n\t\tclearTable(faultTableModel);\n\t}", "public void llenarTabla(){\n pedidoMatDao.llenarTabla();\n }", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "private void Actualizar_Tabla() {\n String[] columNames = {\"iditem\", \"codigo\", \"descripcion\", \"p_vent\", \"p_comp\", \"cant\", \"fecha\"};\n dtPersona = db.Select_Item();\n // se colocan los datos en la tabla\n DefaultTableModel datos = new DefaultTableModel(dtPersona, columNames);\n jTable1.setModel(datos);\n }", "void all_Data_retrieve() {\n\t\tStatement stm=null;\n\t\tResultSet rs=null;\n\t\ttry{\n\t\t\t//Retrieve tuples by executing SQL command\n\t\t stm=con.createStatement();\n\t String sql=\"select * from \"+tableName+\" order by id desc\";\n\t\t rs=stm.executeQuery(sql);\n\t\t DataGUI.model.setRowCount(0);\n\t\t //Add rows to table model\n\t\t while (rs.next()) {\n Vector<Object> newRow = new Vector<Object>();\n //Add cells to each row\n for (int i = 1; i <=colNum; i++) \n newRow.addElement(rs.getObject(i));\n DataGUI.model.addRow(newRow);\n }//end of while\n\t\t //Catch SQL exception\n }catch (SQLException e ) {\n \te.printStackTrace();\n\t } finally {\n\t \ttry{\n\t if (stm != null) stm.close(); \n\t }\n\t \tcatch (SQLException e ) {\n\t \t\te.printStackTrace();\n\t\t }\n\t }\n\t}", "private void cargarColumnasTabla(){\n \n modeloTabla.addColumn(\"Nombre\");\n modeloTabla.addColumn(\"Telefono\");\n modeloTabla.addColumn(\"Direccion\");\n }", "public void reloadTableEmpleado() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (listae.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Empleado object = listae.get(i);\n this.AddtoTableEmpleado(object);\n }\n\n }", "public static void resetTable() {\n tableModel.resetDefault();\n updateSummaryTable();\n }", "public void resetTable() {\n\t\tif (table != null) {\n\t\t\ttable.removeAll();\n\t\t}\n\t}", "public void PreencherTabela2() throws SQLException {\n\n String[] colunas = new String[]{\"ID do Pedido\", \"Numero Grafica\", \"Data Emissao\",\"Boleto\"};\n ArrayList dados = new ArrayList();\n Connection connection = ConnectionFactory.getConnection();\n PedidoDAO pedidoDAO = new PedidoDAO(connection);\n ModeloPedido modeloPedido = new ModeloPedido();\n modeloPedido = pedidoDAO.buscaPorId(idPedidoClasse);\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n dados.add(new Object[]{modeloPedido.getId(), modeloPedido.getNumeroGrafica(), format.format(modeloPedido.getDataEmissao()), modeloPedido.isBoleto()});\n\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n\n jTablePedido.setModel(modelo);\n jTablePedido.setRowSorter(new TableRowSorter(modelo));\n jTablePedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTablePedido.getColumnModel().getColumn(0).setResizable(false);\n jTablePedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTablePedido.getColumnModel().getColumn(1).setResizable(false);\n\n jTablePedido.getTableHeader().setReorderingAllowed(false);\n connection.close();\n }", "public void removeAllData() {\n DefaultTableModel dm = (DefaultTableModel) table.getModel();\n dm.getDataVector().removeAllElements();\n dm.fireTableDataChanged(); // notifies the JTable that the model has changed\n }", "public List<TblRetur>getAllDataRetur();", "public void clearData(){\r\n data.clear();\r\n this.fireTableDataChanged();\r\n }", "private void pintarTabla() {\r\n ArrayList<Corredor> listCorredors = gestion.getCorredores();\r\n TableModelCorredores modelo = new TableModelCorredores(listCorredors);\r\n jTableCorredores.setModel(modelo);\r\n TableRowSorter<TableModel> elQueOrdena = new TableRowSorter<>(modelo);\r\n jTableCorredores.setRowSorter(elQueOrdena);\r\n\r\n }", "private void updateTabela() {\n\n if (txBuscar.getText().isEmpty()) {\n ListaEmprestimosBEANs = new ControlerEmprestimos().listaEmprestimoss();\n } else {\n try {\n Integer buscar = Integer.parseInt(txBuscar.getText());\n ListaEmprestimosBEANs = new ArrayList<>();\n ListaEmprestimosBEANs.add(new ControlerEmprestimos().findEmprestimos(buscar));\n } catch (Exception e) {\n\n }\n }\n DefaultTableModel model = new DefaultTableModel(null, new String[]{\"ID\", \"Data de Saida\", \"Data Estimada do Retorno\", \"Data do Retorno\"});\n try {\n jTable1.setModel(model);\n String[] dados = new String[9];\n for (EmprestimosBEAN a : ListaEmprestimosBEANs) {\n dados[0] = String.valueOf(a.getId_emprestimo());\n dados[1] = a.getDtSaida().toString();\n dados[2] = a.getDtVolta().toString();\n dados[3] = a.getDtRetorno() == null ? \"\" : a.getDtRetorno().toString();\n model.addRow(dados);\n }\n } catch (Exception ex) {\n\n }\n\n }", "public void popularTabela() {\n\n try {\n\n RelatorioRN relatorioRN = new RelatorioRN();\n\n ArrayList<PedidoVO> pedidos = relatorioRN.buscarPedidos();\n\n javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) tRelatorio.getModel();\n dtm.fireTableDataChanged();\n dtm.setRowCount(0);\n\n for (PedidoVO pedidoVO : pedidos) {\n\n String[] linha = {\"\" + pedidoVO.getIdpedido(), \"\" + pedidoVO.getData(), \"\" + pedidoVO.getCliente(), \"\" + pedidoVO.getValor()};\n dtm.addRow(linha);\n }\n\n } catch (SQLException sqle) {\n\n JOptionPane.showMessageDialog(null, \"Erro: \" + sqle.getMessage(), \"Bordas\", JOptionPane.ERROR_MESSAGE);\n \n } catch (Exception e) {\n\n JOptionPane.showMessageDialog(null, \"Erro: \" + e.getMessage(), \"Bordas\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void readValuesfromtableWithoutHeadings()\n\t {\n\t\t open();\n\t\t List<Map<Object, String>> tab1= withColumns(\"Last Name \" ,\"First Name\",\"Email\", \"Due\" , \"Web Site\" , \"My Test\") \n\t\t\t\t .readRowsFrom(table);\n\t\t System.out.println(tab1);\n\t }", "private void tampil() {\n int row=tabmode.getRowCount();\n for (int i=0;i<row;i++){\n tabmode.removeRow(0);\n }\n try {\n Connection koneksi=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/medica\",\"root\",\"\");\n ResultSet rs=koneksi.createStatement().executeQuery(\"select rawat_inap_bayi.no, pasien_bayi.tgl_lahir, rawat_inap_bayi.tgl_masuk, rawat_inap_bayi.tgl_pulang, rawat_inap_bayi.lama, kamar.nm_kamar, penyakit.nama_penyakit, dokter.nm_dokter, tindakan.nama_tindakan, rawat_inap_bayi.suhu_tubuh, rawat_inap_bayi.resusitas, rawat_inap_bayi.hasil, rawat_inap_bayi.keterangan, rawat_inap_bayi.apgar \"+\n \" from rawat_inap_bayi inner join pasien_bayi on rawat_inap_bayi.no_rm_bayi=pasien_bayi.no_rm_bayi inner join kamar on rawat_inap_bayi.kd_kamar=kamar.kd_kamar inner join penyakit on rawat_inap_bayi.kd_icd = penyakit.kd_icd inner join dokter on rawat_inap_bayi.kd_dokter = dokter.kd_dokter inner join tindakan on rawat_inap_bayi.kode_tindakan = tindakan.kode_tindakan \");\n while(rs.next()){\n String[] data={rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6),rs.getString(7),rs.getString(8),rs.getString(9),rs.getString(10),rs.getString(11),rs.getString(12),rs.getString(13),rs.getString(14)};\n tabmode.addRow(data);\n }\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n \n }", "private static void popuniTabelu() {\r\n\t\tDefaultTableModel dfm = (DefaultTableModel) teretanaGui.getTable().getModel();\r\n\r\n\t\tdfm.setRowCount(0);\r\n\r\n\t\tfor (int i = 0; i < listaClanova.size(); i++) {\r\n\t\t\tClan c = listaClanova.getClan(i);\r\n\t\t\tdfm.addRow(new Object[] { c.getBrojClanskeKarte(), c.getIme(), c.getPrezime(), c.getPol() });\r\n\t\t}\r\n\t\tcentrirajTabelu();\r\n\t}", "public void cargarDatos() {\n \n if(drogasIncautadoList==null){\n return;\n }\n \n \n \n List<Droga> datos = drogasIncautadoList;\n\n Object[][] matriz = new Object[datos.size()][4];\n \n for (int i = 0; i < datos.size(); i++) {\n \n \n //System.out.println(s[0]);\n \n matriz[i][0] = datos.get(i).getTipoDroga();\n matriz[i][1] = datos.get(i).getKgDroga();\n matriz[i][2] = datos.get(i).getQuetesDroga();\n matriz[i][3] = datos.get(i).getDescripcion();\n \n }\n Object[][] data = matriz;\n String[] cabecera = {\"Tipo Droga\",\"KG\", \"Quetes\", \"Descripción\"};\n dtm = new DefaultTableModel(data, cabecera);\n tableDatos.setModel(dtm);\n }", "public void loadData() {\n String[] header = {\"Tên Cty\", \"Mã Cty\", \"Cty mẹ\", \"Giám đốc\", \"Logo\", \"Slogan\"};\n model = new DefaultTableModel(header, 0);\n List<Enterprise> list = new ArrayList<Enterprise>();\n list = enterpriseBN.getAllEnterprise();\n for (Enterprise bean : list) {\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(bean.getEnterpriseParent()); // Lấy ra 1 Enterprise theo mã\n Person person1 = personBN.getPersonByID(bean.getDirector());\n Object[] rows = {bean.getEnterpriseName(), bean.getEnterpriseID(), enterprise, person1, bean.getPicture(), bean.getSlogan()};\n model.addRow(rows);\n }\n listEnterprisePanel.getTableListE().setModel(model);\n setupTable();\n }", "protected void clearTable() {\n\ttable.setModel(new javax.swing.table.AbstractTableModel() {\n\t public int getRowCount() { return 0; }\n\t public int getColumnCount() { return 0; }\n\t public Object getValueAt(int row, int column) { return \"\"; }\n\t});\n }", "public static void viewtable() {\r\n\t\tt.dibuixa(table);\r\n\t}", "private void loadAllToTable() {\n \n try {\n ArrayList<CustomerDTO> allCustomers=cusCon.getAllCustomers();\n DefaultTableModel dtm=(DefaultTableModel) tblCustomers.getModel();\n dtm.setRowCount(0);\n \n if(allCustomers!=null){\n for(CustomerDTO customer:allCustomers){\n \n Object[] rowdata={\n customer.getcId(),\n customer.getcName(),\n customer.getContact(),\n customer.getCreditLimit(),\n customer.getCreditDays()\n };\n dtm.addRow(rowdata);\n \n }\n }\n } catch (Exception ex) {\n Logger.getLogger(AddCustomer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void load_table() {\n DefaultTableModel model = new DefaultTableModel();\n model.addColumn(\"ID\");\n model.addColumn(\"NIM\");\n model.addColumn(\"Nama\");\n model.addColumn(\"Kelamin\");\n model.addColumn(\"Phone\");\n model.addColumn(\"Agama\");\n model.addColumn(\"Status\");\n\n //menampilkan data database kedalam tabel\n try {\n String sql = \"SELECT * FROM mhs\";\n java.sql.Connection koneksi = (Connection) Koneksi.KoneksiDB();\n java.sql.Statement stm = koneksi.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n\n while (res.next()) {\n model.addRow(new Object[]{res.getString(1), res.getString(2),\n res.getString(3), res.getString(4), res.getString(5),\n res.getString(6), res.getString(7)});\n }\n tabelMahasiswa.setModel(model);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }", "public void preencherTabela(){\n imagemEnunciado.setImage(imageDefault);\n pergunta.setImagemEnunciado(caminho);\n imagemResposta.setImage(imageDefault);\n pergunta.setImagemResposta(caminho);\n ///////////////////////////////\n perguntas = dao.read();\n if(perguntas != null){\n perguntasFormatadas = FXCollections.observableList(perguntas);\n\n tablePerguntas.setItems(perguntasFormatadas);\n }\n \n }", "public void carga_bd_empleados(){\n try {\n Connection conectar = Conexion.conectar();\n PreparedStatement pst = conectar.prepareStatement(\n \"select nombre, edad, cargo, direccion, telefono from empleados\");\n\n ResultSet rs = pst.executeQuery();\n\n table = new JTable(model);\n jScrollPane1.setViewportView(table);\n table.setBackground(Color.yellow);\n\n model.addColumn(\"Nombre\");\n model.addColumn(\"Edad\");\n model.addColumn(\"Cargo\");\n model.addColumn(\"Direccion\");\n model.addColumn(\"Telefono\");\n\n while (rs.next()) {\n Object[] fila = new Object[8];\n //material mimaterial = new material();\n\n for (int i = 0; i < 5; i++) {\n fila[i] = rs.getObject(i + 1);\n }\n\n// model.addRow(fila);\n Empleado mimaterial = this.ChangetoEmpleado(fila);\n this.AddToArrayTableEmpleado(mimaterial);\n\n }\n\n conectar.close();\n \n } catch (SQLException e) {\n System.err.println(\"Error al llenar tabla\" + e);\n JOptionPane.showMessageDialog(null, \"Error al mostrar informacion\");\n\n }\n }", "public void clearTable() {\n reportTable.getColumns().clear();\n }", "private void carregarTabela() {\n try {\n\n Vector<String> cabecalho = new Vector();\n cabecalho.add(\"Id\");\n cabecalho.add(\"Nome\");\n cabecalho.add(\"Telefone\");\n cabecalho.add(\"Titular\");\n cabecalho.add(\"Data de Nascimento\");\n\n Vector detalhe = new Vector();\n\n for (Dependente dependente : new NDependente().listar()) {\n Vector<String> linha = new Vector();\n\n linha.add(dependente.getId() + \"\");\n linha.add(dependente.getNome());\n linha.add(dependente.getTelefone());\n linha.add(new NCliente().consultar(dependente.getCliente_id()).getNome());\n linha.add(dependente.getDataNascimento().toString());\n detalhe.add(linha);\n\n }\n\n tblDependentes.setModel(new DefaultTableModel(detalhe, cabecalho));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }", "public void updateTable() {\n tabelModel.setRowCount(0);\n Link current = result.first;\n for (int i = 0; current != null; i++) {\n Object[] row = {current.getMasjid(), current.getAlamat()};\n tabelModel.addRow(row);\n current = current.next;\n }\n }", "public void cargarTabla(String servidor){\n String base_de_datos1=cbBaseDeDatos.getSelectedItem().toString();\n String sql =\"USE [\"+base_de_datos1+\"]\\n\" +\n \"SELECT name FROM sysobjects where xtype='U' and category <> 2\";\n // JOptionPane.showMessageDialog(null,\"SQL cargarbases \"+sql);\n Conexion cc = new Conexion();\n Connection cn=cc.conectarBase(servidor, base_de_datos1);\n modeloTabla=new DefaultTableModel();\n String fila[]=new String[1] ;\n String[] titulos={\"Tablas\"} ;\n try {\n Statement psd = cn.createStatement();\n ResultSet rs=psd.executeQuery(sql);\n if(modeloTabla.getColumnCount()<2){\n modeloTabla.addColumn(titulos[0]);\n //modeloTabla.addColumn(titulos[1]);\n }\n while(rs.next()){\n fila[0]=rs.getString(\"name\");\n // fila[1]=\"1\";\n modeloTabla.addRow(fila);\n }\n tblTablas.setModel(modeloTabla);\n }catch(Exception ex){\n JOptionPane.showMessageDialog(null, ex+\" al cargar tabla\");\n }\n }", "private void carregarTabela() {\n try {\n\n Vector<String> cabecalho = new Vector();\n cabecalho.add(\"Id\");\n cabecalho.add(\"Nome\");\n cabecalho.add(\"CPF\");\n cabecalho.add(\"Telefone\");\n cabecalho.add(\"Endereço\");\n cabecalho.add(\"E-mail\");\n cabecalho.add(\"Data de Nascimento\");\n\n Vector detalhe = new Vector();\n\n for (Cliente cliente : new NCliente().listar()) {\n Vector<String> linha = new Vector();\n\n linha.add(cliente.getId() + \"\");\n linha.add(cliente.getNome());\n linha.add(cliente.getCpf());\n linha.add(cliente.getTelefone());\n linha.add(cliente.getEndereco());\n linha.add(cliente.getEmail());\n linha.add(cliente.getData_nascimento().toString());\n detalhe.add(linha);\n\n }\n\n tblClientes.setModel(new DefaultTableModel(detalhe, cabecalho));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }", "private void UpdateTable() {\n\t\t\t\t\n\t\t\t}", "private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }", "private void llenar_tabla() {\n \n try {\n DefaultTableModel modelo;\n conexion cnx = new conexion();\n Connection registros = cnx.conexion();\n String[] nombre_atributos = {\"id_producto\", \"nombre\",\"id_categoria\"};\n String sql = (\"SELECT *FROM producto\");\n modelo = new DefaultTableModel(null, nombre_atributos);\n Statement st = (Statement) registros.createStatement();\n ResultSet rs = st.executeQuery(sql);\n String[] filas = new String[3];\n\n while (rs.next()) {\n filas[0] = rs.getString(\"id_producto\");\n filas[1] = rs.getString(\"nombre\");\n filas[2] = rs.getString(\"id_categoria\");\n modelo.addRow(filas);\n\n }\n jtabla.setModel(modelo);\n registros.close();\n } catch (SQLException ex) {\n Logger.getLogger(responsable.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void populate(){\n DefaultTableModel dtms = (DefaultTableModel)ticketTable.getModel();\n dtms.setRowCount(0);\n for(Ticket a:ticket)\n {\n Object[] row = new Object[dtms.getColumnCount()];\n row[0]=a;\n row[1]=a.getAirlineNO();\n row[2]=a.getCustomer();\n row[3]=a.getSeat();\n row[4]=a.getAirlineAgency();\n out.println(a+\" \"+a.getAirlineNO()+\" \"+a.getCustomer()+\" \"+a.getSeat()+\" \"+a.getAirlineAgency());\n dtms.addRow(row);\n }\n }", "public static void resetTableRam(){\r\n singleton.dtm = new DefaultTableModel();\r\n singleton.dtm.setColumnIdentifiers(ram);\r\n home_RegisterUser.table.setModel(singleton.dtm);\r\n \r\n }", "public void buscaTodasOSs() {\n try {\n ServicoDAO sDAO = new ServicoDAO(); // instancia a classe ProdutoDB()\n ArrayList<OS> cl = sDAO.consultaTodasOs(); // coloca o método dentro da variável\n\n DefaultTableModel modeloTabela = (DefaultTableModel) jTable1.getModel();\n // coloca a tabela em uma variável do tipo DefaultTableModel, que permite a modelagem dos dados da tabela\n\n for (int i = modeloTabela.getRowCount() - 1; i >= 0; i--) {\n modeloTabela.removeRow(i);\n // loop que limpa a tabela antes de ser atualizada\n }\n\n for (int i = 0; i < cl.size(); i++) {\n // loop que pega os dados e insere na tabela\n Object[] dados = new Object[7]; // instancia os objetos. Cada objeto representa um atributo \n dados[0] = cl.get(i).getNumero_OS();\n dados[3] = cl.get(i).getStatus_OS();\n dados[4] = cl.get(i).getDefeito_OS();\n dados[5] = cl.get(i).getDataAbertura_OS();\n dados[6] = cl.get(i).getDataFechamento_OS();\n\n // pega os dados salvos do banco de dados (que estão nas variáveis) e os coloca nos objetos definidos\n modeloTabela.addRow(dados); // insere uma linha nova a cada item novo encontrado na tabela do BD\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha na operação.\\nErro: \" + ex.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(FrmPesquisar.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void reloadTableCliente() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (lista.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Cliente object = lista.get(i);\n this.AddtoTableCliente(object);\n }\n\n }", "public void refreshTable() {\n\t\tmyTable.refreshTable();\n\t}", "private void createTable() {\n\t\t// Tao dataModel & table \n\t\tdataModel = new DefaultTableModel(headers, 0);\n\t\ttable.setModel(dataModel);\n\t\t\n\t\tnapDuLieuChoBang();\n\t}", "private void popularTabela() {\n\n if (CadastroCliente.listaAluno.isEmpty()) {\n DefaultTableModel modelo = (DefaultTableModel) jTable1.getModel();\n modelo.setNumRows(0);\n }\n int t = 0;\n DefaultTableModel modelo = (DefaultTableModel) jTable1.getModel();\n modelo.setNumRows(0);\n int aux = CadastroCliente.listaAluno.size();\n\n while (t < aux) {\n aluno = CadastroCliente.listaAluno.get(t);\n modelo.addRow(new Object[]{aluno.getMatricula(), aluno.getNome(), aluno.getCpf(), aluno.getTel()});\n t++;\n }\n }", "public List<Table> selectAll_de() throws Exception {\n\t\treturn tableDao.selectAll_de();\r\n\t}", "public void loadingTable() {\n this.setRowCount(1, true);\r\n this.setVisibleRangeAndClearData(this.getVisibleRange(), true);\r\n }", "private void apresentarListaNaTabela() {\n DefaultTableModel modelo = (DefaultTableModel) tblAlunos.getModel();\n modelo.setNumRows(0);\n for (Aluno item : bus.getLista()) {\n modelo.addRow(new Object[]{\n item.getIdAluno(),\n item.getNome(),\n item.getEmail(),\n item.getTelefone()\n });\n }\n }", "public static void vaciartabla(){\n DefaultTableModel modelo=(DefaultTableModel) jtproveedores.getModel(); \n for (int i = 0; i < jtproveedores.getRowCount(); i++) {\n modelo.removeRow(i);\n i-=1;\n } \n }", "public void hapusSemuaDataMahasiswa(){\n SQLiteDatabase db = this.getWritableDatabase();\n\n db.execSQL(\"DELETE FROM \" + TABLE_NAME);\n }", "public void getData( ){\n model2.getDataVector( ).removeAllElements( );\n model2.fireTableDataChanged( );\n\n try{\n //membuat statemen pemanggilan data pada table tblGaji dari database\n Statement s = koneksi.createStatement();\n String sql = \"Select * from tb_customer\";\n ResultSet r = s.executeQuery(sql);\n\n //penelusuran baris pada tabel tblGaji dari database\n while(r.next ()){\n Object[ ] o = new Object[4];\n o[0] = r.getString(\"id\");\n o[1] = r.getString(\"nama\");\n o[2] = r.getString(\"alamat\");\n o[3] = r.getString(\"telepon\");\n\n model2.addRow(o);\n }\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage() );\n }\n }", "private void selectAll() {\n //To change body of generated methods, choose Tools | Templates.\n \n tabelpulsa.setModel(model);\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n \n \n try {\n Connection c=koneksidb.getkoneksi();\n Statement s=c.createStatement();\n ResultSet r=s.executeQuery(\"select* from pulsa\");\n while(r.next()){\n Object[] pulsa = new Object[5]; \n pulsa[0]=r.getString(\"operator\");\n pulsa[1]=r.getString(\"id_pulsa\");\n pulsa[2]=r.getString(\"harga_default\");\n pulsa[3]=r.getString(\"harga_jual\");\n pulsa[4]=r.getString(\"harga_member\");\n model.addRow(pulsa);\n }\n }catch (SQLException e){\n System.out.println(\"terjadi error :\" +e);\n }\n }", "public void clearFields() {\n dataSearch = new Date();\n tbcliente = null;\n tbfuncionario = null;\n listTbagendamentos = agendamentoLogic.findAllTbagendamentoFromCurrentDay();\n }", "public void limpiarTabla(JTable tbl, DefaultTableModel plantilla) {\n for (int i = 0; i < tbl.getRowCount(); i++) {\n plantilla.removeRow(i);\n i -= 1;\n }\n }", "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n Object[] o = new Object [3]; // membuat array 3 dimensi dengan nama object\n \n o[0] = rss.getString(\"judul\"); // yang pertama dengan ketentuan judul\n o[1] = rss.getString(\"penulis\"); // yang kedua dengan ketentuan penulis\n o[2] = rss.getInt(\"harga\"); // yang ketiga dengan ketentuan harga\n model.addRow(o); // memasukkan baris dengan mengkonekan di tabel model\n } \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "public void getData( ){\n model.getDataVector( ).removeAllElements( );\n model.fireTableDataChanged( );\n\n try{\n //membuat statemen pemanggilan data pada table tblGaji dari database\n Statement stat = (Statement)koneksi_db.config( ).createStatement( );\n String sql = \"Select * from daftar_log\";\n ResultSet res = stat.executeQuery(sql);\n\n //penelusuran baris pada tabel tblGaji dari database\n while(res.next ()){\n Object[ ] obj = new Object[6];\n obj[0] = res.getString(\"id_log\"); \n obj[1] = res.getString(\"nama_kejadian\");\n model.addRow(obj);\n }\n }\n catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage() );\n }\n }", "public void listar_saldoData(String data_entrega,String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_Saldo.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getSaldoVendaCorte(data_entrega, tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal()});\n }\n \n \n }", "public void disTable () {\n\t\t\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\t\t\tvalues = new Vector();\n\t\t\t\tvalues.add(\"20\"); values.add(\"20\"); values.add(\"20\"); values.add(\"20\"); values.add(\"20\");values.add(\"20\");values.add(new Boolean(false));\n\t\t\t\tmyModel.addRow(values ); // more practicle, vector can take only objects.\n\t\t myModel.addRow(data);\n\n\n\t\t\t\tgetContentPane().add(scrollPane, BorderLayout.CENTER);\n\n\t\t\t\t addWindowListener(new WindowAdapter() {\n\t\t\t\t\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t\t}\n\t\t\t\t });\n\t}", "public void limpiarcarrito() {\r\n setTotal(0);//C.P.M limpiamos el total\r\n vista.jTtotal.setText(\"0.00\");//C.P.M limpiamos la caja de texto con el formato adecuado\r\n int x = vista.Tlista.getRowCount() - 1;//C.P.M inicializamos una variable con el numero de columnas\r\n {\r\n try {\r\n DefaultTableModel temp = (DefaultTableModel) vista.Tlista.getModel();//C.P.M obtenemos el modelo actual de la tabla\r\n while (x >= 0) {//C.P.M la recorremos\r\n temp.removeRow(x);//C.P.M vamos removiendo las filas de la tabla\r\n x--;//C.P.M y segimos disminuyendo para eliminar la siguiente \r\n }\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al limpiar la venta\");\r\n }\r\n }\r\n }", "public void cargarTitulos1() throws SQLException {\n\n tabla1.addColumn(\"CLAVE\");\n tabla1.addColumn(\"NOMBRE\");\n tabla1.addColumn(\"DIAS\");\n tabla1.addColumn(\"ESTATUS\");\n\n this.tbpercep.setModel(tabla1);\n\n TableColumnModel columnModel = tbpercep.getColumnModel();\n\n columnModel.getColumn(0).setPreferredWidth(15);\n columnModel.getColumn(1).setPreferredWidth(150);\n columnModel.getColumn(2).setPreferredWidth(50);\n columnModel.getColumn(3).setPreferredWidth(70);\n\n }", "private void refTable() {\n try {\n String s = \"select * from stock\";\n pstm = con.prepareStatement(s);\n res = pstm.executeQuery(s);\n table.setModel(DbUtils.resultSetToTableModel(res));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"There Is No Data In Server\");\n }\n }", "public void deleteTableRecords()\n {\n coronaRepository.deleteAll();\n }", "private void repopulateTableForAdd()\n {\n clearTable();\n populateTable(null);\n }", "private void popuniTabelu() {\n try {\n List<PutnikEntity> putnici=Controller.vratiSvePutnike();\n TableModel tm=new PutnikTableModel(putnici);\n jtblPutnici.setModel(tm);\n } catch (Exception ex) {\n Logger.getLogger(FIzaberiLet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void listar_saldoMontadoData(String data_entrega,String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_Saldo_Montado.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getSaldoVendaMontadoPorData(data_entrega, tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal()});\n }\n \n \n }", "public void llenarTabla(int inicio, int limite) {\n DefaultTableModel dtm = (DefaultTableModel) jTableVerRondas.getModel();//se usa DefaultTableModel para manipular facilmente el Tablemodel\n dtm.setRowCount(0);//eliminando la s filas que ya hay. para agregar desde el principio.\n //los datos se agregan la defaultTableModel.\n ArrayList<Partido> llenar = miOpenAustralia.getPartidos();//sacando al informacion a agregar en la tabla.\n\n //como se va a llenar una tabla de 5 columnas, se crea un vector de 3 elementos.\n //se usa un arreglo de Object para poder agregar a la tabla cualquier tipo de datos.\n Object[] datos = new Object[5];\n for (int i = inicio; i < limite; i++) {\n\n Partido parti = llenar.get(i);\n //Se agrega este if para evitar que el extraiga datos en un campo null\n if (parti != null) {\n\n datos[0] = parti.getId();\n datos[1] = parti.getFechaHora();//el primer elemetno del arreglo va a ser el id,la primera col en la Tabla.\n datos[2] = parti.getJugador1().getNombre();\n datos[3] = parti.getJugador2().getNombre();\n datos[4] = parti.getPista().getNombre();\n\n //agrego al TableModleo ese arreglo\n dtm.addRow(datos);\n }\n }\n }", "public void clearTable() {\n\t\tfor (int i = modelCondTable.getRowCount() - 1; i >= 0; i--) {\n\t\t\tmodelCondTable.removeRow(i);\n\t\t}\n\t}" ]
[ "0.76057947", "0.75459266", "0.7536105", "0.7488589", "0.73347914", "0.7207996", "0.7165137", "0.71369493", "0.7015067", "0.7011466", "0.6946107", "0.6919771", "0.69138354", "0.68971324", "0.6886595", "0.68659025", "0.68428344", "0.6834599", "0.6828405", "0.6805569", "0.6798962", "0.6774013", "0.6712096", "0.668482", "0.6684157", "0.6672803", "0.6669263", "0.6660541", "0.66558176", "0.66514045", "0.66326624", "0.6627312", "0.6619403", "0.66110283", "0.6610234", "0.65892917", "0.6586653", "0.6579768", "0.6569002", "0.65661633", "0.6563864", "0.6550431", "0.6527223", "0.6524971", "0.651861", "0.6511704", "0.6510846", "0.6504756", "0.6503698", "0.649854", "0.6495161", "0.6492237", "0.64849585", "0.6478567", "0.6478422", "0.64479184", "0.6444067", "0.6443507", "0.6443288", "0.64281", "0.6422104", "0.64116746", "0.6408774", "0.6408589", "0.64081323", "0.63962215", "0.6392794", "0.6388282", "0.63861513", "0.63860166", "0.63814104", "0.6379332", "0.6379009", "0.6375227", "0.6375178", "0.63730747", "0.636577", "0.63600343", "0.63593864", "0.6346072", "0.63309664", "0.63262373", "0.6324164", "0.6299689", "0.6299487", "0.6290497", "0.62737983", "0.62727016", "0.6269895", "0.6265926", "0.62617666", "0.62613493", "0.62523365", "0.6241497", "0.62364817", "0.62360907", "0.6232056", "0.622788", "0.62241244", "0.62134796" ]
0.6388102
68
carga los datos de la tabla
private void cargardatos() { String sql = "SELECT * FROM nomPercepciones"; Object datos[] = new Object[13]; try { conn = (this.userConn != null) ? this.userConn : Conexion.getConnection(); stmt = conn.prepareStatement(sql); rs = stmt.executeQuery(); while (rs.next()) { datos[0] = rs.getString("idNomPer"); datos[1] = rs.getString("nombre"); datos[2] = rs.getString("dias"); if (rs.getString("estatus").equalsIgnoreCase("1")) { datos[3] = new JLabel(new ImageIcon(getClass().getResource("/View/img/actulizadoj.png"))); } else { datos[3] = new JLabel(new ImageIcon(getClass().getResource("/View/img/noactualizadoj.png"))); } tabla1.addRow(datos); } } catch (SQLException e) { JOptionPane.showMessageDialog(null, "Error al cargar los datos\n" + e, "ERROR", JOptionPane.ERROR_MESSAGE); } finally { Conexion.close(rs); Conexion.close(stmt); if (this.userConn == null) { Conexion.close(conn); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DefaultTableModel cargarDatos () {\r\n DefaultTableModel modelo = new DefaultTableModel(\r\n new String[]{\"ID SALIDA\", \"IDENTIFICACIÓN CAPITÁN\", \"NÚMERO MATRICULA\", \"FECHA\", \"HORA\", \"DESTINO\"}, 0); //Creo un objeto del modelo de la tabla con los titulos cargados\r\n String[] info = new String[6];\r\n String query = \"SELECT * FROM actividad WHERE eliminar = false\";\r\n try {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(query);\r\n while (rs.next()) { \r\n info[0] = rs.getString(\"id_salida\");\r\n info[1] = rs.getString(\"identificacion_navegate\");\r\n info[2] = rs.getString(\"numero_matricula\");\r\n info[3] = rs.getString(\"fecha\");\r\n info[4] = rs.getString(\"hora\");\r\n info[5] = rs.getString(\"destino\");\r\n Object[] fila = new Object[]{info[0], info[1], info[2], info[3], info[4], info[5]};\r\n modelo.addRow(fila);\r\n }\r\n st.close();\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return modelo;\r\n }", "private void loadTable() {\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n try {\n String sql = \"select * from tb_mahasiswa\";\n Statement n = a.createStatement();\n ResultSet rs = n.executeQuery(sql);\n while (rs.next()) {\n Object[] o = new Object[6];\n o[0] = rs.getString(\"id_mahasiswa\");\n o[1] = rs.getString(\"nama\");\n o[2] = rs.getString(\"tempat\");\n o[3] = rs.getString(\"waktu\");\n o[4] = rs.getString(\"status\");\n model.addRow(o);\n }\n } catch (Exception e) {\n }\n }", "private void cargarTabla() {\n\t\tObject[] fila = new Object[7];\r\n\t\tfila[1] = txtCedula.getText();\r\n\t\tfila[2] = txtFuncionario.getText();\r\n\t\tfila[3] = util.getDateToString(dcDesde.getDate());\r\n\t\tif (cbTipo.getSelectedIndex() == 1 || cbTipo.getSelectedIndex() == 2) {\r\n\t\t\tfila[4] = util.getDateToString(dcDesde.getDate());\r\n\t\t} else {\r\n\t\t\tfila[4] = util.getDateToString(dcHasta.getDate());\r\n\t\t}\r\n\t\tfila[5] = cbTipo.getSelectedItem();\r\n\t\tfila[6] = txtMotivo.getText().toUpperCase();\r\n\t\tthis.modelo.addRow(fila);\r\n\t\ttbJustificaciones.setModel(this.modelo);\r\n\t}", "Tablero consultarTablero();", "public void cargarDatos() {\n \n if(drogasIncautadoList==null){\n return;\n }\n \n \n \n List<Droga> datos = drogasIncautadoList;\n\n Object[][] matriz = new Object[datos.size()][4];\n \n for (int i = 0; i < datos.size(); i++) {\n \n \n //System.out.println(s[0]);\n \n matriz[i][0] = datos.get(i).getTipoDroga();\n matriz[i][1] = datos.get(i).getKgDroga();\n matriz[i][2] = datos.get(i).getQuetesDroga();\n matriz[i][3] = datos.get(i).getDescripcion();\n \n }\n Object[][] data = matriz;\n String[] cabecera = {\"Tipo Droga\",\"KG\", \"Quetes\", \"Descripción\"};\n dtm = new DefaultTableModel(data, cabecera);\n tableDatos.setModel(dtm);\n }", "private void cargarColumnasTabla(){\n \n modeloTabla.addColumn(\"Nombre\");\n modeloTabla.addColumn(\"Telefono\");\n modeloTabla.addColumn(\"Direccion\");\n }", "public void llenadoDeTablas() {\n \n DefaultTableModel modelo1 = new DefaultTableModel();\n modelo1 = new DefaultTableModel();\n modelo1.addColumn(\"ID Usuario\");\n modelo1.addColumn(\"NOMBRE\");\n UsuarioDAO asignaciondao = new UsuarioDAO();\n List<Usuario> asignaciones = asignaciondao.select();\n TablaPerfiles.setModel(modelo1);\n String[] dato = new String[2];\n for (int i = 0; i < asignaciones.size(); i++) {\n dato[0] = (Integer.toString(asignaciones.get(i).getId_usuario()));\n dato[1] = asignaciones.get(i).getNombre_usuario();\n\n modelo1.addRow(dato);\n }\n }", "public void cargarTitulos1() throws SQLException {\n\n tabla1.addColumn(\"CLAVE\");\n tabla1.addColumn(\"NOMBRE\");\n tabla1.addColumn(\"DIAS\");\n tabla1.addColumn(\"ESTATUS\");\n\n this.tbpercep.setModel(tabla1);\n\n TableColumnModel columnModel = tbpercep.getColumnModel();\n\n columnModel.getColumn(0).setPreferredWidth(15);\n columnModel.getColumn(1).setPreferredWidth(150);\n columnModel.getColumn(2).setPreferredWidth(50);\n columnModel.getColumn(3).setPreferredWidth(70);\n\n }", "public void llenadoDeTablas() {\n /**\n *\n * creaccion de la tabla de de titulos \n */\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Bitacora\");\n modelo.addColumn(\"Usuario\");\n modelo.addColumn(\"Fecha\");\n modelo.addColumn(\"Hora\");\n modelo.addColumn(\"Ip\");\n modelo.addColumn(\"host\");\n \n modelo.addColumn(\"Accion\");\n modelo.addColumn(\"Codigo Aplicacion\");\n modelo.addColumn(\"Modulo\");\n /**\n *\n * instaciamiento de las las clases Bitacora y BiracoraDAO\n * intaciamiento de la clases con el llenado de tablas\n */\n BitacoraDao BicDAO = new BitacoraDao();\n List<Bitacora> usuario = BicDAO.select();\n JtProductos1.setModel(modelo);\n String[] dato = new String[9];\n for (int i = 0; i < usuario.size(); i++) {\n dato[0] = usuario.get(i).getId_Bitacora();\n dato[1] = usuario.get(i).getId_Usuario();\n dato[2] = usuario.get(i).getFecha();\n dato[3] = usuario.get(i).getHora();\n dato[4] = usuario.get(i).getHost();\n dato[5] = usuario.get(i).getIp();\n dato[6] = usuario.get(i).getAccion();\n dato[7] = usuario.get(i).getCodigoAplicacion();\n dato[8] = usuario.get(i).getModulo();\n \n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }}", "public void cargarTabla(String servidor){\n String base_de_datos1=cbBaseDeDatos.getSelectedItem().toString();\n String sql =\"USE [\"+base_de_datos1+\"]\\n\" +\n \"SELECT name FROM sysobjects where xtype='U' and category <> 2\";\n // JOptionPane.showMessageDialog(null,\"SQL cargarbases \"+sql);\n Conexion cc = new Conexion();\n Connection cn=cc.conectarBase(servidor, base_de_datos1);\n modeloTabla=new DefaultTableModel();\n String fila[]=new String[1] ;\n String[] titulos={\"Tablas\"} ;\n try {\n Statement psd = cn.createStatement();\n ResultSet rs=psd.executeQuery(sql);\n if(modeloTabla.getColumnCount()<2){\n modeloTabla.addColumn(titulos[0]);\n //modeloTabla.addColumn(titulos[1]);\n }\n while(rs.next()){\n fila[0]=rs.getString(\"name\");\n // fila[1]=\"1\";\n modeloTabla.addRow(fila);\n }\n tblTablas.setModel(modeloTabla);\n }catch(Exception ex){\n JOptionPane.showMessageDialog(null, ex+\" al cargar tabla\");\n }\n }", "public void createTable() {\n try {\n tableLayout = findViewById(R.id.tabla);\n tb = new TableDinamic(tableLayout, getApplicationContext(), \"cargarDetalle\", clc, cap_1, cap_2, cap_ct, txtidReg, txtId, txtBloque, txtVariedad);\n tableLayout.removeAllViews();\n tb.addHeader(header);\n tb.addData(cargarTabla());\n tb.backgroundHeader(\n Color.parseColor(\"#20C0FF\")\n );\n tb.backgroundData(\n Color.parseColor(\"#FFFFFF\"),\n Color.parseColor(\"#81F0EDED\")\n );\n } catch (Exception e) {\n Toast.makeText(this, \"Error de la table: \" + e.toString(), Toast.LENGTH_LONG).show();\n }\n }", "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n Object[] o = new Object [3]; // membuat array 3 dimensi dengan nama object\n \n o[0] = rss.getString(\"judul\"); // yang pertama dengan ketentuan judul\n o[1] = rss.getString(\"penulis\"); // yang kedua dengan ketentuan penulis\n o[2] = rss.getInt(\"harga\"); // yang ketiga dengan ketentuan harga\n model.addRow(o); // memasukkan baris dengan mengkonekan di tabel model\n } \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "public void cargarTablas(){\n ControladorEmpleados empleados= new ControladorEmpleados();\n ControladorProyectos proyectos= new ControladorProyectos();\n ControladorCasos casos= new ControladorCasos();\n actualizarListadoObservable(empleados.consultarEmpleadosAdminProyectos(ESTADO_ASIGNADO, TIPO_3),casos.consultarCasos(devolverUser()),casos.consultarTiposCaso());\n }", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "private void cargarTablaConPaquetes() {\n tcId.setCellValueFactory(\n new PropertyValueFactory<Paquete, String>(\"codigo\"));\n tcdescripcion.setCellValueFactory(\n new PropertyValueFactory<Paquete, String>(\"descripcion\"));\n tcDestino.setCellValueFactory(\n new PropertyValueFactory<Paquete, String>(\"destino\"));\n tcEntregado.setCellValueFactory(\n new PropertyValueFactory<Paquete, Boolean>(\"entregado\"));\n\n tbPaqueteria.setItems(data);\n tbPaqueteria.getSelectionModel().selectFirst();\n\n //TODO futura implementacion\n //setDobleClickFila();\n }", "private void TampilData() {\n DefaultTableModel model = new DefaultTableModel();\n model.addColumn(\"NO\");\n model.addColumn(\"ID\");\n model.addColumn(\"NAME\");\n model.addColumn(\"USERNAME\");\n tabelakses.setModel(model);\n\n //menampilkan data database kedalam tabel\n try {\n int i=1;\n java.sql.Connection conn = new DBConnection().connect();\n java.sql.Statement stat = conn.createStatement();\n ResultSet data = stat.executeQuery(\"SELECT * FROM p_login order by Id asc\");\n while (data.next()) {\n model.addRow(new Object[]{\n (\"\" + i++),\n data.getString(\"Id\"),\n data.getString(\"Name\"),\n data.getString(\"Username\")\n });\n tabelakses.setModel(model);\n }\n } catch (Exception e) {\n System.err.println(\"ERROR:\" + e);\n }\n }", "private void carregarTabela() {\n try {\n\n Vector<String> cabecalho = new Vector();\n cabecalho.add(\"Id\");\n cabecalho.add(\"Nome\");\n cabecalho.add(\"Telefone\");\n cabecalho.add(\"Titular\");\n cabecalho.add(\"Data de Nascimento\");\n\n Vector detalhe = new Vector();\n\n for (Dependente dependente : new NDependente().listar()) {\n Vector<String> linha = new Vector();\n\n linha.add(dependente.getId() + \"\");\n linha.add(dependente.getNome());\n linha.add(dependente.getTelefone());\n linha.add(new NCliente().consultar(dependente.getCliente_id()).getNome());\n linha.add(dependente.getDataNascimento().toString());\n detalhe.add(linha);\n\n }\n\n tblDependentes.setModel(new DefaultTableModel(detalhe, cabecalho));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }", "private void llenar_tabla() {\n \n try {\n DefaultTableModel modelo;\n conexion cnx = new conexion();\n Connection registros = cnx.conexion();\n String[] nombre_atributos = {\"id_producto\", \"nombre\",\"id_categoria\"};\n String sql = (\"SELECT *FROM producto\");\n modelo = new DefaultTableModel(null, nombre_atributos);\n Statement st = (Statement) registros.createStatement();\n ResultSet rs = st.executeQuery(sql);\n String[] filas = new String[3];\n\n while (rs.next()) {\n filas[0] = rs.getString(\"id_producto\");\n filas[1] = rs.getString(\"nombre\");\n filas[2] = rs.getString(\"id_categoria\");\n modelo.addRow(filas);\n\n }\n jtabla.setModel(modelo);\n registros.close();\n } catch (SQLException ex) {\n Logger.getLogger(responsable.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void buscaxcodigo() {\r\n try {\r\n modelo.setCodigobarras(vista.jTbcodigobarras.getText());//C.P.M mandamos el codigo de barras ingresado\r\n rs = modelo.Buscarxcodigobarras();//C.P.M mandamos a consultar ese codigo de barras\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M instanciamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"Encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos las columnas de la consulta\r\n\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un vector con el tamano de las columnas de el resultado\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M recorremos el arreglo\r\n fila[i] = rs.getObject(i + 1);//C.P.M y vamos insertando el resultado\r\n }\r\n buscar.addRow(fila);//C.P.M le mandamos el arreglo como renglon nuevo\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar por codigo de barras\");\r\n }\r\n }", "private void load_table() {\n DefaultTableModel model = new DefaultTableModel();\n model.addColumn(\"ID\");\n model.addColumn(\"NIM\");\n model.addColumn(\"Nama\");\n model.addColumn(\"Kelamin\");\n model.addColumn(\"Phone\");\n model.addColumn(\"Agama\");\n model.addColumn(\"Status\");\n\n //menampilkan data database kedalam tabel\n try {\n String sql = \"SELECT * FROM mhs\";\n java.sql.Connection koneksi = (Connection) Koneksi.KoneksiDB();\n java.sql.Statement stm = koneksi.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n\n while (res.next()) {\n model.addRow(new Object[]{res.getString(1), res.getString(2),\n res.getString(3), res.getString(4), res.getString(5),\n res.getString(6), res.getString(7)});\n }\n tabelMahasiswa.setModel(model);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }", "public void loadData() {\n String[] header = {\"Tên Cty\", \"Mã Cty\", \"Cty mẹ\", \"Giám đốc\", \"Logo\", \"Slogan\"};\n model = new DefaultTableModel(header, 0);\n List<Enterprise> list = new ArrayList<Enterprise>();\n list = enterpriseBN.getAllEnterprise();\n for (Enterprise bean : list) {\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(bean.getEnterpriseParent()); // Lấy ra 1 Enterprise theo mã\n Person person1 = personBN.getPersonByID(bean.getDirector());\n Object[] rows = {bean.getEnterpriseName(), bean.getEnterpriseID(), enterprise, person1, bean.getPicture(), bean.getSlogan()};\n model.addRow(rows);\n }\n listEnterprisePanel.getTableListE().setModel(model);\n setupTable();\n }", "public void buscaTodasOSs() {\n try {\n ServicoDAO sDAO = new ServicoDAO(); // instancia a classe ProdutoDB()\n ArrayList<OS> cl = sDAO.consultaTodasOs(); // coloca o método dentro da variável\n\n DefaultTableModel modeloTabela = (DefaultTableModel) jTable1.getModel();\n // coloca a tabela em uma variável do tipo DefaultTableModel, que permite a modelagem dos dados da tabela\n\n for (int i = modeloTabela.getRowCount() - 1; i >= 0; i--) {\n modeloTabela.removeRow(i);\n // loop que limpa a tabela antes de ser atualizada\n }\n\n for (int i = 0; i < cl.size(); i++) {\n // loop que pega os dados e insere na tabela\n Object[] dados = new Object[7]; // instancia os objetos. Cada objeto representa um atributo \n dados[0] = cl.get(i).getNumero_OS();\n dados[3] = cl.get(i).getStatus_OS();\n dados[4] = cl.get(i).getDefeito_OS();\n dados[5] = cl.get(i).getDataAbertura_OS();\n dados[6] = cl.get(i).getDataFechamento_OS();\n\n // pega os dados salvos do banco de dados (que estão nas variáveis) e os coloca nos objetos definidos\n modeloTabela.addRow(dados); // insere uma linha nova a cada item novo encontrado na tabela do BD\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha na operação.\\nErro: \" + ex.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(FrmPesquisar.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void selectData() {\n String kolom[] = {\"ID\",\"Kasir\",\"Makanan\",\"Harga Makanan\",\"Minuman\",\"Harga Minuman\",\"Bayar\",\"Kembali\",\"Total\"};\n DefaultTableModel dtm = new DefaultTableModel(null, kolom);\n String SQL = \"SELECT * FROM tb_harga\";\n ResultSet rs = KoneksiDB.executeQuery(SQL);\n \n try\n {\n rs = KoneksiDB.executeQuery(SQL);\n while(rs.next())\n {\n String id = rs.getString(1);\n String kasir = rs.getString(2);\n String makanan = rs.getString(3);\n String hrg_makan = rs.getString(4);\n String minum = rs.getString(5);\n String hrg_minum = rs.getString(6);\n String bayar = rs.getString(7);\n String kembali = rs.getString(8);\n String total = rs.getString(9);\n \n String data[] = {id,kasir,makanan,hrg_makan,minum,hrg_minum,bayar,kembali,total};\n dtm.addRow(data);\n }\n }\n catch(SQLException ex)\n {\n Logger.getLogger(Home.class.getName()).log(Level.SEVERE, null, ex);\n }\n tData.setModel(dtm); //To change body of generated methods, choose Tools | Templates.\n }", "public void carga_bd_empleados(){\n try {\n Connection conectar = Conexion.conectar();\n PreparedStatement pst = conectar.prepareStatement(\n \"select nombre, edad, cargo, direccion, telefono from empleados\");\n\n ResultSet rs = pst.executeQuery();\n\n table = new JTable(model);\n jScrollPane1.setViewportView(table);\n table.setBackground(Color.yellow);\n\n model.addColumn(\"Nombre\");\n model.addColumn(\"Edad\");\n model.addColumn(\"Cargo\");\n model.addColumn(\"Direccion\");\n model.addColumn(\"Telefono\");\n\n while (rs.next()) {\n Object[] fila = new Object[8];\n //material mimaterial = new material();\n\n for (int i = 0; i < 5; i++) {\n fila[i] = rs.getObject(i + 1);\n }\n\n// model.addRow(fila);\n Empleado mimaterial = this.ChangetoEmpleado(fila);\n this.AddToArrayTableEmpleado(mimaterial);\n\n }\n\n conectar.close();\n \n } catch (SQLException e) {\n System.err.println(\"Error al llenar tabla\" + e);\n JOptionPane.showMessageDialog(null, \"Error al mostrar informacion\");\n\n }\n }", "public void buscarxdescrip() {\r\n try {\r\n modelo.setDescripcion(vista.jTbdescripcion.getText());//C.P.M le enviamos al modelo la descripcion y consultamos\r\n rs = modelo.Buscarxdescrip();//C.P.M cachamos el resultado de la consulta\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas de la consulta\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con una dimencion igual a la cantidad de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) { //C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1); //C.P.M vamos insertando los resultados dentor del arreglo\r\n }\r\n buscar.addRow(fila);//C.P.M y lo agregamos como una nueva fila a la tabla\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar producto por descripcion\");\r\n }\r\n }", "public void CargarProveedores() {\n DefaultTableModel modelo = (DefaultTableModel) vista.Proveedores.jTable1.getModel();\n modelo.setRowCount(0);\n res = Conexion.Consulta(\"select * From proveedores\");\n try {\n while (res.next()) {\n Vector v = new Vector();\n v.add(res.getInt(1));\n v.add(res.getString(2));\n v.add(res.getString(3));\n v.add(res.getString(4));\n modelo.addRow(v);\n vista.Proveedores.jTable1.setModel(modelo);\n }\n } catch (SQLException e) {\n }\n }", "public void llenadoDeTablas() {\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Articulo\");\n modelo.addColumn(\"Fecha Ingreso\");\n modelo.addColumn(\"Nombre Articulo\");\n modelo.addColumn(\"Talla XS\");\n modelo.addColumn(\"Talla S\");\n modelo.addColumn(\"Talla M\");\n modelo.addColumn(\"Talla L\");\n modelo.addColumn(\"Talla XL\");\n modelo.addColumn(\"Color Articulo\");\n modelo.addColumn(\"Nombre Proveedor\");\n modelo.addColumn(\"Existencias\");\n\n RegistroArticuloDAO registroarcticuloDAO = new RegistroArticuloDAO();\n\n List<RegistroArticulo> registroarticulos = registroarcticuloDAO.select();\n TablaArticulo.setModel(modelo);\n String[] dato = new String[11];\n for (int i = 0; i < registroarticulos.size(); i++) {\n dato[0] = Integer.toString(registroarticulos.get(i).getPK_id_articulo());\n dato[1] = registroarticulos.get(i).getFecha_ingreso();\n dato[2] = registroarticulos.get(i).getNombre_articulo();\n dato[3] = registroarticulos.get(i).getTalla_articuloXS();\n dato[4] = registroarticulos.get(i).getTalla_articuloS();\n dato[5] = registroarticulos.get(i).getTalla_articuloM();\n dato[6] = registroarticulos.get(i).getTalla_articuloL();\n dato[7] = registroarticulos.get(i).getTalla_articuloXL();\n dato[8] = registroarticulos.get(i).getColor_articulo();\n dato[9] = registroarticulos.get(i).getNombre_proveedor();\n dato[10] = registroarticulos.get(i).getExistencia_articulo();\n\n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }\n }", "private void loadAllToTable() {\n \n try {\n ArrayList<CustomerDTO> allCustomers=cusCon.getAllCustomers();\n DefaultTableModel dtm=(DefaultTableModel) tblCustomers.getModel();\n dtm.setRowCount(0);\n \n if(allCustomers!=null){\n for(CustomerDTO customer:allCustomers){\n \n Object[] rowdata={\n customer.getcId(),\n customer.getcName(),\n customer.getContact(),\n customer.getCreditLimit(),\n customer.getCreditDays()\n };\n dtm.addRow(rowdata);\n \n }\n }\n } catch (Exception ex) {\n Logger.getLogger(AddCustomer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void cargarTabla(JTable table) {\n\t\tList<CocheTaller> coches = mecanicoController.cargarTablaCocheTaller();\n\t\t\n\t\tString[] columnNames = {\"Marticula\", \"Marca\", \"Modelo\", \"DNI Cliente\", \"Mecanico\", \"Coste\", \"Estado\"};\n\t\t\n\t\tif (!coches.isEmpty()) {\n\t\t\t DefaultTableModel model = new DefaultTableModel();\n\t\t\t table.setModel(model);\n\t\t\t model.setColumnIdentifiers(columnNames);\n\t\t\t \n\t\t\t for (CocheTaller c : coches) {\n\t\t\t\t Object[] o = new Object[7];\n\t\t\t\t o[0] = c.getMatricula();\n\t\t\t\t o[1] = c.getMarca();\n\t\t\t\t o[2] = c.getModelo();\n\t\t\t\t o[3] = c.getDniCliente();\n\t\t\t\t o[4] = c.getMecanico();\n\t\t\t\t o[5] = c.getCoste() + \"€\";\n\t\t\t\t o[6] = mecanicoController.traducirEstado(c.getEstado());\n\t\t\t\t model.addRow(o);\n\t\t\t\t }\n\t\t} else {\n\t\t\tlogger.error(\"No llegan correctamente los CocheTaller\");\n\t\t}\n\t}", "public List<TblRetur>getAllDataRetur();", "private void Actualizar_Tabla() {\n String[] columNames = {\"iditem\", \"codigo\", \"descripcion\", \"p_vent\", \"p_comp\", \"cant\", \"fecha\"};\n dtPersona = db.Select_Item();\n // se colocan los datos en la tabla\n DefaultTableModel datos = new DefaultTableModel(dtPersona, columNames);\n jTable1.setModel(datos);\n }", "void all_Data_retrieve() {\n\t\tStatement stm=null;\n\t\tResultSet rs=null;\n\t\ttry{\n\t\t\t//Retrieve tuples by executing SQL command\n\t\t stm=con.createStatement();\n\t String sql=\"select * from \"+tableName+\" order by id desc\";\n\t\t rs=stm.executeQuery(sql);\n\t\t DataGUI.model.setRowCount(0);\n\t\t //Add rows to table model\n\t\t while (rs.next()) {\n Vector<Object> newRow = new Vector<Object>();\n //Add cells to each row\n for (int i = 1; i <=colNum; i++) \n newRow.addElement(rs.getObject(i));\n DataGUI.model.addRow(newRow);\n }//end of while\n\t\t //Catch SQL exception\n }catch (SQLException e ) {\n \te.printStackTrace();\n\t } finally {\n\t \ttry{\n\t if (stm != null) stm.close(); \n\t }\n\t \tcatch (SQLException e ) {\n\t \t\te.printStackTrace();\n\t\t }\n\t }\n\t}", "public void listar_saldoData(String data_entrega,String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_Saldo.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getSaldoVendaCorte(data_entrega, tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal()});\n }\n \n \n }", "private void preencherTabela() {\n\t\tList<Cidade> listCidade;\n\t\tCidadeDAO cidadeDAO;\n\t\tObservableList<Cidade> oListCidade;\n\n\t\t// Determina os atributos que irão preencher as colunas\n\t\tcolCidade.setCellValueFactory(new PropertyValueFactory<>(\"nomeCidades\"));\n\t\tcolEstado.setCellValueFactory(new PropertyValueFactory<>(\"nomeEstado\"));\n\t\tcolSigla.setCellValueFactory(new PropertyValueFactory<>(\"siglaEstado\"));\n\t\tcolCodigoCidade.setCellValueFactory(new PropertyValueFactory<>(\"idCidade\"));\n\t\tcolIdEstado.setCellValueFactory(new PropertyValueFactory<>(\"idEstado\"));\n\n\t\t// Instancia a lista de cidades e a DAO\n\t\tlistCidade = new ArrayList<Cidade>();\n\t\tcidadeDAO = new CidadeDAO();\n\n\t\t// Chama o metodo para selecionar todas as cidades e atribuir a lista\n\t\tlistCidade = cidadeDAO.selecionar();\n\n\t\t// Converte a lista de cidades em observablearray\n\t\toListCidade = FXCollections.observableArrayList(listCidade);\n\n\t\t// Adiciona a lista na tabela\n\t\ttblCidades.setItems(oListCidade);\n\t}", "public void LlenarPagos(){\n datos=new DefaultTableModel();\n LlenarModelo();\n this.TablaPagos.setModel(datos);\n }", "private void tampil() {\n int row=tabmode.getRowCount();\n for (int i=0;i<row;i++){\n tabmode.removeRow(0);\n }\n try {\n Connection koneksi=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/medica\",\"root\",\"\");\n ResultSet rs=koneksi.createStatement().executeQuery(\"select rawat_inap_bayi.no, pasien_bayi.tgl_lahir, rawat_inap_bayi.tgl_masuk, rawat_inap_bayi.tgl_pulang, rawat_inap_bayi.lama, kamar.nm_kamar, penyakit.nama_penyakit, dokter.nm_dokter, tindakan.nama_tindakan, rawat_inap_bayi.suhu_tubuh, rawat_inap_bayi.resusitas, rawat_inap_bayi.hasil, rawat_inap_bayi.keterangan, rawat_inap_bayi.apgar \"+\n \" from rawat_inap_bayi inner join pasien_bayi on rawat_inap_bayi.no_rm_bayi=pasien_bayi.no_rm_bayi inner join kamar on rawat_inap_bayi.kd_kamar=kamar.kd_kamar inner join penyakit on rawat_inap_bayi.kd_icd = penyakit.kd_icd inner join dokter on rawat_inap_bayi.kd_dokter = dokter.kd_dokter inner join tindakan on rawat_inap_bayi.kode_tindakan = tindakan.kode_tindakan \");\n while(rs.next()){\n String[] data={rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6),rs.getString(7),rs.getString(8),rs.getString(9),rs.getString(10),rs.getString(11),rs.getString(12),rs.getString(13),rs.getString(14)};\n tabmode.addRow(data);\n }\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n \n }", "private void carregarTabela() {\n try {\n\n Vector<String> cabecalho = new Vector();\n cabecalho.add(\"Id\");\n cabecalho.add(\"Nome\");\n cabecalho.add(\"CPF\");\n cabecalho.add(\"Telefone\");\n cabecalho.add(\"Endereço\");\n cabecalho.add(\"E-mail\");\n cabecalho.add(\"Data de Nascimento\");\n\n Vector detalhe = new Vector();\n\n for (Cliente cliente : new NCliente().listar()) {\n Vector<String> linha = new Vector();\n\n linha.add(cliente.getId() + \"\");\n linha.add(cliente.getNome());\n linha.add(cliente.getCpf());\n linha.add(cliente.getTelefone());\n linha.add(cliente.getEndereco());\n linha.add(cliente.getEmail());\n linha.add(cliente.getData_nascimento().toString());\n detalhe.add(linha);\n\n }\n\n tblClientes.setModel(new DefaultTableModel(detalhe, cabecalho));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }", "private void load_anggota(){\n Object header[] = {\"ID ANGGOTA\",\"NIS\",\"NAMA ANGGOTA\",\"JK\",\"TINGKAT\",\"JURUSAN\",\"NO HP\",\"STATUS\"};\n DefaultTableModel tableModel = new DefaultTableModel(null, header);\n TabelAnggota.setModel(tableModel);\n\n String sql_data=\"SELECT * FROM tbl_anggota\";\n try{\n Connection kon = koneksi.getConnection();\n Statement st=kon.createStatement();\n ResultSet rs=st.executeQuery(sql_data);\n while(rs.next()){\n String d1=rs.getString(1);\n String d2=rs.getString(2);\n String d3=rs.getString(3);\n String d4=rs.getString(4);\n String d5=rs.getString(5);\n String d6=rs.getString(6);\n String d7=rs.getString(7);\n String d8=rs.getString(8);\n \n String d[]={d1,d2,d3,d4,d5,d6,d7,d8};\n tableModel.addRow(d);\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(null, e);\n }\n }", "private DefaultTableModel getDatos3(){\n String folio = String.valueOf(venta.ns);\n //consulta sql\n String SQL_SELECT = \"SELECT p.Nombres,dv.Cantidad,dv.PrecioVenta FROM ventas v JOIN detalle_ventas dv ON v.IdVentas=dv.IdVentas JOIN producto p ON p.IdProducto=dv.IdProducto WHERE v.NumeroSerie = \"+folio+\"\";\n try {\n setTitutlos3();\n ps = con.getConnection().prepareStatement(SQL_SELECT);\n RS = ps.executeQuery();\n Object[] fila = new Object[3];\n while (RS.next()){\n fila[0] = RS.getString(1);\n fila[1] = RS.getInt(2);\n fila[2] = RS.getDouble(3);\n DT.addRow(fila);\n }\n //System.out.println(\"si hizo el desmadre\");\n } catch (SQLException e) {\n System.out.println(\"error en la tabla de ticket\");\n }\n \n return DT;\n \n }", "public void listar_saldoMontadoData(String data_entrega,String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_Saldo_Montado.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getSaldoVendaMontadoPorData(data_entrega, tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal()});\n }\n \n \n }", "private void tampilkan_dataT() {\n \n DefaultTableModel tabelmapel = new DefaultTableModel();\n tabelmapel.addColumn(\"Tanggal\");\n tabelmapel.addColumn(\"Berat\");\n tabelmapel.addColumn(\"Kategori\");\n tabelmapel.addColumn(\"Harga\");\n \n try {\n connection = Koneksi.connection();\n String sql = \"select a.tgl_bayar, b.berat, b.kategori, b.total_bayar from transaksi a, data_transaksi b where a.no_nota=b.no_nota AND a.status_bayar='Lunas' AND MONTH(tgl_bayar) = '\"+date1.getSelectedItem()+\"' And YEAR(tgl_bayar) = '\"+c_tahun.getSelectedItem()+\"'\";\n java.sql.Statement stmt = connection.createStatement();\n java.sql.ResultSet rslt = stmt.executeQuery(sql);\n while (rslt.next()) {\n Object[] o =new Object[4];\n o[0] = rslt.getDate(\"tgl_bayar\");\n o[1] = rslt.getString(\"berat\");\n o[2] = rslt.getString(\"kategori\");\n o[3] = rslt.getString(\"total_bayar\");\n tabelmapel.addRow(o);\n }\n tabel_LK.setModel(tabelmapel);\n\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Gagal memuat data\");\n }\n \n }", "private void load_buku() {\n Object header[] = {\"ID BUKU\", \"JUDUL BUKU\", \"PENGARANG\", \"PENERBIT\", \"TAHUN TERBIT\"};\n DefaultTableModel data = new DefaultTableModel(null, header);\n bookTable.setModel(data);\n String sql_data = \"SELECT * FROM tbl_buku\";\n try {\n Connection kon = koneksi.getConnection();\n Statement st = kon.createStatement();\n ResultSet rs = st.executeQuery(sql_data);\n while (rs.next()) {\n String d1 = rs.getString(1);\n String d2 = rs.getString(2);\n String d3 = rs.getString(3);\n String d4 = rs.getString(4);\n String d5 = rs.getString(5);\n\n String d[] = {d1, d2, d3, d4, d5};\n data.addRow(d);\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }", "public void buscarproducto() {\r\n try {\r\n modelo.setNombre(vista.jTbnombre2.getText());//C.P.M le mandamos al modelo el nombre del producto\r\n rs = modelo.Buscar();//C.P.M obtenemos el resultado del modelos\r\n if (rs.equals(\"\")) {//C.P.M en caso de que el resultado venga vacio notificamos a el usuario que no encontro el producto\r\n JOptionPane.showMessageDialog(null, \"No se encontro: \" + vista.jTbnombre2.getText() + \" en la base de datos.\");\r\n }\r\n //C.P.M Para establecer el modelo al JTable\r\n DefaultTableModel buscar = new DefaultTableModel() {\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {//C.P.M Aqui le decimos que no seran editables los campos de la tabla\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo\r\n modelo.estructuraProductos(buscar);//C.P.M Auui obtenemos la estructura de la tabla(\"Los encabezados\")\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M Obtenemos los metadatos para obtener la cantidad del columnas que llegan\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M la cantidad la alojamos dentro de un entero\r\n while (rs.next()) {//C.P.M recorremos el resultado \r\n Object[] fila = new Object[cantidadColumnas];//C.P.M Creamos un objeto con el numero de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recoremos ese vector\r\n fila[i] = rs.getObject(i + 1);//C.P.M Aqui vamos insertando la informacion obtenida de la base de datos\r\n }\r\n buscar.addRow(fila);//C.P.M y agregamos el arreglo como una nueva fila a la tabla\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurio un error al buscar el producto\");\r\n }\r\n\r\n }", "public void Buscar(){\n String consulta=\"\";\n try {\n tb_Grupo1.setModel(new DefaultTableModel());\n String titulos[]={\"Codigo\",\"Forma de Pago\",\"Descripcion Forma de pago\",\"CPT\",\"Descripcion Nomenclatura\",\"Precio\",\"\",\"\"};\n m=new DefaultTableModel(null,titulos);\n JTable p=new JTable(m);\n String fila[]=new String[8];\n\n Caja_Precio obj=new Caja_Precio();\n consulta=\"exec Caja_Precios_BUSCAR ?\";\n \n PreparedStatement cmd = obj.getCn().prepareStatement(consulta);\n cmd.setString(1, buscartodo.getText());\n ResultSet r= cmd.executeQuery();\n int c=1;\n while(r.next()){\n fila[0]=r.getString(1); // id de hc\n fila[1]=r.getString(2); // codigo de hc\n fila[2]=r.getString(3);\n fila[3]=r.getString(4);\n fila[4]=r.getString(5);\n fila[5]=r.getString(6);\n fila[6]=r.getString(7);\n fila[7]=r.getString(8);\n\n m.addRow(fila);\n c++;\n }\n tb_Grupo1.setModel(m);\n TableRowSorter<TableModel> elQueOrdena=new TableRowSorter<TableModel>(m);\n tb_Grupo1.setRowSorter(elQueOrdena);\n this.tb_Grupo1.setModel(m);\n\n formato();\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }", "private void updateTabela() {\n\n if (txBuscar.getText().isEmpty()) {\n ListaEmprestimosBEANs = new ControlerEmprestimos().listaEmprestimoss();\n } else {\n try {\n Integer buscar = Integer.parseInt(txBuscar.getText());\n ListaEmprestimosBEANs = new ArrayList<>();\n ListaEmprestimosBEANs.add(new ControlerEmprestimos().findEmprestimos(buscar));\n } catch (Exception e) {\n\n }\n }\n DefaultTableModel model = new DefaultTableModel(null, new String[]{\"ID\", \"Data de Saida\", \"Data Estimada do Retorno\", \"Data do Retorno\"});\n try {\n jTable1.setModel(model);\n String[] dados = new String[9];\n for (EmprestimosBEAN a : ListaEmprestimosBEANs) {\n dados[0] = String.valueOf(a.getId_emprestimo());\n dados[1] = a.getDtSaida().toString();\n dados[2] = a.getDtVolta().toString();\n dados[3] = a.getDtRetorno() == null ? \"\" : a.getDtRetorno().toString();\n model.addRow(dados);\n }\n } catch (Exception ex) {\n\n }\n\n }", "private void agregarDatoATable() {\n\t\tString nombre = textNombre.getText();\n\t\tint deporte = (int)spinnerDeporte.getValue();\n\t\tint musica = (int)spinnerMusica.getValue();\n\t\tint espectaculo = (int)spinnerEspectaculo.getValue();\n\t\tint ciencia = (int)spinnerCiencia.getValue();\n\t\t\n\t\t//Reseteo los inputs para los proximos datos\n\t\ttextNombre.setText(\"\");\n\t\tspinnerDeporte.setValue(1);\n\t\tspinnerMusica.setValue(1);\n\t\tspinnerEspectaculo.setValue(1);\n\t\tspinnerCiencia.setValue(1);\n\t\t\n\t\t//Agrego todos los datos al array\n\t\tdatos.add(new Persona(nombre,deporte,musica,espectaculo,ciencia));\n\t\t\n\t\t//Agrego los datos a la JTable\n\t\tmodel.addRow(new String[]{ nombre, String.valueOf(deporte), String.valueOf(musica),\n\t\t\t\tString.valueOf(espectaculo), String.valueOf(ciencia) });\n\t\ttable.setModel(model);\n\t}", "private void pintarTabla() {\r\n ArrayList<Corredor> listCorredors = gestion.getCorredores();\r\n TableModelCorredores modelo = new TableModelCorredores(listCorredors);\r\n jTableCorredores.setModel(modelo);\r\n TableRowSorter<TableModel> elQueOrdena = new TableRowSorter<>(modelo);\r\n jTableCorredores.setRowSorter(elQueOrdena);\r\n\r\n }", "private void load_table() {\n DefaultTableModel model = new DefaultTableModel();\n model.addColumn(\"Nis\");\n model.addColumn(\"Nama\");\n model.addColumn(\"Sekolah\");\n model.addColumn(\"Jurusan\");\n model.addColumn(\"Tempat PKL\");\n model.addColumn(\"Total Nilai\");\n\n //menampilkan data database kedalam tabel\n try {\n int no = 1;\n String sql = \"select * from tampil_nilai\";\n java.sql.Connection conn = (Connection) config.configDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n while (res.next()) {\n model.addRow(new Object[]{res.getString(1), res.getString(2), res.getString(3),\n res.getString(4), res.getString(5), res.getString(6)});\n \n }\n jTable1.setModel(model);\n } catch (SQLException e) {\n }\n\n \n \n try {\n String sql = \"select * from jurusan\";\n java.sql.Connection conn = (Connection) config.configDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n \n this.hasil1 = new Object[3];\n int counter = 0;\n while (res.next()) { \n jComboBoxjurusan.addItem(res.getString(2));\n this.hasil1[counter++] = res.getString(1);\n }\n } catch(SQLException e) {\n \n }\n \n try {\n String sql = \"select * from lab\";\n java.sql.Connection conn = (Connection) config.configDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n \n this.hasil2 = new Object[5];\n int counter = 0;\n while (res.next()) {\n \n jComboBoxpkl.addItem(res.getString(2));\n this.hasil2[counter++] = res.getString(1);\n }\n } catch(SQLException e) {\n \n }\n }", "private void MontarTabela(String where) {\n \n int linha = 0;\n int coluna = 0;\n \n String offset = String.valueOf(getPaginacao());\n \n while(linha < 10){\n while(coluna < 7){\n tbConFin.getModel().setValueAt(\"\", linha, coluna);\n coluna++;\n }\n linha++;\n coluna = 0;\n }\n \n linha = 0;\n \n String rd_id\n ,rd_codico\n ,rd_nome\n ,rd_receita_despesa\n ,rd_grupo\n ,rd_fixa\n ,rd_ativo;\n \n \n \n try{\n ResultSet rsConFin = cc.stm.executeQuery(\"select * from v_receitadespesa \"+where+\" order by rd_codico limit 10 offset \"+offset);\n \n while ( rsConFin.next() ) {\n rd_id = rsConFin.getString(\"RD_ID\");\n rd_codico = rsConFin.getString(\"rd_codico\");\n rd_nome = rsConFin.getString(\"rd_nome\");\n rd_receita_despesa = getRecDesp(rsConFin.getString(\"rd_receita_despesa\"));\n rd_grupo = getSimNao(rsConFin.getString(\"rd_grupo\"));\n rd_fixa = getSimNao(rsConFin.getString(\"rd_fixa\"));\n rd_ativo = getSimNao(rsConFin.getString(\"rd_ativo\"));\n \n tbConFin.getModel().setValueAt(rd_id, linha, 0);\n tbConFin.getModel().setValueAt(rd_codico, linha, 1);\n tbConFin.getModel().setValueAt(rd_nome, linha, 2);\n tbConFin.getModel().setValueAt(rd_receita_despesa, linha, 3);\n tbConFin.getModel().setValueAt(rd_grupo, linha, 4);\n tbConFin.getModel().setValueAt(rd_fixa, linha, 5);\n tbConFin.getModel().setValueAt(rd_ativo, linha, 6);\n \n linha++;\n }\n \n \n if(linha <= 10){\n setMensagem(\"A Busca retornou \"+linha+\" registros!\");\n }\n \n if(linha < 10){\n setFimConsulta(true);\n }else{\n setFimConsulta(false);\n }\n \n }catch(SQLException e){\n JOptionPane.showMessageDialog(this, \"Erro ao Carregar informações de contas financeiras!\\n\"+e.getMessage());\n }\n \n }", "public void reloadTable() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (list.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Balanza object = list.get(i);\n this.AddtoTable(object);\n }\n\n }", "private void fillData() {\n table.setRowList(data);\n }", "public void buscaxnombre() {\r\n try {\r\n modelo.setNombre(vistabuscapro.jTvnombre.getText());//C.P.M le mandamos a el modelo el nombre para consultarlo\r\n rs = modelo.Buscarxnombre();//C.P.M ejecutamo el metodo del modelo y atrapamos el resultado\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M se establese el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {//C.P.M no sera editable\r\n return false;\r\n }\r\n };\r\n vistabuscapro.Tproductos.setModel(buscar);//C.P.M le mandamos el modelo\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"los encabeados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de el resultado\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un objeto con la cantidad de columnas obtenidas\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recorremos\r\n fila[i] = rs.getObject(i + 1);//C.P.M le agregamos la informacion obtenida\r\n }\r\n buscar.addRow(fila);//C.P.M lo agregamos a la tabla como una nueva fila\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar por nombre\");\r\n }\r\n }", "public void llenarTabla() {\n DefaultTableModel modelos = (DefaultTableModel) tableProducto.getModel();\n while (modelos.getRowCount() > 0) {\n modelos.removeRow(0);\n }\n MarcaDAO marcaDao = new MarcaDAO();\n CategoriaProductoDAO catProDao = new CategoriaProductoDAO();\n ProductoDAO proDao = new ProductoDAO();\n Marca marca = new Marca();\n CategoriaProducto catPro = new CategoriaProducto();\n\n for (Producto producto : proDao.findAll()) {\n DefaultTableModel modelo = (DefaultTableModel) tableProducto.getModel();\n modelo.addRow(new Object[10]);\n int nuevaFila = modelo.getRowCount() - 1;\n tableProducto.setValueAt(producto.getIdProducto(), nuevaFila, 0);\n tableProducto.setValueAt(producto.getNombreProducto(), nuevaFila, 1);\n tableProducto.setValueAt(producto.getCantidadProducto(), nuevaFila, 2);\n tableProducto.setValueAt(producto.getPrecioCompra(), nuevaFila, 3);\n tableProducto.setValueAt(producto.getPrecioVenta(), nuevaFila, 4);\n tableProducto.setValueAt(producto.getFechaCaducidadProducto(), nuevaFila, 5);\n tableProducto.setValueAt(producto.getFechaCaducidadProducto(), nuevaFila, 6);\n tableProducto.setValueAt(producto.getDescripcionProducto(), nuevaFila, 7);\n marca.setIdMarca(producto.getFK_idMarca());\n tableProducto.setValueAt(marcaDao.findBy(marca, \"idMarca\").get(0).getNombreMarca(), nuevaFila, 8);//PARA FK ID MARCA\n catPro.setIdCategoriaProducto(producto.getFK_idCategoriaProducto());\n tableProducto.setValueAt(catProDao.findBy(catPro, \"idCategoriaProducto\").get(0).getNombreCategoriaProducto(), nuevaFila, 9);\n //PARA FK ID CATEGORIA PRODUCTO\n\n }\n }", "public void PreencherTabela() throws SQLException {\n try (Connection connection = ConnectionFactory.getConnection()) {\n String[] colunas = new String[]{\"ID\", \"Nome\", \"Nomenclatura\", \"Quantidade\"};\n ArrayList dados = new ArrayList();\n for (ViewProdutoPedido v : viewProdutoPedidos) {\n dados.add(new Object[]{v.getId(), v.getNome(), v.getNomenclatura(), v.getQuantidade()});\n }\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n jTableItensPedido.setModel(modelo);\n jTableItensPedido.setRowSorter(new TableRowSorter(modelo));\n jTableItensPedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTableItensPedido.getColumnModel().getColumn(0).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(1).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(2).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(2).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(3).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(3).setResizable(false);\n\n }\n }", "public void llenarTabla(int inicio, int limite) {\n DefaultTableModel dtm = (DefaultTableModel) jTableVerRondas.getModel();//se usa DefaultTableModel para manipular facilmente el Tablemodel\n dtm.setRowCount(0);//eliminando la s filas que ya hay. para agregar desde el principio.\n //los datos se agregan la defaultTableModel.\n ArrayList<Partido> llenar = miOpenAustralia.getPartidos();//sacando al informacion a agregar en la tabla.\n\n //como se va a llenar una tabla de 5 columnas, se crea un vector de 3 elementos.\n //se usa un arreglo de Object para poder agregar a la tabla cualquier tipo de datos.\n Object[] datos = new Object[5];\n for (int i = inicio; i < limite; i++) {\n\n Partido parti = llenar.get(i);\n //Se agrega este if para evitar que el extraiga datos en un campo null\n if (parti != null) {\n\n datos[0] = parti.getId();\n datos[1] = parti.getFechaHora();//el primer elemetno del arreglo va a ser el id,la primera col en la Tabla.\n datos[2] = parti.getJugador1().getNombre();\n datos[3] = parti.getJugador2().getNombre();\n datos[4] = parti.getPista().getNombre();\n\n //agrego al TableModleo ese arreglo\n dtm.addRow(datos);\n }\n }\n }", "private void cargarDeDB() {\n Query query = session.createQuery(\"SELECT p FROM Paquete p WHERE p.reparto is NULL\");\n data = FXCollections.observableArrayList();\n\n List<Paquete> paquetes = query.list();\n for (Paquete paquete : paquetes) {\n data.add(paquete);\n }\n\n cargarTablaConPaquetes();\n }", "public pasien() {\n initComponents();\n model = new DefaultTableModel();\n tabelpasien.setModel(model);\n model.addColumn(\"ID_PASIEN\");\n model.addColumn(\"NAMA_PASIEN\");\n model.addColumn(\"ALAMAT\");\n \n loadData();\n \n }", "private void tableLoad() {\n try{\n String sql=\"SELECT * FROM salary\";\n pst = conn.prepareStatement(sql);\n rs = pst.executeQuery();\n \n table1.setModel(DbUtils.resultSetToTableModel(rs));\n \n \n }\n catch(SQLException e){\n \n }\n }", "public void llenarTabla(){\n pedidoMatDao.llenarTabla();\n }", "public final void detalleTabla()\n {\n \n try\n {\n ResultSet obj=nueva.executeQuery(\"SELECT cli_nit,cli_razon_social FROM clientes.cliente ORDER BY cli_razon_social ASC\");\n \n while (obj.next()) \n {\n \n Object [] datos = new Object[2];\n \n \n for (int i=0;i<2;i++)\n {\n datos[i] =obj.getObject(i+1);\n }\n\n modelo.addRow(datos);\n \n }\n tabla_cliente.setModel(modelo);\n nueva.desconectar();\n \n \n \n }catch(Exception e)\n {\n JOptionPane.showMessageDialog(null, e, \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }", "private void loadAllToTable() {\n try {\n ArrayList<ItemDTO> allItems=ip.getAllItems();\n DefaultTableModel dtm=(DefaultTableModel) tblItems.getModel();\n dtm.setRowCount(0);\n \n if(allItems!=null){\n for(ItemDTO item:allItems){\n \n Object[] rowdata={\n item.getiId(),\n item.getDescription(),\n item.getQtyOnHand(),\n item.getUnitPrice()\n \n };\n dtm.addRow(rowdata);\n \n }\n }\n } catch (Exception ex) {\n Logger.getLogger(AddItem.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "public void clicTable(View v) {\n try {\n conteoTab ct = clc.get(tb.getIdTabla() - 1);\n\n if(ct.getEstado().equals(\"0\")) {\n String variedad = ct.getVariedad();\n String bloque = ct.getBloque();\n Long idSiembra = ct.getIdSiembra();\n String idSiempar = String.valueOf(idSiembra);\n\n long idReg = ct.getIdConteo();\n int cuadro = ct.getCuadro();\n int conteo1 = ct.getConteo1();\n int conteo4 = ct.getConteo4();\n int total = ct.getTotal();\n\n txtidReg.setText(\"idReg:\" + idReg);\n txtCuadro.setText(\"Cuadro: \" + cuadro);\n cap_1.setText(String.valueOf(conteo1));\n cap_2.setText(String.valueOf(conteo4));\n cap_ct.setText(String.valueOf(total));\n txtId.setText(\"Siembra: \" + idSiempar);\n txtVariedad.setText(\"Variedad: \" + variedad);\n txtBloque.setText(\"Bloque: \" + bloque);\n }else{\n Toast.makeText(this, \"No se puede cargar el registro por que ya ha sido enviado\", Toast.LENGTH_SHORT).show();\n }\n\n } catch (Exception E) {\n Toast.makeText(getApplicationContext(), \"No has seleccionado aún una fila \\n\" + E, Toast.LENGTH_LONG).show();\n }\n }", "private void cargar(List<Personas> listaP) {\n int total= listaP.size();\n Object [][] tab = new Object [total][10];\n int i=0;\n Iterator iter = listaP.iterator();\n while (iter.hasNext()){\n Object objeto = iter.next();\n Personas pro = (Personas) objeto;\n\n tab[i][0]=pro.getLocalidadesid().getProvinciasId();\n tab[i][1]=pro.getLocalidadesid();\n tab[i][2]=pro.getCuilcuit();\n tab[i][3]=pro.getApellido();\n tab[i][4]=pro.getNombres();\n tab[i][5]=pro.getCalle();\n tab[i][6]=pro.getAltura();\n tab[i][7]=pro.getPiso();\n tab[i][8]=pro.getEmail();\n// if(pro.getEmpleados().equals(\"\")){\n tab[i][9]=\"Cliente\";\n // }else{\n // tab[i][7]=\"Empleado\";\n // }\n i++;\n }\njTable1 = new javax.swing.JTable();\n\njTable1.setModel(new javax.swing.table.DefaultTableModel(\ntab,\nnew String [] {\n \"Provincia\", \"Localidad\", \"DNI/Cuit\", \"Apellido\", \"Nombres\", \"Calle\", \"Altura\", \"Piso\", \"Email\", \"Tipo\"\n}\n));\n jScrollPane1.setViewportView(jTable1);\n }", "public void PreencherTabela2() throws SQLException {\n\n String[] colunas = new String[]{\"ID do Pedido\", \"Numero Grafica\", \"Data Emissao\",\"Boleto\"};\n ArrayList dados = new ArrayList();\n Connection connection = ConnectionFactory.getConnection();\n PedidoDAO pedidoDAO = new PedidoDAO(connection);\n ModeloPedido modeloPedido = new ModeloPedido();\n modeloPedido = pedidoDAO.buscaPorId(idPedidoClasse);\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n dados.add(new Object[]{modeloPedido.getId(), modeloPedido.getNumeroGrafica(), format.format(modeloPedido.getDataEmissao()), modeloPedido.isBoleto()});\n\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n\n jTablePedido.setModel(modelo);\n jTablePedido.setRowSorter(new TableRowSorter(modelo));\n jTablePedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTablePedido.getColumnModel().getColumn(0).setResizable(false);\n jTablePedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTablePedido.getColumnModel().getColumn(1).setResizable(false);\n\n jTablePedido.getTableHeader().setReorderingAllowed(false);\n connection.close();\n }", "public void tabelaktivitas() {\n DefaultTableModel tbl= new DefaultTableModel();\n tbl.addColumn(\"Group\");\n tbl.addColumn(\"Compart\");\n tbl.addColumn(\"Activity\");\n tbl.addColumn(\"HA\");\n tbl.addColumn(\"Harga\");\n tbl.addColumn(\"Total\");\n tblaktivitas.setModel(tbl);\n try{\n java.sql.Statement statement=(java.sql.Statement)conek.GetConnection().createStatement();\n ResultSet res=statement.executeQuery(\"select * from tblaktivitas\");\n while(res.next())\n {\n tbl.addRow(new Object[]{\n res.getString(\"nama_grup\"),\n res.getString(\"compart\"),\n res.getString(\"pekerjaan\"),\n res.getInt(\"ha\"),\n res.getInt(\"harga\"),\n res.getInt(\"total\")\n });\n tblaktivitas.setModel(tbl); \n }\n }catch (Exception e){\n JOptionPane.showMessageDialog(rootPane,\"Salah\");\n }\n }", "public void getData( ){\n model.getDataVector( ).removeAllElements( );\n model.fireTableDataChanged( );\n\n try{\n //membuat statemen pemanggilan data pada table tblGaji dari database\n Statement stat = (Statement)koneksi_db.config( ).createStatement( );\n String sql = \"Select * from daftar_log\";\n ResultSet res = stat.executeQuery(sql);\n\n //penelusuran baris pada tabel tblGaji dari database\n while(res.next ()){\n Object[ ] obj = new Object[6];\n obj[0] = res.getString(\"id_log\"); \n obj[1] = res.getString(\"nama_kejadian\");\n model.addRow(obj);\n }\n }\n catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage() );\n }\n }", "private void preencherTabelaVeiculoCarga() {\n\n ArrayList dados = new ArrayList();\n cargaDao = new CargaDao();\n Carga carga;\n String[] colunas = new String[]{\"ID\", \"DESCRICAO\", \"STATUS\"};\n\n try {\n final List<Object> listaCarga = cargaDao.listarCargasDoVeiculo(idVeiculoSelecionado);\n\n if (listaCarga != null && listaCarga.size() > 0) {\n for (Object cargaAtual : listaCarga) {\n carga = (Carga) cargaAtual;\n dados.add(new Object[]{carga.getIdCarga(), carga.getDescricao(), carga.getStatus()});\n }\n }\n\n ModeloTabela modTabela = new ModeloTabela(dados, colunas);\n jTB_VeiculoCarga.setModel(modTabela);\n jTB_VeiculoCarga.getColumnModel().getColumn(0).setPreferredWidth(100);\n jTB_VeiculoCarga.getColumnModel().getColumn(0).setResizable(false);\n jTB_VeiculoCarga.getColumnModel().getColumn(1).setPreferredWidth(300);\n jTB_VeiculoCarga.getColumnModel().getColumn(1).setResizable(false);\n jTB_VeiculoCarga.getColumnModel().getColumn(2).setPreferredWidth(150);\n jTB_VeiculoCarga.getColumnModel().getColumn(2).setResizable(false);\n\n jTB_VeiculoCarga.getTableHeader().setReorderingAllowed(false);\n jTB_VeiculoCarga.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n jTB_VeiculoCarga.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n jTB_VeiculoCarga.addMouseListener(new MouseAdapter() {\n\n @Override\n public void mouseClicked(MouseEvent e) {\n try {\n List<Object> lista = cargaDao.listarCargasDoVeiculo(idVeiculoSelecionado);\n cargaSelecionada = (Carga) lista.\n get(jTB_VeiculoCarga.convertRowIndexToModel(jTB_VeiculoCarga.getSelectedRow()));\n\n // if (veiculoDao.listarVeiculosAtivos().size() > 0 && veiculoDao.listarVeiculosAtivos() != null) {}\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(FormVeiculoCargas.this, \"Erro genérico1: \" + ex.getMessage());\n ex.printStackTrace(System.err);\n }\n }\n\n });\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Erro genérico2: \" + e.getMessage());\n }\n }", "public void preencherTabela(){\n imagemEnunciado.setImage(imageDefault);\n pergunta.setImagemEnunciado(caminho);\n imagemResposta.setImage(imageDefault);\n pergunta.setImagemResposta(caminho);\n ///////////////////////////////\n perguntas = dao.read();\n if(perguntas != null){\n perguntasFormatadas = FXCollections.observableList(perguntas);\n\n tablePerguntas.setItems(perguntasFormatadas);\n }\n \n }", "public void getData( ){\n model2.getDataVector( ).removeAllElements( );\n model2.fireTableDataChanged( );\n\n try{\n //membuat statemen pemanggilan data pada table tblGaji dari database\n Statement s = koneksi.createStatement();\n String sql = \"Select * from tb_customer\";\n ResultSet r = s.executeQuery(sql);\n\n //penelusuran baris pada tabel tblGaji dari database\n while(r.next ()){\n Object[ ] o = new Object[4];\n o[0] = r.getString(\"id\");\n o[1] = r.getString(\"nama\");\n o[2] = r.getString(\"alamat\");\n o[3] = r.getString(\"telepon\");\n\n model2.addRow(o);\n }\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage() );\n }\n }", "public void LlenarTabla(){\n String Query = \"SELECT usuario,fecha_ingreso,hora_ingreso,hora_salida from bitacora\";\n \n DefaultTableModel modelo = new DefaultTableModel();\n jTable1.setModel(modelo);\n Connection cnx = null;\n if (cnx == null) {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n cnx = DriverManager.getConnection(url, user,pass);\n \n Statement st = cnx.prepareStatement(Query);\n ResultSet res = st.executeQuery(Query);\n ResultSetMetaData rsMd = res.getMetaData();\n int cantidadColumnas = rsMd.getColumnCount();\n for (int i = 1; i <= cantidadColumnas; i++) {\n modelo.addColumn(rsMd.getColumnLabel(i));\n }\n while (res.next()){\n Object[] fila = new Object[cantidadColumnas];\n for (int i = 0; i < cantidadColumnas; i++) {\n fila[i]=res.getObject(i+1);\n }\n modelo.addRow(fila);\n \n }\n } catch (ClassNotFoundException ex) {\n throw new ClassCastException(ex.getMessage());\n } catch (SQLException ex) { \n Logger.getLogger(LoginGT.class.getName()).log(Level.SEVERE, null, ex);\n } \n } \n }", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "private void loadTBL(String q1) {\n try {\n\n ResultSet rs = DB.search(q1);\n\n DefaultTableModel dtm = (DefaultTableModel) jTable1.getModel();\n dtm.setRowCount(0);\n while (rs.next()) {\n\n Vector v = new Vector();\n v.add(rs.getString(\"id_before_p\"));\n v.add(rs.getString(\"date\"));\n\n ResultSet rs3 = DB.search(\"select name from supplier where id_sup='\" + rs.getString(\"supplier_id_sup\") + \"'\");\n if (rs3.next()) {\n v.add(rs3.getString(\"name\"));\n }\n String qty = rs.getString(\"qty\");\n String fat = rs.getString(\"fat\");\n String ts = rs.getString(\"ts\");\n String ph = rs.getString(\"ph\");\n String acidity = rs.getString(\"acidity\");\n\n if (qty.equals(\"0\")) {\n v.add(\"\");\n } else {\n v.add(qty);\n\n }\n if (fat.equals(\"0\")) {\n v.add(\"\");\n } else {\n v.add(fat);\n }\n if (ts.equals(\"0\")) {\n v.add(\"\");\n } else {\n v.add(ts);\n }\n if (ph.equals(\"0\")) {\n v.add(\"\");\n } else {\n v.add(ph);\n }\n if (acidity.equals(\"0\")) {\n v.add(\"\");\n } else {\n v.add(acidity);\n }\n\n String ts_2 = rs.getString(\"ts_2\");\n String ph_2 = rs.getString(\"ph_2\");\n String acidity_2 = rs.getString(\"acidity_2\");\n\n if (ts_2.equals(\"0\")) {\n v.add(\"\");\n\n } else {\n v.add(ts_2);\n\n }\n if (ph_2.equals(\"0\")) {\n v.add(\"\");\n\n } else {\n v.add(ph_2);\n\n }\n if (acidity_2.equals(\"0\")) {\n v.add(\"\");\n\n } else {\n\n v.add(acidity_2);\n\n }\n\n v.add(rs.getString(\"buyer_1\"));\n String qty_1_2 = rs.getString(\"qty_1\");\n String qty_2_2 = rs.getString(\"qty_2\");\n String sample = rs.getString(\"sample\");\n if (qty_1_2.equals(\"0\")) {\n v.add(\"\");\n } else {\n v.add(qty_1_2);\n\n }\n v.add(rs.getString(\"buyer_2\"));\n if (qty_2_2.equals(\"0\")) {\n\n v.add(\"\");\n } else {\n\n v.add(qty_2_2);\n }\n if (sample.equals(\"0\")) {\n\n v.add(\"\");\n } else {\n v.add(sample);\n\n }\n\n dtm.addRow(v);\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void cargaPainel(Boolean tabela1, Boolean tabela2, Boolean tabela3, Boolean tabela4) {\n //jTable1.setRowHeight(1, 32);\n DecimalFormat formatter = new DecimalFormat(\",##0.00\");\n //System.err.println(tabela);\n try {\n if (tabela1) {\n DefaultTableModel model = (DefaultTableModel) jTable1.getModel();\n model.setNumRows(0);\n List<Tb_Prod_PainelBeans> lppb = new Tb_Prod_PainelDao().getProdPainel(new DBConfigBeans().getTerminal(), 1);\n this.lppbf.addAll(lppb);\n for (Tb_Prod_PainelBeans ppb : lppb) {\n String oferta = \"\";\n String valor2 = \"\";\n if (ppb.getOferta()) {\n oferta = \"<html><font color=red>OFERTA</font></html>\";\n }\n if (ppb.getValor2() == 0) {\n valor2 = \"\";\n } else {\n valor2 = formatter.format(ppb.getValor2()).toString();\n }\n model.addRow(new Object[]{ppb.getCodigo(), ppb.getDescricao(), ppb.getUnid(), oferta, formatter.format(ppb.getValor1()), valor2});\n }\n }\n//\n if (tabela2) {\n DefaultTableModel model2 = (DefaultTableModel) jTable2.getModel();\n model2.setNumRows(0);\n List<Tb_Prod_PainelBeans> lppb = new Tb_Prod_PainelDao().getProdPainel(new DBConfigBeans().getTerminal(), 2);\n this.lppbf.addAll(lppb);\n for (Tb_Prod_PainelBeans ppb : lppb) {\n String oferta = \"\";\n String valor2 = \"\";\n if (ppb.getOferta()) {\n oferta = \"<html><font color=red>OFERTA</font></html>\";\n }\n if (ppb.getValor2() == 0) {\n valor2 = \"\";\n } else {\n valor2 = formatter.format(ppb.getValor2()).toString();\n }\n model2.addRow(new Object[]{ppb.getCodigo(), ppb.getDescricao(), ppb.getUnid(), oferta, formatter.format(ppb.getValor1()), valor2});\n }\n }\n\n if (tabela3) {\n DefaultTableModel model3 = (DefaultTableModel) jTable3.getModel();\n model3.setNumRows(0);\n List<Tb_Prod_PainelBeans> lppb = new Tb_Prod_PainelDao().getProdPainel(new DBConfigBeans().getTerminal(), 3);\n this.lppbf.addAll(lppb);\n for (Tb_Prod_PainelBeans ppb : lppb) {\n String oferta = \"\";\n String valor2 = \"\";\n if (ppb.getOferta()) {\n oferta = \"<html><font color=red>OFERTA</font></html>\";\n }\n if (ppb.getValor2() == 0) {\n valor2 = \"\";\n } else {\n valor2 = formatter.format(ppb.getValor2()).toString();\n }\n model3.addRow(new Object[]{ppb.getCodigo(), ppb.getDescricao(), ppb.getUnid(), oferta, formatter.format(ppb.getValor1()), valor2});\n }\n }\n\n if (tabela4) {\n DefaultTableModel model4 = (DefaultTableModel) jTable4.getModel();\n model4.setNumRows(0);\n List<Tb_Prod_PainelBeans> lppb = new Tb_Prod_PainelDao().getProdPainel(new DBConfigBeans().getTerminal(), 4);\n this.lppbf.addAll(lppb);\n for (Tb_Prod_PainelBeans ppb : lppb) {\n String oferta = \"\";\n String valor2 = \"\";\n if (ppb.getOferta()) {\n oferta = \"<html><font color=red>OFERTA</font></html>\";\n }\n if (ppb.getValor2() == 0) {\n valor2 = \"\";\n } else {\n valor2 = formatter.format(ppb.getValor2()).toString();\n }\n model4.addRow(new Object[]{ppb.getCodigo(), ppb.getDescricao(), ppb.getUnid(), oferta, formatter.format(ppb.getValor1()), valor2});\n }\n }\n } catch (SQLException ex) {\n new DBConfig().createArqLog(\"Erro ao Prencher Tabelas ViewLayoutTabelas: \" + ex);\n }\n }", "private void loadData()\n\t{\n\t\tVector<String> columnNames = new Vector<String>();\n\t\tcolumnNames.add(\"Item Name\");\n\t\tcolumnNames.add(\"Item ID\");\n\t\tcolumnNames.add(\"Current Stock\");\n\t\tcolumnNames.add(\"Unit Price\");\n\t\tcolumnNames.add(\"Section\");\n\t\t\n\t\tVector<Vector<Object>> data= new Vector<Vector<Object>>();\n\t\t\n\t\tResultSet rs = null;\n\t\ttry \n\t\t{\n\t\t\tConnection con = Connector.DBcon();\n\t\t\tString query=\"select * from items natural join sections order by sections.s_name\";\n\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\trs = pst.executeQuery();\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tVector<Object> vector = new Vector<Object>();\n\t\t for (int columnIndex = 1; columnIndex <= 9; columnIndex++)\n\t\t {\n\t\t \t\n\t\t \tvector.add(rs.getObject(1));\n\t\t \tvector.add(rs.getObject(2));\n\t\t vector.add(rs.getObject(3));\n\t\t vector.add(rs.getObject(4));\n\t\t vector.add(rs.getObject(6));\n\t\t \n\t\t }\n\t\t data.add(vector);\n\t\t\t}\n\t\t\t\n\t\t\t tableModel.setDataVector(data, columnNames);\n\t\t\t \n\t\t\t rs.close();\n\t\t\t pst.close();\n\t\t\t con.close();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t}\n\t\t\n\t\t\n\t}", "public DefaultTableModel getTablaFutbolistasPersonalizada(String nombre) {\n DefaultTableModel tablemodel = new DefaultTableModel();\n int registros = 0;\n String[] columNames = {\"Id\", \"NIF\", \"Nombre\", \"Apellidos\", \"Fecha nac.\", \"Nacionalidad\", \"Temporada\"};\n //obtenemos la cantidad de registros existentes en la tabla y se almacena en la variable \"registros\"\n //para formar la matriz de datos\n try {\n PreparedStatement pstm = this.getConnection().prepareStatement(\"SELECT count(*) as total FROM Futbolistas\");\n ResultSet res = pstm.executeQuery();\n res.next();\n registros = res.getInt(\"total\");\n close(res);\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n }\n //se crea una matriz con tantas filas y columnas que necesite\n Object[][] data = new String[registros][8];\n try {\n //realizamos la llamada al procedimiento de la bd y llenamos los datos en la matriz \"Object[][] data\"\n PreparedStatement pstm = this.getConnection().prepareStatement(\"{call buscarJugadores(?)}\");\n pstm.setString(1, nombre);\n ResultSet res = pstm.executeQuery();\n int i = 0;\n while (res.next()) {\n data[i][0] = res.getString(\"id_futbolista\");\n data[i][1] = res.getString(\"nif\");\n data[i][2] = res.getString(\"nombre\");\n data[i][3] = res.getString(\"apellidos\");\n data[i][4] = res.getString(\"fecha_nacimiento\");\n data[i][5] = res.getString(\"nacionalidad\");\n data[i][6] = res.getString(\"temporada\");\n i++;\n }\n close(res);\n //se añade la matriz de datos en el DefaultTableModel\n tablemodel.setDataVector(data, columNames);\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n }\n return tablemodel;\n }", "private void limpiarDatos() {\n\t\t\n\t}", "public void readTable() {\n DefaultTableModel modelo = (DefaultTableModel) jTable1.getModel();\n modelo.setRowCount(0);\n\n }", "public void BuscarFP(){\n String consulta=\"\";\n try {\n tb_Grupo.setModel(new DefaultTableModel());\n String titulos[]={\"Forma de Pago\",\"Descripcion\",\"\"};\n m=new DefaultTableModel(null,titulos);\n JTable p=new JTable(m);\n String fila[]=new String[3];\n\n Caja_Precio obj=new Caja_Precio();\n consulta=\"exec BuscarJerarquias ?\";\n \n PreparedStatement cmd = obj.getCn().prepareStatement(consulta);\n cmd.setString(1, txtBuscar.getText());\n ResultSet r= cmd.executeQuery();\n int c=1;\n while(r.next()){\n fila[0]=r.getString(1); // id de hc\n fila[1]=r.getString(2); // codigo de hc\n fila[2]=r.getString(3);\n \n\n m.addRow(fila);\n c++;\n }\n tb_Grupo.setModel(m);\n TableRowSorter<TableModel> elQueOrdena=new TableRowSorter<TableModel>(m);\n tb_Grupo.setRowSorter(elQueOrdena);\n this.tb_Grupo.setModel(m);\n\n formato1();\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }", "public Produk() {\n initComponents();\n kosong();\n model = new DefaultTableModel();\n this.tbProduk.setModel(model);\n model.addColumn(\"ID\");\n model.addColumn(\"Kategori\");\n model.addColumn(\"Merk\");\n model.addColumn(\"Warna\");\n model.addColumn(\"Ukuran\");\n model.addColumn(\"Harga\");\n ambil_data_tabel();\n \n model2 = new DefaultTableModel ();\n tb_customer.setModel(model2);\n model2.addColumn(\"ID\");\n model2.addColumn(\"Nama\");\n model2.addColumn(\"Alamat\");\n model2.addColumn(\"Telepon\");\n getData();\n }", "public Object[][]getDatos()\n {\n int registros=0;\n //obtener la cantidad de registros que hay en la tabla pacientes\n try\n {\n PreparedStatement pstm=(PreparedStatement)\n con.getConnection().prepareStatement(\"SELECT count(1) as total FROM paciente\");//cuenta el total de registros de la tabla pacientes\n ResultSet res=pstm.executeQuery();\n res.next();\n registros = res.getInt(\"total\");\n res.close();\n }\n catch(SQLException e)\n {\n System.out.println(e); \n }\n \n Object[][] data=new String [registros][9];\n \n //realizamos la consulta sql y llenamos los datos del Object\n \n try\n {\n PreparedStatement pstm=(PreparedStatement)\n con.getConnection().prepareStatement(\"SELECT * FROM paciente ORDER BY IdPaciente\");\n ResultSet res=pstm.executeQuery();\n \n int i=0;\n \n while (res.next())\n {\n String estIdPaciente = res.getString(\"IdPaciente\");\n String estDNI = res.getString(\"DNI\");\n String estNombres = res.getString(\"nombres\");\n String estApellidos = res.getString(\"apellidos\");\n String estDireccion = res.getString(\"direccion\");\n String estUbig = res.getString(\"ubigeo\");\n \n String estTelefono1 = res.getString(\"telefono1\");\n String estTelefono2 = res.getString(\"telefono2\");\n String estFechaNac = res.getString(\"edad\"); \n \n data [i][0]=estIdPaciente;\n data [i][1]=estDNI;\n data [i][2]=estNombres;\n data [i][3]=estApellidos;\n data [i][4]=estDireccion;\n data [i][5]=estUbig;\n \n data [i][6]=estTelefono1;\n data [i][7]=estTelefono2;\n data [i][8]=estFechaNac;\n \n i++;//retorna el ciclo hasta finalizar\n \n }\n \n res.close();\n }\n catch(SQLException e)\n {\n System.out.println(e);\n }\n return data;\n }", "public DataMahasiswa() {\n initComponents();\n load_table();\n }", "private void listarDatos() {\n DBConnection conListar = new DBConnection();\n DefaultTableModel tableModel = new DefaultTableModel();\n String querty = \"SELECT P.codigo AS Cod_Prod, P.nombre, P.precio_compra AS P_Compra, P.precio_venta AS P_Venta, P.cantidad AS Stock, C.nombre AS Categoria FROM productos AS P JOIN categorias AS C ON P.categorias_id = C.categorias_id\";\n \n tableModel.addColumn(\"Cod. Prod\");\n tableModel.addColumn(\"Nombre\");\n tableModel.addColumn(\"P. Compra\");\n tableModel.addColumn(\"P. Venta\");\n tableModel.addColumn(\"Stock\");\n tableModel.addColumn(\"Categoria\");\n tableStock.setModel(tableModel);\n \n String datos[] = new String[6];\n\n try {\n Statement st = conListar.connetion().createStatement();\n ResultSet rs = st.executeQuery(querty);\n \n while (rs.next()) {\n \n datos[0] = rs.getString(1);\n datos[1] = rs.getString(2);\n datos[2] = rs.getString(3);\n datos[3] = rs.getString(4);\n datos[4] = rs.getString(5);\n datos[5] = rs.getString(6);\n \n tableModel.addRow(datos);\n \n }\n tableStock.setModel(tableModel);\n\n } catch (SQLException e) {\n System.out.println(e.getMessage() + e);\n JOptionPane.showMessageDialog(null, \"Insercion!\", \"Error\", JOptionPane.ERROR);\n } finally {\n try {\n conListar.closeConnection();\n System.err.println(\"Conexion listar stock cerrada\");\n } catch (SQLException ex) {\n Logger.getLogger(Stock.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n }", "private JTable fontesNaoPagas() {\n\t\tinitConexao();\n\t\t\n try {\t \n\t String select = \"SELECT data_ultimo_vencimento_fonte_r, cod_fonte_d, nome_fonte_d, valor_fonte_d, tipo_valor_fonte_d, data_abertura_fonte_d, periodo_fonte_d FROM Fonte_despesa WHERE vencimento_fonte_d = '0'\";\n\t \n\t PreparedStatement ptStatement = c.prepareStatement(select);\n\t rs = ptStatement.executeQuery();\n\t \n\t Object[] colunas = {\"Fonte de despesa\", \"Valor previsto\", \"Data do vencimento\", \"\", \"code\"}; \t\t\n\t\t\t DefaultTableModel model = new DefaultTableModel();\t\t \n\t\t\t model.setColumnIdentifiers(colunas); \t\t \n\t\t\t Vector<Object[]> linhas = new Vector<Object[]>(); \n\t\t\t \n\t\t\t select = \"select DATE_ADD(?,INTERVAL ? day)\";\n\t while (rs.next()){\n\t \t \n\t \tptStatement = c.prepareStatement(select);\n\t\t\t\tptStatement.setString(1, rs.getString(\"data_ultimo_vencimento_fonte_r\"));\n\t\t\t\tptStatement.setString(2, rs.getString(\"periodo_fonte_d\"));\n\t\t\t\trs2 = ptStatement.executeQuery();\n\t\t\t\trs2.next();\n\t\t linhas.add(new Object[]{rs.getString(\"nome_fonte_d\"),rs.getString(\"valor_fonte_d\"),rs2.getString(1), \"Pagar\", rs.getString(\"cod_fonte_d\")}); \t \t\n\t \t } \n\t \n\t\t\t for (Object[] linha : linhas) { \n\t\t model.addRow(linha); \n\t\t } \t\t \n\t\t\t final JTable tarefasTable = new JTable(); \t\t \n\t\t\t tarefasTable.setModel(model); \t\t\n\t\t\t \n\t\t\t ButtonColumn buttonColumn = new ButtonColumn(tarefasTable, 3, \"fonteNaoPaga\");\n\t\t\t \n\t\t\t tarefasTable.removeColumn(tarefasTable.getColumn(\"code\")); \t \n\t return tarefasTable; \n } catch (SQLException ex) {\n System.out.println(\"ERRO: \" + ex);\n }\n\t\treturn null; \n\t}", "public void popularTabela() {\n\n try {\n\n RelatorioRN relatorioRN = new RelatorioRN();\n\n ArrayList<PedidoVO> pedidos = relatorioRN.buscarPedidos();\n\n javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) tRelatorio.getModel();\n dtm.fireTableDataChanged();\n dtm.setRowCount(0);\n\n for (PedidoVO pedidoVO : pedidos) {\n\n String[] linha = {\"\" + pedidoVO.getIdpedido(), \"\" + pedidoVO.getData(), \"\" + pedidoVO.getCliente(), \"\" + pedidoVO.getValor()};\n dtm.addRow(linha);\n }\n\n } catch (SQLException sqle) {\n\n JOptionPane.showMessageDialog(null, \"Erro: \" + sqle.getMessage(), \"Bordas\", JOptionPane.ERROR_MESSAGE);\n \n } catch (Exception e) {\n\n JOptionPane.showMessageDialog(null, \"Erro: \" + e.getMessage(), \"Bordas\", JOptionPane.ERROR_MESSAGE);\n }\n }", "private JTable itensNaoPagos() {\n\t\tinitConexao();\n\t\t\n try {\t \n\t String select = \"SELECT cod_item_d, nome_item_d, valor_item_d, data_vencimento_item_d FROM Item_despesa WHERE vencimento_item_d = '0'\";\n\t PreparedStatement ptStatement = c.prepareStatement(select);\n\t rs = ptStatement.executeQuery();\n\t \n\t Object[] colunas = {\"Item de despesa\", \"Valor total\", \"Data do vencimento\", \"\", \"code\"}; \t\t\n\t\t\t DefaultTableModel model = new DefaultTableModel();\t\t \n\t\t\t model.setColumnIdentifiers(colunas); \t\t \n\t\t\t Vector<Object[]> linhas = new Vector<Object[]>(); \n\t\t\t \n\t\t\t \n\t while (rs.next()){\n\t\t linhas.add(new Object[]{rs.getString(\"nome_item_d\"),rs.getString(\"valor_item_d\"),rs.getString(\"data_vencimento_item_d\"), \"Pagar\", rs.getString(\"cod_item_d\")}); \t \t\n\t \t } \n\t \n\t\t\t for (Object[] linha : linhas) { \n\t\t model.addRow(linha); \n\t\t } \t\t \n\t\t\t final JTable tarefasTable = new JTable(); \t\t \n\t\t\t tarefasTable.setModel(model); \t\t\n\t\t\t \n\t\t\t ButtonColumn buttonColumn = new ButtonColumn(tarefasTable, 3, \"itemPedido\");\n\t\t\t \n\t\t\t tarefasTable.removeColumn(tarefasTable.getColumn(\"code\")); \t \n\t return tarefasTable; \n } catch (SQLException ex) {\n System.out.println(\"ERRO: \" + ex);\n }\n\t\treturn null; \n\t}", "public void parseData(ResultSet rs) throws SQLException{\n\n\t\t\n\t\tResultSetMetaData metaDatos = rs.getMetaData();\n\t\t\n\t\t// Se obtiene el número de columnas.\n\t\tint numeroColumnas = metaDatos.getColumnCount();\n\n\t\t/*// Se crea un array de etiquetas para rellenar\n\t\tObject[] etiquetas = new Object[numeroColumnas];\n\n\t\t// Se obtiene cada una de las etiquetas para cada columna\n\t\tfor (int i = 0; i < numeroColumnas; i++)\n\t\t{\n\t\t // Nuevamente, para ResultSetMetaData la primera columna es la 1.\n\t\t etiquetas[i] = metaDatos.getColumnLabel(i + 1);\n\t\t}\n\t\tmodelo.setColumnIdentifiers(etiquetas);*/\n\t\t\t\t\n\t\ttry {\n\t\t\tthis.doc = SqlXml.toDocument(rs);\t\n\t\t\t//SqlXml.toFile(doc);\n\t\t\t\n\t\t\tmetaDatos = rs.getMetaData();\n\t\n\t\t\t\n\t\t\twhile (rs.next())\n\t\t\t{\n\t\t\t // Se crea un array que será una de las filas de la tabla.\n\t\t\t Object [] fila = new Object[numeroColumnas]; // Hay tres columnas en la tabla\n\n\t\t\t // Se rellena cada posición del array con una de las columnas de la tabla en base de datos.\n\t\t\t for (int i=0;i<numeroColumnas;i++){\n\t\t\t fila[i] = rs.getObject(i+1); // El primer indice en rs es el 1, no el cero, por eso se suma 1.\n\t\t\t \n\t\t\t if(i==2){\n\t\t\t \t \n\t\t\t \t NumberFormat formatter = new DecimalFormat(\"#0.0000\"); \n\t\t\t \t fila[i] = formatter.format(fila[i]);\n\t\t\t \t \n\t\t\t }\n\t\t\t \n\t\t\t modelo.isCellEditable(rs.getRow(), i+1);\n\t\t\t \n\t\t\t }\n\t\t\t // Se añade al modelo la fila completa.\n\t\t\t modelo.addRow(fila);\n\t\t\t}\n\t\t\t\n\t\t\ttabla.setModel(modelo);\n\n\t\t\t\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t}", "private void IniciarTabla(){\n \n // limpia los datos de los Label y los datos relacionados a la actualizacion de los datos e inhabilita y habilitar botones\nthis.jLabelId.setText(\"Id\");\nthis.jnombre.setText(\"\");\ngrabarCambios.setEnabled(false);\njBotonAgregar.setEnabled(true);\n\n DefaultTableModel dfm = new DefaultTableModel();\n tabla = this.jTabla;\n tabla.setModel(dfm);\n \n // agrega los datos al index de la tabla \n dfm.setColumnIdentifiers(new Object[]{\"id\",\"Comuna\",\"Estado\"});\n Conexion cn = new Conexion();\n rs = cn.SeleccionarTodosComunas();\n try{\n // se recorre rs donde estan los resultados de la busqueda de los datos de la tabla comuna\n while(rs.next()){\n String activo =\"\";\n if (rs.getInt(\"COM_ESTADO\")==1) {\n activo = \"activo\";\n } else {\n activo = \"no activo\";};\n // se agrega la fila con los datos de la columna \n dfm.addRow(new Object[]{rs.getInt(\"COM_ID\"),rs.getString(\"COM_NOMBRE\"),activo});\n }\n \n } catch(Exception e){\n System.out.println(\"Error Revisar funcion TableModel\" + e);\n }\n }", "void prepareTables();", "public void atualizarTabelaFunc() throws SQLException {\n DefaultTableModel model = (DefaultTableModel) tabelaFunc.getModel();\n model.setNumRows(0);\n dadosDAO dados = new dadosDAO();\n String pesquisa = funcField.getText().toUpperCase();\n for (funcionario func : dados.readFuncionarios()){\n if (!funcField.getText().equals(\"\")){\n if (nomeBtnFunc.isSelected()){\n if (func.getNome().contains(pesquisa)){\n model.addRow(new Object[]{\n func.getId_func(),\n nomeProprio(func.getNome()),\n func.getCpf(),\n func.getDt_nascimento(),\n func.getSexo(),\n func.getTelfix(),\n func.getRamal(),\n func.getTelcel(),\n func.getCep(),\n func.getCargo(),\n func.getTurno(),\n func.getSalario()\n });\n }\n } else if (cpfBtnFunc.isSelected()){\n if (funcField.getText().equals(func.getCpf())) {\n model.addRow(new Object[]{\n func.getId_func(),\n nomeProprio(func.getNome()),\n func.getCpf(),\n func.getDt_nascimento(),\n func.getSexo(),\n func.getTelfix(),\n func.getRamal(),\n func.getTelcel(),\n func.getCep(),\n func.getCargo(),\n func.getTurno(),\n func.getSalario()\n });\n }\n } else {\n if (funcField.getText().equals(String.valueOf(func.getId_func()))){\n model.addRow(new Object[]{\n func.getId_func(),\n nomeProprio(func.getNome()),\n func.getCpf(),\n func.getDt_nascimento(),\n func.getSexo(),\n func.getTelfix(),\n func.getRamal(),\n func.getTelcel(),\n func.getCep(),\n func.getCargo(),\n func.getTurno(),\n func.getSalario()\n });\n }\n }\n } else {\n model.addRow(new Object[]{\n func.getId_func(),\n nomeProprio(func.getNome()),\n func.getCpf(),\n func.getDt_nascimento(),\n func.getSexo(),\n func.getTelfix(),\n func.getRamal(),\n func.getTelcel(),\n func.getCep(),\n func.getCargo(),\n func.getTurno(),\n func.getSalario()\n });\n }\n }\n }", "public void ProductsContent(DefaultTableModel tableModel, int parameter){\n connect();\n ResultSet result = null;\n tableModel.setRowCount(0);\n tableModel.setColumnCount(0);\n String sql =\"SELECT productos.descripcion, productos.presentacion, productos.precio, contenido.cantidad, \"\n + \"contenido.importe FROM productos JOIN contenido JOIN requisiciones ON productos.id_producto = \"\n + \"contenido.producto AND contenido.requisicion = requisiciones.id_requisicion \"\n + \"WHERE requisiciones.id_requisicion = ? ORDER BY descripcion\";\n \n try{\n PreparedStatement ps = connect.prepareStatement(sql);\n ps.setInt(1, parameter);\n result = ps.executeQuery();\n if(result != null){\n int columnNumber = result.getMetaData().getColumnCount();\n for(int i = 1; i <= columnNumber; i++){\n tableModel.addColumn(result.getMetaData().getColumnName(i));\n }\n while(result.next()){\n Object []obj = new Object[columnNumber];\n for(int i = 1; i <= columnNumber; i++){\n obj[i-1] = result.getObject(i);\n }\n tableModel.addRow(obj);\n }\n }\n connect.close();\n }catch(SQLException ex){\n ex.printStackTrace();\n } \n }", "private void cargarDatosDefault() {\n\t\tPersonasJSON personas = new PersonasJSON();\n\t\tpersonas = personas.leerJSON(\"src/datosJSON/Personas.JSON\");\n\t\t\n\t\tfor(int i=0 ; i<personas.getCantidadPersonas(); i++) {\n\t\t\t\n\t\t\tString nombre = personas.getPersona(i).getNombre();\n\t\t\tint deporte = personas.getPersona(i).getDeporte();\n\t\t\tint musica = personas.getPersona(i).getMusica();\n\t\t\tint espectaculo = personas.getPersona(i).getEspectaculo();\n\t\t\tint ciencia = personas.getPersona(i).getCiencia();\n\t\t\t\n\t\t\tmodel.addRow(new String[]{ nombre, String.valueOf(deporte), String.valueOf(musica),\n\t\t\t\t\tString.valueOf(espectaculo), String.valueOf(ciencia) });\n\t\t}\n\t\t\n\t\tdatos.addAll(personas.getTodasLasPersonas());\n\t\t\n\t}", "public void preencherTabelaResultado() {\n\t\tArrayList<Cliente> lista = Fachada.getInstance().pesquisarCliente(txtNome.getText());\n\t\tDefaultTableModel modelo = (DefaultTableModel) tabelaResultado.getModel();\n\t\tObject[] linha = new Object[4];\n\t\tmodelo.setRowCount(0);\n\n\t\tfor (Cliente c : lista) {\n\t\t\tlinha[0] = c.getIdCliente();\n\t\t\tlinha[1] = c.getNome();\n\t\t\tlinha[2] = c.getTelefone().toString();\n\t\t\tif (c.isAptoAEmprestimos())\n\t\t\t\tlinha[3] = \"Apto\";\n\t\t\telse\n\t\t\t\tlinha[3] = \"A devolver\";\n\t\t\tmodelo.addRow(linha);\n\n\t\t}\n\n\t}", "public void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "private void selectAll() {\n //To change body of generated methods, choose Tools | Templates.\n \n tabelpulsa.setModel(model);\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n \n \n try {\n Connection c=koneksidb.getkoneksi();\n Statement s=c.createStatement();\n ResultSet r=s.executeQuery(\"select* from pulsa\");\n while(r.next()){\n Object[] pulsa = new Object[5]; \n pulsa[0]=r.getString(\"operator\");\n pulsa[1]=r.getString(\"id_pulsa\");\n pulsa[2]=r.getString(\"harga_default\");\n pulsa[3]=r.getString(\"harga_jual\");\n pulsa[4]=r.getString(\"harga_member\");\n model.addRow(pulsa);\n }\n }catch (SQLException e){\n System.out.println(\"terjadi error :\" +e);\n }\n }", "private void limparTabela() {\n while (tmLivro.getRowCount() > 0) {\n tmLivro.removeRow(0);\n }\n }", "public void cargarTablaFiltro(JTable table, int tipo, String restriccion) {\n\t\t\n\t\tString filtro = restriccion + \"-\" + tipo; \n\t\tList<CocheTaller> coches = mecanicoController.filtrarCocheTaller(filtro);\n\t\tString[] columnNames = {\"Marticula\", \"Marca\", \"Modelo\", \"DNI Cliente\", \"Mecanico\", \"Coste\", \"Estado\"};\n\t\t\n\t\tif (!coches.isEmpty()) {\n\t\t\t DefaultTableModel model = new DefaultTableModel();\n\t\t\t table.setModel(model);\n\t\t\t model.setColumnIdentifiers(columnNames);\n\t\t\t \n\t\t\t for (CocheTaller c : coches) {\n\t\t\t\t Object[] o = new Object[7];\n\t\t\t\t o[0] = c.getMatricula();\n\t\t\t\t o[1] = c.getMarca();\n\t\t\t\t o[2] = c.getModelo();\n\t\t\t\t o[3] = c.getDniCliente();\n\t\t\t\t o[4] = c.getMecanico();\n\t\t\t\t o[5] = c.getCoste() + \"€\";\n\t\t\t\t o[6] = mecanicoController.traducirEstado(c.getEstado());\n\t\t\t\t model.addRow(o);\n\t\t\t\t }\n\t\t} else {\n\t\t\tlogger.error(\"No se dispone ningun vehiculo con ese filtrado.\");\n\t\t}\n\t}", "public void llenarTabla() {\n\n String matriz[][] = new String[lPComunes.size()][2];\n\n for (int i = 0; i < AccesoFichero.lPComunes.size(); i++) {\n matriz[i][0] = AccesoFichero.lPComunes.get(i).getPalabra();\n matriz[i][1] = AccesoFichero.lPComunes.get(i).getCodigo();\n\n }\n\n jTableComun.setModel(new javax.swing.table.DefaultTableModel(\n matriz,\n new String[]{\n \"Palabra\", \"Morse\"\n }\n ) {// Bloquea que las columnas se puedan editar, haciendo doble click en ellas\n @SuppressWarnings(\"rawtypes\")\n Class[] columnTypes = new Class[]{\n String.class, String.class\n };\n\n @SuppressWarnings({\"unchecked\", \"rawtypes\"})\n @Override\n public Class getColumnClass(int columnIndex) {\n return columnTypes[columnIndex];\n }\n boolean[] columnEditables = new boolean[]{\n false, false\n };\n\n @Override\n public boolean isCellEditable(int row, int column) {\n return columnEditables[column];\n }\n });\n\n }", "public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }", "public void fill_table()\n {\n Secante secante = new Secante(GraficaSecanteController.a, GraficaSecanteController.b, GraficaSecanteController.ep, FuncionController.e);\n list = secante.algoritmo();\n }", "private void buscarProducto() {\n EntityManagerFactory emf= Persistence.createEntityManagerFactory(\"pintureriaPU\");\n List<Almacen> listaproducto= new FacadeAlmacen().buscarxnombre(jTextField1.getText().toUpperCase());\n DefaultTableModel modeloTabla=new DefaultTableModel();\n modeloTabla.addColumn(\"Id\");\n modeloTabla.addColumn(\"Producto\");\n modeloTabla.addColumn(\"Proveedor\");\n modeloTabla.addColumn(\"Precio\");\n modeloTabla.addColumn(\"Unidades Disponibles\");\n modeloTabla.addColumn(\"Localizacion\");\n \n \n for(int i=0; i<listaproducto.size(); i++){\n Vector vector=new Vector();\n vector.add(listaproducto.get(i).getId());\n vector.add(listaproducto.get(i).getProducto().getDescripcion());\n vector.add(listaproducto.get(i).getProducto().getProveedor().getNombre());\n vector.add(listaproducto.get(i).getProducto().getPrecio().getPrecio_contado());\n vector.add(listaproducto.get(i).getCantidad());\n vector.add(listaproducto.get(i).getLocalizacion());\n modeloTabla.addRow(vector);\n }\n jTable1.setModel(modeloTabla);\n }" ]
[ "0.728077", "0.72374666", "0.72092104", "0.7175637", "0.71678287", "0.710324", "0.70953006", "0.7055641", "0.70529306", "0.69793826", "0.69784063", "0.69526863", "0.68957675", "0.6891352", "0.68810606", "0.683613", "0.6805455", "0.68030304", "0.6786642", "0.6761898", "0.67545027", "0.67414117", "0.673202", "0.6731968", "0.6727773", "0.67011636", "0.6676302", "0.66614664", "0.6636014", "0.661915", "0.66123754", "0.661025", "0.660303", "0.66026825", "0.6598522", "0.6594053", "0.6567817", "0.6543113", "0.6524414", "0.65146834", "0.65051365", "0.6491427", "0.6485799", "0.647874", "0.6474293", "0.6474118", "0.64731115", "0.6471877", "0.64681035", "0.6463903", "0.6452783", "0.6451142", "0.64451337", "0.644407", "0.6436864", "0.6436654", "0.6436433", "0.64339143", "0.64266163", "0.64212024", "0.64179677", "0.6414788", "0.6411174", "0.6411159", "0.64110845", "0.64084035", "0.6391675", "0.63862574", "0.63758767", "0.63335603", "0.63180393", "0.63122857", "0.6308364", "0.630073", "0.6296452", "0.6292634", "0.6288127", "0.62760305", "0.62550104", "0.6253027", "0.6250475", "0.6246243", "0.62457216", "0.62394726", "0.62297523", "0.6228714", "0.6227849", "0.6222049", "0.621955", "0.6206328", "0.6206248", "0.62020373", "0.6189189", "0.61796546", "0.61641836", "0.61640084", "0.61624897", "0.61615777", "0.6160245", "0.6155474" ]
0.65445966
37
carga los titulos de la tabla
public void cargarTitulos1() throws SQLException { tabla1.addColumn("CLAVE"); tabla1.addColumn("NOMBRE"); tabla1.addColumn("DIAS"); tabla1.addColumn("ESTATUS"); this.tbpercep.setModel(tabla1); TableColumnModel columnModel = tbpercep.getColumnModel(); columnModel.getColumn(0).setPreferredWidth(15); columnModel.getColumn(1).setPreferredWidth(150); columnModel.getColumn(2).setPreferredWidth(50); columnModel.getColumn(3).setPreferredWidth(70); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cargarTablas(){\n ControladorEmpleados empleados= new ControladorEmpleados();\n ControladorProyectos proyectos= new ControladorProyectos();\n ControladorCasos casos= new ControladorCasos();\n actualizarListadoObservable(empleados.consultarEmpleadosAdminProyectos(ESTADO_ASIGNADO, TIPO_3),casos.consultarCasos(devolverUser()),casos.consultarTiposCaso());\n }", "private void cargarTabla() {\n\t\tObject[] fila = new Object[7];\r\n\t\tfila[1] = txtCedula.getText();\r\n\t\tfila[2] = txtFuncionario.getText();\r\n\t\tfila[3] = util.getDateToString(dcDesde.getDate());\r\n\t\tif (cbTipo.getSelectedIndex() == 1 || cbTipo.getSelectedIndex() == 2) {\r\n\t\t\tfila[4] = util.getDateToString(dcDesde.getDate());\r\n\t\t} else {\r\n\t\t\tfila[4] = util.getDateToString(dcHasta.getDate());\r\n\t\t}\r\n\t\tfila[5] = cbTipo.getSelectedItem();\r\n\t\tfila[6] = txtMotivo.getText().toUpperCase();\r\n\t\tthis.modelo.addRow(fila);\r\n\t\ttbJustificaciones.setModel(this.modelo);\r\n\t}", "public void createTable() {\n try {\n tableLayout = findViewById(R.id.tabla);\n tb = new TableDinamic(tableLayout, getApplicationContext(), \"cargarDetalle\", clc, cap_1, cap_2, cap_ct, txtidReg, txtId, txtBloque, txtVariedad);\n tableLayout.removeAllViews();\n tb.addHeader(header);\n tb.addData(cargarTabla());\n tb.backgroundHeader(\n Color.parseColor(\"#20C0FF\")\n );\n tb.backgroundData(\n Color.parseColor(\"#FFFFFF\"),\n Color.parseColor(\"#81F0EDED\")\n );\n } catch (Exception e) {\n Toast.makeText(this, \"Error de la table: \" + e.toString(), Toast.LENGTH_LONG).show();\n }\n }", "private void cargarTablaConPaquetes() {\n tcId.setCellValueFactory(\n new PropertyValueFactory<Paquete, String>(\"codigo\"));\n tcdescripcion.setCellValueFactory(\n new PropertyValueFactory<Paquete, String>(\"descripcion\"));\n tcDestino.setCellValueFactory(\n new PropertyValueFactory<Paquete, String>(\"destino\"));\n tcEntregado.setCellValueFactory(\n new PropertyValueFactory<Paquete, Boolean>(\"entregado\"));\n\n tbPaqueteria.setItems(data);\n tbPaqueteria.getSelectionModel().selectFirst();\n\n //TODO futura implementacion\n //setDobleClickFila();\n }", "Tablero consultarTablero();", "private void carregarTabela() {\n try {\n\n Vector<String> cabecalho = new Vector();\n cabecalho.add(\"Id\");\n cabecalho.add(\"Nome\");\n cabecalho.add(\"Telefone\");\n cabecalho.add(\"Titular\");\n cabecalho.add(\"Data de Nascimento\");\n\n Vector detalhe = new Vector();\n\n for (Dependente dependente : new NDependente().listar()) {\n Vector<String> linha = new Vector();\n\n linha.add(dependente.getId() + \"\");\n linha.add(dependente.getNome());\n linha.add(dependente.getTelefone());\n linha.add(new NCliente().consultar(dependente.getCliente_id()).getNome());\n linha.add(dependente.getDataNascimento().toString());\n detalhe.add(linha);\n\n }\n\n tblDependentes.setModel(new DefaultTableModel(detalhe, cabecalho));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }", "public void llenadoDeTablas() {\n \n DefaultTableModel modelo1 = new DefaultTableModel();\n modelo1 = new DefaultTableModel();\n modelo1.addColumn(\"ID Usuario\");\n modelo1.addColumn(\"NOMBRE\");\n UsuarioDAO asignaciondao = new UsuarioDAO();\n List<Usuario> asignaciones = asignaciondao.select();\n TablaPerfiles.setModel(modelo1);\n String[] dato = new String[2];\n for (int i = 0; i < asignaciones.size(); i++) {\n dato[0] = (Integer.toString(asignaciones.get(i).getId_usuario()));\n dato[1] = asignaciones.get(i).getNombre_usuario();\n\n modelo1.addRow(dato);\n }\n }", "private void cargarColumnasTabla(){\n \n modeloTabla.addColumn(\"Nombre\");\n modeloTabla.addColumn(\"Telefono\");\n modeloTabla.addColumn(\"Direccion\");\n }", "public void llenadoDeTablas() {\n /**\n *\n * creaccion de la tabla de de titulos \n */\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Bitacora\");\n modelo.addColumn(\"Usuario\");\n modelo.addColumn(\"Fecha\");\n modelo.addColumn(\"Hora\");\n modelo.addColumn(\"Ip\");\n modelo.addColumn(\"host\");\n \n modelo.addColumn(\"Accion\");\n modelo.addColumn(\"Codigo Aplicacion\");\n modelo.addColumn(\"Modulo\");\n /**\n *\n * instaciamiento de las las clases Bitacora y BiracoraDAO\n * intaciamiento de la clases con el llenado de tablas\n */\n BitacoraDao BicDAO = new BitacoraDao();\n List<Bitacora> usuario = BicDAO.select();\n JtProductos1.setModel(modelo);\n String[] dato = new String[9];\n for (int i = 0; i < usuario.size(); i++) {\n dato[0] = usuario.get(i).getId_Bitacora();\n dato[1] = usuario.get(i).getId_Usuario();\n dato[2] = usuario.get(i).getFecha();\n dato[3] = usuario.get(i).getHora();\n dato[4] = usuario.get(i).getHost();\n dato[5] = usuario.get(i).getIp();\n dato[6] = usuario.get(i).getAccion();\n dato[7] = usuario.get(i).getCodigoAplicacion();\n dato[8] = usuario.get(i).getModulo();\n \n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }}", "private void loadTable() {\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n try {\n String sql = \"select * from tb_mahasiswa\";\n Statement n = a.createStatement();\n ResultSet rs = n.executeQuery(sql);\n while (rs.next()) {\n Object[] o = new Object[6];\n o[0] = rs.getString(\"id_mahasiswa\");\n o[1] = rs.getString(\"nama\");\n o[2] = rs.getString(\"tempat\");\n o[3] = rs.getString(\"waktu\");\n o[4] = rs.getString(\"status\");\n model.addRow(o);\n }\n } catch (Exception e) {\n }\n }", "private void preencherTabela() {\n\t\tList<Cidade> listCidade;\n\t\tCidadeDAO cidadeDAO;\n\t\tObservableList<Cidade> oListCidade;\n\n\t\t// Determina os atributos que irão preencher as colunas\n\t\tcolCidade.setCellValueFactory(new PropertyValueFactory<>(\"nomeCidades\"));\n\t\tcolEstado.setCellValueFactory(new PropertyValueFactory<>(\"nomeEstado\"));\n\t\tcolSigla.setCellValueFactory(new PropertyValueFactory<>(\"siglaEstado\"));\n\t\tcolCodigoCidade.setCellValueFactory(new PropertyValueFactory<>(\"idCidade\"));\n\t\tcolIdEstado.setCellValueFactory(new PropertyValueFactory<>(\"idEstado\"));\n\n\t\t// Instancia a lista de cidades e a DAO\n\t\tlistCidade = new ArrayList<Cidade>();\n\t\tcidadeDAO = new CidadeDAO();\n\n\t\t// Chama o metodo para selecionar todas as cidades e atribuir a lista\n\t\tlistCidade = cidadeDAO.selecionar();\n\n\t\t// Converte a lista de cidades em observablearray\n\t\toListCidade = FXCollections.observableArrayList(listCidade);\n\n\t\t// Adiciona a lista na tabela\n\t\ttblCidades.setItems(oListCidade);\n\t}", "private void cargarTarjetaTuberculosis() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE, admision_seleccionada);\r\n\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\tIRutas_historia.PAGINA_HC_TUBERCULOSIS,\r\n\t\t\t\tIRutas_historia.LABEL_HC_TUBERCULOSIS, parametros);\r\n\t}", "public void cargarTabla(JTable table) {\n\t\tList<CocheTaller> coches = mecanicoController.cargarTablaCocheTaller();\n\t\t\n\t\tString[] columnNames = {\"Marticula\", \"Marca\", \"Modelo\", \"DNI Cliente\", \"Mecanico\", \"Coste\", \"Estado\"};\n\t\t\n\t\tif (!coches.isEmpty()) {\n\t\t\t DefaultTableModel model = new DefaultTableModel();\n\t\t\t table.setModel(model);\n\t\t\t model.setColumnIdentifiers(columnNames);\n\t\t\t \n\t\t\t for (CocheTaller c : coches) {\n\t\t\t\t Object[] o = new Object[7];\n\t\t\t\t o[0] = c.getMatricula();\n\t\t\t\t o[1] = c.getMarca();\n\t\t\t\t o[2] = c.getModelo();\n\t\t\t\t o[3] = c.getDniCliente();\n\t\t\t\t o[4] = c.getMecanico();\n\t\t\t\t o[5] = c.getCoste() + \"€\";\n\t\t\t\t o[6] = mecanicoController.traducirEstado(c.getEstado());\n\t\t\t\t model.addRow(o);\n\t\t\t\t }\n\t\t} else {\n\t\t\tlogger.error(\"No llegan correctamente los CocheTaller\");\n\t\t}\n\t}", "private void pintarTabla() {\r\n ArrayList<Corredor> listCorredors = gestion.getCorredores();\r\n TableModelCorredores modelo = new TableModelCorredores(listCorredors);\r\n jTableCorredores.setModel(modelo);\r\n TableRowSorter<TableModel> elQueOrdena = new TableRowSorter<>(modelo);\r\n jTableCorredores.setRowSorter(elQueOrdena);\r\n\r\n }", "public void cargarTabla(String servidor){\n String base_de_datos1=cbBaseDeDatos.getSelectedItem().toString();\n String sql =\"USE [\"+base_de_datos1+\"]\\n\" +\n \"SELECT name FROM sysobjects where xtype='U' and category <> 2\";\n // JOptionPane.showMessageDialog(null,\"SQL cargarbases \"+sql);\n Conexion cc = new Conexion();\n Connection cn=cc.conectarBase(servidor, base_de_datos1);\n modeloTabla=new DefaultTableModel();\n String fila[]=new String[1] ;\n String[] titulos={\"Tablas\"} ;\n try {\n Statement psd = cn.createStatement();\n ResultSet rs=psd.executeQuery(sql);\n if(modeloTabla.getColumnCount()<2){\n modeloTabla.addColumn(titulos[0]);\n //modeloTabla.addColumn(titulos[1]);\n }\n while(rs.next()){\n fila[0]=rs.getString(\"name\");\n // fila[1]=\"1\";\n modeloTabla.addRow(fila);\n }\n tblTablas.setModel(modeloTabla);\n }catch(Exception ex){\n JOptionPane.showMessageDialog(null, ex+\" al cargar tabla\");\n }\n }", "public void preencherTabela(){\n imagemEnunciado.setImage(imageDefault);\n pergunta.setImagemEnunciado(caminho);\n imagemResposta.setImage(imageDefault);\n pergunta.setImagemResposta(caminho);\n ///////////////////////////////\n perguntas = dao.read();\n if(perguntas != null){\n perguntasFormatadas = FXCollections.observableList(perguntas);\n\n tablePerguntas.setItems(perguntasFormatadas);\n }\n \n }", "public void llenarTabla(int inicio, int limite) {\n DefaultTableModel dtm = (DefaultTableModel) jTableVerRondas.getModel();//se usa DefaultTableModel para manipular facilmente el Tablemodel\n dtm.setRowCount(0);//eliminando la s filas que ya hay. para agregar desde el principio.\n //los datos se agregan la defaultTableModel.\n ArrayList<Partido> llenar = miOpenAustralia.getPartidos();//sacando al informacion a agregar en la tabla.\n\n //como se va a llenar una tabla de 5 columnas, se crea un vector de 3 elementos.\n //se usa un arreglo de Object para poder agregar a la tabla cualquier tipo de datos.\n Object[] datos = new Object[5];\n for (int i = inicio; i < limite; i++) {\n\n Partido parti = llenar.get(i);\n //Se agrega este if para evitar que el extraiga datos en un campo null\n if (parti != null) {\n\n datos[0] = parti.getId();\n datos[1] = parti.getFechaHora();//el primer elemetno del arreglo va a ser el id,la primera col en la Tabla.\n datos[2] = parti.getJugador1().getNombre();\n datos[3] = parti.getJugador2().getNombre();\n datos[4] = parti.getPista().getNombre();\n\n //agrego al TableModleo ese arreglo\n dtm.addRow(datos);\n }\n }\n }", "private void limparTabela() {\n while (tmLivro.getRowCount() > 0) {\n tmLivro.removeRow(0);\n }\n }", "private void llenar_tabla() {\n \n try {\n DefaultTableModel modelo;\n conexion cnx = new conexion();\n Connection registros = cnx.conexion();\n String[] nombre_atributos = {\"id_producto\", \"nombre\",\"id_categoria\"};\n String sql = (\"SELECT *FROM producto\");\n modelo = new DefaultTableModel(null, nombre_atributos);\n Statement st = (Statement) registros.createStatement();\n ResultSet rs = st.executeQuery(sql);\n String[] filas = new String[3];\n\n while (rs.next()) {\n filas[0] = rs.getString(\"id_producto\");\n filas[1] = rs.getString(\"nombre\");\n filas[2] = rs.getString(\"id_categoria\");\n modelo.addRow(filas);\n\n }\n jtabla.setModel(modelo);\n registros.close();\n } catch (SQLException ex) {\n Logger.getLogger(responsable.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "private void tampil() {\n int row=tabmode.getRowCount();\n for (int i=0;i<row;i++){\n tabmode.removeRow(0);\n }\n try {\n Connection koneksi=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/medica\",\"root\",\"\");\n ResultSet rs=koneksi.createStatement().executeQuery(\"select rawat_inap_bayi.no, pasien_bayi.tgl_lahir, rawat_inap_bayi.tgl_masuk, rawat_inap_bayi.tgl_pulang, rawat_inap_bayi.lama, kamar.nm_kamar, penyakit.nama_penyakit, dokter.nm_dokter, tindakan.nama_tindakan, rawat_inap_bayi.suhu_tubuh, rawat_inap_bayi.resusitas, rawat_inap_bayi.hasil, rawat_inap_bayi.keterangan, rawat_inap_bayi.apgar \"+\n \" from rawat_inap_bayi inner join pasien_bayi on rawat_inap_bayi.no_rm_bayi=pasien_bayi.no_rm_bayi inner join kamar on rawat_inap_bayi.kd_kamar=kamar.kd_kamar inner join penyakit on rawat_inap_bayi.kd_icd = penyakit.kd_icd inner join dokter on rawat_inap_bayi.kd_dokter = dokter.kd_dokter inner join tindakan on rawat_inap_bayi.kode_tindakan = tindakan.kode_tindakan \");\n while(rs.next()){\n String[] data={rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6),rs.getString(7),rs.getString(8),rs.getString(9),rs.getString(10),rs.getString(11),rs.getString(12),rs.getString(13),rs.getString(14)};\n tabmode.addRow(data);\n }\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n \n }", "void prepareTables();", "private void MontarTabela(String where) {\n \n int linha = 0;\n int coluna = 0;\n \n String offset = String.valueOf(getPaginacao());\n \n while(linha < 10){\n while(coluna < 7){\n tbConFin.getModel().setValueAt(\"\", linha, coluna);\n coluna++;\n }\n linha++;\n coluna = 0;\n }\n \n linha = 0;\n \n String rd_id\n ,rd_codico\n ,rd_nome\n ,rd_receita_despesa\n ,rd_grupo\n ,rd_fixa\n ,rd_ativo;\n \n \n \n try{\n ResultSet rsConFin = cc.stm.executeQuery(\"select * from v_receitadespesa \"+where+\" order by rd_codico limit 10 offset \"+offset);\n \n while ( rsConFin.next() ) {\n rd_id = rsConFin.getString(\"RD_ID\");\n rd_codico = rsConFin.getString(\"rd_codico\");\n rd_nome = rsConFin.getString(\"rd_nome\");\n rd_receita_despesa = getRecDesp(rsConFin.getString(\"rd_receita_despesa\"));\n rd_grupo = getSimNao(rsConFin.getString(\"rd_grupo\"));\n rd_fixa = getSimNao(rsConFin.getString(\"rd_fixa\"));\n rd_ativo = getSimNao(rsConFin.getString(\"rd_ativo\"));\n \n tbConFin.getModel().setValueAt(rd_id, linha, 0);\n tbConFin.getModel().setValueAt(rd_codico, linha, 1);\n tbConFin.getModel().setValueAt(rd_nome, linha, 2);\n tbConFin.getModel().setValueAt(rd_receita_despesa, linha, 3);\n tbConFin.getModel().setValueAt(rd_grupo, linha, 4);\n tbConFin.getModel().setValueAt(rd_fixa, linha, 5);\n tbConFin.getModel().setValueAt(rd_ativo, linha, 6);\n \n linha++;\n }\n \n \n if(linha <= 10){\n setMensagem(\"A Busca retornou \"+linha+\" registros!\");\n }\n \n if(linha < 10){\n setFimConsulta(true);\n }else{\n setFimConsulta(false);\n }\n \n }catch(SQLException e){\n JOptionPane.showMessageDialog(this, \"Erro ao Carregar informações de contas financeiras!\\n\"+e.getMessage());\n }\n \n }", "public void cargarDatos() {\n \n if(drogasIncautadoList==null){\n return;\n }\n \n \n \n List<Droga> datos = drogasIncautadoList;\n\n Object[][] matriz = new Object[datos.size()][4];\n \n for (int i = 0; i < datos.size(); i++) {\n \n \n //System.out.println(s[0]);\n \n matriz[i][0] = datos.get(i).getTipoDroga();\n matriz[i][1] = datos.get(i).getKgDroga();\n matriz[i][2] = datos.get(i).getQuetesDroga();\n matriz[i][3] = datos.get(i).getDescripcion();\n \n }\n Object[][] data = matriz;\n String[] cabecera = {\"Tipo Droga\",\"KG\", \"Quetes\", \"Descripción\"};\n dtm = new DefaultTableModel(data, cabecera);\n tableDatos.setModel(dtm);\n }", "public void clicTable(View v) {\n try {\n conteoTab ct = clc.get(tb.getIdTabla() - 1);\n\n if(ct.getEstado().equals(\"0\")) {\n String variedad = ct.getVariedad();\n String bloque = ct.getBloque();\n Long idSiembra = ct.getIdSiembra();\n String idSiempar = String.valueOf(idSiembra);\n\n long idReg = ct.getIdConteo();\n int cuadro = ct.getCuadro();\n int conteo1 = ct.getConteo1();\n int conteo4 = ct.getConteo4();\n int total = ct.getTotal();\n\n txtidReg.setText(\"idReg:\" + idReg);\n txtCuadro.setText(\"Cuadro: \" + cuadro);\n cap_1.setText(String.valueOf(conteo1));\n cap_2.setText(String.valueOf(conteo4));\n cap_ct.setText(String.valueOf(total));\n txtId.setText(\"Siembra: \" + idSiempar);\n txtVariedad.setText(\"Variedad: \" + variedad);\n txtBloque.setText(\"Bloque: \" + bloque);\n }else{\n Toast.makeText(this, \"No se puede cargar el registro por que ya ha sido enviado\", Toast.LENGTH_SHORT).show();\n }\n\n } catch (Exception E) {\n Toast.makeText(getApplicationContext(), \"No has seleccionado aún una fila \\n\" + E, Toast.LENGTH_LONG).show();\n }\n }", "private void carregarTabela() {\n try {\n\n Vector<String> cabecalho = new Vector();\n cabecalho.add(\"Id\");\n cabecalho.add(\"Nome\");\n cabecalho.add(\"CPF\");\n cabecalho.add(\"Telefone\");\n cabecalho.add(\"Endereço\");\n cabecalho.add(\"E-mail\");\n cabecalho.add(\"Data de Nascimento\");\n\n Vector detalhe = new Vector();\n\n for (Cliente cliente : new NCliente().listar()) {\n Vector<String> linha = new Vector();\n\n linha.add(cliente.getId() + \"\");\n linha.add(cliente.getNome());\n linha.add(cliente.getCpf());\n linha.add(cliente.getTelefone());\n linha.add(cliente.getEndereco());\n linha.add(cliente.getEmail());\n linha.add(cliente.getData_nascimento().toString());\n detalhe.add(linha);\n\n }\n\n tblClientes.setModel(new DefaultTableModel(detalhe, cabecalho));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }", "private void limparTabela() { \n while (tmLivro.getRowCount() > 0) { \n tmLivro.removeRow(0);\n }\n }", "public void PreencherTabela() throws SQLException {\n try (Connection connection = ConnectionFactory.getConnection()) {\n String[] colunas = new String[]{\"ID\", \"Nome\", \"Nomenclatura\", \"Quantidade\"};\n ArrayList dados = new ArrayList();\n for (ViewProdutoPedido v : viewProdutoPedidos) {\n dados.add(new Object[]{v.getId(), v.getNome(), v.getNomenclatura(), v.getQuantidade()});\n }\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n jTableItensPedido.setModel(modelo);\n jTableItensPedido.setRowSorter(new TableRowSorter(modelo));\n jTableItensPedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTableItensPedido.getColumnModel().getColumn(0).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(1).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(2).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(2).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(3).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(3).setResizable(false);\n\n }\n }", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "private void preencherTabelaVeiculoCarga() {\n\n ArrayList dados = new ArrayList();\n cargaDao = new CargaDao();\n Carga carga;\n String[] colunas = new String[]{\"ID\", \"DESCRICAO\", \"STATUS\"};\n\n try {\n final List<Object> listaCarga = cargaDao.listarCargasDoVeiculo(idVeiculoSelecionado);\n\n if (listaCarga != null && listaCarga.size() > 0) {\n for (Object cargaAtual : listaCarga) {\n carga = (Carga) cargaAtual;\n dados.add(new Object[]{carga.getIdCarga(), carga.getDescricao(), carga.getStatus()});\n }\n }\n\n ModeloTabela modTabela = new ModeloTabela(dados, colunas);\n jTB_VeiculoCarga.setModel(modTabela);\n jTB_VeiculoCarga.getColumnModel().getColumn(0).setPreferredWidth(100);\n jTB_VeiculoCarga.getColumnModel().getColumn(0).setResizable(false);\n jTB_VeiculoCarga.getColumnModel().getColumn(1).setPreferredWidth(300);\n jTB_VeiculoCarga.getColumnModel().getColumn(1).setResizable(false);\n jTB_VeiculoCarga.getColumnModel().getColumn(2).setPreferredWidth(150);\n jTB_VeiculoCarga.getColumnModel().getColumn(2).setResizable(false);\n\n jTB_VeiculoCarga.getTableHeader().setReorderingAllowed(false);\n jTB_VeiculoCarga.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n jTB_VeiculoCarga.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n jTB_VeiculoCarga.addMouseListener(new MouseAdapter() {\n\n @Override\n public void mouseClicked(MouseEvent e) {\n try {\n List<Object> lista = cargaDao.listarCargasDoVeiculo(idVeiculoSelecionado);\n cargaSelecionada = (Carga) lista.\n get(jTB_VeiculoCarga.convertRowIndexToModel(jTB_VeiculoCarga.getSelectedRow()));\n\n // if (veiculoDao.listarVeiculosAtivos().size() > 0 && veiculoDao.listarVeiculosAtivos() != null) {}\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(FormVeiculoCargas.this, \"Erro genérico1: \" + ex.getMessage());\n ex.printStackTrace(System.err);\n }\n }\n\n });\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Erro genérico2: \" + e.getMessage());\n }\n }", "public void llenadoDeTablas() {\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Articulo\");\n modelo.addColumn(\"Fecha Ingreso\");\n modelo.addColumn(\"Nombre Articulo\");\n modelo.addColumn(\"Talla XS\");\n modelo.addColumn(\"Talla S\");\n modelo.addColumn(\"Talla M\");\n modelo.addColumn(\"Talla L\");\n modelo.addColumn(\"Talla XL\");\n modelo.addColumn(\"Color Articulo\");\n modelo.addColumn(\"Nombre Proveedor\");\n modelo.addColumn(\"Existencias\");\n\n RegistroArticuloDAO registroarcticuloDAO = new RegistroArticuloDAO();\n\n List<RegistroArticulo> registroarticulos = registroarcticuloDAO.select();\n TablaArticulo.setModel(modelo);\n String[] dato = new String[11];\n for (int i = 0; i < registroarticulos.size(); i++) {\n dato[0] = Integer.toString(registroarticulos.get(i).getPK_id_articulo());\n dato[1] = registroarticulos.get(i).getFecha_ingreso();\n dato[2] = registroarticulos.get(i).getNombre_articulo();\n dato[3] = registroarticulos.get(i).getTalla_articuloXS();\n dato[4] = registroarticulos.get(i).getTalla_articuloS();\n dato[5] = registroarticulos.get(i).getTalla_articuloM();\n dato[6] = registroarticulos.get(i).getTalla_articuloL();\n dato[7] = registroarticulos.get(i).getTalla_articuloXL();\n dato[8] = registroarticulos.get(i).getColor_articulo();\n dato[9] = registroarticulos.get(i).getNombre_proveedor();\n dato[10] = registroarticulos.get(i).getExistencia_articulo();\n\n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }\n }", "private void EjemplollenarTabla(JSONArray arr) {\n TableLayout tl = new TableLayout(null);\n while (tl.getChildCount() > 1)//vacia la table, excepto el encabezado\n tl.removeViewAt(1);\n for (int i = 0; i < arr.length(); i++) {//recorre el arreglo y llena la tabla\n try {\n JSONObject obj = arr.getJSONObject(i);\n TableRow tr = new TableRow(this);\n tr.setGravity(Gravity.CENTER);\n tr.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT));\n\n TextView nombre = new TextView(getApplicationContext());\n nombre.setText(obj.getString(\"nombre\"));\n nombre.setTextColor(Color.BLACK);\n nombre.setTextSize(16f);\n tr.addView(nombre);\n\n TextView importado = new TextView(getApplicationContext());\n importado.setText(obj.getString(\"importado\"));\n importado.setTextColor(Color.BLACK);\n importado.setTextSize(16f);\n tr.addView(importado);\n\n TextView precio = new TextView(getApplicationContext());\n precio.setText(obj.getString(\"precio\"));\n precio.setTextColor(Color.BLACK);\n precio.setTextSize(16f);\n tr.addView(precio);\n\n TextView tipo = new TextView(getApplicationContext());\n tipo.setText(obj.getString(\"tipo\"));\n tipo.setTextColor(Color.BLACK);\n tipo.setTextSize(16f);\n tr.addView(tipo);\n\n TextView preciof = new TextView(getApplicationContext());\n preciof.setText(obj.getString(\"precio\"));\n preciof.setTextColor(Color.BLACK);\n preciof.setTextSize(16f);\n tr.addView(preciof);\n\n tl.addView(tr, new TableLayout.LayoutParams(TableLayout.LayoutParams.FILL_PARENT, TableLayout.LayoutParams.WRAP_CONTENT));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "public void cargarTablaFiltro(JTable table, int tipo, String restriccion) {\n\t\t\n\t\tString filtro = restriccion + \"-\" + tipo; \n\t\tList<CocheTaller> coches = mecanicoController.filtrarCocheTaller(filtro);\n\t\tString[] columnNames = {\"Marticula\", \"Marca\", \"Modelo\", \"DNI Cliente\", \"Mecanico\", \"Coste\", \"Estado\"};\n\t\t\n\t\tif (!coches.isEmpty()) {\n\t\t\t DefaultTableModel model = new DefaultTableModel();\n\t\t\t table.setModel(model);\n\t\t\t model.setColumnIdentifiers(columnNames);\n\t\t\t \n\t\t\t for (CocheTaller c : coches) {\n\t\t\t\t Object[] o = new Object[7];\n\t\t\t\t o[0] = c.getMatricula();\n\t\t\t\t o[1] = c.getMarca();\n\t\t\t\t o[2] = c.getModelo();\n\t\t\t\t o[3] = c.getDniCliente();\n\t\t\t\t o[4] = c.getMecanico();\n\t\t\t\t o[5] = c.getCoste() + \"€\";\n\t\t\t\t o[6] = mecanicoController.traducirEstado(c.getEstado());\n\t\t\t\t model.addRow(o);\n\t\t\t\t }\n\t\t} else {\n\t\t\tlogger.error(\"No se dispone ningun vehiculo con ese filtrado.\");\n\t\t}\n\t}", "public void llenarTabla() {\n DefaultTableModel modelos = (DefaultTableModel) tableProducto.getModel();\n while (modelos.getRowCount() > 0) {\n modelos.removeRow(0);\n }\n MarcaDAO marcaDao = new MarcaDAO();\n CategoriaProductoDAO catProDao = new CategoriaProductoDAO();\n ProductoDAO proDao = new ProductoDAO();\n Marca marca = new Marca();\n CategoriaProducto catPro = new CategoriaProducto();\n\n for (Producto producto : proDao.findAll()) {\n DefaultTableModel modelo = (DefaultTableModel) tableProducto.getModel();\n modelo.addRow(new Object[10]);\n int nuevaFila = modelo.getRowCount() - 1;\n tableProducto.setValueAt(producto.getIdProducto(), nuevaFila, 0);\n tableProducto.setValueAt(producto.getNombreProducto(), nuevaFila, 1);\n tableProducto.setValueAt(producto.getCantidadProducto(), nuevaFila, 2);\n tableProducto.setValueAt(producto.getPrecioCompra(), nuevaFila, 3);\n tableProducto.setValueAt(producto.getPrecioVenta(), nuevaFila, 4);\n tableProducto.setValueAt(producto.getFechaCaducidadProducto(), nuevaFila, 5);\n tableProducto.setValueAt(producto.getFechaCaducidadProducto(), nuevaFila, 6);\n tableProducto.setValueAt(producto.getDescripcionProducto(), nuevaFila, 7);\n marca.setIdMarca(producto.getFK_idMarca());\n tableProducto.setValueAt(marcaDao.findBy(marca, \"idMarca\").get(0).getNombreMarca(), nuevaFila, 8);//PARA FK ID MARCA\n catPro.setIdCategoriaProducto(producto.getFK_idCategoriaProducto());\n tableProducto.setValueAt(catProDao.findBy(catPro, \"idCategoriaProducto\").get(0).getNombreCategoriaProducto(), nuevaFila, 9);\n //PARA FK ID CATEGORIA PRODUCTO\n\n }\n }", "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n Object[] o = new Object [3]; // membuat array 3 dimensi dengan nama object\n \n o[0] = rss.getString(\"judul\"); // yang pertama dengan ketentuan judul\n o[1] = rss.getString(\"penulis\"); // yang kedua dengan ketentuan penulis\n o[2] = rss.getInt(\"harga\"); // yang ketiga dengan ketentuan harga\n model.addRow(o); // memasukkan baris dengan mengkonekan di tabel model\n } \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "private void establecerTablaPlatillos() {\n Object[] columnas = {\"Platillo\", \"Cantidad\", \"Costo\"};\n Object[][] modelo = new Object[platillosAVender.size()][3];\n int x = 0;\n\n for (VentaPlatillo ventaPlatillo : platillosAVender) {\n\n modelo[x][0] = ventaPlatillo.getPlatillo().getNombre();\n modelo[x][1] = ventaPlatillo.getCantidad();\n modelo[x][2] = ventaPlatillo.getCosto();\n x++;\n }\n // Se establece el modelo en la tabla con los datos\n tablaPlatillosAVender.setDefaultEditor(Object.class, null);\n tablaPlatillosAVender.setModel(new DefaultTableModel(modelo, columnas));\n tablaPlatillosAVender.setCellSelectionEnabled(false);\n tablaPlatillosAVender.setRowSelectionAllowed(false);\n txtTotal.setText(total + \"\");\n }", "public void PreencherTabela2() throws SQLException {\n\n String[] colunas = new String[]{\"ID do Pedido\", \"Numero Grafica\", \"Data Emissao\",\"Boleto\"};\n ArrayList dados = new ArrayList();\n Connection connection = ConnectionFactory.getConnection();\n PedidoDAO pedidoDAO = new PedidoDAO(connection);\n ModeloPedido modeloPedido = new ModeloPedido();\n modeloPedido = pedidoDAO.buscaPorId(idPedidoClasse);\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n dados.add(new Object[]{modeloPedido.getId(), modeloPedido.getNumeroGrafica(), format.format(modeloPedido.getDataEmissao()), modeloPedido.isBoleto()});\n\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n\n jTablePedido.setModel(modelo);\n jTablePedido.setRowSorter(new TableRowSorter(modelo));\n jTablePedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTablePedido.getColumnModel().getColumn(0).setResizable(false);\n jTablePedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTablePedido.getColumnModel().getColumn(1).setResizable(false);\n\n jTablePedido.getTableHeader().setReorderingAllowed(false);\n connection.close();\n }", "public void listarutilizador() {\n \n \n List<Utilizador> cs =new UtilizadorJpaController().findUtilizadorEntities();\n \n DefaultTableModel tbm=(DefaultTableModel) listadeutilizador.getModel();\n \n for (int i = tbm.getRowCount()-1; i >= 0; i--) {\n tbm.removeRow(i);\n }\n int i=0;\n for (Utilizador c : cs) {\n tbm.addRow(new String[1]);\n listadeutilizador.setValueAt(c.getIdutilizador(), i, 0);\n listadeutilizador.setValueAt(c.getNome(), i, 1);\n listadeutilizador.setValueAt(c.getUtilizador(), i, 2);\n listadeutilizador.setValueAt(c.getIdprevilegio().getPrevilegio(), i, 3);\n// listaderelatorio.setValueAt(f.getTotal(), i, 4);\n// Distrito di = new DistritoJpaController().getDistritoByLoc(f.getIdlocalidade());\n// Localidade lo = new LocalidadeJpaController().findLocalidade(f.getIdlocalidade());\n// listaderelatorio.setValueAt(di.getDistrito(), i, 0);//lo.getIdposto().getIddistrito().getDistrito(), i, 0);\n// listaderelatorio.setValueAt(lo.getLocalidade(), i, 1);\n \n//// listadeformando.setValueAt(f.getSexo(), i, 2);\n// listaderelatorio.setValueAt(f.getQhomem(), i, 2);\n// listaderelatorio.setValueAt(f.getQmulher(), i, 3);\n// listaderelatorio.setValueAt(f.getTotal(), i, 4);\n// \n// \n i++;\n }\n \n \n \n }", "public void llenarTabla(){\n pedidoMatDao.llenarTabla();\n }", "private void inicializarTablero() {\n for (int i = 0; i < casillas.length; i++) {\n for (int j = 0; j < casillas[i].length; j++) {\n casillas[i][j] = new Casilla();\n }\n }\n }", "public void construirTabla(String tipo) {\r\n\r\n\t\t\r\n\t\tif(tipo == \"lis\") {\r\n\t\t\tlistaPersonas = datarPersonas();\r\n\t\t} else if (tipo == \"bus\") {\r\n\t\t\tlistaPersonas = datarPersonasBusqueda();\r\n\t\t}\r\n\t\t\r\n\t\tArrayList<String> titulosList=new ArrayList<>();\r\n\t\t\r\n\t\t//Estos son los encabezados de las columnas\r\n\t\t\r\n\t\ttitulosList.add(\"DNI\");\r\n\t\ttitulosList.add(\"NOMBRE\");\r\n\t\ttitulosList.add(\"APELLIDO\");\r\n\t\ttitulosList.add(\"CUENTA BANCARIA\");\r\n\t\ttitulosList.add(\"PASSWORD\");\r\n\t\ttitulosList.add(\"FECHA DE NACIMIENTO\");\r\n\t\ttitulosList.add(\"TELEFONO\");\r\n\t\ttitulosList.add(\"CORREO ELECTRONICO\");\r\n\t\ttitulosList.add(\"ROL\");\r\n\t\ttitulosList.add(\"Modificar\");\r\n\t\ttitulosList.add(\"Eliminar\"); \r\n\t\t\t\t\r\n\t\t//se asignan los títulos de las columnas para enviarlas al constructor de la tabla\r\n\t\t\r\n\t\tString titulos[] = new String[titulosList.size()];\r\n\t\tfor (int i = 0; i < titulos.length; i++) {\r\n\t\t\ttitulos[i]=titulosList.get(i);\r\n\t\t}\r\n\t\t\r\n\t\tObject[][] data = arrayDatos(titulosList);\r\n\t\tcrearTabla(titulos,data);\r\n\t\t\r\n\t}", "public void LlenarPagos(){\n datos=new DefaultTableModel();\n LlenarModelo();\n this.TablaPagos.setModel(datos);\n }", "public DefaultTableModel cargarDatos () {\r\n DefaultTableModel modelo = new DefaultTableModel(\r\n new String[]{\"ID SALIDA\", \"IDENTIFICACIÓN CAPITÁN\", \"NÚMERO MATRICULA\", \"FECHA\", \"HORA\", \"DESTINO\"}, 0); //Creo un objeto del modelo de la tabla con los titulos cargados\r\n String[] info = new String[6];\r\n String query = \"SELECT * FROM actividad WHERE eliminar = false\";\r\n try {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(query);\r\n while (rs.next()) { \r\n info[0] = rs.getString(\"id_salida\");\r\n info[1] = rs.getString(\"identificacion_navegate\");\r\n info[2] = rs.getString(\"numero_matricula\");\r\n info[3] = rs.getString(\"fecha\");\r\n info[4] = rs.getString(\"hora\");\r\n info[5] = rs.getString(\"destino\");\r\n Object[] fila = new Object[]{info[0], info[1], info[2], info[3], info[4], info[5]};\r\n modelo.addRow(fila);\r\n }\r\n st.close();\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return modelo;\r\n }", "private JTable itensNaoPagos() {\n\t\tinitConexao();\n\t\t\n try {\t \n\t String select = \"SELECT cod_item_d, nome_item_d, valor_item_d, data_vencimento_item_d FROM Item_despesa WHERE vencimento_item_d = '0'\";\n\t PreparedStatement ptStatement = c.prepareStatement(select);\n\t rs = ptStatement.executeQuery();\n\t \n\t Object[] colunas = {\"Item de despesa\", \"Valor total\", \"Data do vencimento\", \"\", \"code\"}; \t\t\n\t\t\t DefaultTableModel model = new DefaultTableModel();\t\t \n\t\t\t model.setColumnIdentifiers(colunas); \t\t \n\t\t\t Vector<Object[]> linhas = new Vector<Object[]>(); \n\t\t\t \n\t\t\t \n\t while (rs.next()){\n\t\t linhas.add(new Object[]{rs.getString(\"nome_item_d\"),rs.getString(\"valor_item_d\"),rs.getString(\"data_vencimento_item_d\"), \"Pagar\", rs.getString(\"cod_item_d\")}); \t \t\n\t \t } \n\t \n\t\t\t for (Object[] linha : linhas) { \n\t\t model.addRow(linha); \n\t\t } \t\t \n\t\t\t final JTable tarefasTable = new JTable(); \t\t \n\t\t\t tarefasTable.setModel(model); \t\t\n\t\t\t \n\t\t\t ButtonColumn buttonColumn = new ButtonColumn(tarefasTable, 3, \"itemPedido\");\n\t\t\t \n\t\t\t tarefasTable.removeColumn(tarefasTable.getColumn(\"code\")); \t \n\t return tarefasTable; \n } catch (SQLException ex) {\n System.out.println(\"ERRO: \" + ex);\n }\n\t\treturn null; \n\t}", "private void inicializarTablero() {\r\n\t\t\r\n\t\tfor(int i = 0; i < filas; i++) {\r\n\t\t\tfor(int j = 0; j < columnas; j++) {\r\n\t\t\t\tsuperficie[i][j] = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private ArrayList<FornecedorModelo> iniciaTabela() {\n int i;\n DefaultTableModel model=(DefaultTableModel)tblFornecedor.getModel();\n // atribui 0 linhas à coluna\n model.setNumRows(0);\n // atribui um tamanho fixo a coluna codigo\n tblFornecedor.getColumnModel().getColumn(0).setPreferredWidth(2);\n ArrayList<FornecedorModelo> listaFornecedores = new ArrayList<FornecedorModelo>();\n listaFornecedores = new FornecedorControle().listarFornecedor();\n //adiciona alunos as tabelas\n for (i=0;i<=listaFornecedores.size()-1;i++){\n model.addRow(\n new Object[]{\n listaFornecedores.get(i).getCodFornecedor(),\n listaFornecedores.get(i).getNomeFantasia(),\n listaFornecedores.get(i).getRazaoSocial(),\n listaFornecedores.get(i).getEndereco(),\n listaFornecedores.get(i).getEmail(),\n listaFornecedores.get(i).getTelefone(),\n listaFornecedores.get(i).getCnpj(),\n Boolean.FALSE\n }\n );\n }\n return listaFornecedores;\n }", "private void cargar(List<Personas> listaP) {\n int total= listaP.size();\n Object [][] tab = new Object [total][10];\n int i=0;\n Iterator iter = listaP.iterator();\n while (iter.hasNext()){\n Object objeto = iter.next();\n Personas pro = (Personas) objeto;\n\n tab[i][0]=pro.getLocalidadesid().getProvinciasId();\n tab[i][1]=pro.getLocalidadesid();\n tab[i][2]=pro.getCuilcuit();\n tab[i][3]=pro.getApellido();\n tab[i][4]=pro.getNombres();\n tab[i][5]=pro.getCalle();\n tab[i][6]=pro.getAltura();\n tab[i][7]=pro.getPiso();\n tab[i][8]=pro.getEmail();\n// if(pro.getEmpleados().equals(\"\")){\n tab[i][9]=\"Cliente\";\n // }else{\n // tab[i][7]=\"Empleado\";\n // }\n i++;\n }\njTable1 = new javax.swing.JTable();\n\njTable1.setModel(new javax.swing.table.DefaultTableModel(\ntab,\nnew String [] {\n \"Provincia\", \"Localidad\", \"DNI/Cuit\", \"Apellido\", \"Nombres\", \"Calle\", \"Altura\", \"Piso\", \"Email\", \"Tipo\"\n}\n));\n jScrollPane1.setViewportView(jTable1);\n }", "public List<TblRetur>getAllDataRetur();", "private void cargaPainel(Boolean tabela1, Boolean tabela2, Boolean tabela3, Boolean tabela4) {\n //jTable1.setRowHeight(1, 32);\n DecimalFormat formatter = new DecimalFormat(\",##0.00\");\n //System.err.println(tabela);\n try {\n if (tabela1) {\n DefaultTableModel model = (DefaultTableModel) jTable1.getModel();\n model.setNumRows(0);\n List<Tb_Prod_PainelBeans> lppb = new Tb_Prod_PainelDao().getProdPainel(new DBConfigBeans().getTerminal(), 1);\n this.lppbf.addAll(lppb);\n for (Tb_Prod_PainelBeans ppb : lppb) {\n String oferta = \"\";\n String valor2 = \"\";\n if (ppb.getOferta()) {\n oferta = \"<html><font color=red>OFERTA</font></html>\";\n }\n if (ppb.getValor2() == 0) {\n valor2 = \"\";\n } else {\n valor2 = formatter.format(ppb.getValor2()).toString();\n }\n model.addRow(new Object[]{ppb.getCodigo(), ppb.getDescricao(), ppb.getUnid(), oferta, formatter.format(ppb.getValor1()), valor2});\n }\n }\n//\n if (tabela2) {\n DefaultTableModel model2 = (DefaultTableModel) jTable2.getModel();\n model2.setNumRows(0);\n List<Tb_Prod_PainelBeans> lppb = new Tb_Prod_PainelDao().getProdPainel(new DBConfigBeans().getTerminal(), 2);\n this.lppbf.addAll(lppb);\n for (Tb_Prod_PainelBeans ppb : lppb) {\n String oferta = \"\";\n String valor2 = \"\";\n if (ppb.getOferta()) {\n oferta = \"<html><font color=red>OFERTA</font></html>\";\n }\n if (ppb.getValor2() == 0) {\n valor2 = \"\";\n } else {\n valor2 = formatter.format(ppb.getValor2()).toString();\n }\n model2.addRow(new Object[]{ppb.getCodigo(), ppb.getDescricao(), ppb.getUnid(), oferta, formatter.format(ppb.getValor1()), valor2});\n }\n }\n\n if (tabela3) {\n DefaultTableModel model3 = (DefaultTableModel) jTable3.getModel();\n model3.setNumRows(0);\n List<Tb_Prod_PainelBeans> lppb = new Tb_Prod_PainelDao().getProdPainel(new DBConfigBeans().getTerminal(), 3);\n this.lppbf.addAll(lppb);\n for (Tb_Prod_PainelBeans ppb : lppb) {\n String oferta = \"\";\n String valor2 = \"\";\n if (ppb.getOferta()) {\n oferta = \"<html><font color=red>OFERTA</font></html>\";\n }\n if (ppb.getValor2() == 0) {\n valor2 = \"\";\n } else {\n valor2 = formatter.format(ppb.getValor2()).toString();\n }\n model3.addRow(new Object[]{ppb.getCodigo(), ppb.getDescricao(), ppb.getUnid(), oferta, formatter.format(ppb.getValor1()), valor2});\n }\n }\n\n if (tabela4) {\n DefaultTableModel model4 = (DefaultTableModel) jTable4.getModel();\n model4.setNumRows(0);\n List<Tb_Prod_PainelBeans> lppb = new Tb_Prod_PainelDao().getProdPainel(new DBConfigBeans().getTerminal(), 4);\n this.lppbf.addAll(lppb);\n for (Tb_Prod_PainelBeans ppb : lppb) {\n String oferta = \"\";\n String valor2 = \"\";\n if (ppb.getOferta()) {\n oferta = \"<html><font color=red>OFERTA</font></html>\";\n }\n if (ppb.getValor2() == 0) {\n valor2 = \"\";\n } else {\n valor2 = formatter.format(ppb.getValor2()).toString();\n }\n model4.addRow(new Object[]{ppb.getCodigo(), ppb.getDescricao(), ppb.getUnid(), oferta, formatter.format(ppb.getValor1()), valor2});\n }\n }\n } catch (SQLException ex) {\n new DBConfig().createArqLog(\"Erro ao Prencher Tabelas ViewLayoutTabelas: \" + ex);\n }\n }", "public void fill_table()\n {\n Secante secante = new Secante(GraficaSecanteController.a, GraficaSecanteController.b, GraficaSecanteController.ep, FuncionController.e);\n list = secante.algoritmo();\n }", "private void Actualizar_Tabla() {\n String[] columNames = {\"iditem\", \"codigo\", \"descripcion\", \"p_vent\", \"p_comp\", \"cant\", \"fecha\"};\n dtPersona = db.Select_Item();\n // se colocan los datos en la tabla\n DefaultTableModel datos = new DefaultTableModel(dtPersona, columNames);\n jTable1.setModel(datos);\n }", "private void tableAdapt(ArrayList<String[]> lista, boolean isTraslateAvalible) {\n TableLayout table = (TableLayout) findViewById(R.id.table);\n //declaramos el objeto que nos creará la tabla dinámica\n TableModel tbModel = new TableModel(MainActivity.this, table);\n //indicamos los encabezados de la tabla\n if (isTraslateAvalible) {\n tbModel.setHeaders(new String[]{\"N\", \"Object\", \"Traslated\", \"Accuracy\"});\n } else {\n tbModel.setHeaders(new String[]{\"N\", \"Object\", \"Accuracy\"});\n }\n //enviamos los datos del cuerpo de la tabla\n tbModel.setRows(lista);\n //configuramos la tabla, colores del encabezado y el cuerpo\n // tanto del texto como el fondo\n tbModel.setHeaderBackGroundColor(R.color.back_black);\n tbModel.setRowsBackGroundColor(R.color.back_white);\n\n tbModel.setHeadersForeGroundColor(R.color.back_white);\n tbModel.setRowsForeGroundColor(R.color.back_black);\n //Modifica la tabla a partir de los datos enviados y los parámetros enviados\n tbModel.makeTable();\n\n MyLogs.info(\" FIN \");\n }", "public final void detalleTabla()\n {\n \n try\n {\n ResultSet obj=nueva.executeQuery(\"SELECT cli_nit,cli_razon_social FROM clientes.cliente ORDER BY cli_razon_social ASC\");\n \n while (obj.next()) \n {\n \n Object [] datos = new Object[2];\n \n \n for (int i=0;i<2;i++)\n {\n datos[i] =obj.getObject(i+1);\n }\n\n modelo.addRow(datos);\n \n }\n tabla_cliente.setModel(modelo);\n nueva.desconectar();\n \n \n \n }catch(Exception e)\n {\n JOptionPane.showMessageDialog(null, e, \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void atualizarTabela() {\n\t\tJTAlocar.setModel(modelAlocar = new TableModelAlocar(ManipulacaoXml.getInstace().todasAlocacoes()));\n\t}", "String getTabela();", "private void TampilData() {\n DefaultTableModel model = new DefaultTableModel();\n model.addColumn(\"NO\");\n model.addColumn(\"ID\");\n model.addColumn(\"NAME\");\n model.addColumn(\"USERNAME\");\n tabelakses.setModel(model);\n\n //menampilkan data database kedalam tabel\n try {\n int i=1;\n java.sql.Connection conn = new DBConnection().connect();\n java.sql.Statement stat = conn.createStatement();\n ResultSet data = stat.executeQuery(\"SELECT * FROM p_login order by Id asc\");\n while (data.next()) {\n model.addRow(new Object[]{\n (\"\" + i++),\n data.getString(\"Id\"),\n data.getString(\"Name\"),\n data.getString(\"Username\")\n });\n tabelakses.setModel(model);\n }\n } catch (Exception e) {\n System.err.println(\"ERROR:\" + e);\n }\n }", "private void llenarTabla() {\n\t\t// TODO Auto-generated method stub\n\t\tif (gestionando.equals(\"Empleado\")) {\n\t\t\ttry {\n\t\t\t\tObservableList<PersonaObservable> empleados = administradorDelegado.listarEmpleadosObservables();\n\t\t\t\ttable.setItems(empleados);\n\t\t\t\tcolumnCedula.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"cedula\"));\n\t\t\t\tcolumnNombre.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"nombre\"));\n\t\t\t\tcolumnApellidos.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"apellido\"));\n\t\t\t\tcolumnTelefono.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"telefono\"));\n\t\t\t\ttable.getColumns().setAll(columnCedula, columnNombre, columnApellidos, columnTelefono);\n\t\t\t\ttable.setPrefWidth(450);\n\t\t\t\ttable.setPrefHeight(300);\n\t\t\t\ttable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);\n\n\t\t\t\ttable.getSelectionModel().selectedIndexProperty().addListener(new RowSelectChangeListener());\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else if (gestionando.equals(\"Recolector\")) {\n\t\t\ttry {\n\t\t\t\tObservableList<PersonaObservable> recolectores = administradorDelegado.listarRecolectoresObservables();\n\t\t\t\ttable.setItems(recolectores);\n\t\t\t\tcolumnCedula.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"cedula\"));\n\t\t\t\tcolumnNombre.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"nombre\"));\n\t\t\t\tcolumnApellidos.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"apellido\"));\n\t\t\t\tcolumnTelefono.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"telefono\"));\n\t\t\t\ttable.getColumns().setAll(columnCedula, columnNombre, columnApellidos, columnTelefono);\n\t\t\t\ttable.setPrefWidth(450);\n\t\t\t\ttable.setPrefHeight(300);\n\t\t\t\ttable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);\n\n\t\t\t\ttable.getSelectionModel().selectedIndexProperty().addListener(new RowSelectChangeListener());\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "private void apresentarListaNaTabela() {\n DefaultTableModel modelo = (DefaultTableModel) tblAlunos.getModel();\n modelo.setNumRows(0);\n for (Aluno item : bus.getLista()) {\n modelo.addRow(new Object[]{\n item.getIdAluno(),\n item.getNome(),\n item.getEmail(),\n item.getTelefone()\n });\n }\n }", "private JTable fontesNaoPagas() {\n\t\tinitConexao();\n\t\t\n try {\t \n\t String select = \"SELECT data_ultimo_vencimento_fonte_r, cod_fonte_d, nome_fonte_d, valor_fonte_d, tipo_valor_fonte_d, data_abertura_fonte_d, periodo_fonte_d FROM Fonte_despesa WHERE vencimento_fonte_d = '0'\";\n\t \n\t PreparedStatement ptStatement = c.prepareStatement(select);\n\t rs = ptStatement.executeQuery();\n\t \n\t Object[] colunas = {\"Fonte de despesa\", \"Valor previsto\", \"Data do vencimento\", \"\", \"code\"}; \t\t\n\t\t\t DefaultTableModel model = new DefaultTableModel();\t\t \n\t\t\t model.setColumnIdentifiers(colunas); \t\t \n\t\t\t Vector<Object[]> linhas = new Vector<Object[]>(); \n\t\t\t \n\t\t\t select = \"select DATE_ADD(?,INTERVAL ? day)\";\n\t while (rs.next()){\n\t \t \n\t \tptStatement = c.prepareStatement(select);\n\t\t\t\tptStatement.setString(1, rs.getString(\"data_ultimo_vencimento_fonte_r\"));\n\t\t\t\tptStatement.setString(2, rs.getString(\"periodo_fonte_d\"));\n\t\t\t\trs2 = ptStatement.executeQuery();\n\t\t\t\trs2.next();\n\t\t linhas.add(new Object[]{rs.getString(\"nome_fonte_d\"),rs.getString(\"valor_fonte_d\"),rs2.getString(1), \"Pagar\", rs.getString(\"cod_fonte_d\")}); \t \t\n\t \t } \n\t \n\t\t\t for (Object[] linha : linhas) { \n\t\t model.addRow(linha); \n\t\t } \t\t \n\t\t\t final JTable tarefasTable = new JTable(); \t\t \n\t\t\t tarefasTable.setModel(model); \t\t\n\t\t\t \n\t\t\t ButtonColumn buttonColumn = new ButtonColumn(tarefasTable, 3, \"fonteNaoPaga\");\n\t\t\t \n\t\t\t tarefasTable.removeColumn(tarefasTable.getColumn(\"code\")); \t \n\t return tarefasTable; \n } catch (SQLException ex) {\n System.out.println(\"ERRO: \" + ex);\n }\n\t\treturn null; \n\t}", "public void llenarTabla() {\n\n String matriz[][] = new String[lPComunes.size()][2];\n\n for (int i = 0; i < AccesoFichero.lPComunes.size(); i++) {\n matriz[i][0] = AccesoFichero.lPComunes.get(i).getPalabra();\n matriz[i][1] = AccesoFichero.lPComunes.get(i).getCodigo();\n\n }\n\n jTableComun.setModel(new javax.swing.table.DefaultTableModel(\n matriz,\n new String[]{\n \"Palabra\", \"Morse\"\n }\n ) {// Bloquea que las columnas se puedan editar, haciendo doble click en ellas\n @SuppressWarnings(\"rawtypes\")\n Class[] columnTypes = new Class[]{\n String.class, String.class\n };\n\n @SuppressWarnings({\"unchecked\", \"rawtypes\"})\n @Override\n public Class getColumnClass(int columnIndex) {\n return columnTypes[columnIndex];\n }\n boolean[] columnEditables = new boolean[]{\n false, false\n };\n\n @Override\n public boolean isCellEditable(int row, int column) {\n return columnEditables[column];\n }\n });\n\n }", "public void loadData() {\n String[] header = {\"Tên Cty\", \"Mã Cty\", \"Cty mẹ\", \"Giám đốc\", \"Logo\", \"Slogan\"};\n model = new DefaultTableModel(header, 0);\n List<Enterprise> list = new ArrayList<Enterprise>();\n list = enterpriseBN.getAllEnterprise();\n for (Enterprise bean : list) {\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(bean.getEnterpriseParent()); // Lấy ra 1 Enterprise theo mã\n Person person1 = personBN.getPersonByID(bean.getDirector());\n Object[] rows = {bean.getEnterpriseName(), bean.getEnterpriseID(), enterprise, person1, bean.getPicture(), bean.getSlogan()};\n model.addRow(rows);\n }\n listEnterprisePanel.getTableListE().setModel(model);\n setupTable();\n }", "public List<Table> selectAll_de() throws Exception {\n\t\treturn tableDao.selectAll_de();\r\n\t}", "private void loadAllToTable() {\n try {\n ArrayList<ItemDTO> allItems=ip.getAllItems();\n DefaultTableModel dtm=(DefaultTableModel) tblItems.getModel();\n dtm.setRowCount(0);\n \n if(allItems!=null){\n for(ItemDTO item:allItems){\n \n Object[] rowdata={\n item.getiId(),\n item.getDescription(),\n item.getQtyOnHand(),\n item.getUnitPrice()\n \n };\n dtm.addRow(rowdata);\n \n }\n }\n } catch (Exception ex) {\n Logger.getLogger(AddItem.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "private void popularTabela() {\n\n if (CadastroCliente.listaAluno.isEmpty()) {\n DefaultTableModel modelo = (DefaultTableModel) jTable1.getModel();\n modelo.setNumRows(0);\n }\n int t = 0;\n DefaultTableModel modelo = (DefaultTableModel) jTable1.getModel();\n modelo.setNumRows(0);\n int aux = CadastroCliente.listaAluno.size();\n\n while (t < aux) {\n aluno = CadastroCliente.listaAluno.get(t);\n modelo.addRow(new Object[]{aluno.getMatricula(), aluno.getNome(), aluno.getCpf(), aluno.getTel()});\n t++;\n }\n }", "public void CargarProveedores() {\n DefaultTableModel modelo = (DefaultTableModel) vista.Proveedores.jTable1.getModel();\n modelo.setRowCount(0);\n res = Conexion.Consulta(\"select * From proveedores\");\n try {\n while (res.next()) {\n Vector v = new Vector();\n v.add(res.getInt(1));\n v.add(res.getString(2));\n v.add(res.getString(3));\n v.add(res.getString(4));\n modelo.addRow(v);\n vista.Proveedores.jTable1.setModel(modelo);\n }\n } catch (SQLException e) {\n }\n }", "private void cargardatos() {\n String sql = \"SELECT * FROM nomPercepciones\";\n\n Object datos[] = new Object[13];\n try {\n conn = (this.userConn != null) ? this.userConn : Conexion.getConnection();\n stmt = conn.prepareStatement(sql);\n rs = stmt.executeQuery();\n while (rs.next()) {\n datos[0] = rs.getString(\"idNomPer\");\n datos[1] = rs.getString(\"nombre\");\n datos[2] = rs.getString(\"dias\");\n if (rs.getString(\"estatus\").equalsIgnoreCase(\"1\")) {\n datos[3] = new JLabel(new ImageIcon(getClass().getResource(\"/View/img/actulizadoj.png\")));\n } else {\n datos[3] = new JLabel(new ImageIcon(getClass().getResource(\"/View/img/noactualizadoj.png\")));\n }\n\n tabla1.addRow(datos);\n }\n } catch (SQLException e) {\n JOptionPane.showMessageDialog(null, \"Error al cargar los datos\\n\" + e, \"ERROR\", JOptionPane.ERROR_MESSAGE);\n } finally {\n Conexion.close(rs);\n Conexion.close(stmt);\n if (this.userConn == null) {\n Conexion.close(conn);\n }\n }\n }", "public void carga_bd_empleados(){\n try {\n Connection conectar = Conexion.conectar();\n PreparedStatement pst = conectar.prepareStatement(\n \"select nombre, edad, cargo, direccion, telefono from empleados\");\n\n ResultSet rs = pst.executeQuery();\n\n table = new JTable(model);\n jScrollPane1.setViewportView(table);\n table.setBackground(Color.yellow);\n\n model.addColumn(\"Nombre\");\n model.addColumn(\"Edad\");\n model.addColumn(\"Cargo\");\n model.addColumn(\"Direccion\");\n model.addColumn(\"Telefono\");\n\n while (rs.next()) {\n Object[] fila = new Object[8];\n //material mimaterial = new material();\n\n for (int i = 0; i < 5; i++) {\n fila[i] = rs.getObject(i + 1);\n }\n\n// model.addRow(fila);\n Empleado mimaterial = this.ChangetoEmpleado(fila);\n this.AddToArrayTableEmpleado(mimaterial);\n\n }\n\n conectar.close();\n \n } catch (SQLException e) {\n System.err.println(\"Error al llenar tabla\" + e);\n JOptionPane.showMessageDialog(null, \"Error al mostrar informacion\");\n\n }\n }", "public void buscarxdescrip() {\r\n try {\r\n modelo.setDescripcion(vista.jTbdescripcion.getText());//C.P.M le enviamos al modelo la descripcion y consultamos\r\n rs = modelo.Buscarxdescrip();//C.P.M cachamos el resultado de la consulta\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas de la consulta\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con una dimencion igual a la cantidad de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) { //C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1); //C.P.M vamos insertando los resultados dentor del arreglo\r\n }\r\n buscar.addRow(fila);//C.P.M y lo agregamos como una nueva fila a la tabla\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar producto por descripcion\");\r\n }\r\n }", "private void continuarInicializandoComponentes() {\n javax.swing.table.TableColumn columna1 = tablaDetalle.getColumn(\"Id\");\n columna1.setPreferredWidth(10); \n javax.swing.table.TableColumn columna2 = tablaDetalle.getColumn(\"Tipo\");\n columna2.setPreferredWidth(250); \n javax.swing.table.TableColumn columna3 = tablaDetalle.getColumn(\"Número\");\n columna3.setPreferredWidth(50); \n DefaultTableCellRenderer tcrr = new DefaultTableCellRenderer();\n tcrr.setHorizontalAlignment(SwingConstants.RIGHT);\n DefaultTableCellRenderer tcrc = new DefaultTableCellRenderer();\n tcrc.setHorizontalAlignment(SwingConstants.CENTER);\n tablaDetalle.getColumnModel().getColumn(0).setCellRenderer(tcrc);\n tablaDetalle.getColumnModel().getColumn(2).setCellRenderer(tcrr);\n tablaDetalle.getColumnModel().getColumn(3).setCellRenderer(tcrr);\n tablaDetalle.getColumnModel().getColumn(4).setCellRenderer(tcrr);\n }", "private static void popuniTabelu() {\r\n\t\tDefaultTableModel dfm = (DefaultTableModel) teretanaGui.getTable().getModel();\r\n\r\n\t\tdfm.setRowCount(0);\r\n\r\n\t\tfor (int i = 0; i < listaClanova.size(); i++) {\r\n\t\t\tClan c = listaClanova.getClan(i);\r\n\t\t\tdfm.addRow(new Object[] { c.getBrojClanskeKarte(), c.getIme(), c.getPrezime(), c.getPol() });\r\n\t\t}\r\n\t\tcentrirajTabelu();\r\n\t}", "public void crearTabla() {\n\t\tthis.tabla= new String[palabras.length+1][4];\t\n\t}", "private void popuniTabelu() {\n try {\n List<PutnikEntity> putnici=Controller.vratiSvePutnike();\n TableModel tm=new PutnikTableModel(putnici);\n jtblPutnici.setModel(tm);\n } catch (Exception ex) {\n Logger.getLogger(FIzaberiLet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void load_table() {\n DefaultTableModel model = new DefaultTableModel();\n model.addColumn(\"Nis\");\n model.addColumn(\"Nama\");\n model.addColumn(\"Sekolah\");\n model.addColumn(\"Jurusan\");\n model.addColumn(\"Tempat PKL\");\n model.addColumn(\"Total Nilai\");\n\n //menampilkan data database kedalam tabel\n try {\n int no = 1;\n String sql = \"select * from tampil_nilai\";\n java.sql.Connection conn = (Connection) config.configDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n while (res.next()) {\n model.addRow(new Object[]{res.getString(1), res.getString(2), res.getString(3),\n res.getString(4), res.getString(5), res.getString(6)});\n \n }\n jTable1.setModel(model);\n } catch (SQLException e) {\n }\n\n \n \n try {\n String sql = \"select * from jurusan\";\n java.sql.Connection conn = (Connection) config.configDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n \n this.hasil1 = new Object[3];\n int counter = 0;\n while (res.next()) { \n jComboBoxjurusan.addItem(res.getString(2));\n this.hasil1[counter++] = res.getString(1);\n }\n } catch(SQLException e) {\n \n }\n \n try {\n String sql = \"select * from lab\";\n java.sql.Connection conn = (Connection) config.configDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n \n this.hasil2 = new Object[5];\n int counter = 0;\n while (res.next()) {\n \n jComboBoxpkl.addItem(res.getString(2));\n this.hasil2[counter++] = res.getString(1);\n }\n } catch(SQLException e) {\n \n }\n }", "public void buscaxcodigo() {\r\n try {\r\n modelo.setCodigobarras(vista.jTbcodigobarras.getText());//C.P.M mandamos el codigo de barras ingresado\r\n rs = modelo.Buscarxcodigobarras();//C.P.M mandamos a consultar ese codigo de barras\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M instanciamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"Encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos las columnas de la consulta\r\n\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un vector con el tamano de las columnas de el resultado\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M recorremos el arreglo\r\n fila[i] = rs.getObject(i + 1);//C.P.M y vamos insertando el resultado\r\n }\r\n buscar.addRow(fila);//C.P.M le mandamos el arreglo como renglon nuevo\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar por codigo de barras\");\r\n }\r\n }", "private void atualizarTabuleiro() throws Exception {\n JogoVelha jogo;\n \n // Recebe dados do jogo\n jogo = remoteApi.getJogo(this.idJogo);\n // Atualizar tabuleiro com o jogo recebido\n jButton11.setText(String.valueOf(jogo.getCelula(1, 1)));\n jButton12.setText(String.valueOf(jogo.getCelula(1, 2)));\n jButton13.setText(String.valueOf(jogo.getCelula(1, 3)));\n jButton21.setText(String.valueOf(jogo.getCelula(2, 1)));\n jButton22.setText(String.valueOf(jogo.getCelula(2, 2)));\n jButton23.setText(String.valueOf(jogo.getCelula(2, 3)));\n jButton31.setText(String.valueOf(jogo.getCelula(3, 1)));\n jButton32.setText(String.valueOf(jogo.getCelula(3, 2)));\n jButton33.setText(String.valueOf(jogo.getCelula(3, 3)));\n }", "public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }", "public void prepareTable() {\n \tthis.table = new Tape(this.height,this.width,2,this.map);\n }", "public void preencherTabelaResultado() {\n\t\tArrayList<Cliente> lista = Fachada.getInstance().pesquisarCliente(txtNome.getText());\n\t\tDefaultTableModel modelo = (DefaultTableModel) tabelaResultado.getModel();\n\t\tObject[] linha = new Object[4];\n\t\tmodelo.setRowCount(0);\n\n\t\tfor (Cliente c : lista) {\n\t\t\tlinha[0] = c.getIdCliente();\n\t\t\tlinha[1] = c.getNome();\n\t\t\tlinha[2] = c.getTelefone().toString();\n\t\t\tif (c.isAptoAEmprestimos())\n\t\t\t\tlinha[3] = \"Apto\";\n\t\t\telse\n\t\t\t\tlinha[3] = \"A devolver\";\n\t\t\tmodelo.addRow(linha);\n\n\t\t}\n\n\t}", "public void popularTabela() {\n\n try {\n\n RelatorioRN relatorioRN = new RelatorioRN();\n\n ArrayList<PedidoVO> pedidos = relatorioRN.buscarPedidos();\n\n javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) tRelatorio.getModel();\n dtm.fireTableDataChanged();\n dtm.setRowCount(0);\n\n for (PedidoVO pedidoVO : pedidos) {\n\n String[] linha = {\"\" + pedidoVO.getIdpedido(), \"\" + pedidoVO.getData(), \"\" + pedidoVO.getCliente(), \"\" + pedidoVO.getValor()};\n dtm.addRow(linha);\n }\n\n } catch (SQLException sqle) {\n\n JOptionPane.showMessageDialog(null, \"Erro: \" + sqle.getMessage(), \"Bordas\", JOptionPane.ERROR_MESSAGE);\n \n } catch (Exception e) {\n\n JOptionPane.showMessageDialog(null, \"Erro: \" + e.getMessage(), \"Bordas\", JOptionPane.ERROR_MESSAGE);\n }\n }", "private void limpiarDatos() {\n\t\t\n\t}", "private DefaultTableModel getDatos3(){\n String folio = String.valueOf(venta.ns);\n //consulta sql\n String SQL_SELECT = \"SELECT p.Nombres,dv.Cantidad,dv.PrecioVenta FROM ventas v JOIN detalle_ventas dv ON v.IdVentas=dv.IdVentas JOIN producto p ON p.IdProducto=dv.IdProducto WHERE v.NumeroSerie = \"+folio+\"\";\n try {\n setTitutlos3();\n ps = con.getConnection().prepareStatement(SQL_SELECT);\n RS = ps.executeQuery();\n Object[] fila = new Object[3];\n while (RS.next()){\n fila[0] = RS.getString(1);\n fila[1] = RS.getInt(2);\n fila[2] = RS.getDouble(3);\n DT.addRow(fila);\n }\n //System.out.println(\"si hizo el desmadre\");\n } catch (SQLException e) {\n System.out.println(\"error en la tabla de ticket\");\n }\n \n return DT;\n \n }", "public void buscaTodasOSs() {\n try {\n ServicoDAO sDAO = new ServicoDAO(); // instancia a classe ProdutoDB()\n ArrayList<OS> cl = sDAO.consultaTodasOs(); // coloca o método dentro da variável\n\n DefaultTableModel modeloTabela = (DefaultTableModel) jTable1.getModel();\n // coloca a tabela em uma variável do tipo DefaultTableModel, que permite a modelagem dos dados da tabela\n\n for (int i = modeloTabela.getRowCount() - 1; i >= 0; i--) {\n modeloTabela.removeRow(i);\n // loop que limpa a tabela antes de ser atualizada\n }\n\n for (int i = 0; i < cl.size(); i++) {\n // loop que pega os dados e insere na tabela\n Object[] dados = new Object[7]; // instancia os objetos. Cada objeto representa um atributo \n dados[0] = cl.get(i).getNumero_OS();\n dados[3] = cl.get(i).getStatus_OS();\n dados[4] = cl.get(i).getDefeito_OS();\n dados[5] = cl.get(i).getDataAbertura_OS();\n dados[6] = cl.get(i).getDataFechamento_OS();\n\n // pega os dados salvos do banco de dados (que estão nas variáveis) e os coloca nos objetos definidos\n modeloTabela.addRow(dados); // insere uma linha nova a cada item novo encontrado na tabela do BD\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha na operação.\\nErro: \" + ex.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(FrmPesquisar.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public List<TgTabla> getAllTgTabla(String descripcion)throws Exception{\n\t\tList<TgTabla> lista=new LinkedList<TgTabla>();\n\t\ttry{\n\t\t\t//validacion a la bd relacionada 31/07/2012\n\t\t\tStringBuffer SQL=new StringBuffer(\"select campo1,campo2 from \").append(Constante.schemadb).append(\".tg_tabla where nombre_corto='\"+descripcion+\"' AND estado='1'\");\n\t\t\t\n\t\t\tPreparedStatement pst=connect().prepareStatement(SQL.toString());\n\t\t\tResultSet rs=pst.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tTgTabla obj=new TgTabla(); \n\t\t\t\tobj.setCampo1(rs.getString(\"campo1\"));\n\t\t\t\tobj.setCampo2(rs.getString(\"campo2\"));\n\t\t\t\tlista.add(obj);\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tthrow(e);\n\t\t}\n\t\treturn lista;\n\t}", "private void enlazarListadoTabla() {\n tblCursos.setItems(listaCursos);\n\n //Enlazar columnas con atributos\n clmNombre.setCellValueFactory(new PropertyValueFactory<Curso, String>(\"nombre\"));\n clmAmbito.setCellValueFactory(new PropertyValueFactory<Curso, String>(\"familiaProfesional\"));\n clmDuracion.setCellValueFactory(new PropertyValueFactory<Curso, Integer>(\"duracion\"));\n }", "private EstabelecimentoTable() {\n\t\t\t}", "private void tampilkan_dataT() {\n \n DefaultTableModel tabelmapel = new DefaultTableModel();\n tabelmapel.addColumn(\"Tanggal\");\n tabelmapel.addColumn(\"Berat\");\n tabelmapel.addColumn(\"Kategori\");\n tabelmapel.addColumn(\"Harga\");\n \n try {\n connection = Koneksi.connection();\n String sql = \"select a.tgl_bayar, b.berat, b.kategori, b.total_bayar from transaksi a, data_transaksi b where a.no_nota=b.no_nota AND a.status_bayar='Lunas' AND MONTH(tgl_bayar) = '\"+date1.getSelectedItem()+\"' And YEAR(tgl_bayar) = '\"+c_tahun.getSelectedItem()+\"'\";\n java.sql.Statement stmt = connection.createStatement();\n java.sql.ResultSet rslt = stmt.executeQuery(sql);\n while (rslt.next()) {\n Object[] o =new Object[4];\n o[0] = rslt.getDate(\"tgl_bayar\");\n o[1] = rslt.getString(\"berat\");\n o[2] = rslt.getString(\"kategori\");\n o[3] = rslt.getString(\"total_bayar\");\n tabelmapel.addRow(o);\n }\n tabel_LK.setModel(tabelmapel);\n\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Gagal memuat data\");\n }\n \n }", "public void tabelaktivitas() {\n DefaultTableModel tbl= new DefaultTableModel();\n tbl.addColumn(\"Group\");\n tbl.addColumn(\"Compart\");\n tbl.addColumn(\"Activity\");\n tbl.addColumn(\"HA\");\n tbl.addColumn(\"Harga\");\n tbl.addColumn(\"Total\");\n tblaktivitas.setModel(tbl);\n try{\n java.sql.Statement statement=(java.sql.Statement)conek.GetConnection().createStatement();\n ResultSet res=statement.executeQuery(\"select * from tblaktivitas\");\n while(res.next())\n {\n tbl.addRow(new Object[]{\n res.getString(\"nama_grup\"),\n res.getString(\"compart\"),\n res.getString(\"pekerjaan\"),\n res.getInt(\"ha\"),\n res.getInt(\"harga\"),\n res.getInt(\"total\")\n });\n tblaktivitas.setModel(tbl); \n }\n }catch (Exception e){\n JOptionPane.showMessageDialog(rootPane,\"Salah\");\n }\n }", "private void updateTabela() {\n\n if (txBuscar.getText().isEmpty()) {\n ListaEmprestimosBEANs = new ControlerEmprestimos().listaEmprestimoss();\n } else {\n try {\n Integer buscar = Integer.parseInt(txBuscar.getText());\n ListaEmprestimosBEANs = new ArrayList<>();\n ListaEmprestimosBEANs.add(new ControlerEmprestimos().findEmprestimos(buscar));\n } catch (Exception e) {\n\n }\n }\n DefaultTableModel model = new DefaultTableModel(null, new String[]{\"ID\", \"Data de Saida\", \"Data Estimada do Retorno\", \"Data do Retorno\"});\n try {\n jTable1.setModel(model);\n String[] dados = new String[9];\n for (EmprestimosBEAN a : ListaEmprestimosBEANs) {\n dados[0] = String.valueOf(a.getId_emprestimo());\n dados[1] = a.getDtSaida().toString();\n dados[2] = a.getDtVolta().toString();\n dados[3] = a.getDtRetorno() == null ? \"\" : a.getDtRetorno().toString();\n model.addRow(dados);\n }\n } catch (Exception ex) {\n\n }\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_historial, container, false);\n Bundle args = getArguments();\n String dato = args.getString(\"idCuenta\");\n\n Tabla tabla = new Tabla(getActivity(), (TableLayout)v.findViewById(R.id.tabla));\n tabla.agregarCabecera(R.array.cabecera_tabla);\n\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n\n StrictMode.setThreadPolicy(policy);\n Connection connection;\n String url;\n\n try\n {\n Class.forName(\"net.sourceforge.jtds.jdbc.Driver\");\n url = \"jdbc:jtds:sqlserver://bdAguaPotable.mssql.somee.com;databaseName=bdAguaPotable;user=SYSTEM-APP_SQLLogin_1;password=pn8akqjwxc\";\n connection = DriverManager.getConnection(url);\n Statement estatuto = connection.createStatement();\n\n //cargar la situacion\n String query =\"SELECT Pagos.idPago, Pagos.fecha, Pagos.tipo, Agua.mInicial, Agua.mFinal, Situacion.descripcion, Pagos.otros, Agua.descuento, Pagos.total FROM Pagos inner join Agua on Agua.idPago = Pagos.idPago inner join Situacion on Agua.idSituacion = Situacion.idSituacion WHERE Pagos.idCuenta = \" + dato;\n ResultSet resultado = estatuto.executeQuery(query);\n int x = 1;\n while (resultado.next())\n {\n ArrayList<String> elementos = new ArrayList<String>();\n elementos.add(Integer.toString(x));\n elementos.add(Integer.toString(resultado.getInt(\"idPago\")));\n elementos.add(String.valueOf(resultado.getDate(\"fecha\")));\n elementos.add(resultado.getString(\"tipo\"));\n elementos.add(Integer.toString(resultado.getInt(\"mInicial\")));\n elementos.add(Integer.toString(resultado.getInt(\"mFinal\")));\n elementos.add(resultado.getString(\"descripcion\"));\n elementos.add(Float.toString(resultado.getFloat(\"otros\")));\n elementos.add(Float.toString(resultado.getFloat(\"descuento\")));\n elementos.add(Float.toString(resultado.getFloat(\"total\")));\n tabla.agregarFilaTabla(elementos);\n\n x++;\n }\n\n connection.close();\n\n }catch (SQLException E) {\n E.printStackTrace();\n }catch (ClassNotFoundException e){\n e.printStackTrace();\n }catch (Exception e) {\n e.printStackTrace();\n }\n return v;\n }", "public List<Table> selectAll_en() throws Exception {\n\t\treturn tableDao.selectAll_en();\r\n\t}", "private void cargarDeDB() {\n Query query = session.createQuery(\"SELECT p FROM Paquete p WHERE p.reparto is NULL\");\n data = FXCollections.observableArrayList();\n\n List<Paquete> paquetes = query.list();\n for (Paquete paquete : paquetes) {\n data.add(paquete);\n }\n\n cargarTablaConPaquetes();\n }", "public void reloadTable() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (list.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Balanza object = list.get(i);\n this.AddtoTable(object);\n }\n\n }", "private void addRows() {\n this.SaleList.forEach(Factura -> {\n this.modelo.addRow(new Object[]{\n Factura.getId_Factura(),\n Factura.getPersona().getNombre(),\n Factura.getFecha().getTimestamp(),\n Factura.getCorreo(),\n Factura.getGran_Total()});\n });\n }", "public DefaultTableModel buscarlotes() {\n \n String encabezados[]= {\"Nombre\",\"Codigo\",\"Lote\",\"Vencimiento\",\"Dias Restantes\"};\n Control.ControlLote c = new Control.ControlLote();\n List<Modelo.Lotes> lotes = null;\n \n try {\n lotes = c.buscarlote();\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(AgregarStock.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n Long resta;//para saber cuanto queda de vencimiento\n java.util.Date fechaActual = new Date(); \n \n String [][] data = new String[lotes.size()][5];\n for (int i = 0; i < lotes.size(); i++) {\n \n resta=lotes.get(i).getVencimiento().getTime()-fechaActual.getTime();\n long dias = (resta / (1000 * 60 * 60 * 24))+1;\n \n \n data[i][0] = lotes.get(i).getNombre();\n data[i][1] = Long.toString(lotes.get(i).getCodigo());\n data[i][2] = lotes.get(i).getLote();\n data[i][3] = lotes.get(i).getVencimiento().toString();\n if(dias<1)\n data[i][4] = (\"Vencido\");\n else{\n data[i][4] = Long.toString(dias);\n }\n\n }\n\n jTable1.setDefaultRenderer (Object.class, new MiRender());\n \n return new DefaultTableModel(data,encabezados);\n }", "public void prepararDados(int tab) {\n\n if (modHT.getRowCount() == 0 || modMF.getRowCount() == 0) {\n JOptionPane.showMessageDialog(null, \"Não há nada para calcular!\", \"INFORMAÇÃO\", 1);\n modAt.setRowCount(0);\n modEx.setRowCount(0);\n } else {\n if (tab == 0) {\n aTra = new Atrasos(Atraso);\n aTra.tamTabelas(modHT, modMF);\n } else {\n hEx = new HorasExtras(HoraExtra);\n hEx.tamTabelas(modHT, modMF);\n }\n }\n }", "private JTable getTablePacientes() {\n\t\t\n\t\t try {\n\t \t ConnectDatabase db = new ConnectDatabase();\n\t\t\t\tResultSet rs = db.sqlstatment().executeQuery(\"SELECT * FROM PACIENTE WHERE NOMBRE LIKE '%\"+nombre.getText()+\"%' AND APELLIDO LIKE '%\"+apellido.getText()+\"%'AND DNI LIKE '%\"+dni.getText()+\"%'\");\n\t\t\t\tObject[] transf = QueryToTable.getSingle().queryToTable(rs);\n\t\t\t\treturn table = new JTable(new DefaultTableModel((Vector<Vector<Object>>)transf[0], (Vector<String>)transf[1]));\t\t\n\t\t\t} catch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn table;\n\t}", "public void populateTreeTable() {\n root = new DefaultTreeNode(\"root\", null);\n Session session = HibernateUtil.getSessionFactory().openSession();\n try {\n String sqlMenu = \"SELECT o from Tblobjeto o WHERE o.tipoObjeto LIKE 'menu' ORDER BY o.idObjeto\";\n menus = session.createQuery(sqlMenu).list();\n\n for (Tblobjeto mnu : menus) {\n TreeNode nodeMenu = new DefaultTreeNode(mnu, root);\n nodes.add(nodeMenu);\n\n Criteria cMenu = session.createCriteria(Tblobjeto.class);\n cMenu.add(Restrictions.eq(\"tblobjeto\", mnu));\n subMenus = (List<Tblobjeto>) cMenu.list();\n\n for (Tblobjeto smnu : subMenus) {\n TreeNode nodeSubMenu = new DefaultTreeNode(smnu, nodeMenu);\n nodes.add(nodeSubMenu);\n\n Criteria cSubMenu = session.createCriteria(Tblobjeto.class);\n cSubMenu.add(Restrictions.eq(\"tblobjeto\", smnu));\n acciones = (List<Tblobjeto>) cSubMenu.list();\n\n for (Tblobjeto ac : acciones) {\n nodes.add(new DefaultTreeNode(ac, nodeSubMenu));\n }\n }\n }\n } catch (HibernateException e) {\n logger.throwing(getClass().getName(), \"ObjetosBean\", e);\n } finally {\n session.close();\n }\n }", "public void preencherTabela(ArrayList<Livro> lista) {\n\t\tDefaultTableModel modelo = (DefaultTableModel) table.getModel();\n\t\tObject[] linha = new Object[4];\n\t\tmodelo.setRowCount(0);\n\t\tfor (Livro l : lista) {\n\t\t\tlinha[0] = l.getNome();\n\t\t\tlinha[1] = l.getAutor();\n\t\t\tlinha[2] = l.getDataDeLancamento();\n\t\t\tif (l.isDisponivel())\n\t\t\t\tlinha[3] = \"Disponivel\";\n\t\t\telse\n\t\t\t\tlinha[3] = \"Indisponivel\";\n\t\t\tmodelo.addRow(linha);\n\n\t\t}\n\n\t}", "private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }", "public ExibeTarefas() {\n initComponents();\n DefaultTableModel modelo = (DefaultTableModel) jTable1.getModel();\n jTable1.setRowSorter(new TableRowSorter(modelo));\n readJTable();\n readItemBox();\n }", "public void listarQuartos(JTable table) {\r\n\t\ttry {\r\n\t\t\tStatement st = conexao.createStatement();\r\n\t\t\tResultSet rs = st.executeQuery(\"SELECT idQuartos,tipo FROM quartos\");\r\n\t\t\ttable.setModel(DbUtils.resultSetToTableModel(rs));\r\n\t\t}\r\n\t\tcatch (SQLException e) {}\r\n\t}" ]
[ "0.7388926", "0.7354677", "0.7121815", "0.70855504", "0.704668", "0.69900393", "0.6963737", "0.69163394", "0.6846593", "0.6838333", "0.68242234", "0.6793758", "0.67071944", "0.6700773", "0.664436", "0.6618113", "0.6600761", "0.65940857", "0.6589206", "0.6579245", "0.6578374", "0.65472883", "0.6546061", "0.65333056", "0.651611", "0.6509268", "0.65070546", "0.6469553", "0.6451321", "0.6448366", "0.6447382", "0.6442766", "0.64384884", "0.64241165", "0.6411926", "0.6406479", "0.63999194", "0.63928133", "0.6392598", "0.6392474", "0.63912016", "0.63711315", "0.6351767", "0.6348421", "0.6315772", "0.63035405", "0.630318", "0.63004774", "0.6299161", "0.6295627", "0.62924623", "0.6291898", "0.6291834", "0.62823474", "0.6254984", "0.6245461", "0.6244097", "0.6231341", "0.6226625", "0.62173176", "0.6214304", "0.62114334", "0.6205672", "0.62011284", "0.61914", "0.61794186", "0.61736286", "0.6168315", "0.6161323", "0.61605126", "0.61597884", "0.6145748", "0.6132828", "0.61321825", "0.61238676", "0.6122903", "0.61156136", "0.61136526", "0.6102452", "0.6094067", "0.6092142", "0.6090022", "0.6087748", "0.6086567", "0.6079816", "0.60788536", "0.60781425", "0.6075593", "0.60739666", "0.6059867", "0.6059035", "0.6056394", "0.60559374", "0.6055846", "0.60543215", "0.60445374", "0.60378027", "0.6036865", "0.60361373", "0.6035405" ]
0.7301407
2
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { MenuOpciones = new javax.swing.JPopupMenu(); ItemActivar = new javax.swing.JMenuItem(); Itemdesactivar = new javax.swing.JMenuItem(); jPanel1 = new javax.swing.JPanel(); btnmini = new javax.swing.JButton(); btncerrar = new javax.swing.JButton(); btnregresar = new javax.swing.JButton(); lblnombrerh = new javax.swing.JLabel(); lblcargo = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jScrollPane3 = new javax.swing.JScrollPane(); tbpercep = new javax.swing.JTable(); panelreginc = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); txtnombre = new javax.swing.JTextField(); GuardarIn = new javax.swing.JButton(); txtdias = new javax.swing.JTextField(); jLabel6 = new javax.swing.JLabel(); txtBuscar = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); ItemActivar.setText("Activar"); ItemActivar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ItemActivarActionPerformed(evt); } }); MenuOpciones.add(ItemActivar); Itemdesactivar.setText("Desactivar"); Itemdesactivar.setToolTipText(""); Itemdesactivar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ItemdesactivarActionPerformed(evt); } }); MenuOpciones.add(Itemdesactivar); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setUndecorated(true); jPanel1.setBackground(new java.awt.Color(229, 230, 234)); jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); btnmini.setIcon(new javax.swing.ImageIcon(getClass().getResource("/View/img/minimizar.png"))); // NOI18N btnmini.setBorderPainted(false); btnmini.setContentAreaFilled(false); btnmini.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnminiActionPerformed(evt); } }); jPanel1.add(btnmini, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 0, 32, 30)); btncerrar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/View/img/error.png"))); // NOI18N btncerrar.setBorderPainted(false); btncerrar.setContentAreaFilled(false); btncerrar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btncerrarActionPerformed(evt); } }); jPanel1.add(btncerrar, new org.netbeans.lib.awtextra.AbsoluteConstraints(620, 0, 32, 30)); btnregresar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/View/img/regresar.png"))); // NOI18N btnregresar.setBorderPainted(false); btnregresar.setContentAreaFilled(false); btnregresar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnregresarActionPerformed(evt); } }); jPanel1.add(btnregresar, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 0, 32, 30)); lblnombrerh.setFont(new java.awt.Font("Century Gothic", 1, 14)); // NOI18N lblnombrerh.setForeground(new java.awt.Color(51, 102, 255)); lblnombrerh.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, new java.awt.Color(51, 102, 255))); jPanel1.add(lblnombrerh, new org.netbeans.lib.awtextra.AbsoluteConstraints(35, 20, 250, 20)); lblcargo.setFont(new java.awt.Font("Century Gothic", 1, 14)); // NOI18N lblcargo.setForeground(new java.awt.Color(51, 102, 255)); lblcargo.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, new java.awt.Color(51, 102, 255))); jPanel1.add(lblcargo, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 20, 210, 20)); jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/View/img/user.png"))); // NOI18N jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 10, -1, 40)); jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/View/img/portafolio.png"))); // NOI18N jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 10, -1, 40)); jLabel2.setFont(new java.awt.Font("Century Gothic", 1, 18)); // NOI18N jLabel2.setForeground(new java.awt.Color(255, 255, 255)); jLabel2.setText("Registro de percepciones y deducciones"); tbpercep= new javax.swing.JTable(){ public boolean isCellEditable(int rowIndex,int conlIndex ){ return false; } }; tbpercep.setAutoCreateRowSorter(true); tbpercep.setForeground(new java.awt.Color(51, 51, 51)); tbpercep.setComponentPopupMenu(MenuOpciones); tbpercep.setDropMode(javax.swing.DropMode.INSERT_ROWS); tbpercep.setFillsViewportHeight(true); tbpercep.setGridColor(new java.awt.Color(255, 255, 255)); tbpercep.setInheritsPopupMenu(true); tbpercep.setIntercellSpacing(new java.awt.Dimension(2, 2)); tbpercep.setSelectionBackground(new java.awt.Color(108, 180, 221)); tbpercep.setSelectionForeground(new java.awt.Color(0, 0, 0)); jScrollPane3.setViewportView(tbpercep); panelreginc.setBackground(new java.awt.Color(51, 102, 255)); panelreginc.setForeground(new java.awt.Color(255, 255, 255)); jLabel1.setFont(new java.awt.Font("Century Gothic", 1, 14)); // NOI18N jLabel1.setForeground(new java.awt.Color(255, 255, 255)); jLabel1.setText("Nombre Incidencia"); txtnombre.setBackground(new java.awt.Color(51, 102, 255)); txtnombre.setFont(new java.awt.Font("Century Gothic", 0, 14)); // NOI18N txtnombre.setForeground(new java.awt.Color(255, 255, 255)); txtnombre.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 2, 0, new java.awt.Color(255, 255, 255))); txtnombre.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { txtnombreKeyReleased(evt); } }); GuardarIn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/View/img/save1.png"))); // NOI18N GuardarIn.setContentAreaFilled(false); GuardarIn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { GuardarInActionPerformed(evt); } }); txtdias.setBackground(new java.awt.Color(51, 102, 255)); txtdias.setFont(new java.awt.Font("Century Gothic", 0, 14)); // NOI18N txtdias.setForeground(new java.awt.Color(255, 255, 255)); txtdias.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 2, 0, new java.awt.Color(255, 255, 255))); txtdias.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { txtdiasKeyReleased(evt); } }); jLabel6.setFont(new java.awt.Font("Century Gothic", 1, 14)); // NOI18N jLabel6.setForeground(new java.awt.Color(255, 255, 255)); jLabel6.setText("Numero de dias"); javax.swing.GroupLayout panelregincLayout = new javax.swing.GroupLayout(panelreginc); panelreginc.setLayout(panelregincLayout); panelregincLayout.setHorizontalGroup( panelregincLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelregincLayout.createSequentialGroup() .addContainerGap() .addGroup(panelregincLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txtnombre, javax.swing.GroupLayout.PREFERRED_SIZE, 331, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(panelregincLayout.createSequentialGroup() .addGap(17, 17, 17) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(48, 48, 48) .addGroup(panelregincLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txtdias, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel6)) .addGap(18, 55, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelregincLayout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(GuardarIn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(27, 27, 27)) ); panelregincLayout.setVerticalGroup( panelregincLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelregincLayout.createSequentialGroup() .addContainerGap() .addGroup(panelregincLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(panelregincLayout.createSequentialGroup() .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtnombre, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(panelregincLayout.createSequentialGroup() .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtdias, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(GuardarIn))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); txtBuscar.setBackground(new java.awt.Color(51, 102, 255)); txtBuscar.setFont(new java.awt.Font("Century Gothic", 0, 14)); // NOI18N txtBuscar.setForeground(new java.awt.Color(255, 255, 255)); txtBuscar.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 2, 0, new java.awt.Color(255, 255, 255))); txtBuscar.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { txtBuscarKeyReleased(evt); } }); jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/View/img/search1.png"))); // NOI18N javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane3) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createSequentialGroup() .addGap(10, 10, 10) .addComponent(txtBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addGap(120, 120, 120) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 381, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addGap(26, 26, 26) .addComponent(panelreginc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(2, 2, 2) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(panelreginc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(10, 10, 10) .addComponent(txtBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.6945632", "0.6943359", "0.69363457", "0.6931661", "0.6927987", "0.6925778", "0.6925381", "0.69117576", "0.6911631", "0.68930036", "0.6892348", "0.6890817", "0.68904495", "0.6889411", "0.68838716", "0.6881747", "0.6881229", "0.68778914", "0.6876094", "0.6874808", "0.68713", "0.6859444", "0.6856188", "0.68556464", "0.6855074", "0.68549985", "0.6853093", "0.6853093", "0.68530816", "0.6843091", "0.6837124", "0.6836549", "0.6828579", "0.68282986", "0.68268806", "0.682426", "0.6823653", "0.6817904", "0.68167645", "0.68102163", "0.6808751", "0.680847", "0.68083245", "0.6807882", "0.6802814", "0.6795573", "0.6794048", "0.6792466", "0.67904556", "0.67893785", "0.6789265", "0.6788365", "0.67824304", "0.6766916", "0.6765524", "0.6765339", "0.67571205", "0.6755559", "0.6751974", "0.67510027", "0.67433685", "0.67390305", "0.6737053", "0.673608", "0.6733373", "0.67271507", "0.67262334", "0.67205364", "0.6716807", "0.67148036", "0.6714143", "0.67090863", "0.67077154", "0.67046666", "0.6701339", "0.67006236", "0.6699842", "0.66981244", "0.6694887", "0.6691074", "0.66904294" ]
0.0
-1
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static GenericMessagesReceived createEntity() { GenericMessagesReceived genericMessagesReceived = new GenericMessagesReceived() .originatingModule(DEFAULT_ORIGINATING_MODULE) .dateReceived(DEFAULT_DATE_RECEIVED) .messageId(MESSAGE_ID) .messageDateCreated(UPDATED_DATE_RECEIVED) .pubSubMessageTypeCode(PUB_SUB_TYPE_CODE) .incidentNumber(INCIDENT_NUMBER) .incidentHeader(INCIDENT_HEADER) .incidentDescription(INCIDENT_DESCRIPTION) .eventTypeCode(EVENT_TYPE_CODE) .incidentPriorityCode(INCIDENT_PRIORITY_CODE) .operatorName(OPERATOR_NAME) .payload(PAYLOAD); return genericMessagesReceived; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "T createEntity();", "protected abstract ENTITY createEntity();", "void create(E entity);", "void create(T entity);", "E create(E entity);", "E create(E entity);", "protected abstract EntityBase createEntity() throws Exception;", "TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Test name\");\n testEntity.setCheck(true);\n testEntity.setDateCreated(new Date(System.currentTimeMillis()));\n testEntity.setDescription(\"description\");\n\n Specialization specialization = new Specialization();\n specialization.setName(\"Frontend\");\n specialization.setLevel(\"Senior\");\n specialization.setYears(10);\n\n testEntity.setSpecialization(specialization);\n\n return testEntity;\n }", "public static TestEntity createEntity(EntityManager em) {\n TestEntity testEntity = new TestEntity();\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n testEntity.setUserOneToMany(user);\n return testEntity;\n }", "void create(T entity) throws Exception;", "@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }", "protected T createSimulatedExistingEntity() {\n final T entity = createNewEntity();\n entity.setId(IDUtil.randomPositiveLong());\n\n when(getDAO().findOne(entity.getId())).thenReturn(entity);\n return entity;\n }", "public Entity newEntity() { return newMyEntity(); }", "public Entity newEntity() { return newMyEntity(); }", "public static TranshipTube createEntity(EntityManager em) {\n TranshipTube transhipTube = new TranshipTube()\n .status(DEFAULT_STATUS)\n .memo(DEFAULT_MEMO)\n .columnsInTube(DEFAULT_COLUMNS_IN_TUBE)\n .rowsInTube(DEFAULT_ROWS_IN_TUBE);\n // Add required entity\n TranshipBox transhipBox = TranshipBoxResourceIntTest.createEntity(em);\n em.persist(transhipBox);\n em.flush();\n transhipTube.setTranshipBox(transhipBox);\n // Add required entity\n FrozenTube frozenTube = FrozenTubeResourceIntTest.createEntity(em);\n em.persist(frozenTube);\n em.flush();\n transhipTube.setFrozenTube(frozenTube);\n return transhipTube;\n }", "public static Student createEntity(EntityManager em) {\n Student student = new Student()\n .firstName(DEFAULT_FIRST_NAME)\n .middleName(DEFAULT_MIDDLE_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .studentRegNumber(DEFAULT_STUDENT_REG_NUMBER)\n .dateOfBirth(DEFAULT_DATE_OF_BIRTH)\n .regDocType(DEFAULT_REG_DOC_TYPE)\n .registrationDocumentNumber(DEFAULT_REGISTRATION_DOCUMENT_NUMBER)\n .gender(DEFAULT_GENDER)\n .nationality(DEFAULT_NATIONALITY)\n .dateJoined(DEFAULT_DATE_JOINED)\n .deleted(DEFAULT_DELETED)\n .wxtJwtPq55wd(DEFAULT_WXT_JWT_PQ_55_WD);\n // Add required entity\n NextOfKin nextOfKin;\n if (TestUtil.findAll(em, NextOfKin.class).isEmpty()) {\n nextOfKin = NextOfKinResourceIT.createEntity(em);\n em.persist(nextOfKin);\n em.flush();\n } else {\n nextOfKin = TestUtil.findAll(em, NextOfKin.class).get(0);\n }\n student.getRelatives().add(nextOfKin);\n return student;\n }", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "public static Emprunt createEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(DEFAULT_DATE_EMPRUNT)\n .dateRetour(DEFAULT_DATE_RETOUR);\n // Add required entity\n Usager usager = UsagerResourceIntTest.createEntity(em);\n em.persist(usager);\n em.flush();\n emprunt.setUsager(usager);\n // Add required entity\n Exemplaire exemplaire = ExemplaireResourceIntTest.createEntity(em);\n em.persist(exemplaire);\n em.flush();\n emprunt.setExemplaire(exemplaire);\n return emprunt;\n }", "@Override\n public EntityResponse createEntity(String entitySetName, OEntity entity) {\n return super.createEntity(entitySetName, entity);\n }", "public ClientEntity newEntity() {\r\n if (entityType == null) {\r\n entityType = getEntityType(entitySet);\r\n }\r\n return odataClient.getObjectFactory().newEntity(new FullQualifiedName(NAMESPAVE, entityType));\r\n }", "ID create(T entity);", "public static MotherBed createEntity(EntityManager em) {\n MotherBed motherBed = new MotherBed()\n .value(DEFAULT_VALUE)\n .status(DEFAULT_STATUS);\n // Add required entity\n Nursery nursery = NurseryResourceIntTest.createEntity(em);\n em.persist(nursery);\n em.flush();\n motherBed.setNursery(nursery);\n return motherBed;\n }", "@Override\n public EntityResponse createEntity(String entitySetName, OEntityKey entityKey, String navProp, OEntity entity) {\n return super.createEntity(entitySetName, entityKey, navProp, entity);\n }", "private FailingEntity createFailingEntity() {\n FailingEntity entity = app.createAndManageChild(EntitySpec.create(FailingEntity.class)\n .configure(FailingEntity.FAIL_ON_START, true));\n return entity;\n }", "public <T extends Entity> T createEntity(EntitySpec<T> spec) {\n Map<String,Entity> entitiesByEntityId = MutableMap.of();\n Map<String,EntitySpec<?>> specsByEntityId = MutableMap.of();\n \n T entity = createEntityAndDescendantsUninitialized(spec, entitiesByEntityId, specsByEntityId);\n initEntityAndDescendants(entity.getId(), entitiesByEntityId, specsByEntityId);\n return entity;\n }", "public static Prestamo createEntity(EntityManager em) {\n Prestamo prestamo = new Prestamo().observaciones(DEFAULT_OBSERVACIONES).fechaFin(DEFAULT_FECHA_FIN);\n // Add required entity\n Libro libro;\n if (TestUtil.findAll(em, Libro.class).isEmpty()) {\n libro = LibroResourceIT.createEntity(em);\n em.persist(libro);\n em.flush();\n } else {\n libro = TestUtil.findAll(em, Libro.class).get(0);\n }\n prestamo.setLibro(libro);\n // Add required entity\n Persona persona;\n if (TestUtil.findAll(em, Persona.class).isEmpty()) {\n persona = PersonaResourceIT.createEntity(em);\n em.persist(persona);\n em.flush();\n } else {\n persona = TestUtil.findAll(em, Persona.class).get(0);\n }\n prestamo.setPersona(persona);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n prestamo.setUser(user);\n return prestamo;\n }", "default E create(E entity)\n throws TechnicalException, ConflictException {\n return create(entity, null);\n }", "public static Rentee createEntity(EntityManager em) {\n Rentee rentee = new Rentee();\n rentee = new Rentee()\n .firstName(DEFAULT_FIRST_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .email(DEFAULT_EMAIL)\n .phoneNumber(DEFAULT_PHONE_NUMBER)\n .password(DEFAULT_PASSWORD);\n return rentee;\n }", "public static Pocket createEntity(EntityManager em) {\n Pocket pocket = new Pocket()\n .key(DEFAULT_KEY)\n .label(DEFAULT_LABEL)\n .startDateTime(DEFAULT_START_DATE_TIME)\n .endDateTime(DEFAULT_END_DATE_TIME)\n .amount(DEFAULT_AMOUNT)\n .reserved(DEFAULT_RESERVED);\n // Add required entity\n Balance balance = BalanceResourceIntTest.createEntity(em);\n em.persist(balance);\n em.flush();\n pocket.setBalance(balance);\n return pocket;\n }", "public static ItemSubstitution createEntity(EntityManager em) {\n ItemSubstitution itemSubstitution = new ItemSubstitution()\n .timestamp(DEFAULT_TIMESTAMP)\n .type(DEFAULT_TYPE)\n .substituteType(DEFAULT_SUBSTITUTE_TYPE)\n .substituteNo(DEFAULT_SUBSTITUTE_NO)\n .description(DEFAULT_DESCRIPTION)\n .isInterchangeable(DEFAULT_IS_INTERCHANGEABLE)\n .relationsLevel(DEFAULT_RELATIONS_LEVEL)\n .isCheckedToOriginal(DEFAULT_IS_CHECKED_TO_ORIGINAL)\n .origCheckDate(DEFAULT_ORIG_CHECK_DATE);\n // Add required entity\n Item item;\n if (TestUtil.findAll(em, Item.class).isEmpty()) {\n item = ItemResourceIT.createEntity(em);\n em.persist(item);\n em.flush();\n } else {\n item = TestUtil.findAll(em, Item.class).get(0);\n }\n itemSubstitution.getItems().add(item);\n return itemSubstitution;\n }", "E create(E entity, RequestContext context)\n throws TechnicalException, ConflictException;", "public static A createEntity(EntityManager em) {\n A a = new A();\n return a;\n }", "public static Edge createEntity(EntityManager em) {\n Edge edge = new Edge()\n .description(DEFAULT_DESCRIPTION);\n // Add required entity\n Stone from = StoneResourceIntTest.createEntity(em);\n em.persist(from);\n em.flush();\n edge.setFrom(from);\n // Add required entity\n Stone to = StoneResourceIntTest.createEntity(em);\n em.persist(to);\n em.flush();\n edge.setTo(to);\n return edge;\n }", "public static QuizQuestion createEntity(EntityManager em) {\n QuizQuestion quizQuestion = new QuizQuestion()\n .text(DEFAULT_TEXT)\n .description(DEFAULT_DESCRIPTION);\n // Add required entity\n Quiz quiz;\n if (TestUtil.findAll(em, Quiz.class).isEmpty()) {\n quiz = QuizResourceIT.createEntity(em);\n em.persist(quiz);\n em.flush();\n } else {\n quiz = TestUtil.findAll(em, Quiz.class).get(0);\n }\n quizQuestion.setQuiz(quiz);\n return quizQuestion;\n }", "public static Partida createEntity(EntityManager em) {\n Partida partida = new Partida()\n .dataPartida(DEFAULT_DATA_PARTIDA);\n return partida;\n }", "public T create(T entity) {\n\t \tgetEntityManager().getTransaction().begin();\n\t getEntityManager().persist(entity);\n\t getEntityManager().getTransaction().commit();\n\t getEntityManager().close();\n\t return entity;\n\t }", "public static Emprunt createEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(DEFAULT_DATE_EMPRUNT);\n return emprunt;\n }", "public static SitAndGo createEntity(EntityManager em) {\n SitAndGo sitAndGo = new SitAndGo()\n .format(DEFAULT_FORMAT)\n .buyIn(DEFAULT_BUY_IN)\n .ranking(DEFAULT_RANKING)\n .profit(DEFAULT_PROFIT)\n .bounty(DEFAULT_BOUNTY);\n return sitAndGo;\n }", "public static Exercise createEntity(EntityManager em) {\n Exercise exercise = new Exercise()\n .minutes(DEFAULT_MINUTES);\n return exercise;\n }", "@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}", "public static House createEntity(EntityManager em) {\n House house = new House()\n .houseName(DEFAULT_HOUSE_NAME)\n .houseNo(DEFAULT_HOUSE_NO)\n .address(DEFAULT_ADDRESS)\n .houseToFloorNo(DEFAULT_HOUSE_TO_FLOOR_NO)\n .ownToFloorNo(DEFAULT_OWN_TO_FLOOR_NO)\n .lat(DEFAULT_LAT)\n .lon(DEFAULT_LON)\n .createdate(DEFAULT_CREATEDATE)\n .createBy(DEFAULT_CREATE_BY)\n .updateDate(DEFAULT_UPDATE_DATE)\n .updateBy(DEFAULT_UPDATE_BY)\n .image(DEFAULT_IMAGE)\n .imageContentType(DEFAULT_IMAGE_CONTENT_TYPE);\n // Add required entity\n Country country = CountryResourceIntTest.createEntity(em);\n em.persist(country);\n em.flush();\n house.setCountry(country);\n // Add required entity\n State state = StateResourceIntTest.createEntity(em);\n em.persist(state);\n em.flush();\n house.setState(state);\n // Add required entity\n City city = CityResourceIntTest.createEntity(em);\n em.persist(city);\n em.flush();\n house.setCity(city);\n // Add required entity\n Profile profile = ProfileResourceIntTest.createEntity(em);\n em.persist(profile);\n em.flush();\n house.setProfile(profile);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n house.setUser(user);\n return house;\n }", "public static CourtType createEntity(EntityManager em) {\n CourtType courtType = new CourtType()\n .type(DEFAULT_TYPE);\n return courtType;\n }", "public static Ailment createEntity(EntityManager em) {\n Ailment ailment = new Ailment()\n .name(DEFAULT_NAME)\n .symptoms(DEFAULT_SYMPTOMS)\n .treatments(DEFAULT_TREATMENTS);\n return ailment;\n }", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "public static Articulo createEntity(EntityManager em) {\n Articulo articulo = new Articulo()\n .titulo(DEFAULT_TITULO)\n .contenido(DEFAULT_CONTENIDO)\n .fechaCreacion(DEFAULT_FECHA_CREACION);\n return articulo;\n }", "void create(Student entity);", "public static TipoLocal createEntity(EntityManager em) {\n TipoLocal tipoLocal = new TipoLocal()\n .tipo(DEFAULT_TIPO);\n return tipoLocal;\n }", "public static Testtable2 createEntity(EntityManager em) {\n Testtable2 testtable2 = new Testtable2();\n testtable2.setColumn2(DEFAULT_COLUMN_2);\n return testtable2;\n }", "@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}", "public static OrderItem createEntity(EntityManager em) {\n OrderItem orderItem = new OrderItem().quantity(DEFAULT_QUANTITY).totalPrice(DEFAULT_TOTAL_PRICE).status(DEFAULT_STATUS);\n return orderItem;\n }", "public static Arrete createEntity(EntityManager em) {\n Arrete arrete = new Arrete()\n .intituleArrete(DEFAULT_INTITULE_ARRETE)\n .numeroArrete(DEFAULT_NUMERO_ARRETE)\n .dateSignature(DEFAULT_DATE_SIGNATURE)\n .nombreAgrement(DEFAULT_NOMBRE_AGREMENT);\n return arrete;\n }", "public static Tenant createEntity() {\n return new Tenant();\n }", "public static MyOrders createEntity(EntityManager em) {\n MyOrders myOrders = new MyOrders();\n return myOrders;\n }", "public static Enseigner createEntity(EntityManager em) {\n Enseigner enseigner = new Enseigner().dateDebut(DEFAULT_DATE_DEBUT).dateFin(DEFAULT_DATE_FIN);\n return enseigner;\n }", "@Test\n public void eventEntityConstructionTest() {\n\n Event event = new EventEntity();\n\n assertThat(event).isNotNull();\n\n }", "public static EnteteVente createEntity(EntityManager em) {\n EnteteVente enteteVente = new EnteteVente()\n .enteteVenteType(DEFAULT_ENTETE_VENTE_TYPE)\n .enteteVenteTotalHT(DEFAULT_ENTETE_VENTE_TOTAL_HT)\n .enteteVenteTotalTTC(DEFAULT_ENTETE_VENTE_TOTAL_TTC)\n .enteteVenteDateCreation(DEFAULT_ENTETE_VENTE_DATE_CREATION);\n return enteteVente;\n }", "public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}", "public static Organizer createEntity(EntityManager em) {\n Organizer organizer = new Organizer()\n .name(DEFAULT_NAME)\n .description(DEFAULT_DESCRIPTION)\n .facebook(DEFAULT_FACEBOOK)\n .twitter(DEFAULT_TWITTER);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n organizer.setUser(user);\n return organizer;\n }", "public static Note createEntity(EntityManager em) {\n Note note = new Note().content(DEFAULT_CONTENT).title(DEFAULT_TITLE).xpos(DEFAULT_XPOS).ypos(DEFAULT_YPOS);\n return note;\n }", "public static FillingGapsTestItem createEntity(EntityManager em) {\n FillingGapsTestItem fillingGapsTestItem = new FillingGapsTestItem()\n .question(DEFAULT_QUESTION);\n return fillingGapsTestItem;\n }", "public Entity build();", "@Test\n public void createQuejaEntityTest() {\n PodamFactory factory = new PodamFactoryImpl();\n QuejaEntity newEntity = factory.manufacturePojo(QuejaEntity.class);\n QuejaEntity result = quejaPersistence.create(newEntity);\n\n Assert.assertNotNull(result);\n QuejaEntity entity = em.find(QuejaEntity.class, result.getId());\n Assert.assertNotNull(entity);\n Assert.assertEquals(newEntity.getName(), entity.getName());\n}", "public abstract boolean create(T entity) throws ServiceException;", "public static Acheteur createEntity(EntityManager em) {\n Acheteur acheteur = new Acheteur()\n .typeClient(DEFAULT_TYPE_CLIENT)\n .nom(DEFAULT_NOM)\n .prenom(DEFAULT_PRENOM)\n .tel(DEFAULT_TEL)\n .cnib(DEFAULT_CNIB)\n .email(DEFAULT_EMAIL)\n .adresse(DEFAULT_ADRESSE)\n .numroBanquaire(DEFAULT_NUMRO_BANQUAIRE)\n .deleted(DEFAULT_DELETED);\n return acheteur;\n }", "public static RoomGenericProduct createEntity(EntityManager em) {\n RoomGenericProduct roomGenericProduct = new RoomGenericProduct()\n .quantity(DEFAULT_QUANTITY)\n .quantityUnit(DEFAULT_QUANTITY_UNIT);\n return roomGenericProduct;\n }", "public static TypeOeuvre createEntity(EntityManager em) {\n TypeOeuvre typeOeuvre = new TypeOeuvre()\n .intitule(DEFAULT_INTITULE);\n return typeOeuvre;\n }", "public static Reservation createEntity(EntityManager em) {\n Reservation reservation = ReservationTest.buildReservationTest(1L);\n //reservation.setUser(User.builder().email(\"adfad\").name(\"\").build());\n return reservation;\n }", "@Test\n public void testNewEntity() throws Exception {\n\n }", "public static Model createEntity(EntityManager em) {\n\t\tModel model = new Model().name(DEFAULT_NAME).type(DEFAULT_TYPE).algorithm(DEFAULT_ALGORITHM)\n\t\t\t\t.status(DEFAULT_STATUS).owner(DEFAULT_OWNER).performanceMetrics(DEFAULT_PERFORMANCE_METRICS)\n\t\t\t\t.modelLocation(DEFAULT_MODEL_LOCATION).featureSignificance(DEFAULT_FEATURE_SIGNIFICANCE)\n\t\t\t\t.builderConfig(DEFAULT_BUILDER_CONFIG).createdDate(DEFAULT_CREATED_DATE)\n\t\t\t\t.deployedDate(DEFAULT_DEPLOYED_DATE).trainingDataset(DEFAULT_TRAINING_DATASET)\n .library(DEFAULT_LIBRARY).project(DEFAULT_PROJECT).version(DEFAULT_VERSION);\n\t\treturn model;\n\t}", "public static ProcessExecution createEntity(EntityManager em) {\n ProcessExecution processExecution = new ProcessExecution()\n .execution(DEFAULT_EXECUTION);\n return processExecution;\n }", "public static Paiement createEntity(EntityManager em) {\n Paiement paiement = new Paiement()\n .dateTransation(DEFAULT_DATE_TRANSATION)\n .montantTTC(DEFAULT_MONTANT_TTC);\n return paiement;\n }", "public static Article createEntity(EntityManager em) {\n Article article = new Article()\n .name(DEFAULT_NAME)\n .content(DEFAULT_CONTENT)\n .creationDate(DEFAULT_CREATION_DATE)\n .modificationDate(DEFAULT_MODIFICATION_DATE);\n return article;\n }", "T makePersistent(T entity);", "void buildFromEntity(E entity);", "public static XepLoai createEntity(EntityManager em) {\n XepLoai xepLoai = new XepLoai()\n .tenXepLoai(DEFAULT_TEN_XEP_LOAI);\n return xepLoai;\n }", "public static Lot createEntity(EntityManager em) {\n Lot lot = new Lot()\n .createdAt(DEFAULT_CREATED_AT)\n .updatedAt(DEFAULT_UPDATED_AT)\n .qte(DEFAULT_QTE)\n .qtUg(DEFAULT_QT_UG)\n .num(DEFAULT_NUM)\n .dateFabrication(DEFAULT_DATE_FABRICATION)\n .peremption(DEFAULT_PEREMPTION)\n .peremptionstatus(DEFAULT_PEREMPTIONSTATUS);\n return lot;\n }", "private MetaEntityImpl createMetaEntity(Class<?> entityType) {\n String className = entityType.getSimpleName();\n MetaEntityImpl managedEntity = new MetaEntityImpl();\n managedEntity.setEntityType(entityType);\n managedEntity.setName(className);\n ((MetaTableImpl) managedEntity.getTable()).setName(className);\n ((MetaTableImpl) managedEntity.getTable()).setKeySpace(environment.getConfiguration().getKeySpace());\n return managedEntity;\n }", "public TransporteTerrestreEntity createTransporte(TransporteTerrestreEntity transporteEntity) throws BusinessLogicException {\n LOGGER.log(Level.INFO, \"Inicia proceso de creación del transporte\");\n super.createTransporte(transporteEntity);\n\n \n persistence.create(transporteEntity);\n LOGGER.log(Level.INFO, \"Termina proceso de creación del transporte\");\n return transporteEntity;\n }", "public static EmployeeCars createEntity(EntityManager em) {\n EmployeeCars employeeCars = new EmployeeCars()\n .previousReading(DEFAULT_PREVIOUS_READING)\n .currentReading(DEFAULT_CURRENT_READING)\n .workingDays(DEFAULT_WORKING_DAYS)\n .updateDate(DEFAULT_UPDATE_DATE);\n // Add required entity\n Employee employee = EmployeeResourceIT.createEntity(em);\n em.persist(employee);\n em.flush();\n employeeCars.setEmployee(employee);\n // Add required entity\n Car car = CarResourceIT.createEntity(em);\n em.persist(car);\n em.flush();\n employeeCars.setCar(car);\n return employeeCars;\n }", "public static TaskComment createEntity(EntityManager em) {\n TaskComment taskComment = new TaskComment()\n .value(DEFAULT_VALUE);\n // Add required entity\n Task newTask = TaskResourceIT.createEntity(em);\n Task task = TestUtil.findAll(em, Task.class).stream()\n .filter(x -> x.getId().equals(newTask.getId()))\n .findAny().orElse(null);\n if (task == null) {\n task = newTask;\n em.persist(task);\n em.flush();\n }\n taskComment.setTask(task);\n return taskComment;\n }", "public static Personel createEntity(EntityManager em) {\n Personel personel = new Personel()\n .fistname(DEFAULT_FISTNAME)\n .lastname(DEFAULT_LASTNAME)\n .sexe(DEFAULT_SEXE);\n return personel;\n }", "public static Ordre createEntity(EntityManager em) {\n Ordre ordre = new Ordre()\n .name(DEFAULT_NAME)\n .status(DEFAULT_STATUS)\n .price(DEFAULT_PRICE)\n .creationDate(DEFAULT_CREATION_DATE);\n return ordre;\n }", "public static Territorio createEntity(EntityManager em) {\n Territorio territorio = new Territorio().nome(DEFAULT_NOME);\n return territorio;\n }", "@Override\n @LogMethod\n public T create(T entity) throws InventoryException {\n \tInventoryHelper.checkNull(entity, \"entity\");\n repository.persist(entity);\n return repository.getByKey(entity.getId());\n }", "public static Poen createEntity(EntityManager em) {\n Poen poen = new Poen()\n .tip(DEFAULT_TIP);\n return poen;\n }", "public static Expediente createEntity(EntityManager em) {\n Expediente expediente = new Expediente()\n .horarioEntrada(DEFAULT_HORARIO_ENTRADA)\n .horarioSaida(DEFAULT_HORARIO_SAIDA)\n .diaSemana(DEFAULT_DIA_SEMANA);\n return expediente;\n }", "public static Unidade createEntity(EntityManager em) {\n Unidade unidade = new Unidade()\n .descricao(DEFAULT_DESCRICAO)\n .sigla(DEFAULT_SIGLA)\n .situacao(DEFAULT_SITUACAO)\n .controleDeEstoque(DEFAULT_CONTROLE_DE_ESTOQUE)\n .idAlmoxarifado(DEFAULT_ID_ALMOXARIFADO)\n .andar(DEFAULT_ANDAR)\n .capacidade(DEFAULT_CAPACIDADE)\n .horarioInicio(DEFAULT_HORARIO_INICIO)\n .horarioFim(DEFAULT_HORARIO_FIM)\n .localExame(DEFAULT_LOCAL_EXAME)\n .rotinaDeFuncionamento(DEFAULT_ROTINA_DE_FUNCIONAMENTO)\n .anexoDocumento(DEFAULT_ANEXO_DOCUMENTO)\n .setor(DEFAULT_SETOR)\n .idCentroDeAtividade(DEFAULT_ID_CENTRO_DE_ATIVIDADE)\n .idChefia(DEFAULT_ID_CHEFIA);\n // Add required entity\n TipoUnidade tipoUnidade;\n if (TestUtil.findAll(em, TipoUnidade.class).isEmpty()) {\n tipoUnidade = TipoUnidadeResourceIT.createEntity(em);\n em.persist(tipoUnidade);\n em.flush();\n } else {\n tipoUnidade = TestUtil.findAll(em, TipoUnidade.class).get(0);\n }\n unidade.setTipoUnidade(tipoUnidade);\n return unidade;\n }", "public void spawnEntity(AEntityB_Existing entity){\r\n\t\tBuilderEntityExisting builder = new BuilderEntityExisting(entity.world.world);\r\n\t\tbuilder.loadedFromSavedNBT = true;\r\n\t\tbuilder.setPositionAndRotation(entity.position.x, entity.position.y, entity.position.z, (float) -entity.angles.y, (float) entity.angles.x);\r\n\t\tbuilder.entity = entity;\r\n\t\tworld.spawnEntity(builder);\r\n }", "public static Book createEntity() {\n Book book = new Book()\n .idBook(DEFAULT_ID_BOOK)\n .isbn(DEFAULT_ISBN)\n .title(DEFAULT_TITLE)\n .author(DEFAULT_AUTHOR)\n .year(DEFAULT_YEAR)\n .publisher(DEFAULT_PUBLISHER)\n .url_s(DEFAULT_URL_S)\n .url_m(DEFAULT_URL_M)\n .url_l(DEFAULT_URL_L);\n return book;\n }", "private void createTestData() {\n StoreEntity store = new StoreEntity();\n store.setStoreName(DEFAULT_STORE_NAME);\n store.setPecEmail(DEFAULT_PEC);\n store.setPhone(DEFAULT_PHONE);\n store.setImagePath(DEFAULT_IMAGE_PATH);\n store.setDefaultPassCode(STORE_DEFAULT_PASS_CODE);\n store.setStoreCap(DEFAULT_STORE_CAP);\n store.setCustomersInside(DEFAULT_CUSTOMERS_INSIDE);\n store.setAddress(new AddressEntity());\n\n // Create users for store.\n UserEntity manager = new UserEntity();\n manager.setUsercode(USER_CODE_MANAGER);\n manager.setRole(UserRole.MANAGER);\n\n UserEntity employee = new UserEntity();\n employee.setUsercode(USER_CODE_EMPLOYEE);\n employee.setRole(UserRole.EMPLOYEE);\n\n store.addUser(manager);\n store.addUser(employee);\n\n // Create a new ticket.\n TicketEntity ticket = new TicketEntity();\n ticket.setPassCode(INIT_PASS_CODE);\n ticket.setCustomerId(INIT_CUSTOMER_ID);\n ticket.setDate(new Date(new java.util.Date().getTime()));\n\n ticket.setArrivalTime(new Time(new java.util.Date().getTime()));\n ticket.setPassStatus(PassStatus.VALID);\n ticket.setQueueNumber(INIT_TICKET_QUEUE_NUMBER);\n store.addTicket(ticket);\n\n // Persist data.\n em.getTransaction().begin();\n\n em.persist(store);\n em.flush();\n\n // Saving ID generated from SQL after the persist.\n LAST_TICKET_ID = ticket.getTicketId();\n LAST_STORE_ID = store.getStoreId();\n LAST_MANAGER_ID = manager.getUserId();\n LAST_EMPLOYEE_ID = employee.getUserId();\n\n em.getTransaction().commit();\n }", "@Test\n public void testNewEntity_0args() {\n // newEntity() is not implemented!\n }", "public static NoteMaster createEntity(EntityManager em) {\n NoteMaster noteMaster = new NoteMaster()\n .semestre(DEFAULT_SEMESTRE)\n .noteCC1(DEFAULT_NOTE_CC_1)\n .noteCC2(DEFAULT_NOTE_CC_2)\n .noteFinal(DEFAULT_NOTE_FINAL)\n .date(DEFAULT_DATE);\n return noteMaster;\n }", "public Camp newEntity() { return new Camp(); }", "T create() throws PersistException;", "private EntityDef createEntityDef(Class<?> entityClass)\n {\n\t\tif (entityClass.isAnnotationPresent(InheritanceSingleTable.class)) {\n return new SingleTableSubclass.SingleTableSuperclass(entityClass);\n } else if (entityClass.getSuperclass().isAnnotationPresent(InheritanceSingleTable.class)) {\n return new SingleTableSubclass(entityClass);\n } else {\n return new EntityDef(entityClass);\n }\n\t}", "public static Restaurant createEntity(EntityManager em) {\n Restaurant restaurant = new Restaurant()\n .restaurantName(DEFAULT_RESTAURANT_NAME)\n .deliveryPrice(DEFAULT_DELIVERY_PRICE)\n .restaurantAddress(DEFAULT_RESTAURANT_ADDRESS)\n .restaurantCity(DEFAULT_RESTAURANT_CITY);\n return restaurant;\n }", "@Override\n\tpublic EmploieType creer(EmploieType entity) throws InvalideTogetException {\n\t\treturn emploieTypeRepository.save(entity);\n\t}", "public static Team createEntity(EntityManager em) {\n Team team = new Team().name(DEFAULT_NAME).description(DEFAULT_DESCRIPTION)\n .level(DEFAULT_LEVEL).totalMember(DEFAULT_TOTAL_MEMBER)\n .extraGroupName(DEFAULT_EXTRA_GROUP_NAME)\n .extraGroupDescription(DEFAULT_EXTRA_GROUP_DESCRIPTION)\n .extraGroupTotalMember(DEFAULT_EXTRA_GROUP_TOTAL_MEMBER);\n return team;\n }", "public static Produit createEntity(EntityManager em) {\n Produit produit = new Produit()\n .designation(DEFAULT_DESIGNATION)\n .soldeInit(DEFAULT_SOLDE_INIT)\n .prixAchat(DEFAULT_PRIX_ACHAT)\n .prixVente(DEFAULT_PRIX_VENTE)\n .quantiteDispo(DEFAULT_QUANTITE_DISPO)\n .quantiteInit(DEFAULT_QUANTITE_INIT)\n .seuilReaprov(DEFAULT_SEUIL_REAPROV)\n .reference(DEFAULT_REFERENCE);\n return produit;\n }", "public void constructEntity (EntityBuilder entityBuilder, Position position){\n entityBuilder.createEntity();\n entityBuilder.buildPosition(position);\n entityBuilder.buildName();\n entityBuilder.buildPosition();\n entityBuilder.buildContComp();\n entityBuilder.buildPhysComp(length, width);\n entityBuilder.buildGraphComp(length, width);\n }" ]
[ "0.77218086", "0.7503676", "0.74873716", "0.7361229", "0.73136973", "0.7155441", "0.7155441", "0.7149927", "0.71498644", "0.7077277", "0.70157695", "0.68028295", "0.67516834", "0.67397887", "0.67397887", "0.6711019", "0.6680909", "0.66657215", "0.6640247", "0.66248286", "0.66241455", "0.66060835", "0.65883106", "0.65742177", "0.65738505", "0.6565338", "0.6551252", "0.65315366", "0.65299016", "0.6480446", "0.6420608", "0.6387217", "0.63766396", "0.63683313", "0.6313509", "0.62978184", "0.6293318", "0.6259127", "0.62455744", "0.62429196", "0.62399054", "0.62183934", "0.620832", "0.618205", "0.6181109", "0.61758316", "0.61688465", "0.6163373", "0.61613786", "0.61579037", "0.615556", "0.6151286", "0.61431485", "0.61368567", "0.613519", "0.6127809", "0.6124505", "0.6121229", "0.6107314", "0.6106368", "0.61031795", "0.6091583", "0.6089844", "0.6080974", "0.6074615", "0.60696244", "0.60672194", "0.6066104", "0.606201", "0.6058361", "0.6051816", "0.6041086", "0.6038615", "0.60320455", "0.60272384", "0.60226125", "0.6021162", "0.6020187", "0.60148036", "0.6014063", "0.6013832", "0.60031134", "0.6002425", "0.60023326", "0.59997463", "0.59950954", "0.59943664", "0.5981818", "0.597734", "0.5973825", "0.5971988", "0.5965621", "0.596327", "0.5962491", "0.59517986", "0.5945575", "0.594444", "0.5942205", "0.593754", "0.5930031", "0.592919" ]
0.0
-1
Creates a WorkerThread operating in the given pool.
protected StealingThread(StealingPool pool) throws IOException { if (pool == null) throw new NullPointerException(); this.pool = pool; this.ioManager = new NioManager(); // Note: poolIndex is set by pool during construction // Remaining initialization is deferred to onStart }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SingleWorkerPoolExecutor() {\n this.worker = new Worker(taskQueue);\n\n // Nothing bad as worker is blocked by an emptiness of a task\n // queue. Adding to this task queue will be possible after worker pool\n // finishes construction\n worker.start();\n }", "Connection createConnection(ExecutorService pool);", "protected abstract void createPool();", "ActorThreadPool getThreadPool();", "protected ForkJoinWorkerThread(ForkJoinPool pool) {\n<<<<<<< HEAD\n super(pool.nextWorkerName());\n this.pool = pool;\n int k = pool.registerWorker(this);\n poolIndex = k;\n eventCount = ~k & SMASK; // clear wait count\n locallyFifo = pool.locallyFifo;\n Thread.UncaughtExceptionHandler ueh = pool.ueh;\n if (ueh != null)\n setUncaughtExceptionHandler(ueh);\n setDaemon(true);\n }", "public void createWorker(Worker worker){\n }", "public ExecutorService createExecutor() {\n return getCamelContext().getExecutorServiceManager().newThreadPool(this, endpointName,\n 1, 5);\n }", "protected synchronized ExecutorService getService() {\r\n if(service == null) {\r\n //System.out.println(\"creating an executor service with a threadpool of size \" + threadPoolSize);\r\n service = Executors.newFixedThreadPool(threadPoolSize, new ThreadFactory() {\r\n private int count = 0;\r\n \r\n public Thread newThread(Runnable r) {\r\n Thread t = new Thread(r, \"tile-pool-\" + count++);\r\n t.setPriority(Thread.MIN_PRIORITY);\r\n t.setDaemon(true);\r\n return t;\r\n }\r\n });\r\n }\r\n return service;\r\n }", "protected ThreadPool getPool()\r\n {\r\n return threadPool_;\r\n }", "public WorkerThread createWorkerThread(DatagramPacket reqPacket) throws TFTPException {\t\t\r\n\t\t\r\n\t\tbyte[] data = reqPacket.getData();\r\n\t\t\r\n\t\tif (data[1] == PacketUtil.READ_FLAG) {\r\n\t\t\treturn new ReadHandlerThread(reqPacket);\r\n\t\t} else if (data[1] == PacketUtil.WRITE_FLAG) {\r\n\t\t\treturn new WriteHandlerThread(reqPacket);\r\n\t\t} else {\r\n\t\t\tthrow new TFTPException(\"expected a request packet\", PacketUtil.ERR_ILLEGAL_OP);\r\n\t\t}\t\t\t\r\n\t}", "public WorkerPool(String name) {\n this.name = name;\n\n log = LogFactory.getLog(WorkerPool.class.getName() + \":\" + name);\n }", "PooledThread()\n {\n setDaemon(true);\n\n start();\n }", "public ThreadPool()\r\n {\r\n // 20 seconds of inactivity and a worker gives up\r\n suicideTime = 20000;\r\n // half a second for the oldest job in the queue before\r\n // spawning a worker to handle it\r\n spawnTime = 500;\r\n jobs = null;\r\n activeThreads = 0;\r\n askedToStop = false;\r\n }", "public ThreadedListenerManager(ExecutorService pool) {\n\t\tmanagerNumber = MANAGER_COUNT.getAndIncrement();\n\t\tthis.pool = pool;\n\t}", "@Test\r\n\tpublic void test()\r\n\t{\n\t\t\r\n\t\tThreadPoolManager.addPool(\"1,UD,12,12,30000,200000\");\r\n//\t\tThreadPoolManager.addPool(\"2,UD,12,12,30000,200000\");\r\n\r\n// ThreadPoolManager.init(params);\r\n// ThreadPoolManager.getPool(\"1\");\r\n\t\t\r\n//\t\tThread t = new Thread(this.testCreaterun());\r\n//\t\tBaseTask\r\n\t\tBaseTask b = this.testCreaterun();\r\n\t\tThreadPoolManager.submit(\"1\", b);\r\n\t\t\r\n\t\tSystemUtil.sleep(2000);\r\n\t\tThreadPoolManager.shutdownNow(\"1\");\r\n\t\t\r\n\t\tSystemUtil.sleep(2000);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystemUtil.sleepForever();\r\n\t}", "public static ThreadPool getInstance()\r\n {\r\n if(instance == null)\r\n {\r\n instance = new ThreadPool();\r\n }\r\n return instance;\r\n }", "public ThreadPool( int totalPoolSize ) {\n\n\tpoolLocked = false;\n\n\ttry {\n\n\t initializePools( null, totalPoolSize );\n\n\t} catch( Exception exc ) {}\n\n }", "void bind(WorkerPool workerPool);", "public UseCaseThreadPoolScheduler() {\n\t\tthis.threadPoolExecutor = new ThreadPoolExecutor(POOL_SIZE, MAX_POOL_SIZE, TIMEOUT,\n\t\t\t\tTimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(POOL_SIZE));\n\t}", "public static ThreadPoolTaskScheduler createThreadPoolTaskScheduler(\r\n\t\t\tint poolSize, \r\n\t\t\tFrequency frequency, String name, TimeZone timezone){\r\n\t\treturn new ThreadPoolTaskScheduler(poolSize, frequency, name, timezone);\r\n\t}", "@Override\n public ExecutorService newThreadPool(ThreadPoolProfile profile, ThreadFactory threadFactory) {\n if (profile.isDefaultProfile()) {\n return vertxExecutorService;\n } else {\n return super.newThreadPool(profile, threadFactory);\n }\n }", "private void initThreadPool(int numOfThreadsInPool, int[][] resultMat, Observer listener) {\n for(int i=0;i<numOfThreadsInPool; i++){\r\n PoolThread newPoolThread = new PoolThread(m_TaskQueue, resultMat);\r\n newPoolThread.AddResultMatListener(listener);\r\n m_Threads.add(newPoolThread);\r\n }\r\n // Start all Threads:\r\n for(PoolThread currThread: m_Threads){\r\n currThread.start();\r\n }\r\n }", "public ThreadPool getThreadPool(int numericIdForThreadpool) throws NoSuchThreadPoolException;", "public IThread createThread() throws IllegalWriteException, BBException;", "@Override\n protected Thread createThread(final Runnable runnable, final String name) {\n return new Thread(runnable, Thread.currentThread().getName() + \"-exec\");\n }", "private synchronized WorkerThread getThread() {\n\t\tfor (int i = 0; i < this.threadPool.size(); ++i) {\n\t\t\tif (this.threadPool.get(i).available()) {\n\t\t\t\tthis.threadPool.get(i).setAvailable(false);\n\t\t\t\treturn this.threadPool.get(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static ThreadPoolTaskScheduler createThreadPoolTaskScheduler(\r\n\t\t\tint poolSize, \r\n\t\t\tFrequency frequency, String name){\r\n\t\treturn new ThreadPoolTaskScheduler(poolSize, frequency, name, null);\r\n\t}", "@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(threadName);\n\t\t\t\tth.setDaemon(false);\n\t\t\t\treturn th;\n\t\t\t}", "private Thread createThreadFor(Agent ag) {\n ProcessData data = getDataFor(ag);\n\n data.thread = new Thread(threadGroup, ag);\n data.thread.setPriority(THREAD_PRIORITY);\n\n return data.thread;\n }", "public WorkerPool(IWorkerPoolConfiguration config) {\n this(config.getName());\n setConfiguration(config);\n }", "public TaskThread(ThreadPool threadPool) {\n super(threadPool.getThreadGroup(), \"Task: Idle\");\n this.threadPool = threadPool;\n threadId = ThreadPool.getUniqueThreadId();\n System.out.println(\"threadId Created:\" + threadId);\n }", "void allocateWorker(Work work);", "private VirtualThread createThread(String threadName) {\n\t\tJavaObjectReference threadObj = new JavaObjectReference(new LazyClassfile(\"java/lang/Thread\"));\n\t\t\n\t\t// TODO: We should invoke constructors here...\n\t\tthreadObj.setValueOfField(\"priority\", new JavaInteger(1));\n\t\tthreadObj.setValueOfField(\"name\", JavaArray.str2char(vm,threadName));\n\t\tthreadObj.setValueOfField(\"group\", new JavaObjectReference(bcl.load(\"java/lang/ThreadGroup\")));\n\t\t\n\t\tmainThread = new VirtualThread(vm, rda, threadName, threadObj);\n\t\tthreadAreas.add(mainThread);\n\t\treturn mainThread;\n\t}", "void allocateDeamonWorker(Work work);", "@Override\n\tpublic Thread newThread(Runnable r) {\n\t\t\n\t\tThread th = new Thread(r,\" custum Thread\");\n\t\treturn th;\n\t}", "public void testNewFixedThreadPool1() {\n final ExecutorService e = Executors.newFixedThreadPool(2);\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }", "Processor(int id, WorkStealingThreadPool pool) {\n this.id = id;\n this.pool = pool;\n this.tasks = new ArrayDeque<Task>();\n }", "@Override\r\n public Thread newThread(Runnable r) {\n Thread t = new Thread(r, \"example-runner\");\r\n t.setDaemon(true);\r\n return t;\r\n }", "public void createThread() {\n }", "public ThreadPool getThreadPool(String threadpoolId) throws NoSuchThreadPoolException;", "public TaskThread(ThreadPool threadPool, String tName) {\n super(threadPool.getThreadGroup(), \"Task: Idle\");\n this.threadPool = threadPool;\n this.threadName = tName;\n threadId = ThreadPool.getUniqueThreadId();\n\n System.out.println(\"threadId Created:\" + threadId);\n }", "public World(ExecutorService threadPool, PackageService packageService){\n\t\tthis.droneThreads = threadPool;\n\t\tthis.packageService = packageService;\n\t}", "public void startThread() {\n\t\tif (this.serverConnectorUsed <= Byte.MAX_VALUE) {\n\t\t\tthis.serverConnectorUsed++;\n\t\t\tLOG.info(\"Running new thread. Now pool is \"+Integer.toString(MAX_THREADS-this.serverConnectorUsed)+\" / \"+Integer.toString(MAX_THREADS));\n\t\t}\n\t}", "public interface ThreadPool {\n /**\n * Returns the number of threads in the thread pool.\n */\n int getPoolSize();\n /**\n * Returns the maximum size of the thread pool.\n */\n int getMaximumPoolSize();\n /**\n * Returns the keep-alive time until the thread suicides after it became\n * idle (milliseconds unit).\n */\n int getKeepAliveTime();\n\n void setMaximumPoolSize(int maximumPoolSize);\n void setKeepAliveTime(int keepAliveTime);\n\n /**\n * Starts thread pool threads and starts forwarding events to them.\n */\n void start();\n /**\n * Stops all thread pool threads.\n */\n void stop();\n \n\n}", "@Override\n\tpublic ThreadPoolExecutor getThreadPool(final HystrixThreadPoolKey threadPoolKey,\n\t\t\tfinal HystrixProperty<Integer> corePoolSize, final HystrixProperty<Integer> maximumPoolSize,\n\t\t\tfinal HystrixProperty<Integer> keepAliveTime, final TimeUnit unit,\n\t\t\tfinal BlockingQueue<Runnable> workQueue) {\n\n\t\tLOGGER.debug(LOG_PREFIX + \"getThreadPool - default [threadPoolKey=\" + threadPoolKey.name() + \", corePoolSize=\"\n\t\t\t\t+ corePoolSize.get() + \", maximumPoolSize=\" + maximumPoolSize.get() + \", keepAliveTime=\"\n\t\t\t\t+ keepAliveTime.get() + \", unit=\" + unit.name() + \"], override with [threadPoolKey=\"\n\t\t\t\t+ threadPoolKey.name() + \", corePoolSize=\" + CORE_POOL_SIZE + \", maximumPoolSize=\" + MAX_POOL_SIZE\n\t\t\t\t+ \", keepAliveTime=\" + KEEP_ALIVE_TIME + \", unit=\" + TimeUnit.SECONDS.name() + \"]\");\n\n\t\tif (threadFactory != null) {\n\t\t\t// All threads will run as part of this application component.\n\t\t\tfinal ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(CORE_POOL_SIZE, MAX_POOL_SIZE,\n\t\t\t\t\tKEEP_ALIVE_TIME, TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(BLOCKING_QUEUE_SIZE),\n\t\t\t\t\tthis.threadFactory);\n\n\t\t\tLOGGER.debug(LOG_PREFIX + \"getThreadPool - initialized threadpool executor [threadPoolKey=\"\n\t\t\t\t\t+ threadPoolKey.name() + \"]\");\n\n\t\t\treturn threadPoolExecutor;\n\t\t} else {\n\t\t\tLOGGER.warn(LOG_PREFIX + \"getThreadPool - fallback to Hystrix default thread pool executor.\");\n\n\t\t\treturn super.getThreadPool(threadPoolKey, corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);\n\t\t}\n\t}", "public abstract T create() throws PoolException;", "public void testNewFixedThreadPool2() {\n final ExecutorService e = Executors.newFixedThreadPool(2, new SimpleThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }", "private static void threadPoolInit() {\n ExecutorService service = Executors.newCachedThreadPool();\n try {\n for (int i = 1; i <= 10; i++) {\n service.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" 办理业务...\");\n });\n try {\n TimeUnit.MILLISECONDS.sleep(1L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n service.shutdown();\n }\n }", "ThreadStart createThreadStart();", "public AbstractParallelAlgorithm(\n final ThreadPoolExecutor threadPool)\n {\n super();\n\n this.setThreadPool(threadPool);\n }", "public ForkJoinPoolMgr() {\n }", "public static void main(String[] args) {\n\t\tExecutorService pool = Executors.newFixedThreadPool(3);\n\t\t//ExecutorService pool = Executors.newSingleThreadExecutor();\n\t\t\n\t\tExecutorService pool2 = Executors.newCachedThreadPool();\n\t\t//this pool2 will add more thread into pool(when no other thread running), the new thread do not need to wait.\n\t\t//pool2 will delete un runing thread(unrun for 60 secs)\n\t\tThread t1 = new MyThread();\n\t\tThread t2 = new MyThread();\n\t\tThread t3 = new MyThread();\n\n\t\tpool.execute(t1);\n\t\tpool.execute(t2);\n\t\tpool.execute(t3);\n\t\tpool.shutdown();\n\t\t\n\t}", "public static void main(String[] args) {\n SomeRunnable obj1 = new SomeRunnable();\n SomeRunnable obj2 = new SomeRunnable();\n SomeRunnable obj3 = new SomeRunnable();\n \n System.out.println(\"obj1 = \"+obj1);\n System.out.println(\"obj2 = \"+obj2);\n System.out.println(\"obj3 = \"+obj3);\n \n //Create fixed Thread pool, here pool of 2 thread will created\n ExecutorService pool = Executors.newFixedThreadPool(3);\n ExecutorService pool2 = Executors.newFixedThreadPool(2);\n pool.execute(obj1);\n pool.execute(obj2);\n pool2.execute(obj3);\n \n pool.shutdown();\n pool2.shutdown();\n }", "public ThreadPool(SongValidator validator,int poolSize,int threadTimeout) {\n \t\tif(validator==null) {\n \t\t\tthrow new NullPointerException(\"Validator cannot be null\");\n \t\t} else if (poolSize<1) {\n \t\t\tthrow new IllegalArgumentException(\"Pool size must be greater than one\");\n \t\t} else if (threadTimeout<1) {\n \t\t\tthrow new IllegalArgumentException(\"Timeout must be greater than one\");\n \t\t}\n \t\tthis.validator = validator;\n \t\tthis.threadTimeout = threadTimeout;\n \t\tthreadCount = poolSize;\n \t\texpirators = new ArrayList<Expirator>(threadCount);\n \t\t\n \t\t//Needed for matching threads to their runnable expirators in the exception handler\n \t\tMap<Thread,Expirator> threadMap = new HashMap<Thread,Expirator>(); \n \t\t\n \t\t//Start up all of the threads\n \t\tfor(int i=0;i<threadCount;i++) {\n \t\t\tExpirator e = new Expirator(validator, this.threadTimeout);\n \t\t\tThread t = new Thread(e);\n \t\t\texpirators.add(e);\n \t\t\tthreadMap.put(t, e);\n \t\t\tt.start();\n \t\t}\n \t}", "public static ThreadPoolTaskScheduler createThreadPoolTaskScheduler(\r\n\t\t\tExecutorService executorService, \r\n\t\t\tFrequency frequency, String name, TimeZone timezone){\r\n\t\treturn new ThreadPoolTaskScheduler(executorService, frequency, name, timezone);\r\n\t}", "public ThreadPoolExecutor create_blocking_thread_pool( String name, int threads, int queue_size )\n {\n NamedThreadPoolExecutor ret = new NamedThreadPoolExecutor( name, queue_size, threads, threads, 60, TimeUnit.MINUTES);\n \n pool_list.add( ret );\n\n return ret;\n }", "public void initialize() {\n\n\t\t// Initialize taskList\n\t\tthis.taskList = new LinkedList<Task>();\n\n\t\t// create a new thread for total size of pool\n\t\tfor (int i = 0; i < this.poolSize; ++i) {\n\t\t\tthreadPool.add(new WorkerThread(this));\n\t\t}\n\n\t\t// Start each thread in thread pool\n\t\tfor (WorkerThread t : threadPool) {\n\t\t\tnew Thread(t).start();\n\t\t}\n\n\t}", "public interface ThreadPool<Job extends Runnable> {\n\n void execute(Job job);\n\n void shutDown();\n\n void addWorkers(int num);\n\n void removeWorkers(int num);\n\n int getJobSize();\n\n}", "private static void createThreadUsingAnonymousInnerClass() {\n\t\tRunnable rn = new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"My Anonymous Inner Class thread is executed.\");\n\t\t\t}\n\t\t};\n\n\t\tThread th = new Thread(rn);\n\t\tth.start();\n\t}", "public WorkerThread(int threadID) {\n\t\tthis.threadID = threadID;\n\t\tmanager = ThreadPoolManager.getInstance();\n\t\tsql = SQLDriver.getInstance();\n\t}", "public ThreadPool getDefaultThreadPool();", "private void init(int threadCount, Type type) {\r\n //The backend starts to polling threads.\r\n mPoolThread=new Thread(){\r\n @Override\r\n public void run() {\r\n Looper.prepare();\r\n mPoolThreadHandler=new Handler(){\r\n @Override\r\n public void handleMessage(Message msg) {\r\n //take a thread from the thread pool and execute it.\r\n mThreadPool.execute(getTask());\r\n try {\r\n mSemaphoreThreadPool.acquire();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n };\r\n //if this thread is finished, release a signal to the handler.\r\n mSemaphorePoolThreadHandler.release();\r\n Looper.loop();\r\n }\r\n };\r\n mPoolThread.start();\r\n //Get the maximum available memory for our service.\r\n int maxMemory= (int) Runtime.getRuntime().maxMemory();\r\n int cacheMemory = maxMemory / 8;//8\r\n mLruCache=new LruCache<String, Bitmap>(cacheMemory){\r\n @Override\r\n protected int sizeOf(String key, Bitmap value) {\r\n return value.getRowBytes()*value.getHeight();\r\n }\r\n };\r\n mThreadPool= Executors.newFixedThreadPool(threadCount);\r\n mTaskQueue=new LinkedList<>();\r\n mType=type==null? Type.LIFO:type;\r\n mSemaphoreThreadPool=new Semaphore(threadCount);\r\n\r\n }", "Executor getWorkerpool() {\n\t return pool.getWorkerpool();\n\t}", "public void setWorkerpool(Executor workerpool) {\n\t pool.setWorkerpool(workerpool);\n\t}", "protected void addWorker(IWorkerConfiguration workerCfg) {\n if (!workerCfg.activate())\n return;\n \n log.debug(\"Adding new worker to the pool\");\n \n try {\n Class taskClass = Class.forName(workerCfg.getWorkerTask());\n\n int numWorker = (workerCfg.getConcurrentExecutions() == 0 ? 1 : workerCfg.getConcurrentExecutions());\n for(int i = 0; i < numWorker; i++) {\n RunningWorkerInstance rWorker = new RunningWorkerInstance();\n rWorker.workerName = workerCfg.getName();\n rWorker.task = (IWorkerTask) taskClass.newInstance();\n rWorker.task.setName(workerCfg.getName() + \":\" + i);\n rWorker.task.setParameters(workerCfg.getTaskParameters());\n\n Interval interval = workerCfg.getInterval();\n if (interval != null) \n rWorker.runningWorker = pool.scheduleWithFixedDelay(rWorker.task, 0, interval.getLength(), interval.getUnit());\n else\n rWorker.runningWorker = pool.submit(rWorker.task);\n\n workers.add(rWorker);\n \n log.debug(\"Added new worker instance [\" + workerCfg.getName() + \"] to the pool\");\n }\n } catch (ClassNotFoundException cnfe) {\n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task class [\" + workerCfg.getWorkerTask() + \"] could not be found\");\n } catch (InstantiationException ie) { \n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task class [\" + workerCfg.getWorkerTask() + \"] could not be created\");\n } catch (IllegalAccessException iae) {\n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task class [\" + workerCfg.getWorkerTask() + \"] could not be created\");\n } catch (ClassCastException cce) {\n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task class [\" + workerCfg.getWorkerTask() + \"] is not a WorkerTask object\");\n } catch (TaskConfigurationException tce) {\n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task could not be configured correctly [\" + tce.getMessage() + \"]\");\n }\n }", "@Bean\n @ConditionalOnMissingBean(Executor.class)\n @ConditionalOnProperty(name = \"async\", prefix = \"slack\", havingValue = \"true\")\n public Executor threadPool() {\n ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();\n executor.setCorePoolSize(5);\n executor.setMaxPoolSize(30);\n executor.setQueueCapacity(20);\n executor.setThreadNamePrefix(\"slack-thread\");\n return executor;\n }", "OMMPool getPool();", "public void testNewCachedThreadPool2() {\n final ExecutorService e = Executors.newCachedThreadPool(new SimpleThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }", "@Nonnull\r\n\tpublic static <T> Observable<T> invokeAsync(\r\n\t\t\t@Nonnull final Runnable run,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\trun.run();\r\n\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t} catch (Throwable ex) {\r\n\t\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t}", "static ExecutorService boundedNamedCachedExecutorService(int maxThreadBound, String poolName, long keepalive, int queueSize, RejectedExecutionHandler abortPolicy) {\n\n ThreadFactory threadFactory = new NamedThreadFactory(poolName);\n LinkedBlockingQueue<Runnable> queue = new LinkedBlockingQueue<Runnable>(queueSize);\n\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(\n maxThreadBound,\n maxThreadBound,\n keepalive,\n TimeUnit.SECONDS,\n queue,\n threadFactory,\n abortPolicy\n );\n\n threadPoolExecutor.allowCoreThreadTimeOut(true);\n\n return threadPoolExecutor;\n }", "private UniqueElementSingleThreadWorker()\n {\n _state = ActivityState.INITIALIZING;\n _taskQueue = new UniqueTagQueue<String, Runnable>();\n \n _taskThread = new Thread(\"UniqueElementSingleThreadWorker-\" + COUNTER.incrementAndGet())\n {\n @Override\n public void run()\n {\n while(true)\n {\n try\n {\n Runnable task = _taskQueue.blockingPop();\n if(task == SHUTDOWN_TASK)\n {\n break;\n }\n task.run();\n }\n catch(InterruptedException ex) { }\n //Catch run time exceptions that the runnable might throw so that the thread does not die\n catch(RuntimeException ex)\n {\n ErrorReporter.reportUncaughtException(ex);\n }\n }\n \n _state = ActivityState.SHUT_DOWN;\n }\n };\n }", "public static ScheduledExecutorService createNewScheduler() {\n return Executors.newScheduledThreadPool(Runtime.getRuntime().availableProcessors() * 2);\n }", "static Pool newConstantPool() {\n return new ConstantPool();\n }", "public static @NonNull Executor newPacketDispatcher(@NonNull DriverEnvironment driverEnvironment) {\n // a cached pool with a thread idle-lifetime of 30 seconds\n // rejected tasks will be executed on the calling thread (See ThreadPoolExecutor.CallerRunsPolicy)\n // at least one thread is always idling in this executor\n var maximumPoolSize = threadAmount(driverEnvironment);\n return ExecutorServiceUtil.newVirtualThreadExecutor(\"Packet-Dispatcher-\", threadFactory -> new ThreadPoolExecutor(\n maximumPoolSize,\n maximumPoolSize,\n 30L,\n TimeUnit.SECONDS,\n new LinkedBlockingQueue<>(),\n threadFactory,\n DEFAULT_REJECT_HANDLER));\n }", "public ExternalThreadPool(NIOWorker nw, int size) {\n super(nw, size);\n\n // Prepare bash piper for bindings\n installDir = nw.getInstallDir();\n String workingDir = nw.getWorkingDir();\n piperScript = installDir + PIPER_SCRIPT_RELATIVE_PATH + PIPE_SCRIPT_NAME;\n\n // Prepare pipes (one per thread)\n writePipeFiles = new String[size];\n readPipeFiles = new String[size];\n for (int i = 0; i < size; ++i) {\n writePipeFiles[i] = workingDir + PIPE_FILE_BASENAME + UUID.randomUUID().hashCode();\n readPipeFiles[i] = workingDir + PIPE_FILE_BASENAME + UUID.randomUUID().hashCode();\n }\n\n // Prepare data pipes\n writeDataPipeFile = workingDir + PIPE_FILE_BASENAME + UUID.randomUUID().hashCode();\n readDataPipeFile = workingDir + PIPE_FILE_BASENAME + UUID.randomUUID().hashCode();\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"PIPE Script: \" + piperScript);\n\n StringBuilder writes = new StringBuilder();\n writes.append(\"WRITE PIPE Files: \");\n for (int i = 0; i < writePipeFiles.length; ++i) {\n writes.append(writePipeFiles[i]).append(\" \");\n }\n writes.append(\"\\n\");\n LOGGER.debug(writes.toString());\n\n StringBuilder reads = new StringBuilder();\n reads.append(\"READ PIPE Files: \");\n for (int i = 0; i < readPipeFiles.length; ++i) {\n reads.append(readPipeFiles[i]).append(\" \");\n }\n reads.append(\"\\n\");\n LOGGER.debug(reads.toString());\n\n // Data pipes\n LOGGER.debug(\"WRITE DATA PIPE: \" + writeDataPipeFile);\n LOGGER.debug(\"READ DATA PIPE: \" + readDataPipeFile);\n }\n\n // Init main ProcessBuilder\n init();\n\n // Init TaskResultReader to retrieve task results (one per thread)\n taskResultReader = new TaskResultReader[size];\n for (int i = 0; i < size; ++i) {\n taskResultReader[i] = new TaskResultReader(readPipeFiles[i]);\n }\n\n // Add Shutdown Hook to ensure all sub-processes are closed\n LOGGER.debug(\"Add ExternalExecutor shutdown hook\");\n Runtime.getRuntime().addShutdownHook(new Ender(this));\n }", "public void testNewFixedThreadPool3() {\n try {\n ExecutorService e = Executors.newFixedThreadPool(2, null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "public Thread getThread(int type, String name, Runnable r);", "public Pooled(T t, Pool<T> pool, LogTarget logTarget) {\n\t\t\tcontent = t;\n\t\t\tthis.pool = pool;\n\t\t\tthis.logTarget = logTarget;\n\t\t}", "public void testCreateThreadPool_int()\n {\n System.out.println( \"createThreadPool\" );\n int numRequestedThreads = 0;\n ThreadPoolExecutor result = ParallelUtil.createThreadPool( ParallelUtil.OPTIMAL_THREADS );\n ThreadPoolExecutor expected = ParallelUtil.createThreadPool( -1 );\n assertEquals( expected.getMaximumPoolSize(), result.getMaximumPoolSize() );\n \n result = ParallelUtil.createThreadPool( -1 );\n assertTrue( result.getMaximumPoolSize() > 0 );\n \n numRequestedThreads = 10;\n result = ParallelUtil.createThreadPool( numRequestedThreads );\n assertEquals( numRequestedThreads, result.getMaximumPoolSize() );\n }", "public void execute(final DispatchTask task, final DeliverTask callback)\n {\n // Note that we associate a callback with a task via the thread used to \n // execute the task. In general, a free slot in the pool (i.e., m_pool[i] is \n // null) can be used to set-up a new thread. Also note that we need to \n // update the LRU index if we change the pool.\n synchronized(m_lock)\n {\n if(m_closed)\n {\n // We are closed hence, spin-of a new thread for the new task.\n final PooledThread result = new PooledThread();\n \n // Set-up the thread and associate the task with the callback.\n result.reset(task, callback);\n \n // release the thread immediately since we don't pool anymore.\n result.release();\n \n return;\n }\n \n // Search in the pool for a free thread.\n for (int i = 0; i < m_pool.length; i++)\n {\n // o.k. we found a free slot now set-up a new thread for it.\n if (null == m_pool[i])\n {\n m_pool[i] = new PooledThread();\n\n m_pool[i].reset(task, callback);\n \n m_index.add(new Integer(i));\n \n return;\n }\n else if (m_pool[i].available())\n {\n // we found a free thread now set it up.\n m_pool[i].reset(task, callback);\n \n final Integer idx = new Integer(i);\n \n m_index.remove(idx);\n \n m_index.add(idx);\n \n return;\n }\n }\n\n // The pool is full and no threads are available hence, spin-off a new\n // thread and add it to the pool while decoupling the least recently used\n // one. This assumes that older threads are likely to take longer to \n // become available again then younger ones.\n final int pos = ((Integer) m_index.remove(0)).intValue();\n \n m_index.add(new Integer(pos));\n \n m_pool[pos].release();\n\n m_pool[pos] = new PooledThread();\n\n m_pool[pos].reset(task, callback);\n }\n }", "public void testNewSingleThreadExecutor1() {\n final ExecutorService e = Executors.newSingleThreadExecutor();\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }", "public ResourcePoolImpl() {\r\n this((ResourcePool) null);\r\n }", "public interface PoolFactory<T> {\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @return the t\n\t */\n\tpublic T create();\n}", "private static BufferPoolMXBean createBufferPoolMXBean(BufferPool paramBufferPool)\n/* */ {\n/* 227 */ new BufferPoolMXBean() {\n/* */ private volatile ObjectName objname;\n/* */ \n/* */ public ObjectName getObjectName() {\n/* 231 */ ObjectName localObjectName = this.objname;\n/* 232 */ if (localObjectName == null) {\n/* 233 */ synchronized (this) {\n/* 234 */ localObjectName = this.objname;\n/* 235 */ if (localObjectName == null) {\n/* 236 */ localObjectName = Util.newObjectName(\"java.nio:type=BufferPool,name=\" + this.val$pool\n/* 237 */ .getName());\n/* 238 */ this.objname = localObjectName;\n/* */ }\n/* */ }\n/* */ }\n/* 242 */ return localObjectName;\n/* */ }\n/* */ \n/* */ public String getName() {\n/* 246 */ return this.val$pool.getName();\n/* */ }\n/* */ \n/* */ public long getCount() {\n/* 250 */ return this.val$pool.getCount();\n/* */ }\n/* */ \n/* */ public long getTotalCapacity() {\n/* 254 */ return this.val$pool.getTotalCapacity();\n/* */ }\n/* */ \n/* */ public long getMemoryUsed() {\n/* 258 */ return this.val$pool.getMemoryUsed();\n/* */ }\n/* */ };\n/* */ }", "public void startPollingThread() {\n pool = ThreadUtil.startThread(polling);\n }", "CreateWorkerResult createWorker(CreateWorkerRequest createWorkerRequest);", "public void testCreateThreadPool_0args()\n {\n System.out.println( \"createThreadPool\" );\n ThreadPoolExecutor result = ParallelUtil.createThreadPool();\n ThreadPoolExecutor expected = ParallelUtil.createThreadPool(\n ParallelUtil.OPTIMAL_THREADS );\n assertEquals( expected.getMaximumPoolSize(), result.getMaximumPoolSize() );\n }", "public void testNewSingleThreadExecutor2() {\n final ExecutorService e = Executors.newSingleThreadExecutor(new SimpleThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }", "protected EventExecutor newChild(ThreadFactory threadFactory, Object... args) throws Exception {\n/* 57 */ return (EventExecutor)new LocalEventLoop(this, threadFactory);\n/* */ }", "Fork createFork();", "public EngineConcurrency() {\n Runtime runtime = Runtime.getRuntime();\n int threads = runtime.availableProcessors();\n if (threads > 1) {\n threads++;\n }\n this.executor = Executors.newFixedThreadPool(threads);\n }", "public synchronized void retThread(WorkerThread w) {\n\t\tfor (int i = 0; i < this.threadPool.size(); ++i) {\n\t\t\tif (this.threadPool.get(i) == w) {\n\t\t\t\tthis.threadPool.get(i).setAvailable(true);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public CacheThreadPool(final int size)\n {\n synchronized (m_lock)\n {\n m_pool = new PooledThread[size];\n \n // We assume that a list is expanded once it reaches half of its capacity\n // and it doesn't harm if the assumption is wrong.\n m_index = new ArrayList(size + 1 + (size / 2));\n }\n }", "public static void AddWorker(ExecutorService worker)\n\t{\n\t\t//TODO something reasonable\n\t}", "public BankHall(int serverNum, int ticketWindow) {\n serverThreadPool = Executors.newFixedThreadPool(serverNum);\n ticketWindowThreadPool = Executors.newFixedThreadPool(ticketWindow);\n }", "public PooledConnection newInstance() {\n return new PooledConnection(pool);\n }", "public static void main(String[] args)\n\t{\n\t\tint coreCount = Runtime.getRuntime().availableProcessors();\n\t\t//Create the pool\n\t\tExecutorService ec = Executors.newCachedThreadPool(); //Executors.newFixedThreadPool(coreCount);\n\t\tfor(int i=0;i<100;i++) \n\t\t{\n\t\t\t//Thread t = new Thread(new Task());\n\t\t\t//t.start();\n\t\t\tec.execute(new Task());\n\t\t\tSystem.out.println(\"Thread Name under main method:-->\"+Thread.currentThread().getName());\n\t\t}\n\t\t\n\t\t//for scheduling tasks\n\t\tScheduledExecutorService service = Executors.newScheduledThreadPool(10);\n\t\tservice.schedule(new Task(), 10, TimeUnit.SECONDS);\n\t\t\n\t\t//task to run repetatively 10 seconds after previous taks completes\n\t\tservice.scheduleWithFixedDelay(new Task(), 15, 10, TimeUnit.SECONDS);\n\t\t\n\t}", "@Singleton\n\t@Provides\n\tExecutorService provideExecutorService() {\n\t\tThreadFactory threadFactory = new ThreadFactory() {\n\t\t\tprivate final AtomicInteger threadNumber = new AtomicInteger(1);\n\n\t\t\t@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\t// Two-digit counter, used in load test.\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(threadName);\n\t\t\t\tth.setDaemon(false);\n\t\t\t\treturn th;\n\t\t\t}\n\t\t};\n\t\treturn threadCount >= 0\n\t\t\t\t? Executors.newFixedThreadPool(threadCount, threadFactory)\n\t\t\t\t: Executors.newCachedThreadPool(threadFactory);\n\t}", "public void testCastNewSingleThreadExecutor() {\n final ExecutorService e = Executors.newSingleThreadExecutor();\n try (PoolCleaner cleaner = cleaner(e)) {\n try {\n ThreadPoolExecutor tpe = (ThreadPoolExecutor)e;\n shouldThrow();\n } catch (ClassCastException success) {}\n }\n }", "public static void main(String[] args) {\n CreateRunnable createRunnable = new CreateRunnable();\n Thread thread = new Thread(createRunnable);\n thread.start();\n }" ]
[ "0.63870883", "0.63577855", "0.6184597", "0.60940135", "0.6074407", "0.60733503", "0.60646063", "0.60076946", "0.5982475", "0.5970563", "0.59662074", "0.5965663", "0.59592474", "0.5937821", "0.5930815", "0.5918094", "0.58833456", "0.5864445", "0.58413744", "0.583355", "0.5808727", "0.5778767", "0.57695603", "0.5737134", "0.5733699", "0.5728016", "0.57138765", "0.57016397", "0.56944925", "0.56803393", "0.5674787", "0.5652172", "0.5630978", "0.56165916", "0.56100374", "0.5551014", "0.55452853", "0.55406046", "0.5494713", "0.54891014", "0.54758084", "0.5467651", "0.546389", "0.54314446", "0.542739", "0.5426297", "0.53937346", "0.53671736", "0.53444266", "0.53293556", "0.5323524", "0.5322554", "0.5318953", "0.53149724", "0.53108037", "0.5281197", "0.5270319", "0.52646136", "0.52602416", "0.5258715", "0.52582556", "0.5250118", "0.5247398", "0.5246263", "0.52447575", "0.5239037", "0.5227049", "0.5225212", "0.52176535", "0.52032787", "0.517684", "0.5159669", "0.5142621", "0.51348937", "0.51331705", "0.5129692", "0.51250297", "0.5124561", "0.5122448", "0.51185817", "0.51103574", "0.5107797", "0.5101311", "0.5100776", "0.5092385", "0.5071899", "0.50668687", "0.50637776", "0.5056679", "0.5052371", "0.5047331", "0.5044645", "0.50390214", "0.50348985", "0.5034144", "0.5033002", "0.5027769", "0.5023647", "0.5020703", "0.50201863" ]
0.56911063
29
Public access methods Returns the pool hosting this thread.
public StealingPool getPool() { return pool; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ThreadPool getPool()\r\n {\r\n return threadPool_;\r\n }", "Executor getWorkerpool() {\n\t return pool.getWorkerpool();\n\t}", "public BoneCP getPool() {\n return pool;\n }", "private synchronized WorkerThread getThread() {\n\t\tfor (int i = 0; i < this.threadPool.size(); ++i) {\n\t\t\tif (this.threadPool.get(i).available()) {\n\t\t\t\tthis.threadPool.get(i).setAvailable(false);\n\t\t\t\treturn this.threadPool.get(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public ForkJoinPool getPool() {\n return pool;\n }", "ActorThreadPool getThreadPool();", "protected ClassPool getClassPool() {\r\n return pool;\r\n }", "OMMPool getPool();", "private JedisPool getPool() {\n if (pool == null) {\n JedisPoolConfig config = new JedisPoolConfig();\n config.setMinIdle(poolMinIdle);\n config.setMaxIdle(poolMaxIdle);\n config.setMaxTotal(poolMaxTotal);\n pool = new JedisPool(config, host, port, (int) timeout);\n logger.debug(\"Creando jedisPool@ \" + host + \":\" + port + \". MinIdle/MaxIdle/MaxTotal: \" + poolMinIdle + \"/\" + poolMaxIdle + \"/\" + poolMaxTotal + \". Timeout: \" + timeout);\n }\n return pool;\n }", "protected synchronized ExecutorService getService() {\r\n if(service == null) {\r\n //System.out.println(\"creating an executor service with a threadpool of size \" + threadPoolSize);\r\n service = Executors.newFixedThreadPool(threadPoolSize, new ThreadFactory() {\r\n private int count = 0;\r\n \r\n public Thread newThread(Runnable r) {\r\n Thread t = new Thread(r, \"tile-pool-\" + count++);\r\n t.setPriority(Thread.MIN_PRIORITY);\r\n t.setDaemon(true);\r\n return t;\r\n }\r\n });\r\n }\r\n return service;\r\n }", "public static ThreadPool getInstance()\r\n {\r\n if(instance == null)\r\n {\r\n instance = new ThreadPool();\r\n }\r\n return instance;\r\n }", "public boolean getPool() {\n\t\treturn this.pool;\n\t}", "@NotNull\n protected ReusablePool<AbstractReadablePacket> getPool() {\n return requireNonNull(ClassUtils.unsafeCast(getPacketType().getPool()));\n }", "public String poolName();", "public ThreadCapsuleInt getThreadCapsule(){\n\n\tif(poolLocked)return null;\n\telse{\n\n\t tempThreadCapsule=(ThreadCapsuleInt)passivePool.pop();\n\n\t if(tempThreadCapsule == null) return tempThreadCapsule;\n\t else{\n\n\t\tactivePool.add(tempThreadCapsule);\n\t\tactivePoolSize=activePool.getPresentSize();\n\t\tpassivePoolSize=passivePool.getPresentSize();\n\n\t\treturn tempThreadCapsule;\n\n\t }//else closing\n\n\t}//else closing\n\n }", "public ThreadPool getThreadPool(int numericIdForThreadpool) throws NoSuchThreadPoolException;", "WorkerThread getWorker() {\n WorkerThread worker = null;\n\n synchronized (idle) {\n if (idle.size() > 0) {\n worker = (WorkerThread) idle.remove(0);\n }\n }\n\n return (worker);\n }", "public FreeClientPool getClientPool()\n\t{\n\t\treturn this.peer.getClientPool();\n\t}", "public static BoneCP getPool() throws Exception\n {\n if (_pool == null)\n {\n throw new Exception(\"The connection pool was not initialized!\");\n }\n\n return _pool;\n }", "MaximaProcess getProcess() {\r\n \t\trequestTimeHistory.add(System.currentTimeMillis());\r\n \r\n \t\t// Start a new one as we are going to take one...\r\n \t\tif (startupThrotle.availablePermits() > 0) {\r\n \t\t\tstartProcess();\r\n \t\t}\r\n \r\n \t\tMaximaProcess mp = null;\r\n \t\twhile (mp == null) {\r\n \t\t\ttry {\r\n \t\t\t\tmp = pool.take();\r\n \t\t\t} catch (InterruptedException e) {\r\n \t\t\t\t// If we failed to get one, wait a bit.\r\n \t\t\t\te.printStackTrace();\r\n \t\t\t\ttry {\r\n \t\t\t\t\tThread.sleep(3);\r\n \t\t\t\t} catch (InterruptedException ee) {\r\n \t\t\t\t\tee.printStackTrace();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\tusedPool.add(mp);\r\n \t\tmp.activate();\r\n \r\n \t\treturn mp;\r\n \t}", "public int getPoolSize() {\n return poolSize;\n }", "int getPoolNumber();", "int getPoolSize();", "private ExecutorService getDroneThreads() {\n\t\treturn droneThreads;\n\t}", "public ThreadPool getThreadPool(String threadpoolId) throws NoSuchThreadPoolException;", "public synchronized HttpThread getThread() {\n \t\tadjustThreadCount();\n \n \t\twhile (upper > 0) {\n \t\t\tint count = idleThreads.size();\n \t\t\tif (count > 0) {\n \t\t\t\tint i = count - 1;\n \n \t\t\t\tHttpThread thread = (HttpThread) idleThreads.elementAt(i);\n \t\t\t\tidleThreads.removeElementAt(i);\n \t\t\t\tif (thread.getPriority() != priority) {\n \t\t\t\t\tthread.setPriority(priority);\n \t\t\t\t}\n \t\t\t\tactiveThreads.addElement(thread);\n \t\t\t\t//new Exception((size-i)+\" Threads are at work!\").printStackTrace();\n \t\t\t\tif (Http.DEBUG) {\n \t\t\t\t\thttp.logDebug(thread.getName() + \": becoming active\"); //$NON-NLS-1$\n \t\t\t\t}\n \n \t\t\t\treturn thread;\n \t\t\t}\n \t\t\ttry {\n \t\t\t\twait();\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\t// ignore and check exit condition\n \t\t\t}\n \t\t}\n \n \t\treturn null;\n \t}", "public synchronized Object get() throws InterruptedException {\n while (pool.isEmpty()) {\n wait();\n }\n Object result = pool.remove(0);\n notifyAll();\n return result;\n }", "public int getPoolIndex() {\n return poolIndex;\n }", "public int getPoolIndex() {\n return poolIndex;\n }", "public SubResource backendAddressPool() {\n return this.backendAddressPool;\n }", "public SelectorPool getSelectorPool() {\n return selectorPool;\n }", "protected abstract void createPool();", "public ThreadPoolExecutor getForLightWeightBackgroundTasks() {\n return mForLightWeightBackgroundTasks;\n }", "protected SmfPvMonitorPool getMonitorPool() {\n return this.mplLiveData;\n }", "public ThreadPoolExecutor getForBackgroundTasks() {\n return mForBackgroundTasks;\n }", "public ThreadPool getDefaultThreadPool();", "public interface ThreadPool {\n /**\n * Returns the number of threads in the thread pool.\n */\n int getPoolSize();\n /**\n * Returns the maximum size of the thread pool.\n */\n int getMaximumPoolSize();\n /**\n * Returns the keep-alive time until the thread suicides after it became\n * idle (milliseconds unit).\n */\n int getKeepAliveTime();\n\n void setMaximumPoolSize(int maximumPoolSize);\n void setKeepAliveTime(int keepAliveTime);\n\n /**\n * Starts thread pool threads and starts forwarding events to them.\n */\n void start();\n /**\n * Stops all thread pool threads.\n */\n void stop();\n \n\n}", "public String getName() {\n return poolName;\n }", "public boolean hasPool() {\r\n return mPool;\r\n }", "PooledThread()\n {\n setDaemon(true);\n\n start();\n }", "@Override\n\tpublic ThreadPoolExecutor getThreadPool(final HystrixThreadPoolKey threadPoolKey,\n\t\t\tfinal HystrixProperty<Integer> corePoolSize, final HystrixProperty<Integer> maximumPoolSize,\n\t\t\tfinal HystrixProperty<Integer> keepAliveTime, final TimeUnit unit,\n\t\t\tfinal BlockingQueue<Runnable> workQueue) {\n\n\t\tLOGGER.debug(LOG_PREFIX + \"getThreadPool - default [threadPoolKey=\" + threadPoolKey.name() + \", corePoolSize=\"\n\t\t\t\t+ corePoolSize.get() + \", maximumPoolSize=\" + maximumPoolSize.get() + \", keepAliveTime=\"\n\t\t\t\t+ keepAliveTime.get() + \", unit=\" + unit.name() + \"], override with [threadPoolKey=\"\n\t\t\t\t+ threadPoolKey.name() + \", corePoolSize=\" + CORE_POOL_SIZE + \", maximumPoolSize=\" + MAX_POOL_SIZE\n\t\t\t\t+ \", keepAliveTime=\" + KEEP_ALIVE_TIME + \", unit=\" + TimeUnit.SECONDS.name() + \"]\");\n\n\t\tif (threadFactory != null) {\n\t\t\t// All threads will run as part of this application component.\n\t\t\tfinal ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(CORE_POOL_SIZE, MAX_POOL_SIZE,\n\t\t\t\t\tKEEP_ALIVE_TIME, TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(BLOCKING_QUEUE_SIZE),\n\t\t\t\t\tthis.threadFactory);\n\n\t\t\tLOGGER.debug(LOG_PREFIX + \"getThreadPool - initialized threadpool executor [threadPoolKey=\"\n\t\t\t\t\t+ threadPoolKey.name() + \"]\");\n\n\t\t\treturn threadPoolExecutor;\n\t\t} else {\n\t\t\tLOGGER.warn(LOG_PREFIX + \"getThreadPool - fallback to Hystrix default thread pool executor.\");\n\n\t\t\treturn super.getThreadPool(threadPoolKey, corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);\n\t\t}\n\t}", "int getExecutorCorePoolSize();", "final ConcurrentMap<Object, ManagedConnectionPool> getManagedConnectionPools()\n {\n return mcpPools;\n }", "public int getActivePoolSize(){return activePoolSize;}", "public String getConcurrentPool() {\n return getPropertyAsString(CONCURRENT_POOL, CONCURRENT_POOL_DEFAULT);\n }", "public synchronized Connection getConnection() throws Exception{\n System.err.println(\"START ConnectionPool.getConnection()\");\n PooledConnection pcon = null;\n System.err.print(\"pool size = \");\n System.err.println(pool.size());\n // Find a connection not in use\n for(int x=0; x<pool.size();x++){\n pcon = (PooledConnection)pool.elementAt(x);\n //Check to see if this connection is in use\n if(!pcon.inUse()){\n // Mark it as in use\n pcon.setInUse(true);\n // Return the JDBC conn stored in the PooledConnection object\n return pcon.getConnection();\n }\n }\n //Could not find a free connection, create and add a new one\n try{\n //Create a new JDBC Connection\n Connection con = createConnection();\n //Create a new PooledConnection, passing it the JDBC Connection\n pcon = new PooledConnection(con);\n //Mark the connection in use\n pcon.setInUse(true);\n //Add the new PooledConnection object to the pool\n pool.addElement(pcon);\n }catch(Exception e){\n System.err.println(e.getMessage() + \" in ConnectionPool.getConnection()\");\n }\n System.err.println(\"END ConnectionPool.getConnection()\");\n return pcon.getConnection();\n }", "public static ObjectPool getInstance() {\n\t\tif (objectPoolInstance == null) { \n\t synchronized (ObjectPool.class) { \n\t if (objectPoolInstance == null) { \n\t \tobjectPoolInstance = new ObjectPool(); \n\t } \n\t }\n\t } \n\treturn objectPoolInstance; \n\t}", "int getExecutorPoolSize();", "public static Connection getConnection() {\n\n if (concount<conns-1) {\n concount++;\n } else {\n concount=0;\n }\n return con_pool[concount];\n }", "public final int getCapacity()\n {\n return m_pool.length;\n }", "public Thread getThread();", "static BlocksPool getInstance() {\n if (instance == null) {\n synchronized (BlocksPool.class) { // can be easily changed to lock-free\n if (instance == null) {\n instance = new BlocksPool();\n }\n }\n }\n return instance;\n }", "@Bean(name = \"process-response\")\n\tpublic Executor threadPoolTaskExecutor() {\n\t\tThreadPoolTaskExecutor x = new ThreadPoolTaskExecutor();\n\t\tx.setCorePoolSize(poolProcessResponseCorePoolSize);\n\t\tx.setMaxPoolSize(poolProcessResponseMaxPoolSize);\n\t\treturn x;\n\t}", "@VisibleForTesting\n static int getInstanceThreadPoolSize() {\n return instanceThreadPoolSize;\n }", "public NamePool getNamePool() {\n return config.getNamePool();\n }", "@ProviderType\npublic interface ThreadPoolMBean {\n\n /**\n * Retrieve the block policy of the thread pool.\n * \n * @return the block policy\n */\n String getBlockPolicy();\n\n /**\n * Retrieve the active count from the pool's Executor.\n * \n * @return the active count or -1 if the thread pool does not have an Executor\n */\n int getExecutorActiveCount();\n\n /**\n * Retrieve the completed task count from the pool's Executor.\n * \n * @return the completed task count or -1 if the thread pool does not have an Executor\n */\n long getExecutorCompletedTaskCount();\n\n /**\n * Retrieve the core pool size from the pool's Executor.\n * \n * @return the core pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorCorePoolSize();\n\n /**\n * Retrieve the largest pool size from the pool's Executor.\n * \n * @return the largest pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorLargestPoolSize();\n\n /**\n * Retrieve the maximum pool size from the pool's Executor.\n * \n * @return the maximum pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorMaximumPoolSize();\n\n\n /**\n * Retrieve the pool size from the pool's Executor.\n * \n * @return the pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorPoolSize();\n\n\n /**\n * Retrieve the task count from the pool's Executor. This is the total number of tasks, which\n * have ever been scheduled to this threadpool. They might have been processed yet or not.\n * \n * @return the task count or -1 if the thread pool does not have an Executor\n */\n long getExecutorTaskCount();\n \n \n /**\n * Retrieve the number of tasks in the work queue of the pool's Executor. These are the\n * tasks which have been already submitted to the threadpool, but which are not yet executed.\n * @return the number of tasks in the work queue -1 if the thread pool does not have an Executor\n */\n long getExcutorTasksInWorkQueueCount();\n\n /**\n * Return the configured max thread age.\n *\n * @return The configured max thread age.\n * @deprecated Since version 1.1.1 always returns -1 as threads are no longer retired\n * but instead the thread locals are cleaned up (<a href=\"https://issues.apache.org/jira/browse/SLING-6261\">SLING-6261</a>)\n */\n @Deprecated\n long getMaxThreadAge();\n\n /**\n * Return the configured keep alive time.\n * \n * @return The configured keep alive time.\n */\n long getKeepAliveTime();\n\n /**\n * Return the configured maximum pool size.\n * \n * @return The configured maximum pool size.\n */\n int getMaxPoolSize();\n\n /**\n * Return the minimum pool size.\n * \n * @return The minimum pool size.\n */\n int getMinPoolSize();\n\n /**\n * Return the name of the thread pool\n * \n * @return the name\n */\n String getName();\n\n /**\n * Return the configuration pid of the thread pool.\n * \n * @return the pid\n */\n String getPid();\n\n /**\n * Return the configured priority of the thread pool.\n * \n * @return the priority\n */\n String getPriority();\n\n /**\n * Return the configured queue size.\n * \n * @return The configured queue size.\n */\n int getQueueSize();\n\n /**\n * Return the configured shutdown wait time in milliseconds.\n * \n * @return The configured shutdown wait time.\n */\n int getShutdownWaitTimeMs();\n\n /**\n * Return whether or not the thread pool creates daemon threads.\n * \n * @return The daemon configuration.\n */\n boolean isDaemon();\n\n /**\n * Return whether or not the thread pool is configured to shutdown gracefully.\n * \n * @return The graceful shutdown configuration.\n */\n boolean isShutdownGraceful();\n\n /**\n * Return whether or not the thread pool is in use.\n * \n * @return The used state of the pool.\n */\n boolean isUsed();\n\n}", "void bind(WorkerPool workerPool);", "public static AABBPool getAABBPool() {\n\t\treturn (AABBPool) theAABBLocalPool.get();\n\t}", "public SingleWorkerPoolExecutor() {\n this.worker = new Worker(taskQueue);\n\n // Nothing bad as worker is blocked by an emptiness of a task\n // queue. Adding to this task queue will be possible after worker pool\n // finishes construction\n worker.start();\n }", "public final T get()\r\n/* 120: */ {\r\n/* 121:147 */ if (this.maxCapacityPerThread == 0) {\r\n/* 122:148 */ return newObject(NOOP_HANDLE);\r\n/* 123: */ }\r\n/* 124:150 */ Stack<T> stack = (Stack)this.threadLocal.get();\r\n/* 125:151 */ DefaultHandle<T> handle = stack.pop();\r\n/* 126:152 */ if (handle == null)\r\n/* 127: */ {\r\n/* 128:153 */ handle = stack.newHandle();\r\n/* 129:154 */ handle.value = newObject(handle);\r\n/* 130: */ }\r\n/* 131:156 */ return handle.value;\r\n/* 132: */ }", "public Collection getThreads();", "java.lang.String getPoolName();", "private HikariDataSource getPool() {\n switch (DBtype) {\n case \"mariadb\":\n MariadbPool();\n break;\n case \"postgresql\":\n PostgresPool();\n break;\n }\n return null;\n\n }", "public ExecutorService shutdown() {\n\t\tpool.shutdown();\n\t\treturn pool;\n\t}", "public MainThreadExecutor getHandler() {\n return handler;\n }", "public ExecutorService getExecutorService() {\n return executorService;\n }", "public ExecutorService getExecutorService() {\n return executorService;\n }", "public ExecutorService getExecutorService() {\n return executorService;\n }", "public ExecutorService getExecutorService() {\n return executorService;\n }", "public static ConnectionPool getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new ConnectionPool();\n\t\t}\n\t\treturn instance;\n\t}", "public TaskProcessorHandle getHandle() {\n\treturn new TaskProcessorHandle(this);\n }", "public PooledConnection newInstance() {\n return new PooledConnection(pool);\n }", "public Thread getThread() {\n return thread;\n }", "public int getWorkerThreads() {\n return workerThreads;\n }", "public static Executor currentExecutor() {\n return (Executor)Thread.currentThread();\n }", "private ConnectionPool() {\n connections = new LinkedBlockingQueue<>(DEFAULT_POOL_SIZE);\n this.init();\n }", "int getMinPoolSize();", "Connection createConnection(ExecutorService pool);", "public static Connection getConnection() throws InterruptedException {\n\t\treturn instance.connectionPool.take();\n\t}", "int getMaximumPoolSize();", "public int getThreadUsed();", "public Long getPoolId();", "@Override\n public int getNumIdle() {\n return _pool.size();\n }", "static Pool newConstantPool() {\n return new ConstantPool();\n }", "public synchronized Thread getThread() {\n return thread;\n }", "public boolean isPoolLocked(){return poolLocked;}", "public static Message obtain() {\n// synchronized (sPoolSync) {\n// if (sPool != null) {\n// Message m = sPool;\n// sPool = m.next;\n// m.next = null;\n// sPoolSize--;\n// return m;\n// }\n// }\n return new Message();\n }", "public Pooled<T> get(LogTarget lt) throws APIException {\n\t\tPooled<T> pt;\n\t\tsynchronized (list) {\n\t\t\tif (list.isEmpty()) {\n\t\t\t\tpt = null;\n\t\t\t} else {\n\t\t\t\tpt = list.remove();\n\t\t\t\t--count;\n\t\t\t\tcreator.reuse(pt.content);\n\t\t\t}\n\t\t}\n\t\tif (pt == null) {\n\t\t\tif (spares < max_range)\n\t\t\t\t++spares;\n\t\t\tpt = new Pooled<T>(creator.create(), this, lt);\n\t\t\tlt.log(\"Pool created \", creator.toString());\n\t\t} else {\n\t\t\tif (spares > 1)\n\t\t\t\t--spares;\n\t\t}\n\t\treturn pt;\n\t}", "public boolean isPoolingEnabled();", "public ThreadPool getTimeoutThreadPool()\n {\n synchronized (timeoutThreadPoolLock)\n {\n if (timeoutThreadPool == null)\n {\n int maxNumberThreads = MAX_NUM_TIMEOUT_THREADS_DEFAULT;\n int maxTimeoutQueueSize = -1;\n \n BasicThreadPool pool = new BasicThreadPool(\"HTTP timeout\");\n log.debug(this + \" created new simulated timeout thread pool: \" + pool);\n Object param = configuration.get(MAX_NUM_TIMEOUT_THREADS);\n if (param instanceof String)\n {\n try\n {\n maxNumberThreads = Integer.parseInt((String) param);\n }\n catch (NumberFormatException e)\n {\n log.warn(\"maxNumberThreads parameter has invalid format: \" + param);\n }\n }\n else if (param != null)\n {\n log.warn(\"maxNumberThreads parameter must be a string in integer format: \" + param);\n }\n\n param = configuration.get(MAX_TIMEOUT_QUEUE_SIZE);\n if (param instanceof String)\n {\n try\n {\n maxTimeoutQueueSize = Integer.parseInt((String) param);\n }\n catch (NumberFormatException e)\n {\n log.warn(\"maxTimeoutQueueSize parameter has invalid format: \" + param);\n }\n }\n else if (param != null)\n {\n log.warn(\"maxTimeoutQueueSize parameter must be a string in integer format: \" + param);\n }\n\n pool.setMaximumPoolSize(maxNumberThreads);\n if (maxTimeoutQueueSize > 0)\n {\n pool.setMaximumQueueSize(maxTimeoutQueueSize);\n }\n pool.setBlockingMode(BlockingMode.RUN);\n timeoutThreadPool = pool;\n }\n }\n \n return timeoutThreadPool;\n }", "public synchronized PartialSolution getWork() {\n\t\tif (tasks.size() == 0) { // workpool gol\n\t\t\tnWaiting++;\n\t\t\t/* condtitie de terminare:\n\t\t\t * nu mai exista nici un task in workpool si nici un worker nu e activ \n\t\t\t */\n\t\t\tif (nWaiting == nThreads) {\n\t\t\t\tready = true;\n\t\t\t\t/* problema s-a terminat, anunt toti ceilalti workeri */\n\t\t\t\tnotifyAll();\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\twhile (!ready && tasks.size() == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.wait();\n\t\t\t\t\t} catch(Exception e) {e.printStackTrace();}\n\t\t\t\t}\n\n\t\t\t\tif (ready){\n\t\t\t\t\t/* s-a terminat prelucrarea */\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tnWaiting--;\t\t\n\t\t\t}\n\t\t}\n\t\treturn tasks.remove();\n\n\t}", "ScheduledExecutorService getExecutorService();", "public Thread getUsedBy()\n\t{\n\t\treturn usedBy;\n\t}", "public static Executor m13822l() {\n synchronized (f12483o) {\n if (f12471c == null) {\n f12471c = AsyncTask.THREAD_POOL_EXECUTOR;\n }\n }\n return f12471c;\n }", "public BlockingExecutorService getBackgroundLoader() {\n\t\treturn backgroundLoader;\n\t}", "@Override\n public ExecutorService getWrapped() {\n return es;\n }", "private Runnable pollSubmission() {\n StealingPool p = pool;\n while (p.hasQueuedSubmissions()) {\n Runnable t;\n if (tryActivate() && (t = p.pollSubmission()) != null)\n return t;\n }\n return null;\n }", "public cto.framework.service.schema.types.PoolClassType getPoolClass() {\r\n return this._poolClass;\r\n }", "public Node getNode() {\n return thread;\n }", "static ExecutorService boundedNamedCachedExecutorService(int maxThreadBound, String poolName, long keepalive, int queueSize, RejectedExecutionHandler abortPolicy) {\n\n ThreadFactory threadFactory = new NamedThreadFactory(poolName);\n LinkedBlockingQueue<Runnable> queue = new LinkedBlockingQueue<Runnable>(queueSize);\n\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(\n maxThreadBound,\n maxThreadBound,\n keepalive,\n TimeUnit.SECONDS,\n queue,\n threadFactory,\n abortPolicy\n );\n\n threadPoolExecutor.allowCoreThreadTimeOut(true);\n\n return threadPoolExecutor;\n }" ]
[ "0.7979127", "0.73902017", "0.7246936", "0.7208213", "0.701206", "0.6945397", "0.6858531", "0.676902", "0.66112065", "0.65490335", "0.65023905", "0.6415974", "0.64006287", "0.6384501", "0.63245976", "0.6268954", "0.6217787", "0.6202842", "0.6198658", "0.61323446", "0.61137116", "0.6078081", "0.6072463", "0.6064294", "0.6034664", "0.60251284", "0.60052454", "0.6002348", "0.6002348", "0.59872144", "0.5986754", "0.59643716", "0.59572965", "0.59434444", "0.59397286", "0.5919528", "0.5919065", "0.5913112", "0.59068584", "0.5901088", "0.58779126", "0.58681476", "0.5867606", "0.5836149", "0.57761323", "0.57710403", "0.57580554", "0.5754914", "0.5750408", "0.57402134", "0.57380205", "0.5736994", "0.5728871", "0.57228804", "0.57166517", "0.5708896", "0.5705099", "0.56993836", "0.56906825", "0.56883085", "0.56864923", "0.5671018", "0.5668961", "0.5667876", "0.566526", "0.5662097", "0.5662097", "0.5662097", "0.5662097", "0.5658039", "0.5631132", "0.5616675", "0.5610867", "0.560286", "0.5600829", "0.55913126", "0.5585656", "0.55806696", "0.5578158", "0.5576513", "0.55755913", "0.55748016", "0.55618185", "0.555563", "0.5547974", "0.5547242", "0.5541861", "0.55296326", "0.5523449", "0.5520049", "0.5519969", "0.551703", "0.5513893", "0.55102104", "0.549705", "0.5494061", "0.5489353", "0.5489176", "0.54886943", "0.54835314" ]
0.6720076
8
Returns the index number of this thread in its pool. The returned value ranges from zero to the maximum number of threads (minus one) that have ever been created in the pool. This method may be useful for applications that track status or collect results perworker rather than pertask.
public int getPoolIndex() { return poolIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final int getNbThread() {\n return nbThread;\n }", "public abstract int getThreadNumber();", "public int getNumOfThreads() {\n return numOfThreads;\n }", "public int getNumberOfThreads() { return numberOfThreads; }", "public int getThreadCount() throws ResourceConfigurationException {\n return cpeFactory.getProcessingUnitThreadCount();\n }", "public int getThreadCount() {\n\t\treturn this.threadCalls.size();\n\t}", "public int getNumThreads() {\n return numThreads;\n }", "public int getThreadPoolNumericId(String threadpoolId);", "public int getNumberOfThreads(){\n return numberOfThreads;\n }", "int getPoolNumber();", "public int getThreadUsed();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getNumberOfThreads() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(NUMBEROFTHREADS_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getNumberOfThreads() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(NUMBEROFTHREADS_PROP.get());\n }", "public int getIntValue() {\n if (getValueIndex() <= 0)\n return 0;\n return ((IntEntry) getPool().getEntry(getValueIndex())).getValue();\n }", "public static int getThreadCount() {\r\n\t\treturn THREAD_MX_BEAN.getThreadCount();\r\n\t}", "public int getThreadId() {\n\n return threadId.get();\n\n }", "@VisibleForTesting\n static int getInstanceThreadPoolSize() {\n return instanceThreadPoolSize;\n }", "public static int getMaxThreadCount(){\n return Integer.parseInt(properties.getProperty(\"maxThreadCount\"));\n }", "public int getWorkerThreads() {\n return workerThreads;\n }", "private static int th() {\n return (int) Thread.currentThread().getId();\n }", "public int getThreadCallCount(int i) {\n\t\treturn this.threadCalls.get(i);\n\t}", "@Override\n public int getJobCount () {\n return pool.getJobCount();\n }", "public int getTaskIndex() {\n return (Integer) commandData.get(CommandProperties.TASK_ID);\n }", "public Object getNumExecutors() {\n return this.numExecutors;\n }", "public long threadId();", "@Override\n public int getNumIdle() {\n return _pool.size();\n }", "public long getThreads() { return threads; }", "public int getRunnableCount() {\n return queue.size();\n }", "double get_num(ThreadContext tc, RakudoObject classHandle);", "public long getNextThreadID() {\n return (Long) getProperty(\"nextThreadID\");\n }", "protected int getLeaderIndex() {\n // -1 means leader not found\n String leaderId = getLeaderId();\n if (WAITING_FOR_ELECTION.equals(leaderId)) {\n return -1;\n }\n String leaderAddress = leaderId.replace('_', ':');\n int index = 0;\n for (InetSocketAddress address : mClusterAddresses) {\n if (address.toString().equals(leaderAddress)) {\n return index;\n }\n index++;\n }\n return -1;\n }", "public int letterPoolIndex(){\n return this.letterPoolIndex;\n }", "public int getPoolSize() {\n return poolSize;\n }", "public int UnassignedCount() {\n \t\treturn jobqueue.size();\n \t}", "public static int getPortFromPool(){\n\n\t\tint port = -1;\n\t\tif(availablePorts.size() <= 0){\n\t\t\treturn -1;\n\t\t}\n\t\tport = availablePorts.get(0).intValue();\n\t\t\n\t\treturn port;\n\t}", "public RangeStatistic getSpareThreadCount() {\n return null;\n }", "public int getChildThreads() {\n\t\tfinal String key = ConfigNames.CHILD_THREADS.toString();\n\n\t\tif (getJson().isNull(key)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn getJson().getInt(key);\n\t}", "public int getMaxPartitionsRunInParallel() {\n return maxThreads;\n }", "public static int getNumberCreated() {\n return numberOfPools;\n }", "public int getParentThreads() {\n\t\tfinal String key = ConfigNames.PARENT_THREADS.toString();\n\n\t\tif (getJson().isNull(key)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn getJson().getInt(key);\n\t}", "long getExecutorTaskCount();", "public static int getPeakThreadCount() {\r\n\t\treturn THREAD_MX_BEAN.getPeakThreadCount();\r\n\t}", "public synchronized int getThreads()\n/* */ {\n/* 181 */ return this.threads;\n/* */ }", "org.apache.xmlbeans.XmlInt xgetPoolNumber();", "int getNumberOfTileDownloadThreads();", "public long getMaxPoolTime()\n {\n if (_maxPoolTime > Long.MAX_VALUE / 2)\n return -1;\n else\n return _maxPoolTime;\n }", "private int nbThread(Integer parameterIndex) throws ExceptionMalformedInput\n {\n this.nbThread = parseParameterInt(args, parameterIndex+1);\n//TODO check that the number is >=1\n return parameterIndex + 1;\n }", "public int getTotalWorkerCount() {\n return this.workerCount;\n }", "int getMaxConcurrent();", "public static int getCurrentStepNumber() {\n return threadStepNumber.get();\n }", "public java.lang.Integer getTaskCount() {\n return taskCount;\n }", "public int getFree() {\n\t\t\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(!this.get(i).clientAlive) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t\t\n\t}", "public long getTaskCount() {\r\n\t\treturn taskCount;\r\n\t}", "int getExecutorActiveCount();", "public Integer getThreadId() {\n\t\treturn threadId;\n\t}", "public int getSelectionIndex () {\r\n\tcheckWidget();\r\n\tint [] args = {OS.Pt_ARG_PG_CURRENT_INDEX, 0, 0};\r\n\tOS.PtGetResources (handle, args.length / 3, args);\r\n\treturn args [1] == OS.Pt_PG_INVALID ? -1 : args [1];\r\n}", "public int getNumTasks() {\n return tasks.size();\n }", "private int getRunningNum() {\n\t\treturn am.getRunningAppProcesses().size();\r\n\t}", "public int workers() {\n return workers_;\n }", "public int getThreadPoolChooserNumericId(String componentId);", "private int getPoolSize() {\n\t\tint numberOfTasks = SpectralDescriptionType.values().length;\n\t\tint procs = Runtime.getRuntime().availableProcessors();\n\t\treturn numberOfTasks < procs ? numberOfTasks : procs > 1 ? procs - 1\n\t\t\t\t: 1;\n\t}", "public int size() {\n\t\treturn threadAreas.size();\n\t}", "public int getCount() {\n lock.lock();\n try {\n System.out.println(Thread.currentThread().getName() + \" gets Count: \" + count.incrementAndGet());\n return count.intValue();\n } finally {\n lock.unlock();\n }\n }", "long getThreadId();", "public int getNumberOfTasks() {\n\t\treturn tasks.size();\n\t}", "int getMaximumPoolSize();", "@Nullable\n abstract Integer getInstanceIndex();", "public static int getNumberOfCpuThreads() {\n\t\treturn Runtime.getRuntime().availableProcessors();\n\t}", "public int getWorkers() {\r\n return workers;\r\n }", "public int getCurrentOperationId(){\n int nmr = 1;\n operationLock.lock();\n try (\n Statement s = rawDataSource.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n ResultSet res = s.executeQuery(\n \"SELECT OP_ID FROM APP.OPERATIONS ORDER BY OP_ID ASC\")) {\n\n if (res.last()) {\n nmr = Integer.parseInt(res.getString(\"OP_ID\")) + 1;\n }\n } catch (SQLException ex) {\n return nmr;\n }\n\n operationLock.unlock();\n return nmr;\n }", "public Integer getIdx() {\r\n\t\treturn idx;\r\n\t}", "Long getRunningCount();", "public int getCapacity() {\n\t\tfinal String key = ConfigNames.CHILD_THREADS.toString();\n\n\t\tif (getJson().isNull(key)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn getJson().getInt(key);\n\t}", "@ApiModelProperty(value = \"The number of active threads in the NiFi.\")\r\n public Integer getActiveThreadCount() {\r\n return activeThreadCount;\r\n }", "public long getThreadId() {\n return threadId;\n }", "public int getBaseOffset() {\n\t\treturn this.threadCalls.size() + 1;\n\t}", "public long get_counter() {\n return (long)getUIntBEElement(offsetBits_counter(), 32);\n }", "public Long getMaxConcurrentConnection() {\n return this.MaxConcurrentConnection;\n }", "public Integer getThreadPoolBlockingQueueSize() {\n String tc = getConfig().getProperty(THREAD_POOL_BLOCKING_QUEUE_SIZE).getValue();\n Integer ret = new Integer(DEFAULT_THREAD_POOL_BLOCKING_QUEUE_SIZE);\n if (tc != null){\n try {\n ret = Integer.valueOf(tc);\n } catch (Exception ex){\n ret = new Integer(DEFAULT_THREAD_POOL_BLOCKING_QUEUE_SIZE);\n }\n }\n return ret;\n }", "int numberOfWorkers();", "public int get() {\n if(smallestFreeIndex == max) {\n return -1;\n }\n int num = smallestFreeIndex;\n bitset.set(smallestFreeIndex);\n //Only scan for the next free bit, from the previously known smallest free index\n smallestFreeIndex = bitset.nextClearBit(smallestFreeIndex);\n return num;\n }", "public int getCurrentIdx() {\n\t\treturn this.currentIdx;\n\t}", "public static native int getConcurrency();", "int getNumberOfTasksOnCriticalPath();", "public Number getIdx() {\n return (Number)getAttributeInternal(IDX);\n }", "public Integer getInProgressStackInstancesCount() {\n return this.inProgressStackInstancesCount;\n }", "public int getUnmanaged() {\n int ret = nextLocal++;\n return ret;\n }", "int getExecutorMaximumPoolSize();", "@Override\n\tpublic Long getNbInstance() {\n\t\treturn dao.getNb();\n\t}", "public Integer index() {\n return this.index;\n }", "public int getIdx() {\n return idx;\n }", "public int getMaxCount() {\n return maxCount_;\n }", "public long getThreadId() {\n return threadId_;\n }", "public int index() {\n\t\treturn this.index;\n\t}", "public int getMaxCount() {\n return maxCount_;\n }", "public int getMaxInstances() {\n return maxInstances;\n }", "public Integer getIndex() {\n return index;\n }", "@ApiModelProperty(value = \"\")\n public Long getThreadCount() {\n return threadCount;\n }", "public long getThreadId() {\n return threadId_;\n }" ]
[ "0.67946273", "0.6514643", "0.6489241", "0.6438347", "0.6375809", "0.6375734", "0.6350575", "0.6328818", "0.6318395", "0.6306931", "0.6245823", "0.62439126", "0.6206784", "0.6108531", "0.60868436", "0.60272276", "0.6001825", "0.59428763", "0.5903449", "0.5892155", "0.5875525", "0.58551824", "0.5850915", "0.5850494", "0.5826126", "0.58200973", "0.5798436", "0.5788262", "0.5778772", "0.57512796", "0.57406193", "0.5730499", "0.5719687", "0.57073784", "0.5649689", "0.5644966", "0.56377244", "0.5637657", "0.5637581", "0.5625246", "0.56071824", "0.5604674", "0.56037945", "0.55656236", "0.5562229", "0.55536205", "0.55403715", "0.553937", "0.55358946", "0.5534263", "0.5533344", "0.5528212", "0.55268455", "0.5513699", "0.55115956", "0.5503368", "0.5502291", "0.548503", "0.5484256", "0.5480972", "0.5475176", "0.5470378", "0.54680544", "0.54597324", "0.5447355", "0.5445317", "0.5436021", "0.5430063", "0.5428889", "0.54282874", "0.54200834", "0.54125977", "0.54096705", "0.5408566", "0.5388006", "0.5384899", "0.53813463", "0.5378524", "0.53713363", "0.5369041", "0.5365405", "0.53582716", "0.53398216", "0.5326949", "0.53131676", "0.531209", "0.5309035", "0.52961653", "0.52929586", "0.52873045", "0.5284353", "0.52816373", "0.5277196", "0.5274948", "0.5269232", "0.52687126", "0.5268205", "0.52601206", "0.5251873" ]
0.69212043
1
Tries to set status to active; fails on contention.
private boolean tryActivate() { if (!active) { if (!pool.tryIncrementActiveCount()) return false; active = true; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setActiveStatus(Boolean active){ this.status = active; }", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "public void setActiveStatus( String activeStatus ) {\n this.activeStatus = activeStatus;\n }", "public void setActiveStatus( String activeStatus ) {\n this.activeStatus = activeStatus;\n }", "public void setStatus( boolean avtive ){\r\n\t\tthis.activ = avtive;\r\n\t}", "public void setStatus(int status);", "public void setStatus(int status);", "public void status(boolean b) {\n status = b;\n }", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}", "public void setStatus(boolean newStatus);", "@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}", "protected synchronized void setActive(final boolean b) {\n active = b;\n }", "private void setStatus() {\n\t\t// adjust the status of the rest\n\t\tif (rest.getState().equals(RestState.INACTIVE)) {\n\t\t\t// set status to heating\n\t\t\trest.setState(RestState.HEATING);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.HEATING) && temperatureSensor.getTemperature() >= (rest.getTemperature() - tolerance)) {\n\t\t\t// set status to active\n\t\t\trest.setState(RestState.ACTIVE);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.ACTIVE)\n\t\t\t\t&& (new GregorianCalendar().getTimeInMillis() - rest.getActive().getTimeInMillis()) / 1000 / 60 > rest.getDuration()) {\n\t\t\t// time is up :)\n\t\t\tif (rest.isContinueAutomatically()) {\n\t\t\t\trest.setState(RestState.COMPLETED);\n\t\t\t} else {\n\t\t\t\trest.setState(RestState.WAITING_COMPLETE);\n\t\t\t}\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t}\n\t}", "void setStatus(int status);", "public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}", "public void setStatus(Status newStatus){\n status = newStatus;\n }", "@Override\n\tpublic void setStatus(int status);", "public void setStatus(boolean status) {\n\tthis.status = status;\n }", "public void setActive() {\n\t\tactive = true;\n\t}", "public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }", "private void setComponentStatus() {}", "public void setStatus(int status) {\n\t\tthis.status = (byte) status;\n\t\trefreshStatus();\n\t}", "public void active(boolean value) {\n\t\tactive = value;\n\t}", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "void setStatus(STATUS status);", "public void setStateToActive() {\n state = VALID_STATES[0];\n }", "public void changeStatus(){\n Status = !Status;\n\n }", "protected void setInactive() {\r\n\t\tactive = false;\r\n\t}", "@Override\n\tpublic CompletableFuture<Void> setActive(boolean internal) {\n\t\treturn manager.execute(new GdbSetActiveThreadCommand(manager, id, internal));\n\t}", "public void setStatus(int status) {\n STATUS = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "@Override\n\tpublic void setStatus(boolean status) {\n\t\t_candidate.setStatus(status);\n\t}", "@Override\r\n public boolean updateActiveStatus(ActiveStatusModel pStatusModel) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void setActive(Boolean active)\r\n/* */ {\r\n/* 207 */ this.active = active;\r\n/* */ }", "@Override\n\tpublic void setActive(Boolean active) {\n\t\tthis.active = active;\n\t}", "public void setStatus(Status status) {\r\n this.status = status;\r\n }", "public abstract boolean setActive(boolean active);", "@Override\n public void setActive(boolean active) {\n this.active = active;\n }", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setActive(boolean active)\r\n\t{\r\n\t\tif (this.active != active)\r\n\t\t{\r\n\t\t\tthis.active = active;\r\n\t\t\tapply();\r\n\t\t}\r\n\t}", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(String status) { this.status = status; }", "public void setActive(boolean value) {\n this.active = value;\n }", "public void setActive(boolean active) {\r\n this.active = active;\r\n }", "public void setStatus(int status)\r\n\t{\r\n\t\tthis.m_status = status;\r\n\t}", "public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }", "public void setStatus(long status) {\r\n this.status = status;\r\n }", "public void setActive(Boolean active) {\n this.active = active;\n }", "public void setStatus(JobStatus status);", "public void setActive(boolean active){\r\n\t\tactive_ = active;\r\n\t}", "public void setActive(boolean active) { \n this.active = active;\n }", "public void setStatus(Boolean s){ status = s;}", "public void setActive() {\n setState(true);\n }", "public void setStatus(Status status)\n {\n this.status = status;\n }", "public void setStatus(CanaryStatus status) {\n this.status = status;\n }", "public void setStatus(java.lang.Object status) {\n this.status = status;\n }", "@Override\n public void activate(boolean status) {\n godPower.activate(status);\n }", "public void setActive(Boolean active) {\n\t\tthis.Active = active;\n\t}", "public void setActive(java.lang.Boolean active) {\n this.active = active;\n }", "public void setStatus(int newStatus) {\n status = newStatus;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setActive(boolean active)\n {\n this.active = active;\n }", "@Override\n public void setConnectionStatus( int status )\n {\n }", "public void setStatus(StatusEnum status) {\n this.status = status;\n }", "public void setActive(boolean active) {\r\n this.active = active;\r\n }", "public void setActive(boolean active);", "public void setActive(boolean active);", "public void setActive(boolean active);", "public void setIsActive(Byte isActive) {\n this.isActive = isActive;\n }", "public void setStatus(int status) {\n\t\tswitch (status) {\r\n\t\tcase 1:\r\n\t\t\tthis.status = FRESHMAN;\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.status = SOPHOMORE;\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.status = JUNIOR;\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.status = SENIOR;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}" ]
[ "0.7411158", "0.70628166", "0.6862412", "0.6862412", "0.6804948", "0.6575729", "0.6575729", "0.6544874", "0.65337694", "0.6522608", "0.65099776", "0.6495297", "0.6489023", "0.646174", "0.64581376", "0.64515257", "0.6448635", "0.64289284", "0.6414537", "0.6411495", "0.6402073", "0.63901544", "0.6389157", "0.6377483", "0.6377483", "0.6374083", "0.6373515", "0.6371171", "0.6364736", "0.6358631", "0.6349187", "0.6345509", "0.6345509", "0.63392", "0.6334973", "0.6332427", "0.6331601", "0.6315334", "0.631337", "0.63097054", "0.6308513", "0.6308513", "0.630604", "0.63012105", "0.63012105", "0.63012105", "0.62902844", "0.62902844", "0.6289608", "0.6289608", "0.6289608", "0.6289608", "0.6289608", "0.6289608", "0.6289608", "0.6289608", "0.6289608", "0.6289608", "0.6289608", "0.6289608", "0.6289608", "0.6289608", "0.6289608", "0.6289608", "0.6289608", "0.6289608", "0.6289608", "0.62872535", "0.6285749", "0.6282869", "0.6270763", "0.62663317", "0.6261041", "0.6258601", "0.6247201", "0.6241664", "0.623828", "0.6235523", "0.62344515", "0.62317866", "0.6228115", "0.6224939", "0.6224683", "0.62192357", "0.62113434", "0.6206643", "0.62033427", "0.62033427", "0.62002593", "0.62002593", "0.62002593", "0.62002593", "0.6196768", "0.619454", "0.6186837", "0.6183762", "0.6183078", "0.6183078", "0.6183078", "0.6179499", "0.6178632" ]
0.0
-1
Tries to set status to inactive; fails on contention.
private boolean tryInactivate() { if (active) { if (!pool.tryDecrementActiveCount()) return false; active = false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setInactive() {\r\n\t\tactive = false;\r\n\t}", "public void setInactive() {\n\t\tactive = false;\n\t}", "public void deactivate() {\n\t\tactive_status = false;\n\t}", "public final void setInactive(java.lang.Boolean inactive)\r\n\t{\r\n\t\tsetInactive(getContext(), inactive);\r\n\t}", "void markInactive();", "void statusUpdate(boolean invalid);", "void unsetStatus();", "@Override\n\tpublic boolean isInactive();", "public final void setInactive(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Boolean inactive)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Inactive.toString(), inactive);\r\n\t}", "private void handleActiveFailure() {\n\t\tif (isElectedBackup) {\n\t\t\tterminateThread.set(true);\n\t\t\tnew Thread(LoadBalancer.getNewActiveLoadBalancer()).start();\n\t\t\tfor (RemoteLoadBalancer remoteLoadBalancer : remoteLoadBalancers) {\n\t\t\t\tremoteLoadBalancer.resetState();\n\t\t\t}\n\t\t} else {\n\t\t\tcurrentActive.setState(LoadBalancerState.PASSIVE);\n\t\t\tcurrentActive.setIsElectedBackup(false);\n\t\t\ttry {\n\t\t\tcurrentActive = remoteLoadBalancers.stream().filter(x -> x.isElectedBackup()).findFirst().get();\n\t\t\t} catch (NoSuchElementException e) {\n\t\t\t\tcurrentActive = null;\n\t\t\t}\n\t\t\tresetActiveHeartbeatTimer();\n\t\t}\n\t}", "public void changeStatus(){\n Status = !Status;\n\n }", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "public void setActiveStatus(Boolean active){ this.status = active; }", "void setInactive(boolean aInactive) {\n/* 4829 */ this.inactive = aInactive;\n/* */ }", "public void setStatus( boolean avtive ){\r\n\t\tthis.activ = avtive;\r\n\t}", "void resetStatus();", "private void setStatus() {\n\t\t// adjust the status of the rest\n\t\tif (rest.getState().equals(RestState.INACTIVE)) {\n\t\t\t// set status to heating\n\t\t\trest.setState(RestState.HEATING);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.HEATING) && temperatureSensor.getTemperature() >= (rest.getTemperature() - tolerance)) {\n\t\t\t// set status to active\n\t\t\trest.setState(RestState.ACTIVE);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.ACTIVE)\n\t\t\t\t&& (new GregorianCalendar().getTimeInMillis() - rest.getActive().getTimeInMillis()) / 1000 / 60 > rest.getDuration()) {\n\t\t\t// time is up :)\n\t\t\tif (rest.isContinueAutomatically()) {\n\t\t\t\trest.setState(RestState.COMPLETED);\n\t\t\t} else {\n\t\t\t\trest.setState(RestState.WAITING_COMPLETE);\n\t\t\t}\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t}\n\t}", "public void setStatus(int status);", "public void setStatus(int status);", "public void status(boolean b) {\n status = b;\n }", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}", "public boolean isInactive();", "@Override\n\tpublic void setStatus(int status);", "void channelInactive() throws Exception;", "void channelInactive() throws Exception;", "@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}", "void setStatus(int status);", "public void setUnstable() {\n this.unstable = true;\n this.unstableTimeline.play();\n if (this.online == true) {\n this.statusLed.setStatus(\"alert\");\n this.statusLed.setFastBlink(true);\n }\n }", "@Override\n\tpublic boolean isInactive() {\n\t\treturn model.isInactive();\n\t}", "void setStatus(STATUS status);", "public void setStatus(boolean newStatus);", "public void deactivate(){\n state = State.invisible;\n active = false;\n }", "private void setGameStatus() {\n this.gameStatus = false;\n }", "public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }", "public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}", "public boolean getStatus()\n\t{\n\t\treturn idle;\n\t}", "public void deactivate() {\n this.active = false;\n }", "public void turnOff() {\n update(0,0,0);\n this.status = false;\n }", "public void setStatus(long status) {\r\n this.status = status;\r\n }", "public void setStatus(boolean status) {\n\tthis.status = status;\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "@Override\n\tpublic boolean updateStatus() {\n\t\treturn false;\n\t}", "public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }", "public void setStatus(int status) {\n STATUS = status;\n }", "@Override\n\tpublic CompletableFuture<Void> setActive(boolean internal) {\n\t\treturn manager.execute(new GdbSetActiveThreadCommand(manager, id, internal));\n\t}", "public void setStatus(int status) {\n\t\tthis.status = (byte) status;\n\t\trefreshStatus();\n\t}", "private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }", "public abstract void updateStatus() throws Throwable;", "protected void status(String status) throws InvalidKeyException {\n task.setStatus(status);\n }", "@Override\n\tpublic void setMaxInactiveInterval(int arg0) {\n\t}", "public void setStatus(JobStatus status);", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "boolean isInactive() {\n/* 4818 */ return this.inactive;\n/* */ }", "public void setStatus(Status newStatus){\n status = newStatus;\n }", "protected void clearStatus() throws LRException\n\t{\n\t\tgetBackground();\n\t\tbackground.clearStatus();\n\t}", "public void deactivate() {\n\tif (canBeActive()) {\n\t\tmActive = false;\n\t} else {\n\t\tthrow new IllegalStateException(getClass().getSimpleName() + \" isn't allowed to be deactivated\");\n\t}\n}", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "private void statusCheck() {\n\t\tif(status.equals(\"waiting\")) {if(waitingPlayers.size()>1) status = \"ready\";}\n\t\tif(status.equals(\"ready\")) {if(waitingPlayers.size()<2) status = \"waiting\";}\n\t\tif(status.equals(\"start\")) {\n\t\t\tif(players.size()==0) status = \"waiting\";\n\t\t}\n\t\tview.changeStatus(status);\n\t}", "public void setStatus(EnumVar status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(java.lang.Object status) {\n this.status = status;\n }", "public void setStatus(int status)\r\n\t{\r\n\t\tthis.m_status = status;\r\n\t}", "public static void putStatusOffline()\n {\n try\n {\n DatabaseData.updateUserStatusOffline(userId);\n }catch(Exception e) {\n putStatusOffline();\n }\n }", "public void interrupted(Status currentStatus)\n\t{\n\t\t// ignore.\n\t}", "public void setStatus(@NotNull Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\r\n this.status = status;\r\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(StatusEnum status) {\n this.status = status;\n }", "public void setStatus(Boolean s){ status = s;}", "public void setStatus(String stat)\n {\n status = stat;\n }", "public void setStatus(String status) { this.status = status; }", "@Override\n\tpublic void setMaxInactiveInterval(int arg0) {\n\n\t}", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void brakeFailureStatus() {\n \tthis.brakeFailureActive = this.trainModelGUI.brakeFailStatus();\n }", "@Override\r\n public boolean updateActiveStatus(ActiveStatusModel pStatusModel) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }" ]
[ "0.7273582", "0.70279163", "0.66301656", "0.6605252", "0.63524157", "0.62965655", "0.62654954", "0.6261977", "0.6259838", "0.62205607", "0.62171644", "0.62124693", "0.61982226", "0.6165122", "0.61048865", "0.60952604", "0.60266906", "0.601054", "0.601054", "0.60042673", "0.5978715", "0.593957", "0.5934653", "0.5927103", "0.5927103", "0.59155405", "0.5913653", "0.5913418", "0.58958054", "0.5889551", "0.587231", "0.5842235", "0.58364683", "0.58349943", "0.58287615", "0.5822385", "0.57990706", "0.5788829", "0.57795054", "0.57640684", "0.57606965", "0.57606965", "0.57587796", "0.5747604", "0.5746345", "0.5737556", "0.57258916", "0.57229495", "0.5719077", "0.5714925", "0.5714683", "0.5710834", "0.57066905", "0.57066905", "0.5706556", "0.57057285", "0.5705677", "0.5695141", "0.5691762", "0.5691762", "0.5691762", "0.5691762", "0.5691762", "0.5691762", "0.5691762", "0.5691762", "0.5691762", "0.5691762", "0.5691762", "0.5691762", "0.5691762", "0.5691762", "0.5691762", "0.5691762", "0.5691762", "0.5691762", "0.5691762", "0.568917", "0.5681951", "0.56815207", "0.56815207", "0.56606275", "0.56601024", "0.5658451", "0.56539226", "0.56530106", "0.5648333", "0.5647954", "0.5647954", "0.5647954", "0.56441945", "0.56367874", "0.5632995", "0.56297505", "0.56233174", "0.5609622", "0.5609622", "0.5603751", "0.5603751", "0.5600747", "0.5598377" ]
0.0
-1
Computes next value for random victim probe. Scans don't require a very high quality generator, but also not a crummy one. Marsaglia xorshift is cheap and works well.
private static int xorShift(int r) { r ^= (r << 13); r ^= (r >>> 17); return r ^ (r << 5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int next() {\r\n\t\t// Get a random value\r\n\t\tint index = random.nextInt(values.length);\r\n\t\tint byteValue = values[index] + 128; // For an unsigned value\r\n\t\tint value = byteValue * 3;\r\n\t\t// If byteValue = 255 (max), then choose between 765000 and 799993\r\n\t\tif (byteValue == 255) {\r\n\t\t\tvalue += random.nextInt(800-765+1);\r\n\t\t}\r\n\t\t// Otherwise, choose between value and value + 2 (inc)\r\n\t\telse {\r\n\t\t\tvalue += random.nextInt(3);\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "public static int randomNext() { return 0; }", "protected int nextInt(int p_75902_1_) {\n/* 135 */ int var2 = (int)((this.chunkSeed >> 24) % p_75902_1_);\n/* */ \n/* 137 */ if (var2 < 0)\n/* */ {\n/* 139 */ var2 += p_75902_1_;\n/* */ }\n/* */ \n/* 142 */ this.chunkSeed *= (this.chunkSeed * 6364136223846793005L + 1442695040888963407L);\n/* 143 */ this.chunkSeed += this.worldGenSeed;\n/* 144 */ return var2;\n/* */ }", "@Override\r\n\tpublic int computeNextVal(boolean prediction) {\n\t\treturn (int) (Math.random()*10)%3;\r\n\t}", "private static byte getNext() {\n return (byte)Tool.getRandomlyFromRange(Byte.MIN_VALUE, Byte.MAX_VALUE);\n }", "private int getNextMutator()\n\t{\n\t\t\n\t\tif (mutatingHeuristics.size()==0)\n\t\t\treturn -1;\n\t\telse\n\t\t\treturn mutatingHeuristics.get(rng.nextInt(mutatingHeuristics.size()));\n\t}", "int next(int bits);", "static final int fast_rand()\n\t{\n\t\tRz = 36969 * (Rz & 65535) + (Rz >>> 16);// ((Rz >>> 16) & 65535);\n\t\tRw = 18000 * (Rw & 65535) + (Rw >>> 16);// ((Rw >>> 16) & 65535);\n\t\treturn (Rz << 16) + Rw;\n\t}", "public static int randomGet() { return 0; }", "Integer getNextRandomExcluding(int exclusion);", "float genChance();", "private int evaluate() {\n return (int) (Math.random() * 8);\n }", "AttackResult randomAttack();", "public int getRandom382() {\n int count = 0, chosenValue = 0;\n ListNode curr = this.head;\n while (curr != null) {\n count += 1;\n // decide whether to include the element in reservoir\n if (rand.nextInt(count) == 0) chosenValue = curr.val;\n // move on to the next node\n curr = curr.next;\n }\n return chosenValue;\n }", "public int getRandom() {\r\n if ((itemSize / nextIndexInCache) < 0.25) {\r\n rebuildCache();\r\n }\r\n while (true) {\r\n int i = random.nextInt(nextIndexInCache);\r\n int v = cache[i];\r\n if (contains(v)) {\r\n return v;\r\n }\r\n }\r\n }", "static public Long randomval() {\n Random rand = new Random();\n Long val = rand.nextLong() % p;\n return val;\n }", "public int getRandomPositiveInt(){\r\n long gen = (a*seed+c)%m;\r\n seed = gen;\r\n return (int)gen;\r\n }", "public abstract BigInteger nextValue();", "private static int get() { \r\n Random r = new Random();\r\n return (r.nextInt(9));\r\n }", "public int nextHashForEqual() {\n\t/* This actually needs to roll over the UInt32 limit. */\n\tmyCount = myCount + 1;\n\treturn myCount;\n/*\nudanax-top.st:16757:FakePacker methodsFor: 'shepherds'!\n{UInt32} nextHashForEqual\n\t\"Shepherds use a sequence number for their hash. Return the next one\n\t and increment. This should actually spread the hashes.\"\n\t\"This actually needs to roll over the UInt32 limit.\"\n\tmyCount _ myCount + 1.\n\t^ myCount!\n*/\n}", "@Override\n public int attack() {\n return new Random().nextInt(5);\n }", "public static int nextInt() {\n\treturn 0;\r\n}", "public static long next() {\n return System.currentTimeMillis();\n }", "@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(500, 800);\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}", "public int getRandom() {\n int k = 1;\n ListNode node = this.head;\n int i = 0;\n ArrayList<Integer> reservoir = new ArrayList<Integer>();\n //先把前k个放进水塘\n while (i < k && node != null) {\n reservoir.add(node.val);\n node = node.next;\n i++;\n }\n // i++; // i == k => i == k+1 这样i就代表了现在已经处理过的总共数字个位\n i = 1;\n while (node != null) {\n //更换水塘里的数字的概率要是 k/(现在处理过的数字总数),所以因为i是从0开始,所以概率为从0\n // 到i的数当中选0 到k-1的数字,rand.nextInt(i) < k的概率是k/(现在处理过的数字总数)\n if (rand.nextInt(k+i) == i) {\n reservoir.set(rand.nextInt(k), node.val);\n }\n i++;\n node = node.next;\n }\n return reservoir.get(0);// or return reservoir when k > 1;\n }", "public static int randomFastInt() {\n return ThreadLocalRandom.current().nextInt();\n }", "int pacemodulator() {\n int buckpacedirector = ((rand.nextInt() >> rightshift) & 7);\n int rbuckpacedirector = 0;\n\n rbuckpacedirector = switch (buckpacedirector)\n {\n case 0 -> 2;\n case 1 -> 3;\n case 2 -> 4;\n case 3 -> 5;\n case 4 -> 6;\n case 5 -> 7;\n case 6 -> 8;\n default -> 1;\n };\n return rbuckpacedirector;\n }", "public int monsterAttack(){\n Random ran = new Random();\n return ran.nextInt(4);\n }", "public static int superFastRandomInt(){\n\t\tint x = (randByte << 1);\n\t\tint y = (randByte >>> 1);\n\t\treturn (randByte = x ^ ~y) & 0xFF;\n\t}", "public XorShiftRandom() {\n\t\tthis(System.nanoTime());\n\t}", "public static int getRandom() \n\t{\n\t\treturn rGenerator.nextInt();\n\t}", "Randomizer getRandomizer();", "long nextLong();", "long nextLong();", "private static synchronized int nextMask() {\n return (int) Math.pow(2, maskCount++);\n }", "public int getNextUnSafeSequence(){ return value++;}", "private Runnable scan() {\n Runnable t = null;\n int r = seed; // extract once to keep scan quiet\n StealingThread[] ws; // refreshed on outer loop\n int mask; // must be power 2 minus 1 and > 0\n outer:do {\n if ((ws = pool.threads) != null && (mask = ws.length - 1) > 0) {\n int idx = r;\n int probes = ~mask; // use random index while negative\n for (;;) {\n r = xorShift(r); // update random seed\n StealingThread v = ws[mask & idx];\n if (v == null || v.sp == v.base) {\n if (probes <= mask)\n idx = (probes++ < 0) ? r : (idx + 1);\n else\n break;\n }\n else if (!tryActivate() || (t = v.deqTask()) == null)\n continue outer; // restart on contention\n else\n break outer;\n }\n }\n } while (pool.hasNewSyncEvent(this)); // retry on pool events\n seed = r;\n return t;\n }", "@Override\n public Z computeNext() {\n int n = size();\n if (n <= 2) {\n return Z.valueOf(mInits[n]);\n }\n final int pow2 = Integer.highestOneBit(n);\n final int j = n - pow2;\n Z result = a(j).multiply(mFaj0).add(a(j + 1).multiply(mFaj1));\n if (j == pow2 - 1) {\n result = result.add(1);\n }\n return result;\n \n }", "@Override\r\n\tpublic Number getNext() {\r\n\t\tif(lambda==Double.POSITIVE_INFINITY){\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn Exponential.staticNextDouble(lambda);\r\n\t}", "private int nextIndex() {\n return ThreadLocalRandom.current().nextInt(currentIndex, tracks.size());\n }", "public int wait_cycle(){\n\t\tRandom r1=new Random();\n\t\tint r2=r1.nextInt((999)+1)+1;\n\t\treturn r2;\n\t}", "int getRandom(int max);", "public int getNextValue() {\n\t\tRandom randomGenerator = new Random();\n\t\tint randomInt = randomGenerator.nextInt(100) + 1;\n\t\treturn randomInt;\n\t}", "public static final int nextHashCodeEntropy() {\n\t\tint hash = 17;\n\t\tfor (int i = 0; i < 11; i++) {\n\t\t\thash = 37 * hash + new Object().hashCode();\n\t\t}\n\t\treturn hash = 37 * hash + new Object().hashCode();\n\t}", "@Override\n public final long nextLong() { \n final long b = (stateB += 0x9E3779B97F4A7C15L) | 1L, z;\n if(b <= 0xBC6EF372FE94F82CL) stateA += 0x6C8E9CF570932BD5L;\n z = (stateA ^ stateA >>> 28) * b;\n return z ^ z >>> 28;\n// final long s = (stateA += 0x9E3779B97F4A7C15L);\n// if(s == 0L)\n// stateB -= 0x6C8E9CF570932BD5L;\n// final long z = (s ^ s >>> 28) * ((stateB += 0x6C8E9CF570932BD5L) | 1L);\n// return z ^ z >>> 28;\n\n }", "public int eDmg(){\r\n eDmg = rand.nextInt(13);\r\n return eDmg;\r\n }", "public int[] attack(){\n\t\tint[] key = {0};\n\t\tAkelarre ake;\n\t\tint endVal = (int)Math.pow(2,numBits)-1;\n\t\twhile(true){\n\t\t\tboolean reachedEnd = true;\n\t\t\take = new Akelarre(1,4,key);\n\n\t\t\tfor(int i : key){\n\t\t\t\tif( i != endVal ){\n\t\t\t\t\treachedEnd = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif( reachedEnd ) return null;\n\n\t\t\tif(eq(ake.encrypt(plaintext),ciphertext)){\n\t\t\t\treturn key;\n\t\t\t}\n\n\t\t\tfor(int i=key.length-1;i>=0;i--){\n\t\t\t\tkey[i]++;\n\t\t\t\tif( key[i] != 0){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "Boolean getRandomize();", "private IUnit getRandomCacheUnit(){\n\t\tcache = new UnitCache();\n\t\treturn cache.getUnit(rnd.nextInt(cache.getSize()));\n\t}", "@Override\n public int attack(){\n //create an int list to store the numbers\n int[] arr = {zero, six, ten};\n //get a random index of the list\n int index = getRandom().nextInt(arr.length);\n //return the number on that random index\n int damageVal = arr[index];\n return damageVal;\n }", "@Override\r\n\tpublic int computeNextVal(boolean prediction, Instance inst) {\n\t\treturn 0;\r\n\t}", "public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }", "private double getRandom() {\n return 2*Math.random() - 1;\n }", "@Override\r\n public Integer next() {\r\n // Time complexity: O(1), where the problem size N \r\n // represents the size of the sequence to generate.\r\n if (!hasNext()) // check if the current element has a next element in this sequence\r\n return null; \r\n int current = next; // set the current element to next\r\n generatedCount++; // increment the number of generated elements so far\r\n next *= RATIO; // set the next element (adds the common ratio to the current number)\r\n return current; // return the current number as the generated one\r\n }", "private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}", "public int getRandom() {\n ListNode pick = null;\n ListNode p = head;\n int count = 1;\n while (p != null) {\n if (rand.nextInt(count) == 0) {\n pick = p;\n }\n p = p.next;\n count++;\n }\n return pick.val;\n }", "@Override\n\t\t\t\t\tpublic int nextInt() {\n\t\t\t\t\t\toutdegree = -1;\n\t\t\t\t\t\treturn it0.nextInt();\n\t\t\t\t\t}", "private void roll() {\n value = (int) (Math.random() * MAXVALUE) + 1;\n }", "public abstract int getRandomDamage();", "private int next(int index) {\n return (index + 2) & mask;\n }", "public int getNext(){\n synchronized (ThreadSave.class){\n if(value > 0){\n return 1;\n }\n else if (value < 0){\n return -1;\n }\n else\n return value ++;\n }\n\n }", "private int rand() {\n return (int)(Math.random()*(RAND_MAX + 1));\n }", "private int randomHelper() {\n\t\tRandom rand = new Random();\n\t\tint randomNum = rand.nextInt((10000 - 1) + 1) + 1;\n\t\treturn randomNum;\n\t}", "private long nextLong(long n) {\n long bits;\n long val;\n do {\n bits = (rnd.nextLong() << 1) >>> 1;\n val = bits % n;\n } while (bits - val + (n - 1) < 0L);\n return val;\n }", "public int nextValue() {\n\t\tint temp = counter;\n\t\tcounter++;\n\t\treturn temp;\n\t}", "public int mo9761x() {\n /*\n r5 = this;\n int r0 = r5.f9074i\n int r1 = r5.f9072g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9070e\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9074i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9763z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9074i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3658b.mo9761x():int\");\n }", "@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(10, 20); \t\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}", "public void generateR(){\n\t\t\tdo{\n\t\t\t\tr = new BigInteger(80, new Random());\n\t\t\t}while(!(q.gcd(r).equals(BigInteger.ONE)&&r.compareTo(q)<0&&r.compareTo(BigInteger.ONE)>=0));\n\t}", "public float nextVonNeumann ()\n {\n int n;\n int k = 0;\n float u1;\n\n // Loop to try sequences of uniformly-distributed\n // random values.\n for (;;)\n {\n n = 1;\n u1 = GENERATOR.nextFloat ();\n\n float u = u1;\n float uPrev = Float.NaN;\n\n // Loop to generate a sequence of random values\n // as long as they are decreasing.\n for (;;)\n {\n uPrev = u;\n u = GENERATOR.nextFloat ();\n\n // No longer decreasing?\n if (u > uPrev)\n {\n // n is even.\n if ((n & 1) == 0)\n {\n // return a random value\n return u1 + k;\n }\n\n // n is odd.\n ++k;\n // try another sequence\n break;\n }\n\n ++n;\n }\n }\n }", "@Override\n\t\t\t\tpublic int nextInt() {\n\t\t\t\t\toutdegree = -1;\n\t\t\t\t\treturn it0.nextInt();\n\t\t\t\t}", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "private int choose(){\n\t\tdouble temp = 10 * Math.random();\n\t\tint i = (int)temp;\n\t\treturn i;\n\t}", "public static int getRandomBalance(){\n return rand.nextInt(1000000);\n }", "private double genMultiplier() {\n return (random.nextInt(81) + 60)/100.0;\n }", "public interface IRandomAdapter {\n int nextInt(int max);\n}", "@Override\n public void run() {\n if (random.nextInt(10) == 0)\n addPowerUp(random.nextInt(256));\n }", "int RandomGenerator0To29 (){\n\t\t int randomInt2 = 0;\n\t\t Random randomGenerator2 = new Random();\n\t\t for (int idx2 = 1; idx2 <= 10; ++idx2) {\n\t\t\t randomInt2 = randomGenerator2.nextInt(30);\n\t\t }\n\t\t return randomInt2;\n\t }", "public static long randomFastLong() {\n return ThreadLocalRandom.current().nextLong();\n }", "public int pickVictim()\n {\n //check if any frame is empty\n if (availableFrames.size() > 0) {\n index = availableFrames.remove(0);\n return index;\n }\n //select random available frame for replacement \n else {\n int findVictim = 0;\n List<FrameDesc> tempFrametab = new ArrayList<FrameDesc>(Arrays.asList(frametab));\n FrameDesc fdesc;\n Random rand = new Random();\n while(findVictim == 0 && tempFrametab.size() > 0) {\n index = rand.nextInt(tempFrametab.size());\n fdesc = tempFrametab.get(index);\n if (fdesc.state == AVAILABLE) {\n findVictim = 1;\n index = fdesc.index;\n return index;\n }\n else {\n tempFrametab.remove((int)index);\n }\n }\n }\n //Buffer size full\n return -1;\n }", "@Override\n public T generate() {\n counter = calculate();\n return values[counter];\n }", "@Override\r\n\tpublic int attack() {\r\n\t\treturn rnd.nextInt(MAX_MONSTER_ATTACK_DAMAGE);\r\n\t}", "@Override\r\n public int nextMove(boolean[] xMap, boolean[] oMap, boolean playForX) {\n for (int i = 0; i < 1000; i++) {\r\n int result = Math.abs(random.nextInt()) % 9;\r\n if (!xMap[result] && !oMap[result]) {\r\n return result;\r\n }\r\n }\r\n return -1;\r\n }", "private int getNext(int index) {\n return index + (index & -index);\n }", "public static int getRandomAmount(){\n return rand.nextInt(1000);\n }", "SimulatedAnnealing() {\n generator = new Random(System.currentTimeMillis());\n }", "public int getRandom() {\n Random rand = new Random();\n int count = 0;\n int res = node.val;\n while (node != null) {\n if (rand.nextInt(count + 1) == count) res = node.val;\n node = node.next;\n count++;\n }\n return res;\n }", "public int rollResult(){\r\n return rand.nextInt(6) + 1;\r\n }", "int next();", "synchronized byte getCurrentValueHi()\n {\n int cv = getCurrentValue();\n cv >>= 8;\n return (byte)cv;\n }", "public double getNextRawSample();", "public void roll(){\n currentValue = rand.nextInt(6)+1;\n }", "private static void test1() {\n\n\tint n=10000;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint val=rand7();\n\t\t\tcount[val]++;\n\t\t}\n\t\t\n\t\tfor(int i:count)\n\t\t\tSystem.out.println(i);\n\t}", "private int generateSecret() {\n int secret = secretGenerator.nextInt();\n while (secretToNumber.containsKey(secret)) {\n secret = secretGenerator.nextInt();\n }\n return secret;\n }", "private static int getSecretNum(int arg1) {\n Random rand = new Random();\n return rand.nextInt(UPPERBOUND)+1; //make range 1-100\n }", "private int _randomCode () {\n Random random = new Random();\n code = random.nextInt(999999);\n return code;\n }", "RandomnessSource copy();", "private int spinTheWheel()\r\n {\r\n\tint i;\r\n\t// generate a random number from 0 to 1\r\n\tdouble r = Math.random();\r\n\t// find the index where the random number lie in the \r\n\t// probability array\r\n\tfor(i = 0; i < prob.length && r > prob[i]; i++);\r\n\r\n\t// sometimes, due to the rounding error, the last \r\n\t// accumulate probability is less than 1 and the search\r\n\t// will fail. \r\n\t// when this case happen, return the last index\r\n\tif(i == prob.length)\r\n\t i--;\r\n\treturn i;\r\n }", "public abstract double getGen(int i);", "public int getRandom() {\r\n\r\n\t\tint rand = (int) (Math.random() * BUCKET_SIZE);\r\n\t\tfor (int i = rand; (i + 1) % BUCKET_SIZE != rand; i = (++i) % BUCKET_SIZE) {\r\n\t\t\tif (bucket[i] == null)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tint rand2 = (int) (Math.random() * bucket[i].size);\r\n\r\n\t\t\tNode p = bucket[i].list;\r\n\t\t\tfor (int j = 0; j < rand2; ++j)\r\n\t\t\t\tp = p.next;\r\n\r\n\t\t\treturn p.val;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "int nextBits(int bits);", "public float nextFloat(){\r\n\t\tint rand = nextInt();\r\n\t\treturn (float)(rand & 0x007fffff)/((float) 0x007fffff);\r\n\t}" ]
[ "0.6407408", "0.6400601", "0.61422926", "0.6120631", "0.6100022", "0.6085567", "0.6056601", "0.5982904", "0.58113843", "0.57279336", "0.5699539", "0.5698318", "0.5662819", "0.5661221", "0.56256706", "0.5602222", "0.5588515", "0.5555487", "0.5548757", "0.5548123", "0.55416167", "0.5499665", "0.54742426", "0.546529", "0.54583085", "0.5455721", "0.5452986", "0.5451128", "0.5442141", "0.5441003", "0.54158765", "0.5415656", "0.5407522", "0.5407522", "0.5403463", "0.54028565", "0.5395513", "0.5385087", "0.5384547", "0.534147", "0.53376895", "0.5335674", "0.53242993", "0.5323177", "0.53177655", "0.529779", "0.52957046", "0.5292908", "0.52916455", "0.5286295", "0.528582", "0.5284321", "0.5279101", "0.52781326", "0.526751", "0.52655756", "0.52650017", "0.52553946", "0.5246558", "0.52450615", "0.52431864", "0.5225909", "0.51982373", "0.519555", "0.5189846", "0.5186692", "0.51862705", "0.5182279", "0.51803046", "0.51742536", "0.51715505", "0.51682806", "0.516252", "0.5159599", "0.5153642", "0.51524746", "0.5130414", "0.5129349", "0.5128841", "0.512556", "0.512285", "0.51207566", "0.51166904", "0.510602", "0.51057774", "0.5105338", "0.5105048", "0.5104392", "0.5095808", "0.5090007", "0.508728", "0.5087082", "0.50861025", "0.50781673", "0.507592", "0.50733864", "0.50620115", "0.5060606", "0.5059002", "0.5055932", "0.5052383" ]
0.0
-1
Lifecycle methods This method is required to be public, but should never be called explicitly. It performs the main run loop to execute ForkJoinTasks.
public void run() { Throwable exception = null; try { onStart(); pool.sync(this); // await first pool event mainLoop(); } catch (Throwable ex) { exception = ex; } finally { onTermination(exception); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n\t\tthis.launch( null );\n\t}", "private void mainLoop() {\n while (!isShutdown()) {\n ForkJoinTask<?> t = pollTask();\n if (t != null || (t = pollSubmission()) != null)\n t.quietlyExec();\n else if (tryInactivate())\n pool.sync(this);\n }\n }", "@Override\n protected void compute() {\n\n if(this.workLoad > 16){\n System.out.println(\"Splitting Workload :: \"+this.workLoad);\n List<MyRecursiveAction> subTasks = new ArrayList<>();\n subTasks.addAll(createSubTasks());\n\n subTasks.forEach(tasks -> {\n tasks.fork();\n });\n }else{\n System.out.println(\"Doing Workload myself :: \"+this.workLoad);\n }\n }", "void join() {\n join(this.workerThread);\n join(this.cacheFlusher);\n join(this.compactSplitThread);\n join(this.logRoller);\n }", "public void runBlocking() {\n if (!this.stopAction.isDone()) {\n this.tryPerformBeforeAction();\n this.tryCreateTaskAssignment();\n this.startLoadGeneration();\n }\n this.stopAction.join();\n this.stopLoadGeneration();\n this.stopFinished.complete(null);\n }", "public void execute() {\n\t\tlaunch();\n\t}", "public static void run() {\n }", "public void runInThread() {\n\t\tTaskRunner taskRunner = Dep.get(TaskRunner.class);\n\t\tATask atask = new ATask<Object>(getClass().getSimpleName()) {\n\t\t\t@Override\n\t\t\tprotected Object run() throws Exception {\n\t\t\t\tBuildTask.this.run();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t};\n\t\ttaskRunner.submitIfAbsent(atask);\n\t}", "public void run() {\n // The run method should be overridden by the subordinate class. Please\n // see the example applications provided for more details.\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttask();\n\t\t}", "public void run() {\n boolean debug = debugLifecycle;\r\n if (debug) {\r\n System.out.println(\"Created : \" + getName()); \r\n }\r\n try {\r\n alive.incrementAndGet();\r\n super.run();\r\n } finally {\r\n alive.decrementAndGet();\r\n if (debug) {\r\n System.out.println(\"Exiting : \" + getName());\r\n }\r\n }\r\n }", "@Override\n public void run() {\n startup();\n }", "public final void run() {\n\t\ttry (Restore restore = ComponentBoundary.push(loggerName(), this)) {\t\t\n\t\t\tif (!stateHandler.waitToWhen(new IsExecutable(), new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tstop = false;\n\t\t\t\t\t// it's possible to reset children and then execute again so this\n\t\t\t\t\t// is just in case there was no reset.\n\t\t\t\t\tstopChildStateReflector();\n\t\t\t\t\t\n\t\t\t\t\tgetStateChanger().setState(ParentState.EXECUTING);\n\t\t\t\t}\t\t\t\t\t\n\t\t\t})) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tlogger().info(\"Executing.\");\n\n\t\t\ttry {\n\t\t\t\tif (!stop) {\n\t\t\t\t\tconfigure();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!stop) {\n\t\t\t\t\texecute();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// we ignore state while executing but now we need to update.\n\t\t\t\t// dependent on our child states.\n\t\t\t\tstartChildStateReflector();\n\t\t\t}\n\t\t\tcatch (final Throwable e) {\n\t\t\t\tlogger().error(\"Job Exception.\", e);\n\t\t\t\t\n\t\t\t\tstateHandler.waitToWhen(new IsAnyState(), new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tgetStateChanger().setStateException(e);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\t\n\t\t\tlogger().info(\"Execution finished.\");\n\t\t}\n\t}", "public void run() {\n for (CrawlTask newTask = queue.pop(level); newTask != null; newTask = queue.pop(level))\n /*while (queue.getQueueSize(currentLevel)>0)*/ {\n//\t\t\tObject newTask = queue.pop(currentLevel);\n // Tell the message receiver what we're doing now\n mainCrawler.receiveMessage(newTask, id);\n // Process the newTask\n process(newTask);\n // If there are less threads running than it could, try\n // starting more threads\n if (tc.getMaxThreads() > tc.getRunningThreads()) {\n try {\n tc.startThreads();\n } catch (Exception e) {\n System.err.println(\"[\" + id + \"] \" + e.toString());\n }\n }\n }\n // Notify the ThreadController that we're done\n tc.finished(id);\n }", "public void run() {\n try {\n peerBootstrap = createPeerBootStrap();\n\n peerBootstrap.setOption(\"reuseAddr\", true);\n peerBootstrap.setOption(\"child.keepAlive\", true);\n peerBootstrap.setOption(\"child.tcpNoDelay\", true);\n peerBootstrap.setOption(\"child.sendBufferSize\", Controller.SEND_BUFFER_SIZE);\n\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public void run() {\n ServiceCallback<BuildsCurrentResponse> callback = new AsyncExampleServiceCallback();\n\n try {\n buildsOperations.getBuildsCurrentAsync(callback);\n }\n catch(Exception e)\n {\n System.err.println(\"Call to Embedded Social failed with exception: \" + e.getMessage());\n }\n }", "protected void internalRun() {\n work();\n }", "public final void run() {\r\n }", "protected void run() {\r\n\t\t//\r\n\t}", "public void run() {\n Thread.currentThread().setPriority(Thread.NORM_PRIORITY);\n while( true ) {\n long currentTime = System.currentTimeMillis();\n for(H2ONode n: H2O.CLOUD._memary) {\n if (n == H2O.SELF) continue;\n for (RPC t : n.tasks()) {\n if (H2O.CLOUD.contains(t._target) ||\n // Also retry clients who do not appear to be shutdown\n (t._target._heartbeat._client && t._retry < HeartBeatThread.CLIENT_TIMEOUT)) {\n if (currentTime > (t._started + t._retry) && !t.isDone() && !t._nack) {\n if (++t._resendsCnt % 10 == 0)\n Log.warn(\"Got \" + t._resendsCnt + \" resends on task #\" + t._tasknum + \", class = \" + t._dt.getClass().getSimpleName());\n t.call();\n }\n } else { // Target is dead, nobody to retry to\n t.cancel(true);\n }\n }\n }\n long timeElapsed = System.currentTimeMillis() - currentTime;\n if(timeElapsed < 1000)\n try {Thread.sleep(1000-timeElapsed);} catch (InterruptedException e) {}\n }\n }", "public void run()\n {\n try\n {\n java.lang.Object sync = new java.lang.Object();\n synchronized (sync)\n {\n sync.wait();\n }\n }\n catch (Exception e)\n {\n fatalError(\"Application \" + appTitle + \" terminated\", e);\n }\n }", "public void run(){\n\t\tstart();\n\t\tdoStuff();\n\t\tshutDown();\n\t}", "public static void main(String[] args) {\n ForkJoinPool forkJoinPool = new ForkJoinPool(Runtime.getRuntime().availableProcessors());\n\n //Create three FolderProcessor tasks. Initialize each one with a different folder path.\n FolderProcessor desktop = new FolderProcessor(\"/Users/neeraj/Desktop\", \"log\");\n FolderProcessor downloads = new FolderProcessor(\"/Users/neeraj/Downloads\", \"log\");\n FolderProcessor github = new FolderProcessor(\"/Users/neeraj/Projects/office\", \"log\");\n\n // Execute the 3 tasks in the ForkJoinPool.\n forkJoinPool.execute(desktop);\n forkJoinPool.execute(downloads);\n forkJoinPool.execute(github);\n\n //Write to the console information about the status of the pool every second\n //until the three tasks have finished their execution.\n do {\n System.out.printf(\"******************************************\\n\");\n System.out.printf(\"Main: Parallelism: %d\\n\", forkJoinPool.getParallelism());\n System.out.printf(\"Main: Active Threads: %d\\n\", forkJoinPool.getActiveThreadCount());\n System.out.printf(\"Main: Task Count: %d\\n\", forkJoinPool.getQueuedTaskCount());\n System.out.printf(\"Main: Steal Count: %d\\n\", forkJoinPool.getStealCount());\n System.out.printf(\"******************************************\\n\");\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n } while ((!desktop.isDone()) || (!downloads.isDone()) || (!github.isDone()));\n\n //Shut down ForkJoinPool using the shutdown() method.\n forkJoinPool.shutdown();\n\n //Write the number of results generated by each task to the console.\n List<String> results;\n results = desktop.join();\n System.out.printf(\"Desktop: %d files found.\\n\", results.size());\n results = downloads.join();\n System.out.printf(\"Downloads: %d files found.\\n\", results.size());\n results = github.join();\n System.out.printf(\"Github: %d files found.\\n\", results.size());\n\n }", "public void execute(){\n if (pipeline != null){\n pipeline.addTask(this);\n } else {\n run();\n }\n }", "@Override\n\t\tpublic void run() {\n\n\t\t}", "public void run() {\n\t\t}", "public void run() {\n\t\t}", "public void run() {\n\t\t}", "public void run() {\n }", "public void run() {\n\t\tfor (ConConsumer consumer : _consumers) {\n\t\t\tconsumer.register();\n\t\t}\n\t\t// commit the channels <\n\t\t// wait for the tasks finish >\n\t\t_monitor.checkFinish();\n\t\t// wait for the tasks finish <\n\t\t_threadPool.shutdown();\n\t}", "@Override\n public void run() {\n task.run();\n }", "@Override\n public void run() {\n runTask();\n\n }", "public void run()\n\t\t{\n\t\t}", "public void run() {\n\n\t}", "public void run() {\n\n\t}", "public void run() {\n }", "public void run() {\n\t}", "public void run() {\n\t}", "@Override\n\tpublic void run() {\n\t\tinit();\n\t}", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "@Override\n public void runSimulation() throws Exception {\n // Call a method that initializes the barrier\n // synchronizers and assigns them to the Beings.\n // TODO -- you fill in here.\n \n\n // Call a method that uses the common fork-join pool to run a\n // pool of threads that represent the Beings in this\n // simulation.\n // TODO -- you fill in here.\n \n }", "public void run()\n\t{\n\t}", "PooledThread()\n {\n setDaemon(true);\n\n start();\n }", "public void run() {\n\t\t\r\n\t}", "public void run() {\n\t\t\r\n\t}", "public void run() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "public void run() {\n jobDescriptor j = null;\n\n while (!exit) {\n try {\n // wait for work\n syncObject.acquire();\n\n // get next job descriptor\n j = jobQueue.poll();\n if (j == null)\n continue;\n\n j.outputObject.started();\n\n if (!executor.executeTask(new MyRunnable(j.codeToBeExecuted, j.outputObject))) {\n j.outputObject.error(\"... cancelled!\");\n }\n } catch (Throwable e) {\n logger.error(e.getMessage());\n }\n }\n }", "public void run() {\n initRun();\n while (true) {\n this.step();\n }\n }", "public void run() {\n\t\t\t\t\n\t\t\t}", "public void run()\r\n/* :22: */ {\r\n/* :23:863 */ DefaultPromise<V>.LateListeners lateListeners = DefaultPromise.this.lateListeners;\r\n/* :24:864 */ if (this.l != null)\r\n/* :25: */ {\r\n/* :26:865 */ if (lateListeners == null) {\r\n/* :27:866 */ DefaultPromise.this.lateListeners = (lateListeners = new DefaultPromise.LateListeners(DefaultPromise.this));\r\n/* :28: */ }\r\n/* :29:868 */ lateListeners.add(this.l);\r\n/* :30:869 */ this.l = null;\r\n/* :31: */ }\r\n/* :32:872 */ lateListeners.run();\r\n/* :33: */ }", "@Override\n public void run() {\n started.set(!canceled.get());\n if (started.get()) {\n runBuildOperation();\n }\n }", "public final void run() {\n\t\ttask();\n\t\t_nextTaskHasRan = true;\n\t}", "@Override\r\n public void run() {}", "public void startAll() {\n distributors.forEach(Distributor::startThread);\n }", "@Override\n\tpublic void run() \n\t{\n\n\t\ttry \n\t\t{\n\t\tif(isDriver) \n\t\t\t{\n\t\t\t\tSystem.out.println(\" waiting for the workers\");\n\t\t\t\tstopSignal.await();\n\t\t\t\tSystem.out.println(\" driver Shutting down.\");\n\t\t\t}\n\t\telse \n\t\t\t{\n\t\t\t\tThread.sleep(3000);\n\t\t\t\tSystem.out.println(\" Caller waiting \");\n\t\t\t\tstartSignal.await();\n\t\t\t\tSystem.out.println(\" Caller counting down \");\n\t\t\t\tstopSignal.countDown();\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) \n\t\t{\n\t\t\tSystem.err.println(\"e:\"+e.getMessage());\n\t\t}\n\n\t}", "private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}", "@Override\n\tpublic void run()\n\t{\n\t}", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "public ForkJoinPoolMgr() {\n }", "public void run() {\n }", "public void run() {\n\t\t\t\t\t\t}", "public void run() {\n\t\t\tJuego.reStart();\n\n\t\t}", "@PostConstruct\r\n public void init() {\r\n \t//registerNotificationCallback(null); //to register taskexecution engine as default\r\n ThreadFactory namedThreadFactory = new ThreadFactoryBuilder().setNameFormat(\"MARM-thread-%d\").build();\r\n \texecutor = Executors.newFixedThreadPool(10, namedThreadFactory);\r\n\r\n ThreadFactory brokerThreadFactory = new ThreadFactoryBuilder().setNameFormat(\"Broker-thread-%d\").build();\r\n brokerExecutor = Executors.newFixedThreadPool(10, brokerThreadFactory);\r\n\r\n ThreadFactory logThreadFactory = new ThreadFactoryBuilder().setNameFormat(\"LOG-thread-%d\").setPriority(Thread.MIN_PRIORITY).build();\r\n logExecutor = Executors.newFixedThreadPool(10, logThreadFactory);\r\n broker.registerInputListener(this);\r\n broker.registerControlListener(this);\r\n }", "public void run()\r\n\t{\r\n\t\t\r\n\t}", "public static void main(String[] args) \n\t{\n\t\tForkJoinPool fjp = ForkJoinPool.commonPool();\n\t\t//ForkJoinPool fjp = new ForkJoinPool(2);\n\t\t\n\t\tSystem.out.println(fjp.getParallelism() + \" cores executing\");\n\t\tfjp.invoke(new MyAction());\n\t\tFuture<Integer> x = fjp.submit(new MyTask());\n\t\tfjp.invoke(new MyTask());\n\t\t\n\t\tList<Callable<Integer>> tasks = new ArrayList<>();\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 1 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 2 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 3 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 4 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 5 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\tint sum = 0;\n\t\tList<Future<Integer>> futureSums = fjp.invokeAll(tasks);\n\t\tfor(Future<Integer> num: futureSums)\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tsum += num.get();\n\t\t\t} catch (InterruptedException | ExecutionException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The sum is \" + sum);\n\t\t\n\t\tfjp.shutdown();\n\t\ttry {\n\t\t\tfjp.awaitTermination(30,TimeUnit.SECONDS);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void run() {\n }", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t}", "public void run() {\n\n }", "public void run() {\n\n // Initialize control center.\n\n control = new Dispatch(parameters);\n control.run();\n linked = control.gettasks();\n\n // Initialize trains.\n\n trains = new TrainSim[parameters.numTrains];\n\n for (int i = 0; i < parameters.numTrains; i++) {\n\n trains[i] = new TrainSim(parameters, i);\n trains[i].genbasis();\n\n }\n\n // Add linked tasks to trains.\n\n for (Task each : linked) {\n\n int trainid = each.getTrain();\n each = new Task(each.getType(), each.getBeginTime(), parameters, false);\n each.setID(trainid);\n if (each.getArrTime() < parameters.numHours*60) {\n trains[trainid].linktask(each);\n }\n }\n\n // Run each train\n\n for (TrainSim each : trains) {\n\n each.run();\n\n }\n\n }", "public void run() {\n TransactionBuilder builder = new TransactionBuilder();\n builder.asciiMessage(\"Hello World!\");\n Transaction toSubmit = builder.build();\n context.getConfiguration();\n\n try {\n while (true) {\n\n ixi.submit(toSubmit);\n System.out.println(\"Sende\");\n\n Thread.sleep(10000);\n }\n } catch (InterruptedException e) {\n if (isRunning()) {\n e.printStackTrace();\n\n throw new RuntimeException(e);\n }\n }\n }", "public void run() {\r\n }", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}", "@Override\n\tpublic void run()\n\t{\n\n\t}", "@Override\n\tpublic void run() {\n\n\t\treceiveClients();\n\n\t\tbeginLogging();\n\t}", "@Override\r\n\tpublic void run() {\n\t}", "@Override\r\n\tpublic void run() {\n\t}", "public void run() {\n\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+\"准备。。。\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tp.await();//等待\n\t\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+\"已接受。。。\");\n\t\t\t\t\t\tThread.sleep((long)(Math.random()*10000));\n\t\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+\"完成。。。\");\n\t\t\t\t\t\ts.countDown();//三次后为0 释放主线程中的等待\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\r\n\tpublic void run() {\n\t\trunClient();\r\n\t}", "public void run() {\n }", "public void run() {\n }", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}" ]
[ "0.6265189", "0.62353957", "0.61992586", "0.59637916", "0.5930231", "0.59245384", "0.5917384", "0.5909317", "0.589779", "0.5895197", "0.5877784", "0.58523315", "0.5844509", "0.5840009", "0.5816383", "0.58053714", "0.57795185", "0.57709414", "0.576941", "0.5741661", "0.5738375", "0.57329327", "0.5712203", "0.57060635", "0.56754184", "0.5675086", "0.5675086", "0.5675086", "0.56709695", "0.5669509", "0.56653345", "0.5660035", "0.5648642", "0.5647761", "0.5647761", "0.56471676", "0.56400645", "0.56400645", "0.5635081", "0.56294304", "0.56285083", "0.5622817", "0.562109", "0.56192243", "0.56192243", "0.5619124", "0.5617014", "0.5617014", "0.56136405", "0.5603974", "0.559556", "0.5592414", "0.5584844", "0.5574573", "0.55743885", "0.5569997", "0.55669695", "0.5566516", "0.55533326", "0.5553233", "0.5553233", "0.5553233", "0.5553233", "0.55509853", "0.55487597", "0.55469936", "0.5544818", "0.55441916", "0.55389565", "0.5536702", "0.5531305", "0.55301976", "0.55301976", "0.55301976", "0.55301976", "0.55301976", "0.55301976", "0.55301976", "0.55301976", "0.55301976", "0.5529995", "0.5529486", "0.5517536", "0.5515784", "0.55122435", "0.5511903", "0.5511903", "0.5511903", "0.55081224", "0.5506631", "0.5502277", "0.5500752", "0.5500752", "0.54942745", "0.54940915", "0.5491428", "0.5491428", "0.5490542", "0.5490542" ]
0.6622135
1
Executes tasks until shut down.
private void mainLoop() { while (!isShutdown()) { Runnable t = pollTask(); if (t != null || (t = pollSubmission()) != null) t.run(); else if (tryInactivate()) pool.sync(this); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shutdown() {\n\t\tfinal List<Runnable> tasks = updater.shutdownNow();\n\t\tif (null == tasks) return;\n\t\tfor (final Runnable t : tasks)\n\t\t\tt.run();\n\t}", "public void runPendingTasks() {\n/* */ try {\n/* 578 */ this.loop.runTasks();\n/* 579 */ } catch (Exception e) {\n/* 580 */ recordException(e);\n/* */ } \n/* */ \n/* */ try {\n/* 584 */ this.loop.runScheduledTasks();\n/* 585 */ } catch (Exception e) {\n/* 586 */ recordException(e);\n/* */ } \n/* */ }", "public synchronized void execute() {\n\t\tthis.timeoutFuture = SCHEDULER.schedule(this::processTimeout, 5, TimeUnit.SECONDS);\n\t\tthis.statuses.put(this.localNode.getInfo(), NodeStatus.Unasked);\n\t\tcheckFinishAndProcess();\n\t}", "private void mainLoop() {\n while (!isShutdown()) {\n ForkJoinTask<?> t = pollTask();\n if (t != null || (t = pollSubmission()) != null)\n t.quietlyExec();\n else if (tryInactivate())\n pool.sync(this);\n }\n }", "public static void shutdown() {\n logger.warn(\"Attempting to shut down scheduled LRU cache tasks ...\");\n scheduler.shutdown();\n try {\n if (! scheduler.awaitTermination(1000, TimeUnit.MILLISECONDS)) {\n logger.warn(\"Attempting to force shut down scheduled LRU cache tasks ...\");\n scheduler.shutdownNow();\n }\n } catch (InterruptedException e) {\n logger.warn(\"Exception shutting down tasks ... \" + e.getMessage());\n }\n }", "public static void shutdown() {\n\t\tSystem.err.println(\"shutdown initiated!\");\n\t\tBaseFuture bf0 = master.shutdown();\n\t\tbf0.awaitUninterruptibly();\n\t\tSystem.err.println(\"shutdown master done!\");\n\t\t\n\t\tBaseFuture bf1 = unreachable1.shutdown();\n\t\tbf1.awaitUninterruptibly();\n\t\tSystem.err.println(\"shutdown unreachable1 done!\");\n\n\t\tBaseFuture bf2 = unreachable2.shutdown();\n\t\tbf2.awaitUninterruptibly();\n\t\tSystem.err.println(\"shutdown unreachable 2 done!\");\n\t}", "public void doIdleTasks();", "public static void shutdown() {\n\t\trunning = false;\n\t\texecutor.shutdown();\n\t\tlog.info(\"### All threads shutdown requested ###\");\n\t\t\n\t\ttry {\n\t\t\tfor (int i = 0; !executor.awaitTermination(10, TimeUnit.SECONDS); i++) {\n\t\t\t\tlog.info(\"### Awaiting for pending task pool termination... ({}) ###\", i);\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\tlog.warn(\"### Exception awaiting for pending task pool termination: {} ###\", e.getMessage());\n\t\t}\n\t\t\n\t\tlog.info(\"### All threads have finished ###\");\n\t}", "private static void shutdown() {\n\t\tSystem.out.println(\"Shutting down ...\");\n\t\tpool.shutdown();\n\t\tfor (Client client : clientMap.values()) {\n\t\t\tclient.cleanup();\n\t\t}\n\n\t\t// wait until all threads complete\n\t\ttry {\n\t\t\tif (!pool.awaitTermination(30, TimeUnit.SECONDS)) {\n\t\t\t\tSystem.out.println(\"Force shutdown after 30 seconds ...\");\n\t\t\t\tpool.shutdownNow();\n\t\t\t\tif (!pool.awaitTermination(30, TimeUnit.SECONDS)) {\n\t\t\t\t\tSystem.out.println(\"Terminate the process.\");\n\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\tThread.currentThread().interrupt();\n\t\t}\n\t}", "@Override\r\n public void close() {\r\n\tsaveZip();\r\n\tsetChanged();\r\n\tnotifyObservers(\"shutting down\");\r\n\tthreadpool.shutdown();\r\n\t// wait 10 seconds over and over again until all running jobs have\r\n\t// finished\r\n\ttry {\r\n\t boolean allTasksCompleted = false;\r\n\t while (!(allTasksCompleted = threadpool.awaitTermination(10, TimeUnit.SECONDS)))\r\n\t\t;\r\n\t setChanged();\r\n\t notifyObservers(\"Server is safely closed\");\r\n\t} catch (InterruptedException e) {\r\n\t e.printStackTrace();\r\n\t}\r\n }", "public void runTasks() {\n promoteBlockedTasks();\n\n final AtomicInteger counter = new AtomicInteger(0);\n\n ExecutorService runners = threadPerCpuExecutor(stderr, \"TaskQueue\");\n\n for (int i = 0; i < Runtime.getRuntime().availableProcessors(); i++) {\n runners.execute(() -> {\n while (runOneTask()) {\n // running one task at a time\n counter.getAndIncrement();\n }\n });\n }\n\n runners.shutdown();\n\n try {\n runners.awaitTermination(FOREVER, TimeUnit.SECONDS);\n\n stdout.println(String.format(\"Executed tasks: %d\", counter.get()));\n\n } catch (InterruptedException e) {\n stdout.println(\"failed task: \" + e.getMessage());\n e.printStackTrace(stderr);\n throw new AssertionError();\n }\n }", "public void processUntilShutdownUninterruptibly() {\n this.uiThreadScheduler.processUntilShutdownUninterruptibly();\n }", "public List<Runnable> shutdownNow() {\n lock.lock();\n try {\n shutdown();\n List<Runnable> result = new ArrayList<>();\n for (SerialExecutor serialExecutor : serialExecutorMap.values()) {\n serialExecutor.tasks.drainTo(result);\n }\n result.addAll(executor.shutdownNow());\n return result;\n } finally {\n lock.unlock();\n }\n }", "public void forceShutdown()\n {\n taskExecutor.shutdownNow();\n differencingDone.signalAll();\n completed.signalAll();\n }", "public static void main(String args[])\n {\n\t ScheduledExecutorService executorService= Executors.newScheduledThreadPool(2);\n\t Runnable task1=new RunnableChild(\"task1\");\n\t Runnable task2=new RunnableChild(\"task2\");\n\t Runnable task3=new RunnableChild(\"task3\");\n\t executorService.submit(task1);\n\t executorService.submit(task2);\n\t executorService.submit(task3);\n\t executorService.schedule(task1,20, TimeUnit.SECONDS);\n\t System.out.println(\"*******shutting down called\");\n\t executorService.shutdown();\n }", "public void await() {\n for (final Future<Void> future : futures) {\n try {\n future.get();\n } catch (final Throwable e) {\n LOGGER.error(\"Scheduled blob storage job threw an exception.\", e);\n }\n }\n futures.clear();\n }", "public void run() {\n\twhile (true) {\n\t synchronized(_taskQueue) {\n\t\twhile (_taskQueue.size() > 0) {\n\t\t Version v = (Version) _taskQueue.firstElement();\n\t\t _taskQueue.remove(0);\n\t\t executeRemoteTask(v);\n\t\t}\n\t }\n\t try {\n\t\tThread.sleep(_SLEEP_TIME);\n\t } catch (InterruptedException e) {\n\t\tlog(e.toString());\n\t }\n\t}\n }", "void submitAndWaitForAll(Iterable<Runnable> tasks);", "@Override\n\tpublic void run() {\n\t\tNewDeliverTaskManager ndtm = NewDeliverTaskManager.getInstance();\n\t\tif(ndtm != null && ndtm.isNewDeliverTaskAct) {\n\t\t\tNewDeliverTaskManager.logger.error(\"[旧的任务库删除线程启动成功][\" + this.getName() + \"]\");\n\t\t\twhile(isStart) {\n\t\t\t\tint count1 = 0;\n\t\t\t\tint count2 = 0;\n\t\t\t\tif(needRemoveList != null && needRemoveList.size() > 0) {\n\t\t\t\t\tList<DeliverTask> rmovedList = new ArrayList<DeliverTask>();\n\t\t\t\t\tfor(DeliverTask dt : needRemoveList) {\n\t\t\t\t\t\tDeliverTaskManager.getInstance().notifyDeleteFromCache(dt);\n\t\t\t\t\t\trmovedList.add(dt);\n\t\t\t\t\t\tcount1++;\n\t\t\t\t\t\tif(count1 >= 300) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsynchronized (this.needRemoveList) {\n\t\t\t\t\t\tfor(DeliverTask dt : rmovedList) {\n\t\t\t\t\t\t\tneedRemoveList.remove(dt);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(heartBeatTime);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\tTransitRobberyManager.logger.error(\"删除旧的已完成列表线程出错1:\", e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(teRemoveList != null && teRemoveList.size() > 0) {\n\t\t\t\t\tList<TaskEntity> teRemovedList = new ArrayList<TaskEntity>();\n\t\t\t\t\tfor(TaskEntity te : teRemoveList) {\n\t\t\t\t\t\tTaskEntityManager.getInstance().notifyDeleteFromCache(te);\n\t\t\t\t\t\tteRemovedList.add(te);\n\t\t\t\t\t\tcount2++;\n\t\t\t\t\t\tif(count2 >= 100) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsynchronized (this.teRemoveList) {\n\t\t\t\t\t\tfor(TaskEntity te : teRemovedList) {\n\t\t\t\t\t\t\tteRemoveList.remove(te);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(30000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\tTransitRobberyManager.logger.error(\"删除旧的已完成列表线程出错2:\", e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tTransitRobberyManager.logger.error(\"[旧的任务库删除线程关闭][\" + this.getName() + \"]\");\n\t}", "public void shutdownAll() {\n System.out.println(\"Shutting down network, received halt command!\");\n _poolData.shutdown();\n }", "@Override\n\tpublic synchronized void waitAllTasks() throws ExecutionException, InterruptedException {\n\t\twaitTasks(key -> true);\n\t}", "public long runScheduledPendingTasks() {\n/* */ try {\n/* 597 */ return this.loop.runScheduledTasks();\n/* 598 */ } catch (Exception e) {\n/* 599 */ recordException(e);\n/* 600 */ return this.loop.nextScheduledTask();\n/* */ } \n/* */ }", "public void run() {\n Thread.currentThread().setPriority(Thread.NORM_PRIORITY);\n while( true ) {\n long currentTime = System.currentTimeMillis();\n for(H2ONode n: H2O.CLOUD._memary) {\n if (n == H2O.SELF) continue;\n for (RPC t : n.tasks()) {\n if (H2O.CLOUD.contains(t._target) ||\n // Also retry clients who do not appear to be shutdown\n (t._target._heartbeat._client && t._retry < HeartBeatThread.CLIENT_TIMEOUT)) {\n if (currentTime > (t._started + t._retry) && !t.isDone() && !t._nack) {\n if (++t._resendsCnt % 10 == 0)\n Log.warn(\"Got \" + t._resendsCnt + \" resends on task #\" + t._tasknum + \", class = \" + t._dt.getClass().getSimpleName());\n t.call();\n }\n } else { // Target is dead, nobody to retry to\n t.cancel(true);\n }\n }\n }\n long timeElapsed = System.currentTimeMillis() - currentTime;\n if(timeElapsed < 1000)\n try {Thread.sleep(1000-timeElapsed);} catch (InterruptedException e) {}\n }\n }", "public final void stopAll() {\n for (BotTaskInterface bt : TASKS) {\n LOG.info(\"Stoping BotTask {}\", bt.getName());\n bt.stop();\n }\n EXECUTOR_SERVICE.shutdown();\n }", "public void shutdown() {\n executor.shutdown();\n try {\n executor.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void run() {\n log.log(Level.INFO, \"Starting multiple evaluation of {0} tasks\", tasks.size());\n boolean done = tasks.isEmpty();\n while (!done) {\n boolean hasFreeTasks = true;\n while (hasCapacity() && hasFreeTasks) {\n File task = getFreeTask();\n if (task == null) {\n hasFreeTasks = false;\n } else {\n EvaluatorHandle handle = new EvaluatorHandle();\n if (handle.createEvaluator(task, log, isResume)) {\n log.fine(\"Created new evaluation handler\");\n evaluations.add(handle);\n }\n }\n }\n\n log.log(Level.INFO, \"Tasks in progress: {0}, Unfinished tasks: {1}\", new Object[]{evaluations.size(), tasks.size()});\n try {\n Thread.sleep(5000);\n } catch (InterruptedException ex) {\n //Bla bla\n }\n checkRunningEvaluations();\n done = tasks.isEmpty();\n }\n\n }", "@Override\n public void shutdown() throws ExecutionException, InterruptedException {\n // When we close this service we need to shutdown our executor!\n threadPoolExecutorService.shutdown();\n if (!threadPoolExecutorService.awaitTermination(SHUTDOWN_TIME, TimeUnit.SECONDS)) {\n LOG.error(\"SfcOfFlowProgrammerImpl Executor did not terminate in the specified time.\");\n List<Runnable> droppedTasks = threadPoolExecutorService.shutdownNow();\n LOG.error(\"SfcOfFlowProgrammerImpl Executor was abruptly shut down. [{}] tasks will not be executed.\",\n droppedTasks.size());\n }\n }", "public void shutdown() {\n fsManager.getOpenFileSystems().forEach(JGitFileSystem::close);\n shutdownSSH();\n forceStopDaemon();\n fsManager.clear();\n }", "@Override\n protected void shutdown() {\n super.shutdown();\n // Now perform any other shutdown tasks you need.\n // ...\n }", "public void run() {\n\t\tfor (ConConsumer consumer : _consumers) {\n\t\t\tconsumer.register();\n\t\t}\n\t\t// commit the channels <\n\t\t// wait for the tasks finish >\n\t\t_monitor.checkFinish();\n\t\t// wait for the tasks finish <\n\t\t_threadPool.shutdown();\n\t}", "@Override\n\tpublic void run() \n\t{\n\n\t\ttry \n\t\t{\n\t\tif(isDriver) \n\t\t\t{\n\t\t\t\tSystem.out.println(\" waiting for the workers\");\n\t\t\t\tstopSignal.await();\n\t\t\t\tSystem.out.println(\" driver Shutting down.\");\n\t\t\t}\n\t\telse \n\t\t\t{\n\t\t\t\tThread.sleep(3000);\n\t\t\t\tSystem.out.println(\" Caller waiting \");\n\t\t\t\tstartSignal.await();\n\t\t\t\tSystem.out.println(\" Caller counting down \");\n\t\t\t\tstopSignal.countDown();\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) \n\t\t{\n\t\t\tSystem.err.println(\"e:\"+e.getMessage());\n\t\t}\n\n\t}", "public void shutdown(PircBotX bot) {\n\t\tList<ManagedFutureTask> remainingTasks;\n\t\tsynchronized (runningListeners) {\n\t\t\tremainingTasks = Lists.newArrayList(runningListeners.get(bot));\n\t\t}\n\n\t\t//Wait for all remaining tasks to return\n\t\tfor (ManagedFutureTask curFuture : remainingTasks)\n\t\t\ttry {\n\t\t\t\tlog.debug(\"Waiting for listener \" + curFuture.getListener() + \" to execute event \" + curFuture.getEvent());\n\t\t\t\tcurFuture.get();\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(\"Cannot shutdown listener \" + curFuture.getListener() + \" executing event \" + curFuture.getEvent(), e);\n\t\t\t}\n\t}", "public void shutdown() {\r\n ThreadLocalEventLoop.INSTANCE.resetEventLoop$kotlinx_coroutines_core();\r\n this.isCompleted = true;\r\n closeQueue();\r\n do {\r\n } while (processNextEvent() <= 0);\r\n rescheduleAllDelayed();\r\n }", "Task poll();", "@Test\n public void testTaskAddedAfterShutdownNotAbandoned() throws Exception {\n LinkedBlockingQueue<Runnable> taskQueue = new LinkedBlockingQueue<Runnable>() {\n @Override\n public boolean remove(Object o) {\n throw new UnsupportedOperationException();\n }\n };\n\n final Runnable dummyTask = new Runnable() {\n @Override\n public void run() {\n }\n };\n\n final LinkedBlockingQueue<Future<?>> submittedTasks = new LinkedBlockingQueue<Future<?>>();\n final AtomicInteger attempts = new AtomicInteger();\n final AtomicInteger rejects = new AtomicInteger();\n\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n final SingleThreadEventExecutor executor = new SingleThreadEventExecutor(null, executorService, false,\n taskQueue, RejectedExecutionHandlers.reject()) {\n @Override\n protected void run() {\n while (!confirmShutdown()) {\n Runnable task = takeTask();\n if (task != null) {\n task.run();\n }\n }\n }\n\n @Override\n protected boolean confirmShutdown() {\n boolean result = super.confirmShutdown();\n // After shutdown is confirmed, scheduled one more task and record it\n if (result) {\n attempts.incrementAndGet();\n try {\n submittedTasks.add(submit(dummyTask));\n } catch (RejectedExecutionException e) {\n // ignore, tasks are either accepted or rejected\n rejects.incrementAndGet();\n }\n }\n return result;\n }\n };\n\n // Start the loop\n executor.submit(dummyTask).sync();\n\n // Shutdown without any quiet period\n executor.shutdownGracefully(0, 100, TimeUnit.MILLISECONDS).sync();\n\n // Ensure there are no user-tasks left.\n assertEquals(0, executor.drainTasks());\n\n // Verify that queue is empty and all attempts either succeeded or were rejected\n assertTrue(taskQueue.isEmpty());\n assertTrue(attempts.get() > 0);\n assertEquals(attempts.get(), submittedTasks.size() + rejects.get());\n for (Future<?> f : submittedTasks) {\n assertTrue(f.isSuccess());\n }\n }", "public synchronized void close() {\r\n\r\n\t\tif (done) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tdone = true;\r\n\r\n\t\tabortScheduledTasks();\r\n\t}", "void startShutdown() {\n closed.set(true);\n regionManager.stopScanners();\n synchronized(toDoQueue) {\n toDoQueue.clear(); // Empty the queue\n delayedToDoQueue.clear(); // Empty shut down queue\n toDoQueue.notifyAll(); // Wake main thread\n }\n serverManager.notifyServers();\n }", "public void run() {\n\t\twhile (!isShutdown()) {\n\t\t\tlong threadId = Thread.currentThread().getId(); \n\t\t\tSystem.out.println(\"Thread \" + threadId + \" is trying to dequeue from queue of size \" + taskQueue.size());\n\t\t\tRunnable task = taskQueue.dequeue();\n\t\t\ttask.run(); \n\t\t}\n\t}", "private void runPeriodic() {\n boolean ok = ScheduledFutureTask.super.runAndReset();\n boolean down = isShutdown();\n // Reschedule if not cancelled and not shutdown or policy allows\n if (ok && !down) {\n updateNextExecutionTime();\n MeasurableScheduler.super.getQueue().add(this);\n }\n // This might have been the final executed delayed\n // task. Wake up threads to check.\n else if (down)\n interruptIdleWorkers();\n }", "public static <T> void executeUntilFailure(Executor executor, Collection<Callable<T>> tasks)\n {\n CompletionService<T> completionService = new ExecutorCompletionService<>(executor);\n List<Future<T>> futures = new ArrayList<>(tasks.size());\n for (Callable<T> task : tasks) {\n futures.add(completionService.submit(task));\n }\n try {\n for (int i = 0; i < futures.size(); i++) {\n getDone(take(completionService));\n }\n }\n catch (Exception failure) {\n try {\n futures.forEach(future -> future.cancel(true));\n }\n catch (RuntimeException e) {\n failure.addSuppressed(e);\n }\n throw failure;\n }\n }", "@Override\n public void close() throws Exception {\n log.info(\"Shutting down task replicator...\");\n while (running) {\n Thread.sleep(300L);\n }\n }", "public void shutdown() {\n lock.lock();\n try {\n state = State.SHUTDOWN;\n if (serialExecutorMap.isEmpty()) {\n executor.shutdown();\n }\n } finally {\n lock.unlock();\n }\n }", "public void shutDownExecutorService() {\r\n\t\tlogger.info(\"Shutting down FileEncryptionExecutor...\");\r\n\t\ttry {\r\n\t\t\tservice.shutdown();\r\n\t\t\tservice.awaitTermination(60 * 10, TimeUnit.SECONDS);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tlogger.error(\r\n\t\t\t\t\t\"InterruptedException occurred when shutDownExecutorService.\",\r\n\t\t\t\t\te);\r\n\t\t}\r\n\t\tlogger.info(\"Shut down FileEncryptionExecutor.\");\r\n\t}", "public void run() {\n\t\t\t\t// Do shutdown work ...\n\t\t\t\tsavePreferences();\n\t\t\t\tUtils.deleteTempDirectories(lstTempDirectories);\n\t\t\t}", "private void waitForBackgroupTasks() {\n this.objectStore.getAllObjectIDs();\n this.objectStore.getAllEvictableObjectIDs();\n this.objectStore.getAllMapTypeObjectIDs();\n }", "protected void waitDownloads() throws Exception {\n runtimeWrapper.newCommand();\n }", "@Override\n public void run() {\n shutdown();\n }", "public void performOtherTasks() {\n\t\t\tSystem.out.println(\"performing tasks other than servicing\");\n\t\t\t// do whatever you want to do in the servicing package\n\t\t}", "void execute() throws Exception {\n\n\t\tif (getSystemState(db) != SYSTEM_STATE_CREATED_COULD_BE_EXACTLY_ONE) {\n\t\t\tInteger ss = getSystemState(db);\n\t\t\tshutDown();\n\t\t\tthrow new Exception(\"System in wrong state for this task: \" + ss);\n\t\t}\n\n\t\tloadExecutionEngine(db);\n\t\tperformUpdate();\n\t\tshutDown();\n\t}", "public FutureDone<Void> shutdown() {\n // set shutdown flag for UDP and TCP, if we acquire a write lock, all read locks are blocked as well\n writeUDP.lock();\n writeTCP.lock();\n try {\n if (shutdownTCP || shutdownUDP) {\n shutdownFuture().setFailed(\"already shutting down\");\n return shutdownFuture();\n }\n shutdownUDP = true;\n shutdownTCP = true;\n } finally {\n writeTCP.unlock();\n writeUDP.unlock();\n }\n\n recipients.close().addListener(new GenericFutureListener<ChannelGroupFuture>() {\n @Override\n public void operationComplete(final ChannelGroupFuture future) throws Exception {\n if (!semaphoreUPD.tryAcquire(maxPermitsUDP)) {\n LOG.error(\"Cannot shutdown, as connections (UDP) are still alive\");\n shutdownFuture().setFailed(\"Cannot shutdown, as connections (UDP) are still alive\");\n throw new RuntimeException(\"Cannot shutdown, as connections (UDP) are still alive\");\n }\n if (!semaphoreTCP.tryAcquire(maxPermitsTCP)) {\n LOG.error(\"Cannot shutdown, as connections (TCP) are still alive\");\n shutdownFuture().setFailed(\"Cannot shutdown, as connections (TCP) are still alive\");\n throw new RuntimeException(\"Cannot shutdown, as connections (TCP) are still alive\");\n }\n shutdownFuture().setDone();\n }\n });\n return shutdownFuture();\n }", "private void safeWaitTasks(Set<Future<?>> activeTasks, CompletionService<?> completionService)\n throws IOException {\n // Wait until backup tasks are completed.\n while (activeTasks.size() > 0) {\n try {\n Future<?> resultFuture = completionService.take();\n activeTasks.remove(resultFuture);\n resultFuture.get();\n } catch (InterruptedException ie) {\n // Cancel pending tasks.\n activeTasks.forEach((future) -> future.cancel(true));\n // Continue interrupt chain.\n Thread.currentThread().interrupt();\n throw new RuntimeException(\"Thread interrupted while waiting for backup threads.\", ie);\n } catch (ExecutionException ee) {\n // Cancel pending tasks.\n activeTasks.forEach((future) -> future.cancel(true));\n // Throw.\n Throwable cause = ee.getCause();\n if (cause instanceof IOException) {\n throw (IOException) cause;\n } else {\n throw new IOException(cause);\n }\n }\n }\n }", "public Status waitUntilFinished();", "ProcessRunner waitFor();", "public void run() {\n while (!stopped) {\n Runnable task = (Runnable) queue.remove();\n if (task != null) {\n try {\n task.run();\n } catch (Throwable t) {\n monitor.handleThrowable(this.getClass(), task, t);\n }\n }\n }\n }", "private void tryDoingTasksInQueue() {\n var list = queue.exceptionsList;\n var t2 = new Thread(() -> {\n Retry.Operation op = (list1) -> {\n if (!list1.isEmpty()) {\n LOG.warn(\"Error in accessing queue db to do tasks, trying again..\");\n throw list1.remove(0);\n }\n doTasksInQueue();\n };\n Retry.HandleErrorIssue<QueueTask> handleError = (o, err) -> {\n };\n var r = new Retry<>(op, handleError, numOfRetries, retryDuration,\n e -> DatabaseUnavailableException.class.isAssignableFrom(e.getClass()));\n try {\n r.perform(list, null);\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n });\n t2.start();\n }", "private void awaitDone() throws IgniteInterruptedCheckedException {\n U.await(doneLatch);\n }", "public void checkOffTask() {\n isDone = true;\n }", "private void shutdown() {\n LOG.info(\"shutting down QlikLoad\");\n\n // pause briefly to allow things to drain\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n LOG.trace(\"shutdown() timer\");\n }\n\n if ((baos.size() != 0)) {\n LOG.warn(\"shutdown(): Thread {} baos HAS NOT been drained. Size: {}\",\n threadName, baos.size());\n } else {\n LOG.info(\"shutdown(): Thread {} baos has been drained. Size: {}\",\n threadName, baos.size());\n }\n\n\n qlikSocket.shutdown();\n }", "@Override\n\tpublic void run() {\n\t\twhile (!term) {\n\t\t\t// do something with 5 second intervals in between\n\t\t\ttry {\n\t\t\t\tThread.sleep(Settings.getActivityInterval());\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlog.info(\"received an interrupt, system is shutting down\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (!term) {\n\t\t\t\t// log.debug(\"doing activity\");\n\t\t\t\tterm = doActivity();\n\t\t\t}\n\n\t\t}\n\t\tlog.info(\"closing \" + connections.size() + \" connections\");\n\t\t// clean up\n\t\tfor (Connection connection : connections) {\n\t\t\tconnection.closeCon();\n\t\t}\n\t\tfor (Connection connection : loadConnections) {\n\t\t\tconnection.closeCon();\n\t\t}\n\t\tfor (Connection connection : broadConnections) {\n\t\t\tconnection.closeCon();\n\t\t}\n\t\tlistener.setTerm(true);\n\t}", "public void run() {\r\n\t\twhile(!quit) {\r\n\t\t\ttry {\r\n\t\t\t\tArrayList<Coupon>allCoupons = (ArrayList<Coupon>) couponDaoDB.getAllCoupons();\r\n\t\t\t\tfor (Coupon c : allCoupons) {\r\n\t\t\t\t\tif(couponDaoDB.expiriedCoupon(c)){\r\n\t\t\t\t\t\tcouponDaoDB.removeCoupon(c);\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"**Daily Job have been Activated**\");\r\n\t\t\t\tSystem.out.println(\"**All exipired Coupons have been Deleted**\");\r\n\t\t\t\tSystem.out.println(\"**going into Sleep of: \"+ sleepTime +\" hours**\");\r\n\t\t\t\tTimeUnit.HOURS.sleep(sleepTime);\r\n\t\t\t//\tTimeUnit.MINUTES.sleep(2); //for Testing\r\n\r\n\t\t\t} catch (InterruptedException | CouponSystemException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tprotected void run() {\n\t\tUtils.executeAndWaitForCommand(this.getHMetisExec());\n\t}", "public void halt() {\n\t\t// Task can not currently be halted.\n\t}", "public void executWaiting() {\n for (Runnable action : this.todo) {\n runAction( action );\n }\n }", "@Override\n\tpublic void launchTasks() throws Exception {\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).switchFridgeOn();\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t1000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).setOndulatorPolicy(\"default\");\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t1000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getFridgeTemperature();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t2000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getBatteryEnergy();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t3000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTaskWithFixedDelay(\t\t\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).controllFridge();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 4000, 1000 // délai entre la fin d'une exécution et la suivante, à modifier \n\t\t\t\t\t\t,TimeUnit.MILLISECONDS) ;\n\t\t\t\t\n\t\t\t\tthis.scheduleTaskWithFixedDelay(\t\t\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getEPConsommation();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 1000, 4000 // délai entre la fin d'une exécution et la suivante, à modifier \n\t\t\t\t\t\t,TimeUnit.MILLISECONDS) ;\n\t}", "public void shutdownProcess() {\n Timer shutdownTimer = new Timer();\n TimerTask shutdownTask = new TimerTask() {\n @Override\n public void run() {\n finishShutdown();\n }\n };\n if (this.offlineButton.isSelected() == false) {\n this.online = false;\n this.statusLed.setStatus(\"warning\");\n this.setOutputPower(0);\n this.offlineButton.setSelected(true);\n }\n this.statusLed.setSlowBlink(true);\n this.offlineButton.setDisable(true);\n this.shutdownButton.setDisable(true);\n shutdownTimer.schedule(shutdownTask, 10000l);\n }", "public void shutdown() {\n shutdown(false);\n }", "public void ShutDown()\n {\n bRunning = false;\n \n LaunchLog.Log(COMMS, LOG_NAME, \"Shut down instruction received...\");\n\n for(LaunchServerSession session : Sessions.values())\n {\n LaunchLog.Log(COMMS, LOG_NAME, \"Closing session...\");\n session.Close();\n }\n \n LaunchLog.Log(COMMS, LOG_NAME, \"...All sessions are closed.\");\n }", "private void shutdown() {\n try {\n LOGGER.debug(\"Shutting down executor service\");\n this.executorService.shutdown();\n LOGGER.debug(\"Waiting for termination of executor\");\n this.executorService.awaitTermination(15, TimeUnit.MINUTES);\n } catch (InterruptedException e) {\n LOGGER.warn(\"Interrupted while waiting for Executor to shut down!\");\n } finally {\n for (Extractor extractor : this.extractors) {\n try {\n extractor.finish();\n } catch (Exception e) {\n LOGGER.error(\"Error while shutting down extractor {} : {}\",\n extractor.getClass().getSimpleName(), LogHelper.getStackTrace(e));\n }\n }\n LOGGER.debug(\"All extractors termination, executor service terminated. Exiting shutdown.\");\n }\n }", "protected abstract void shutdown();", "public void shutDown()\n\t{\n\t\tthis.threadPool.shutdown();\n\t}", "void waitAll();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "@Override\n\tpublic void run() {\n\t\tif (queue.size() > 0) {\n\t\t\tITask task = queue.poll();\n\t\t\tpool.execute(task);\n\t\t} else {\n\t\t\tqueue.setTaskRunning(false);\n\t\t}\n\t}", "public void run() {\n boolean quiesceRequested = false;\n // A sleeper that sleeps for msgInterval.\n Sleeper sleeper = new Sleeper(this.msgInterval, this.stopRequested);\n try {\n init(reportForDuty(sleeper));\n long lastMsg = 0;\n // Now ask master what it wants us to do and tell it what we have done\n for (int tries = 0; !stopRequested.get() && isHealthy();) {\n long now = System.currentTimeMillis();\n if (lastMsg != 0 && (now - lastMsg) >= serverLeaseTimeout) {\n // It has been way too long since we last reported to the master.\n LOG.warn(\"unable to report to master for \" + (now - lastMsg) +\n \" milliseconds - retrying\");\n }\n if ((now - lastMsg) >= msgInterval) {\n HMsg outboundArray[] = null;\n synchronized(this.outboundMsgs) {\n outboundArray =\n this.outboundMsgs.toArray(new HMsg[outboundMsgs.size()]);\n this.outboundMsgs.clear();\n }\n try {\n doMetrics();\n this.serverInfo.setLoad(new HServerLoad(requestCount.get(),\n onlineRegions.size(), this.metrics.storefiles.get(),\n this.metrics.memcacheSizeMB.get()));\n this.requestCount.set(0);\n HMsg msgs[] = hbaseMaster.regionServerReport(\n serverInfo, outboundArray, getMostLoadedRegions());\n lastMsg = System.currentTimeMillis();\n if (this.quiesced.get() && onlineRegions.size() == 0) {\n // We've just told the master we're exiting because we aren't\n // serving any regions. So set the stop bit and exit.\n LOG.info(\"Server quiesced and not serving any regions. \" +\n \"Starting shutdown\");\n stopRequested.set(true);\n this.outboundMsgs.clear();\n continue;\n }\n \n // Queue up the HMaster's instruction stream for processing\n boolean restart = false;\n for(int i = 0;\n !restart && !stopRequested.get() && i < msgs.length;\n i++) {\n LOG.info(msgs[i].toString());\n switch(msgs[i].getType()) {\n case MSG_CALL_SERVER_STARTUP:\n // We the MSG_CALL_SERVER_STARTUP on startup but we can also\n // get it when the master is panicing because for instance\n // the HDFS has been yanked out from under it. Be wary of\n // this message.\n if (checkFileSystem()) {\n closeAllRegions();\n try {\n log.closeAndDelete();\n } catch (Exception e) {\n LOG.error(\"error closing and deleting HLog\", e);\n }\n try {\n serverInfo.setStartCode(System.currentTimeMillis());\n log = setupHLog();\n this.logFlusher.setHLog(log);\n } catch (IOException e) {\n this.abortRequested = true;\n this.stopRequested.set(true);\n e = RemoteExceptionHandler.checkIOException(e); \n LOG.fatal(\"error restarting server\", e);\n break;\n }\n reportForDuty(sleeper);\n restart = true;\n } else {\n LOG.fatal(\"file system available check failed. \" +\n \"Shutting down server.\");\n }\n break;\n \n case MSG_REGIONSERVER_STOP:\n stopRequested.set(true);\n break;\n \n case MSG_REGIONSERVER_QUIESCE:\n if (!quiesceRequested) {\n try {\n toDo.put(new ToDoEntry(msgs[i]));\n } catch (InterruptedException e) {\n throw new RuntimeException(\"Putting into msgQueue was \" +\n \"interrupted.\", e);\n }\n quiesceRequested = true;\n }\n break;\n \n default:\n if (fsOk) {\n try {\n toDo.put(new ToDoEntry(msgs[i]));\n } catch (InterruptedException e) {\n throw new RuntimeException(\"Putting into msgQueue was \" +\n \"interrupted.\", e);\n }\n }\n }\n }\n // Reset tries count if we had a successful transaction.\n tries = 0;\n \n if (restart || this.stopRequested.get()) {\n toDo.clear();\n continue;\n }\n } catch (Exception e) {\n if (e instanceof IOException) {\n e = RemoteExceptionHandler.checkIOException((IOException) e);\n }\n if (tries < this.numRetries) {\n LOG.warn(\"Processing message (Retry: \" + tries + \")\", e);\n tries++;\n } else {\n LOG.error(\"Exceeded max retries: \" + this.numRetries, e);\n checkFileSystem();\n }\n if (this.stopRequested.get()) {\n \tLOG.info(\"Stop was requested, clearing the toDo \" +\n \t\t\t\"despite of the exception\");\n toDo.clear();\n continue;\n }\n }\n }\n // Do some housekeeping before going to sleep\n housekeeping();\n sleeper.sleep(lastMsg);\n } // for\n } catch (OutOfMemoryError error) {\n abort();\n LOG.fatal(\"Ran out of memory\", error);\n } catch (Throwable t) {\n LOG.fatal(\"Unhandled exception. Aborting...\", t);\n abort();\n }\n RegionHistorian.getInstance().offline();\n this.leases.closeAfterLeasesExpire();\n this.worker.stop();\n this.server.stop();\n if (this.infoServer != null) {\n LOG.info(\"Stopping infoServer\");\n try {\n this.infoServer.stop();\n } catch (InterruptedException ex) {\n ex.printStackTrace();\n }\n }\n \n // Send interrupts to wake up threads if sleeping so they notice shutdown.\n // TODO: Should we check they are alive? If OOME could have exited already\n cacheFlusher.interruptIfNecessary();\n logFlusher.interrupt();\n compactSplitThread.interruptIfNecessary();\n logRoller.interruptIfNecessary();\n \n if (abortRequested) {\n if (this.fsOk) {\n // Only try to clean up if the file system is available\n try {\n if (this.log != null) {\n this.log.close();\n LOG.info(\"On abort, closed hlog\");\n }\n } catch (IOException e) {\n LOG.error(\"Unable to close log in abort\",\n RemoteExceptionHandler.checkIOException(e));\n }\n closeAllRegions(); // Don't leave any open file handles\n }\n LOG.info(\"aborting server at: \" +\n serverInfo.getServerAddress().toString());\n } else {\n ArrayList<HRegion> closedRegions = closeAllRegions();\n try {\n log.closeAndDelete();\n } catch (IOException e) {\n LOG.error(\"Close and delete failed\",\n RemoteExceptionHandler.checkIOException(e));\n }\n try {\n HMsg[] exitMsg = new HMsg[closedRegions.size() + 1];\n exitMsg[0] = HMsg.REPORT_EXITING;\n // Tell the master what regions we are/were serving\n int i = 1;\n for (HRegion region: closedRegions) {\n exitMsg[i++] = new HMsg(HMsg.Type.MSG_REPORT_CLOSE,\n region.getRegionInfo());\n }\n \n LOG.info(\"telling master that region server is shutting down at: \" +\n serverInfo.getServerAddress().toString());\n hbaseMaster.regionServerReport(serverInfo, exitMsg, (HRegionInfo[])null);\n } catch (IOException e) {\n LOG.warn(\"Failed to send exiting message to master: \",\n RemoteExceptionHandler.checkIOException(e));\n }\n LOG.info(\"stopping server at: \" +\n serverInfo.getServerAddress().toString());\n }\n if (this.hbaseMaster != null) {\n HbaseRPC.stopProxy(this.hbaseMaster);\n this.hbaseMaster = null;\n }\n join();\n LOG.info(Thread.currentThread().getName() + \" exiting\");\n }", "public void run() {\n TasksCounter tc = new TasksCounter(tasks);\n new Window(tc);\n Ui.welcome();\n boolean isExit = false;\n Scanner in = new Scanner(System.in);\n while (!isExit) {\n try {\n String fullCommand = Ui.readLine(in);\n Command c = Parser.commandLine(fullCommand);\n c.execute(tasks, members, storage);\n isExit = c.isExit();\n } catch (DukeException e) {\n Ui.print(e.getMessage());\n }\n }\n }", "void shutdown() {\n\t\t\tshutdown = true;\n\t\t\tsel.wakeup();\n\t\t}", "public void run() {\n try {\n start().get();\n }\n catch (InterruptedException e) {\n Thread.interrupted();\n throw new UncheckedExecutionException(e);\n }\n catch (ExecutionException e) {\n throw new UncheckedExecutionException(e.getCause());\n }\n finally {\n bossGroup.shutdownGracefully();\n workerGroup.shutdownGracefully();\n }\n }", "@Override\n protected void schedule() throws Exception {\n try {\n List<Slave> slaves = getSlaves();\n for (Slave slave : slaves) {\n int tc = tasksNode.getNumAssignedTasks(slave.getId());\n if (tc < 10) {\n for (int i = tc; i < 10; i++) {\n int k = counter.incrementAndGet();\n final String j = \"task-\" + k;\n Task t = new Task() {\n @Override\n public String getId() {\n return j;\n }\n\n @Override\n public byte[] getData() throws Exception {\n return new byte[0];\n }\n };\n\n tasksNode.addTask(t, slave.getId());\n if (k >= TOTAL_RECORDS){\n System.out.println(\"Stopping server [\" + getServerId() + \"]\");\n break;\n }\n }\n }\n }\n } catch (Exception e) {\n\n }\n tasksNode.watch(monitor);\n synchronized (monitor) {\n monitor.wait(PAUSE_BETWEEN_TASK_SCHEDULE);\n }\n }", "protected void shutDown() throws Exception {\n logger.error(\"FetchCoinTask has been requested to shutdown\");\n }", "public void mo37770b() {\n ArrayList<RunnableC3181a> arrayList = f7234c;\n if (arrayList != null) {\n Iterator<RunnableC3181a> it = arrayList.iterator();\n while (it.hasNext()) {\n ThreadPoolExecutorFactory.getScheduledExecutor().execute(it.next());\n }\n f7234c.clear();\n }\n }", "public void shutdown() {\n\t\tthreadPool.shutdown();\n\t}", "@Override\n public void waitShutdown() {\n // Do nothing.\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t\n\t\t\t while ( !bFinished ) {\n\t\t\t \ttry {\n\t\t\t\t\t\t\tThread.sleep(200);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t }\n\t\t\t System.exit(0);\n\t\t\t\t}", "public void shutdown();" ]
[ "0.696135", "0.6708509", "0.6458363", "0.63351893", "0.6252461", "0.6196865", "0.61677766", "0.61501867", "0.60975266", "0.6093719", "0.6066152", "0.60258496", "0.59849024", "0.58921146", "0.5886899", "0.5885435", "0.587794", "0.5868531", "0.58659047", "0.5858842", "0.58575445", "0.584566", "0.5834354", "0.5822379", "0.5786862", "0.5753884", "0.5750113", "0.5738283", "0.5733084", "0.5726287", "0.5722653", "0.5708378", "0.57065666", "0.5691483", "0.56910926", "0.5683973", "0.5660808", "0.5652531", "0.564093", "0.56398726", "0.5636845", "0.5632596", "0.5631889", "0.563183", "0.5631808", "0.5627611", "0.5626507", "0.5608109", "0.55613625", "0.5552946", "0.55429214", "0.5539658", "0.5515088", "0.5513895", "0.55082136", "0.5506969", "0.5502792", "0.5502113", "0.54948616", "0.5484099", "0.54824424", "0.54579693", "0.5444358", "0.54442567", "0.5434488", "0.5433246", "0.54318184", "0.5430444", "0.542858", "0.541919", "0.5418958", "0.54111606", "0.54111606", "0.54111606", "0.54111606", "0.54111606", "0.54111606", "0.54111606", "0.54111606", "0.54111606", "0.54111606", "0.54111606", "0.54111606", "0.54111606", "0.54111606", "0.54111606", "0.54111606", "0.54111606", "0.53957796", "0.53913707", "0.5388038", "0.5384668", "0.53755903", "0.5373346", "0.53693706", "0.5368895", "0.5367872", "0.5366123", "0.53646237", "0.5362988" ]
0.59672105
13
Initializes internal state after construction but before processing any tasks. If you override this method, you must invoke super.onStart() at the beginning of the method. Initialization requires care: Most fields must have legal default values, to ensure that attempted accesses from other threads work correctly even before this thread starts processing tasks.
protected void onStart() { // Allocate while starting to improve chances of thread-local // isolation queue = new Runnable[INITIAL_QUEUE_CAPACITY]; // Initial value of seed need not be especially random but // should differ across threads and must be nonzero int p = poolIndex + 1; seed = p + (p << 8) + (p << 16) + (p << 24); // spread bits }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t\tprocessAsync();\t\t\r\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n\n Log.d(TAG, \"now running: onStart\");\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(msg, \"The onStart() event\");\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(msg, \"The onStart() event\");\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(tag, \"The onStart() event\");\n }", "@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }", "@Override\r\n public void onStart() {\r\n super.onStart();\r\n UserDataManager.instantiateManager(this);\r\n refreshData();\r\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(TAG, \"onStart() called\");\n }", "@Override\n public void onStart() {\n this.dataGenerator = new DataGenerator(this.dataSize, this.dataValues, this.dataValuesBalancing);\n this.dataStream = new DataStream();\n if (this.flowRate != 0)\n this.sleepTime = dataStream.convertToInterval(this.flowRate);\n this.count = 0L;\n// this.me = this.me + \"_\" + getRuntimeContext().getIndexOfThisSubtask();\n new Thread(this::receive).start();\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tLog.v(TAG, \"onStart())\");\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tLogger.d(TAG, \"onStart.....\");\n\t}", "@Override\n\t\t\tpublic void onStart()\n\t\t\t{\n\t\t\t\tsuper.onStart();\n\t\t\t}", "@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t\tsuper.onStart();\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t\tsuper.onStart();\n\t\t\t\t}", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\tmStart = false;\n\t}", "@Override\n\t\tprotected void onStart() {\n\t\t\tsuper.onStart();\n\t\t}", "protected void onStart ()\n\t{\n\t\tsuper.onStart ();\n\t}", "@Override\n public void onInitializeTasks() {\n }", "@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tLog.e(TAG, \"onStart\");\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n Log.e(TAG, \"onStart\");\n }", "@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t}", "@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t}", "@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t}", "@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t}", "@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t}", "@Override\n\tprotected void onStart()\n\t{\n\t\tsuper.onStart();\n\t}", "@Override\n\t\tprotected void onStart() {\n\t\t\tsuper.onStart();\n\t\t\tToast.makeText(getApplicationContext(), \"onStart\", Toast.LENGTH_SHORT).show();\n\n\t\t\tLog.d(msg, \"The onStart() event\");\n\t\t}", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\t// super.onRestoreInstanceState(outState);\n\n\t\tif (D)\n\t\t\tLog.e(TAG, \"++ ON START ++\");\n\t}", "@Override\r\n public void onStart() {\n super.onStart();\r\n }", "@Override\n protected void onStart() {\n super.onStart();\n infoLog(\"onStart\");\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(LOG_TAG,\"onStart\");\n }", "@Override\r\n\tpublic void onStart() {\n\t\tsuper.onStart();\r\n\t}", "@Override\r\n\tpublic void onStart() {\n\t\tsuper.onStart();\r\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n }", "@Override\n protected void onStart() {\n super.onStart();\n }", "@Override\n protected void onStart() {\n super.onStart();\n }", "@Override\n protected void onStart() {\n super.onStart();\n }", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\tLog.i(TAG, \"onStart\");\n\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tLog.v(\"tag\",\"onStart\" );\n\t}", "public void onStart() {\n super.onStart();\n }", "@Override\n public void onStart() {\n }", "@Override\n public void onStart() {\n }", "@Override\n public void onStart() {\n }", "@Override\n public void onStart() {\n }", "@Override\n public void onStart() {\n }", "@Override\n public void onStart() {\n }", "@Override\n public void onStart() {\n }", "@Override\n public void onStart() {\n }", "@Override\n public void onStart() {\n }", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t}", "@Override\n public void onStart() {\n super.onStart();\n }", "@Override\n\tpublic void onStart() {\n\n\t\tsuper.onStart();\n\n\t\t/*\n\t\t * Connect the client. Don't re-start any requests here;\n\t\t * instead, wait for onResume()\n\t\t */\n\t\tmLocationClient.connect();\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n }", "@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tLog.e(\"xx\", \"onstart\");\n\n\t\t\t}", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tLog.d(\"RituNavi\", \"MainTestActivity onStart\");\n\t}", "public void onStart() {\n\t\tsuper.onStart();\n\t\tXMLManager.verifyXMLIntegrity(this);\n\t\trefreshActivityContents();\n\t}", "public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }", "@Override\n\t\t\t\t\tpublic void onStart() {\n\n\t\t\t\t\t}", "@Override\r\n public void onStart() {\r\n \tsuper.onStart();\r\n \tif (UserInfo.isOffline()) offlineLoad();\r\n \telse {\r\n \t\tgetData();\r\n \t\tgetComments();\r\n \t}\r\n }", "@Override\n protected void onStart() {\n super.onStart();\n initializeLogging();\n }", "@Override\n protected void onStart() {\n super.onStart();\n Log.d(\"STATO\",\"START\");\n }", "@Override\r\n public void onStart ()\r\n {\r\n \tLog.d(TAG,\"onStart start\");\r\n\t \tsuper.onStart (); \r\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tinitView();\n\t\tinitData();\n\t\tsetOnClick();\n\t\tdelete();\n\t}", "@Override\n public void onStart() {\n super.onStart();\n\t\t\n }", "public void onStart() {\n }", "@Override\n\tprotected void onStart() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onStart();\n\t\tthis.loadFromFile();\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tLog.i(TAG, module + \" Entra por onStart\");\n\n\t}", "@Override\n public void onStart() {\n \n }", "@Override\n public void onStart() {\n \n }", "@Override\n protected void onStart() {\n LogHelper.d(\"TAG_STAY_location\", \"onStart -- pref_AppForeGroundStatus >> true >>>> : >>>>\");\n super.onStart();\n\n }", "@Override\n protected void onStart(){\n taskCollectors = getLocallyStoredData(storeRetrieveData);\n int size = taskCollectors.size();\n if (size<3){\n switch (size){\n case 0:\n taskCollectors.add(new TaskCollector(\"today\",new ArrayList<Task>()));\n case 1:\n taskCollectors.add(new TaskCollector(\"collection\",new ArrayList<Task>()));\n case 2:\n taskCollectors.add(new TaskCollector(\"courses\",new ArrayList<Task>()));\n default:\n break;\n }\n }\n if (taskCollectors.size()>0&&index<taskCollectors.size()){\n tasks = taskCollectors.get(index).getTasks();\n switch (index){\n case 0:\n taskCollectors.get(0).setName(\"today\");\n case 1:\n taskCollectors.get(1).setName(\"collection\");\n case 2:\n taskCollectors.get(2).setName(\"courses\");\n default:\n break;\n }\n mFloatingNavView.setImageBitmap(textAsBitmap(taskCollectors.get(index).getName(), 40, Color.parseColor(\"#515151\")));\n }\n //闹钟操作\n installAlarms(getApplicationContext(),taskCollectors);\n super.onStart();\n }", "@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tLog.e(\"xx\",\"onstart\");\n\n\t\t\t}", "@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tLog.e(\"xx\",\"onstart\");\n\n\t\t\t}", "@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tLog.e(\"xx\",\"onstart\");\n\n\t\t\t}", "@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tLog.e(\"xx\",\"onstart\");\n\n\t\t\t}", "@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tLog.e(\"xx\",\"onstart\");\n\n\t\t\t}", "@Override\r\n public void onStart(){\r\n super.onStart();\r\n\r\n }", "@Override\n public void onStart() {\n super.onStart();\n Log.d(Constants.ERROR_TAG_ACTIVITY_ONE, Constants.ON_START);\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tSystem.out.println(\"Método onStart\");\n\t}", "@Override\n public void onStart(){\n super.onStart();\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tSystem.out.println(\"onStart...\");\n\t}", "@Override\n public void onStart() {\n super.onStart();\n if (Util.SDK_INT > 23) {\n initializePlayer(this.getContext());\n }\n }", "@Override\n public void init() {\n this.log.pri1(LoggingInterface.INIT_START, \"\");\n // Any task initialization code goes here.\n this.log.pri1(LoggingInterface.INIT_END, \"\");\n }" ]
[ "0.7338509", "0.7084789", "0.7047627", "0.7047627", "0.69549793", "0.6946187", "0.6879341", "0.6875318", "0.68584025", "0.68213123", "0.679898", "0.6792953", "0.67823523", "0.67823523", "0.67787814", "0.6755556", "0.6754304", "0.674176", "0.67395854", "0.67373395", "0.6732765", "0.67291135", "0.67291135", "0.67291135", "0.67291135", "0.67291135", "0.67276525", "0.67196846", "0.6715031", "0.67138726", "0.6707725", "0.67075723", "0.6701491", "0.6701491", "0.66873425", "0.66873425", "0.66873425", "0.66873425", "0.66873425", "0.66873425", "0.66873425", "0.66873425", "0.66873425", "0.66873425", "0.66873425", "0.66829294", "0.66829294", "0.66829294", "0.66829294", "0.6676346", "0.6673754", "0.66673964", "0.66601324", "0.66601324", "0.66601324", "0.66601324", "0.66601324", "0.66601324", "0.66601324", "0.66601324", "0.66601324", "0.66554713", "0.66554713", "0.66554713", "0.66554713", "0.66554713", "0.66554713", "0.6638378", "0.6618625", "0.659734", "0.6595902", "0.6584947", "0.6584221", "0.657012", "0.65643907", "0.65601784", "0.6552109", "0.65518993", "0.65501213", "0.6546484", "0.6542297", "0.65379757", "0.65246266", "0.6505601", "0.64891976", "0.647819", "0.647819", "0.6471436", "0.64694387", "0.64597595", "0.64597595", "0.64597595", "0.64597595", "0.64597595", "0.64529747", "0.64522904", "0.6437293", "0.6431953", "0.64266485", "0.64175785", "0.64103395" ]
0.0
-1
Intrinsicsbased support for queue operations.
private static long slotOffset(int i) { return ((long) i << qShift) + qBase; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Queue {\n\tpublic Set getGatheredElements();\n\tpublic Set getProcessedElements();\n\tpublic int getQueueSize(int level);\n\tpublic int getProcessedSize();\n\tpublic int getGatheredSize();\n\tpublic void setMaxElements(int elements);\n\tpublic Object pop(int level);\n\tpublic boolean push(Object task, int level);\n\tpublic void clear();\n}", "void processQueue();", "public interface Queue {\n /***** Setting class functions *******/\n\n /* Add element to end of queue function\n * PRE: elem != null && queue != null\n * POST: queue[size] = elem && size` = size + 1 && other imutabled\n */\n void enqueue(Object elem);\n\n /* Delete and return first element in queue function\n * PRE: size > 0\n * POST: R = queue[0] && queue[i] = queue[i + 1] && size` = size - 1 && other imutabled\n */\n Object dequeue();\n\n /* Add element to begin of queue\n * PRE: elem != null\n * POST: queue[i] = queue[i - 1](size >= i > 0) && queue[0] = elem && size` = size + 1 && other imutabled\n */\n void push(Object elem);\n\n /* Delete and return last element in queue function\n * PRE: size > 0\n * POST: R = queue[size - 1] && size` = size - 1 && other imutabled\n */\n Object remove();\n\n /***** Getting class functions *******/\n\n /* Get first element of queue function\n * PRE: size > 0\n * POST: R = queue[0] && all elements imutabled\n */\n Object element();\n\n /* Get last element of queue function\n * PRE: size > 0\n * POST: R = queue[size - 1] && all elements imutabled\n */\n Object peek();\n\n /* Get size function\n * PRE: True\n * POST: R = size && all imutabled\n */\n int size();\n\n /* Check for empty queue function\n * PRE: True\n * POST: R = (size == 0) && all imutabled\n */\n boolean isEmpty();\n\n /* Delete all elements from queue function\n * PRE: True\n * POST: size = 0\n */\n void clear();\n\n /******* Modification *******/\n /* Create queue with elements like predicate\n * PRE: correct predicate && queue != null\n * POST: all imutabled && R = {R[0]...R[new_size] : new_size <= size && predicate(R[i]) = 1 && R - the same type of queue}\n * : && exist sequence i[0] ... i[k] (i[0] < ... < i[k]) : R[it] = queue[i[it]](0 <= it < k) && k - max\n */\n Queue filter(Predicate predicate);\n\n /* Create queue with elements like predicate\n * PRE: correct function && queue != null\n * POST: all imutabled && R = {y[i] | y[i] = function(queue[i])} size(R) = size(queue) && R is the same type of queue\n */\n Queue map(Function function);\n}", "public interface Queue<T extends Object> {\n\n\t/**\n\t * Method to return the queue iterator\n\t * \n\t * @return Queue Iterator\n\t */\n\tpublic Iterator<T> getIterator();\n\n\t/**\n\t * Method to peek the queue face\n\t * \n\t * @return front data\n\t */\n\tpublic T peek();\n\n\t/**\n\t * Method to pop from front of the queue\n\t * \n\t * @return front data\n\t */\n\tpublic T pop();\n\n\t/**\n\t * Push method for inserting Integer data at end of the queue\n\t * \n\t * @param data\n\t */\n\tpublic void push(T data);\n\n\t/**\n\t * Push method for inserting Long data at end of the queue\n\t * \n\t * @param data\n\t */\n\t// public void push(Long data);\n\n\t/**\n\t * Push method for inserting Double data at end of the queue\n\t * \n\t * @param data\n\t */\n\t// public void push(Double data);\n\n\t/**\n\t * Push method for inserting String data at end of the queue\n\t * \n\t * @param data\n\t */\n\t// public void push(String data);\n}", "public interface IQueue {\n public void clear();\n public boolean isEmpty();\n public int length();\n public Object peek();\n public void offer(Object x) throws Exception;\n public Object poll();\n}", "private void workOnQueue() {\n }", "public interface Queue<E> {\r\n\r\n /**\r\n * Adds the given item to the end of the queue.\r\n * \r\n * @pre The queue is not full and the item to be added is not null\r\n * @post The item is added at the end of the queue\r\n * @param item\r\n * The item to be added to the queue\r\n */\r\n void enqueue(E item);\r\n\r\n /**\r\n * Removes and returns the item from the beginning of the queue.\r\n * \r\n * @pre The queue is not full\r\n * @post The item is removed queue\r\n * @return the item removed from the queue or null if the queue is empty\r\n */\r\n E dequeue();\r\n\r\n}", "Queue<IMotion> addToQueue(Queue<IMotion> motionQueue);", "public void onQueue();", "public interface Queue {\n\n void enqueue(int value);\n\n int dequeue();\n}", "void enqueue(T x);", "@Test\n public void testEnqueue() {\n Queue queue = new Queue();\n queue.enqueue(testParams[1]);\n queue.enqueue(testParams[2]);\n queue.enqueue(testParams[3]);\n queue.enqueue(testParams[4]);\n queue.enqueue(testParams[5]);\n\n Object[] expResult = {testParams[1], testParams[2], testParams[3], testParams[4], testParams[5]};\n\n // call tested method\n Object[] actualResult = new Object[queue.getSize()];\n int len = queue.getSize();\n for(int i = 0; i < len; i++){\n actualResult[i] = queue.dequeue();\n }\n\n // compare expected result with actual result\n assertArrayEquals(expResult, actualResult);\n }", "void runQueue();", "public interface QueueInterface {\r\n Object dequeue() throws QueueUnderflowException;\r\n // Throws QueueUnderflowException if this queue is empty,\r\n // otherwise removes top element from this queue.\r\n \r\n \r\n boolean isEmpty();\r\n // Returns true if this queuea is empty, otherwise returns false.\r\n\r\n}", "public interface QueueServiceProvider {\n /**\n * Returns the name of the Queue implementation.\n * @return Name of the queue implementation.\n */\n String name();\n\n /**\n * Places an object on the end of the queue.\n * @param object Object to place on the queue.\n */\n void enqueue(String object);\n\n /**\n * Retrieves an object from the front of the queue.\n * @return Object from the queue.\n */\n String dequeue();\n}", "public interface Queue<T>\r\n{\r\n /**\r\n * Insert item at the back of the queue.\r\n * @param item insert item at the back of the queue\r\n */\r\n public void push(T item);\r\n\r\n /**\r\n * Remove the element at the front of the queue and return its value.\r\n * @return value of the element removed from the front of the queue.\r\n * @throws <tt>NoSuchElementException</tt> if the queue is empty.\r\n */\r\n public T pop();\r\n\r\n /**\r\n * Return the value of the element at the front of the queue.\r\n * @return value of element at the front of the queue.\r\n * @throws <tt>NoSuchElementException</tt> if the queue is empty.\r\n */\r\n public T peek();\r\n\r\n /**\r\n * Return a boolean value that indicates whether the queue is empty. Return\r\n * true if empty and false if not empty.\r\n * @return true if the queue is empty and false otherwise.\r\n */\r\n public boolean isEmpty();\r\n\r\n /**\r\n * Return the number of elements currently in the queue.\r\n * @return number of elements in the queue.\r\n */\r\n public int size();\r\n}", "public void queueUsage() {\n\t\t//use LinkedList as a queue\n\t\tQueue<String> q = new LinkedList<String>();\n\t\tq.add(\"1\");\n\t\tq.add(\"2\");\n\t\tq.add(\"3\");\n\t\tq.add(\"10\");\n\t\tq.add(\"11\");\n\t\tint[] a;\n\n\t\tLinkedBlockingQueue<String> bq = new LinkedBlockingQueue<String>();\n\t\t\n\t\t//ArrayBlockingQueue needs to set the size when created.\n\t\tArrayBlockingQueue<String> aq = new ArrayBlockingQueue<String>(100);\n\t\t\n\t\tPriorityBlockingQueue<String> pq = new PriorityBlockingQueue<String>();\n\t\t\n//\t\tDelayQueue<String> dq = new DelayQueue<String>(); \n\t\t\n\t}", "public interface PQueue<T> {\n\n void add(T item, int priority) throws InterruptedException;\n\n T removeMin();\n\n}", "public interface DoubleQueue {\n\n public void accoda(Object elemento);\n public Object leggicoda();\n public void fuoricoda();\n public void inpila(Object elemento);\n public Object leggitesta();\n public void fuoritesta();\n public boolean codavuota();\n\n}", "public interface UnboundedQueue<T> {\n \n\t/**\n\t * This method inserts a generic type element to the back of the Queue, increasing the\n\t * size by one. \n\t * \n\t * @param o Generic type to be added to the back of the Queue.\n\t */\n public void insert(T o);\n \n /**\n * This method removes a generic type element from the front of the Queue thereby decreasing the\n * size by one. Throws an EmptyQueueException if the Queue is empty and there is no\n * element to remove.\n * \n * @return Object removed from the front of the Queue\n * @throws EmptyQueueException if Queue is empty and there is no object to remove\n */\n public T remove() throws EmptyQueueException;\n \n /**\n * This method makes a copy of the element at the front of the Queue. Size stays the same.\n * \n * @return copy of the element at the front of the Queue.\n * @throws EmptyQueueException thrown if the Queue is empty and there is no elment at the front\n */\n public T front() throws EmptyQueueException;\n \n /**\n * This method returns true if the Queue has a front element and therefore is \n * not empty.\n * \n * @return true if the Queue has a front element\n */\n public boolean hasFront();\n \n /**\n * This method returns the number of elements currently stored in the structure (Queue).\n * \n * \n * @return int number of elements stored in the Queue\n */\n public int size();\n\n /**\n * This method creates a String representation of the Queue.\n * \n * @return String which represents the Queue\n */\n public String toString();\n \n}", "myQueue(){\n }", "@StructMember(0) public native @Array({4}) FloatBuffer getQ();", "public interface Queue<T> {\n\n /**\n * Current queue size\n * @return size as int\n */\n int size();\n\n /**\n * Checks if the the queue is empty\n * @return true if the list is empty\n */\n boolean isEmpty();\n\n /**\n * Adding an element to the queue\n * @param t element to add\n */\n void enqueue(T t);\n\n /**\n * Return and removes the first element in the queue\n * @return the removed element\n * @throws IndexOutOfBoundsException if queue is empty\n */\n T dequeue();\n\n /**\n * Return (without removing) first element in queue\n * @return the first element in queue\n * @throws IndexOutOfBoundsException if the queue is empty\n *\n */\n T first();\n\n /**\n * Return (without removing) last element in queue\n * @return last element in queue\n * @throws IndexOutOfBoundsException if the queue is empty\n */\n T last();\n\n /**\n * Return a string representation of the queue content.\n * @return String of queue\n */\n String toString();\n\n /**\n * Element iterator.\n * @return Iterates over elements in queue\n */\n Iterator iterator();\n\n}", "public interface IGenQ<T> {\n\n // Put an item into the queue\n void put(T ch) throws QueueFullException;\n\n // Get an item from the queue\n T get() throws QueueEmpytException;\n\n\n\n}", "void enqueue(T t);", "private static Flux<ByteBuffer> dequeuingFlux(Queue<ByteBuffer> queue) {\n return Flux.generate(sink -> {\n ByteBuffer buffer = queue.poll();\n if (buffer != null) {\n sink.next(buffer);\n } else {\n sink.complete();\n }\n });\n }", "public interface Queue<E> {\n\n /**\n * \n * @return the number of elements in the queue.\n */\n int size();\n\n /**\n * \n * @return true if the queue is empty, false if not.\n */\n boolean isEmpty();\n\n /**\n * \n * Inserts an element at the rear of the queue.\n * \n * @param e\n */\n void enqueue(E e);\n\n /**\n * \n * @return the first element of the queue, but does not remove it (null if empty).\n */\n E first();\n\n /**\n * \n * @return first element of the queue and removes it (null if empty).\n */\n E dequeue();\n}", "public interface Queue<E> {\n\n\t/** \n\t * Returns the number of elements in the queue.\n\t * @return number of elements in the queue.\n\t */\n\t public int size(); \n\t /** \n\t * Returns whether the queue is empty.\n\t * @return true if the queue is empty, false otherwise.\n\t */\n\t public boolean isEmpty(); \n\t /**\n\t * Inspects the element at the front of the queue.\n\t * @return element at the front of the queue.\n\t */\n\t public E front(); \n\t /** \n\t * Inserts an element at the rear of the queue.\n\t * @param element new element to be inserted.\n\t */\n\t public void enqueue (E element); \n\t /** \n\t * Removes the element at the front of the queue.\n\t * @return element removed.\n\t */\n\t public E dequeue(); \n}", "Object dequeue();", "Object dequeue();", "<V extends Object> Queue<V> getQueue(String queueName);", "T dequeue();", "T dequeue();", "public void handle(QueueItem<T>[] events, SyncProducer producer, Encoder<T> encoder) throws Exception;", "static void enQueue(Queue q, int x) {\r\n push(q.stack1, x);\r\n }", "public abstract Type Dequeue();", "void enqueue( K x );", "public interface MyQueue {\n\n // add to tail\n void enqueue(Object obj);\n\n // remove from head\n Object dequeue();\n\n}", "public T dequeue();", "@DISPID(112)\r\n\t// = 0x70. The runtime will prefer the VTID if present\r\n\t@VTID(107)\r\n\tjava.lang.String queue();", "E dequeue();", "E dequeue();", "E dequeue();", "public Boolean lazyQueue();", "public int getQueuePosition();", "public interface QueueService {\n\n /**\n * 添加元素\n *\n * @param messageQueue\n */\n void add(MessageQueue messageQueue);\n\n\n /**\n * 弹出元素\n */\n MessageQueue poll();\n\n Iterator<MessageQueue> iterator();\n\n\n}", "public E dequeue();", "public interface FifoQueue {\n\n /**\n * Push the item to the tail of the queue.\n * @param queueName Target queue.\n * @param item Item to be added\n */\n public void push(final String queueName, final String item);\n\n /**\n * Remove the item from the queue.\n * @param queueName Queue name.\n * @param item Target item.\n * @return <code>true</code> item removed, otherwise <code>false</code>\n */\n public boolean remove(final String queueName, final String item);\n\n /**\n * Get top items.\n * @param queueName Delay queue name.\n * @param end End index.\n * @return Delayed items.\n */\n public Collection<String> pop(final String queueName, final int end);\n}", "public static void pushCostlyOperation(){\r\n Queue<Integer> queue=new LinkedList<>();\r\n Queue<Integer> supportQueue=new LinkedList<>();\r\n Queue<Integer> testQueue=new LinkedList<>();\r\n for(int i=0;i<10;++i){\r\n while(!queue.isEmpty())\r\n supportQueue.add(queue.poll());\r\n\r\n queue.add(i*i);\r\n testQueue.add(i*i);\r\n while(!supportQueue.isEmpty())\r\n queue.add(supportQueue.poll());\r\n\r\n System.out.println(queue);\r\n System.out.println(testQueue);\r\n System.out.println();\r\n }\r\n }", "void enqueue(E e);", "public interface Queue {\r\n\r\n\t/**\r\n\t * This method will return the first activity from the queue.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Activity poll();\r\n\r\n\t/**\r\n\t * This method will push the activity to the queue.\r\n\t * \r\n\t * @param activity\r\n\t */\r\n\tpublic void push(Object activity);\r\n\r\n\t/**\r\n\t * This method will tell that the queue is closed or not.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isQueueClosed();\r\n\r\n\t/**\r\n\t * This method will on the queue to available.\r\n\t */\r\n\tpublic void onQueue();\r\n\r\n\t/**\r\n\t * this method will off the queue so not available.\r\n\t */\r\n\tpublic void closeQueue();\r\n\r\n\t/**\r\n\t * Returns true if the queue is empty.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n}", "public Queue<T> deQueue();", "void enqueue(Object elem);", "private Queue(){\r\n\t\tgenerateQueue();\r\n\t}", "public interface ByteQueueNotify {\n\n public void hasData(byte[] bytes);\n\n}", "public QueueUsingTwoStacks() \n {\n stack1 = new Stack<Item>();\n stack2 = new Stack<Item>();\n }", "protected interface IndexedQueue {\n long lvConsumerIndex();\n\n long lvProducerIndex();\n }", "T dequeue() throws RuntimeException;", "T dequeue() throws RuntimeException;", "public abstract int getQueueLength();", "public MyQueue() {\n push=new Stack<>();\n pull=new Stack<>();\n }", "public CLEvent multiply(CLQueue queue, CLImage2D in1, float[] amt, CLImage2D out) {\n\t\treturn process(multiplyConstant, queue, in1, amt, out);\n\t}", "void enqueue(E el);", "myQueue(int size){\n }", "T get() throws QueueEmpytException;", "public interface MessageQueueHooks {\n /**\n * Called after tasks are read from the queue and before the mutation\n * for updating their state is committed.\n * \n * @param messages\n * @param mb\n */\n void beforeAckMessages(Collection<Message> messages, MutationBatch mb);\n\n /**\n * Called before a task is released from the queue\n * \n * @param message\n * @param mb\n */\n void beforeAckMessage(Message message, MutationBatch mb);\n\n /**\n * Called before a task is inserted in the queue\n * @param message\n * @param mb\n */\n void beforeSendMessage(Message message, MutationBatch mb);\n}", "public static void main(String[] args) {\n// System.out.println(testQueue.getQueueElement());\n// System.out.println(testQueue.getQueueElement());\n }", "public interface IMessageQueue {\n void remove(Message item);\n Message peek();\n Message dequeue();\n Message enqueue(String messageBody);\n}", "public interface PersistentQueueX<T> extends To<PersistentQueueX<T>>,\n PersistentQueue<T>,\n LazyCollectionX<T>,\n OnEmptySwitch<T, PersistentQueue<T>>,\n Higher<persistentQueueX,T>{\n\n PersistentQueueX<T> lazy();\n PersistentQueueX<T> eager();\n\n static <T> CompletablePersistentQueueX<T> completable(){\n return new CompletablePersistentQueueX<>();\n }\n\n static class CompletablePersistentQueueX<T> implements InvocationHandler {\n Future<PersistentQueueX<T>> future = Future.future();\n public boolean complete(PersistentQueue<T> result){\n return future.complete(PersistentQueueX.fromIterable(result));\n }\n\n public PersistentQueueX<T> asPersistentQueueX(){\n PersistentQueueX f = (PersistentQueueX) Proxy.newProxyInstance(PersistentQueueX.class.getClassLoader(),\n new Class[] { PersistentQueueX.class },\n this);\n return f;\n }\n\n @Override\n public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n PersistentQueueX<T> target = future.visit(l->l,t->{throw ExceptionSoftener.throwSoftenedException(t);});\n return method.invoke(target,args);\n }\n }\n\n public static <T> Kleisli<persistentQueueX,PersistentQueueX<T>,T> kindKleisli(){\n return Kleisli.of(Instances.monad(), PersistentQueueX::widen);\n }\n public static <T> Higher<persistentQueueX, T> widen(PersistentQueueX<T> narrow) {\n return narrow;\n }\n public static <T> Cokleisli<persistentQueueX,T,PersistentQueueX<T>> kindCokleisli(){\n return Cokleisli.of(PersistentQueueX::narrowK);\n }\n public static <W1,T> Nested<persistentQueueX,W1,T> nested(PersistentQueueX<Higher<W1,T>> nested, InstanceDefinitions<W1> def2){\n return Nested.of(nested, Instances.definitions(),def2);\n }\n default <W1> Product<persistentQueueX,W1,T> product(Active<W1,T> active){\n return Product.of(allTypeclasses(),active);\n }\n default <W1> Coproduct<W1,persistentQueueX,T> coproduct(InstanceDefinitions<W1> def2){\n return Coproduct.right(this,def2, Instances.definitions());\n }\n default Active<persistentQueueX,T> allTypeclasses(){\n return Active.of(this, Instances.definitions());\n }\n default <W2,R> Nested<persistentQueueX,W2,R> mapM(Function<? super T,? extends Higher<W2,R>> fn, InstanceDefinitions<W2> defs){\n return Nested.of(map(fn), Instances.definitions(), defs);\n }\n\n static <T> PersistentQueueX<T> fromIterator(Iterator<T> iterator) {\n return fromIterable(()->iterator);\n }\n\n\n /**\n * Narrow a covariant PersistentQueueX\n *\n * <pre>\n * {@code\n * PersistentQueueX<? extends Fruit> set = PersistentQueueX.of(apple,bannana);\n * PersistentQueueX<Fruit> fruitSet = PersistentQueueX.narrow(set);\n * }\n * </pre>\n *\n * @param queueX to narrow generic type\n * @return OrderedSetX with narrowed type\n */\n public static <T> PersistentQueueX<T> narrow(final PersistentQueueX<? extends T> queueX) {\n return (PersistentQueueX<T>) queueX;\n }\n\n /**\n * Widen a PersistentQueueX nest inside another HKT encoded type\n *\n * @param list HTK encoded type containing a PQueue to widen\n * @return HKT encoded type with a widened PQueue\n */\n public static <C2,T> Higher<C2, Higher<persistentQueueX,T>> widen2(Higher<C2, PersistentQueueX<T>> list){\n //a functor could be used (if C2 is a functor / one exists for C2 type) instead of casting\n //cast seems safer as Higher<persistentQueueX,T> must be a PQueueType\n return (Higher)list;\n }\n /**\n * Convert the raw Higher Kinded Type for PQueue types into the PQueueType type definition class\n *\n * @param list HKT encoded list into a PQueueType\n * @return PQueueType\n */\n public static <T> PersistentQueueX<T> narrowK(final Higher<persistentQueueX, T> list) {\n return (PersistentQueueX<T>)list;\n }\n /**\n * Create a PersistentQueueX that contains the Integers between skip and take\n *\n * @param start\n * Number of range to skip from\n * @param end\n * Number for range to take at\n * @return Range PersistentQueueX\n */\n public static PersistentQueueX<Integer> range(final int start, final int end) {\n return ReactiveSeq.range(start, end).to()\n .persistentQueueX(Evaluation.LAZY);\n }\n\n /**\n * Create a PersistentQueueX that contains the Longs between skip and take\n *\n * @param start\n * Number of range to skip from\n * @param end\n * Number for range to take at\n * @return Range PersistentQueueX\n */\n public static PersistentQueueX<Long> rangeLong(final long start, final long end) {\n return ReactiveSeq.rangeLong(start, end).to()\n .persistentQueueX(Evaluation.LAZY);\n }\n\n /**\n * Unfold a function into a PersistentQueueX\n *\n * <pre>\n * {@code\n * PersistentQueueX.unfold(1,i->i<=6 ? Optional.of(Tuple.tuple(i,i+1)) : Optional.zero());\n *\n * //(1,2,3,4,5)\n *\n * }</code>\n *\n * @param seed Initial value\n * @param unfolder Iteratively applied function, terminated by an zero Optional\n * @return PersistentQueueX generated by unfolder function\n */\n static <U, T> PersistentQueueX<T> unfold(final U seed, final Function<? super U, Option<Tuple2<T, U>>> unfolder) {\n return ReactiveSeq.unfold(seed, unfolder).to()\n .persistentQueueX(Evaluation.LAZY);\n }\n\n /**\n * Generate a PersistentQueueX from the provided Supplier up to the provided limit number of times\n *\n * @param limit Max number of elements to generate\n * @param s Supplier to generate PersistentQueueX elements\n * @return PersistentQueueX generated from the provided Supplier\n */\n public static <T> PersistentQueueX<T> generate(final long limit, final Supplier<T> s) {\n\n return ReactiveSeq.generate(s)\n .limit(limit).to()\n .persistentQueueX(Evaluation.LAZY);\n }\n\n /**\n * Generate a PersistentQueueX from the provided value up to the provided limit number of times\n *\n * @param limit Max number of elements to generate\n * @param s Value for PersistentQueueX elements\n * @return PersistentQueueX generated from the provided Supplier\n */\n public static <T> PersistentQueueX<T> fill(final long limit, final T s) {\n\n return ReactiveSeq.fill(s)\n .limit(limit).to()\n .persistentQueueX(Evaluation.LAZY);\n }\n\n /**\n * Create a PersistentQueueX by iterative application of a function to an initial element up to the supplied limit number of times\n *\n * @param limit Max number of elements to generate\n * @param seed Initial element\n * @param f Iteratively applied to each element to generate the next element\n * @return PersistentQueueX generated by iterative application\n */\n public static <T> PersistentQueueX<T> iterate(final long limit, final T seed, final UnaryOperator<T> f) {\n return ReactiveSeq.iterate(seed, f)\n .limit(limit).to()\n .persistentQueueX(Evaluation.LAZY);\n\n }\n\n public static <T> PersistentQueueX<T> of(final T... values) {\n return new LazyPQueueX<>(null,ReactiveSeq.of(values),Reducers.toPQueue(),Evaluation.LAZY);\n }\n\n public static <T> PersistentQueueX<T> empty() {\n return new LazyPQueueX<>(\n BankersQueue.empty(),null,Reducers.toPQueue(),Evaluation.LAZY);\n }\n\n public static <T> PersistentQueueX<T> singleton(final T value) {\n return PersistentQueueX.<T> empty()\n .plus(value);\n }\n\n /**\n * Construct a PersistentQueueX from an Publisher\n *\n * @param publisher\n * to construct PersistentQueueX from\n * @return PersistentQueueX\n */\n public static <T> PersistentQueueX<T> fromPublisher(final Publisher<? extends T> publisher) {\n return Spouts.from((Publisher<T>) publisher).to()\n .persistentQueueX(Evaluation.LAZY);\n }\n PersistentQueueX<T> type(Reducer<? extends PersistentQueue<T>,T> reducer);\n\n /**\n *\n * <pre>\n * {@code\n * import static cyclops.stream.ReactiveSeq.range;\n *\n * PersistentQueueX<Integer> bag = persistentQueueX(range(10,20));\n *\n * }\n * </pre>\n * @param stream To create a PersistentQueueX from\n * @param <T> PersistentQueueX generated from Stream\n * @return\n */\n public static <T> PersistentQueueX<T> persistentQueueX(ReactiveSeq<T> stream) {\n return new LazyPQueueX<>(null,stream,Reducers.toPQueue(),Evaluation.LAZY);\n }\n\n public static <T> PersistentQueueX<T> fromIterable(final Iterable<T> iterable) {\n if (iterable instanceof PersistentQueueX)\n return (PersistentQueueX) iterable;\n if (iterable instanceof PersistentQueue)\n return new LazyPQueueX<>(\n (PersistentQueue) iterable,null,Reducers.toPQueue(),Evaluation.LAZY);\n\n\n return new LazyPQueueX<>(null,\n ReactiveSeq.fromIterable(iterable),\n Reducers.toPQueue(),Evaluation.LAZY);\n }\n\n\n\n default <T> PersistentQueueX<T> fromStream(final ReactiveSeq<T> stream) {\n return persistentQueueX(stream);\n }\n /**\n * coflatMap pattern, can be used to perform maybe reductions / collections / folds and other terminal operations\n *\n * <pre>\n * {@code\n *\n * PersistentQueueX.of(1,2,3)\n * .map(i->i*2)\n * .coflatMap(s -> s.reduce(0,(a,b)->a+b))\n *\n * //PersistentQueueX[12]\n * }\n * </pre>\n *\n *\n * @param fn mapping function\n * @return Transformed PersistentQueueX\n */\n default <R> PersistentQueueX<R> coflatMap(Function<? super PersistentQueueX<T>, ? extends R> fn){\n return fn.andThen(r -> this.<R>unit(r))\n .apply(this);\n }\n default AnyMSeq<persistentQueueX,T> anyM(){\n return AnyM.fromPersistentQueueX(this);\n }\n /* (non-Javadoc)\n * @see com.oath.cyclops.data.collections.extensions.CollectionX#forEach4(java.util.function.Function, java.util.function.BiFunction, com.oath.cyclops.util.function.TriFunction, com.oath.cyclops.util.function.QuadFunction)\n */\n @Override\n default <R1, R2, R3, R> PersistentQueueX<R> forEach4(Function<? super T, ? extends Iterable<R1>> stream1,\n BiFunction<? super T, ? super R1, ? extends Iterable<R2>> stream2,\n Function3<? super T, ? super R1, ? super R2, ? extends Iterable<R3>> stream3,\n Function4<? super T, ? super R1, ? super R2, ? super R3, ? extends R> yieldingFunction) {\n\n return (PersistentQueueX)LazyCollectionX.super.forEach4(stream1, stream2, stream3, yieldingFunction);\n }\n\n\n\n\n /* (non-Javadoc)\n * @see com.oath.cyclops.data.collections.extensions.CollectionX#forEach4(java.util.function.Function, java.util.function.BiFunction, com.oath.cyclops.util.function.TriFunction, com.oath.cyclops.util.function.QuadFunction, com.oath.cyclops.util.function.QuadFunction)\n */\n @Override\n default <R1, R2, R3, R> PersistentQueueX<R> forEach4(Function<? super T, ? extends Iterable<R1>> stream1,\n BiFunction<? super T, ? super R1, ? extends Iterable<R2>> stream2,\n Function3<? super T, ? super R1, ? super R2, ? extends Iterable<R3>> stream3,\n Function4<? super T, ? super R1, ? super R2, ? super R3, Boolean> filterFunction,\n Function4<? super T, ? super R1, ? super R2, ? super R3, ? extends R> yieldingFunction) {\n\n return (PersistentQueueX)LazyCollectionX.super.forEach4(stream1, stream2, stream3, filterFunction, yieldingFunction);\n }\n\n /* (non-Javadoc)\n * @see com.oath.cyclops.data.collections.extensions.CollectionX#forEach3(java.util.function.Function, java.util.function.BiFunction, com.oath.cyclops.util.function.TriFunction)\n */\n @Override\n default <R1, R2, R> PersistentQueueX<R> forEach3(Function<? super T, ? extends Iterable<R1>> stream1,\n BiFunction<? super T, ? super R1, ? extends Iterable<R2>> stream2,\n Function3<? super T, ? super R1, ? super R2, ? extends R> yieldingFunction) {\n\n return (PersistentQueueX)LazyCollectionX.super.forEach3(stream1, stream2, yieldingFunction);\n }\n\n /* (non-Javadoc)\n * @see com.oath.cyclops.data.collections.extensions.CollectionX#forEach3(java.util.function.Function, java.util.function.BiFunction, com.oath.cyclops.util.function.TriFunction, com.oath.cyclops.util.function.TriFunction)\n */\n @Override\n default <R1, R2, R> PersistentQueueX<R> forEach3(Function<? super T, ? extends Iterable<R1>> stream1,\n BiFunction<? super T, ? super R1, ? extends Iterable<R2>> stream2,\n Function3<? super T, ? super R1, ? super R2, Boolean> filterFunction,\n Function3<? super T, ? super R1, ? super R2, ? extends R> yieldingFunction) {\n\n return (PersistentQueueX)LazyCollectionX.super.forEach3(stream1, stream2, filterFunction, yieldingFunction);\n }\n\n /* (non-Javadoc)\n * @see com.oath.cyclops.data.collections.extensions.CollectionX#forEach2(java.util.function.Function, java.util.function.BiFunction)\n */\n @Override\n default <R1, R> PersistentQueueX<R> forEach2(Function<? super T, ? extends Iterable<R1>> stream1,\n BiFunction<? super T, ? super R1, ? extends R> yieldingFunction) {\n\n return (PersistentQueueX)LazyCollectionX.super.forEach2(stream1, yieldingFunction);\n }\n\n /* (non-Javadoc)\n * @see com.oath.cyclops.data.collections.extensions.CollectionX#forEach2(java.util.function.Function, java.util.function.BiFunction, java.util.function.BiFunction)\n */\n @Override\n default <R1, R> PersistentQueueX<R> forEach2(Function<? super T, ? extends Iterable<R1>> stream1,\n BiFunction<? super T, ? super R1, Boolean> filterFunction,\n BiFunction<? super T, ? super R1, ? extends R> yieldingFunction) {\n\n return (PersistentQueueX)LazyCollectionX.super.forEach2(stream1, filterFunction, yieldingFunction);\n\n }\n\n @Override\n default boolean containsValue(T item) {\n return LazyCollectionX.super.containsValue(item);\n }\n @Override\n default PersistentQueueX<T> take(final long num) {\n\n return limit(num);\n }\n @Override\n default PersistentQueueX<T> drop(final long num) {\n\n return skip(num);\n }\n\n /**\n * Combine two adjacent elements in a PersistentQueueX using the supplied\n * BinaryOperator This is a stateful grouping & reduction operation. The\n * emitted of a combination may in turn be combined with it's neighbor\n *\n * <pre>\n * {@code\n * PersistentQueueX.of(1,1,2,3)\n .combine((a, b)->a.equals(b),SemigroupK.intSum)\n .listX()\n\n * //ListX(3,4)\n * }\n * </pre>\n *\n * @param predicate\n * Test to see if two neighbors should be joined\n * @param op\n * Reducer to combine neighbors\n * @return Combined / Partially Reduced PersistentQueueX\n */\n @Override\n default PersistentQueueX<T> combine(final BiPredicate<? super T, ? super T> predicate, final BinaryOperator<T> op) {\n return (PersistentQueueX<T>) LazyCollectionX.super.combine(predicate, op);\n }\n @Override\n default PersistentQueueX<T> combine(final Monoid<T> op, final BiPredicate<? super T, ? super T> predicate) {\n return (PersistentQueueX<T>) LazyCollectionX.super.combine(op, predicate);\n }\n @Override\n default boolean isEmpty() {\n return PersistentQueue.super.isEmpty();\n }\n @Override\n default <R> PersistentQueueX<R> unit(final Iterable<R> col) {\n return fromIterable(col);\n }\n\n @Override\n default <R> PersistentQueueX<R> unit(final R value) {\n return singleton(value);\n }\n\n @Override\n default <R> PersistentQueueX<R> unitIterator(final Iterator<R> it) {\n return fromIterable(() -> it);\n }\n\n // @Override\n default <R> PersistentQueueX<R> emptyUnit() {\n return empty();\n }\n\n @Override\n default PersistentQueueX<T> materialize() {\n return (PersistentQueueX<T>)LazyCollectionX.super.materialize();\n }\n\n @Override\n default ReactiveSeq<T> stream() {\n\n return ReactiveSeq.fromIterable(this);\n }\n\n default PersistentQueue<T> toPSet() {\n return this;\n }\n\n @Override\n default <X> PersistentQueueX<X> from(final Iterable<X> col) {\n return fromIterable(col);\n }\n\n // @Override\n default <T> Reducer<PersistentQueue<T>,T> monoid() {\n return Reducers.toPQueue();\n }\n\n /*\n * (non-Javadoc)\n *\n * @see org.pcollections.PSet#plus(java.lang.Object)\n */\n @Override\n public PersistentQueueX<T> plus(T e);\n\n /*\n * (non-Javadoc)\n *\n * @see org.pcollections.PSet#insertAt(java.util.Collection)\n */\n @Override\n public PersistentQueueX<T> plusAll(Iterable<? extends T> list);\n\n @Override\n public PersistentQueueX<T> minus();\n /*\n * (non-Javadoc)\n *\n * @see org.pcollections.PSet#removeValue(java.lang.Object)\n */\n @Override\n public PersistentQueueX<T> removeValue(T e);\n\n /*\n * (non-Javadoc)\n *\n * @see org.pcollections.PSet#removeAll(java.util.Collection)\n */\n @Override\n public PersistentQueueX<T> removeAll(Iterable<? extends T> list);\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * reverse()\n */\n @Override\n default PersistentQueueX<T> reverse() {\n return (PersistentQueueX<T>) LazyCollectionX.super.reverse();\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * filter(java.util.function.Predicate)\n */\n @Override\n default PersistentQueueX<T> filter(final Predicate<? super T> pred) {\n return (PersistentQueueX<T>) LazyCollectionX.super.filter(pred);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * transform(java.util.function.Function)\n */\n @Override\n default <R> PersistentQueueX<R> map(final Function<? super T, ? extends R> mapper) {\n return (PersistentQueueX<R>) LazyCollectionX.super.map(mapper);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * flatMap(java.util.function.Function)\n */\n @Override\n default <R> PersistentQueueX<R> flatMap(final Function<? super T, ? extends Iterable<? extends R>> mapper) {\n return (PersistentQueueX<R>) LazyCollectionX.super.flatMap(mapper);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * limit(long)\n */\n @Override\n default PersistentQueueX<T> limit(final long num) {\n return (PersistentQueueX<T>) LazyCollectionX.super.limit(num);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * skip(long)\n */\n @Override\n default PersistentQueueX<T> skip(final long num) {\n return (PersistentQueueX<T>) LazyCollectionX.super.skip(num);\n }\n\n @Override\n default PersistentQueueX<T> takeRight(final int num) {\n return (PersistentQueueX<T>) LazyCollectionX.super.takeRight(num);\n }\n\n @Override\n default PersistentQueueX<T> dropRight(final int num) {\n return (PersistentQueueX<T>) LazyCollectionX.super.dropRight(num);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * takeWhile(java.util.function.Predicate)\n */\n @Override\n default PersistentQueueX<T> takeWhile(final Predicate<? super T> p) {\n return (PersistentQueueX<T>) LazyCollectionX.super.takeWhile(p);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * dropWhile(java.util.function.Predicate)\n */\n @Override\n default PersistentQueueX<T> dropWhile(final Predicate<? super T> p) {\n return (PersistentQueueX<T>) LazyCollectionX.super.dropWhile(p);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * takeUntil(java.util.function.Predicate)\n */\n @Override\n default PersistentQueueX<T> takeUntil(final Predicate<? super T> p) {\n return (PersistentQueueX<T>) LazyCollectionX.super.takeUntil(p);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * dropUntil(java.util.function.Predicate)\n */\n @Override\n default PersistentQueueX<T> dropUntil(final Predicate<? super T> p) {\n return (PersistentQueueX<T>) LazyCollectionX.super.dropUntil(p);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * trampoline(java.util.function.Function)\n */\n @Override\n default <R> PersistentQueueX<R> trampoline(final Function<? super T, ? extends Trampoline<? extends R>> mapper) {\n return (PersistentQueueX<R>) LazyCollectionX.super.trampoline(mapper);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * slice(long, long)\n */\n @Override\n default PersistentQueueX<T> slice(final long from, final long to) {\n return (PersistentQueueX<T>) LazyCollectionX.super.slice(from, to);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * sorted(java.util.function.Function)\n */\n @Override\n default <U extends Comparable<? super U>> PersistentQueueX<T> sorted(final Function<? super T, ? extends U> function) {\n return (PersistentQueueX<T>) LazyCollectionX.super.sorted(function);\n }\n\n @Override\n default PersistentQueueX<ListX<T>> grouped(final int groupSize) {\n return (PersistentQueueX<ListX<T>>) LazyCollectionX.super.grouped(groupSize);\n }\n\n\n @Override\n default <U> PersistentQueueX<Tuple2<T, U>> zip(final Iterable<? extends U> other) {\n return (PersistentQueueX) LazyCollectionX.super.zip(other);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * zip(java.lang.Iterable, java.util.function.BiFunction)\n */\n @Override\n default <U, R> PersistentQueueX<R> zip(final Iterable<? extends U> other, final BiFunction<? super T, ? super U, ? extends R> zipper) {\n\n return (PersistentQueueX<R>) LazyCollectionX.super.zip(other, zipper);\n }\n\n @Override\n default <U, R> PersistentQueueX<R> zipS(final Stream<? extends U> other, final BiFunction<? super T, ? super U, ? extends R> zipper) {\n\n return (PersistentQueueX<R>) LazyCollectionX.super.zipS(other, zipper);\n }\n\n\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * permutations()\n */\n @Override\n default PersistentQueueX<ReactiveSeq<T>> permutations() {\n\n return (PersistentQueueX<ReactiveSeq<T>>) LazyCollectionX.super.permutations();\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * combinations(int)\n */\n @Override\n default PersistentQueueX<ReactiveSeq<T>> combinations(final int size) {\n\n return (PersistentQueueX<ReactiveSeq<T>>) LazyCollectionX.super.combinations(size);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * combinations()\n */\n @Override\n default PersistentQueueX<ReactiveSeq<T>> combinations() {\n\n return (PersistentQueueX<ReactiveSeq<T>>) LazyCollectionX.super.combinations();\n }\n\n @Override\n default PersistentQueueX<VectorX<T>> sliding(final int windowSize) {\n return (PersistentQueueX<VectorX<T>>) LazyCollectionX.super.sliding(windowSize);\n }\n\n @Override\n default PersistentQueueX<VectorX<T>> sliding(final int windowSize, final int increment) {\n return (PersistentQueueX<VectorX<T>>) LazyCollectionX.super.sliding(windowSize, increment);\n }\n\n @Override\n default PersistentQueueX<T> scanLeft(final Monoid<T> monoid) {\n return (PersistentQueueX<T>) LazyCollectionX.super.scanLeft(monoid);\n }\n\n @Override\n default <U> PersistentQueueX<U> scanLeft(final U seed, final BiFunction<? super U, ? super T, ? extends U> function) {\n return (PersistentQueueX<U>) LazyCollectionX.super.scanLeft(seed, function);\n }\n\n @Override\n default PersistentQueueX<T> scanRight(final Monoid<T> monoid) {\n return (PersistentQueueX<T>) LazyCollectionX.super.scanRight(monoid);\n }\n\n @Override\n default <U> PersistentQueueX<U> scanRight(final U identity, final BiFunction<? super T, ? super U, ? extends U> combiner) {\n return (PersistentQueueX<U>) LazyCollectionX.super.scanRight(identity, combiner);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * plusInOrder(java.lang.Object)\n */\n @Override\n default PersistentQueueX<T> plusInOrder(final T e) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.plusInOrder(e);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * cycle(int)\n */\n @Override\n default PersistentQueueX<T> cycle(final long times) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.cycle(times);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * cycle(com.oath.cyclops.sequence.Monoid, int)\n */\n @Override\n default PersistentQueueX<T> cycle(final Monoid<T> m, final long times) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.cycle(m, times);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * cycleWhile(java.util.function.Predicate)\n */\n @Override\n default PersistentQueueX<T> cycleWhile(final Predicate<? super T> predicate) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.cycleWhile(predicate);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * cycleUntil(java.util.function.Predicate)\n */\n @Override\n default PersistentQueueX<T> cycleUntil(final Predicate<? super T> predicate) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.cycleUntil(predicate);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * zip(java.util.stream.Stream)\n */\n @Override\n default <U> PersistentQueueX<Tuple2<T, U>> zipS(final Stream<? extends U> other) {\n\n return (PersistentQueueX) LazyCollectionX.super.zipS(other);\n }\n\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * zip3(java.util.stream.Stream, java.util.stream.Stream)\n */\n @Override\n default <S, U> PersistentQueueX<Tuple3<T, S, U>> zip3(final Iterable<? extends S> second, final Iterable<? extends U> third) {\n\n return (PersistentQueueX) LazyCollectionX.super.zip3(second, third);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * zip4(java.util.stream.Stream, java.util.stream.Stream,\n * java.util.stream.Stream)\n */\n @Override\n default <T2, T3, T4> PersistentQueueX<Tuple4<T, T2, T3, T4>> zip4(final Iterable<? extends T2> second, final Iterable<? extends T3> third,\n final Iterable<? extends T4> fourth) {\n\n return (PersistentQueueX) LazyCollectionX.super.zip4(second, third, fourth);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * zipWithIndex()\n */\n @Override\n default PersistentQueueX<Tuple2<T, Long>> zipWithIndex() {\n\n return (PersistentQueueX<Tuple2<T, Long>>) LazyCollectionX.super.zipWithIndex();\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * distinct()\n */\n @Override\n default PersistentQueueX<T> distinct() {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.distinct();\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * sorted()\n */\n @Override\n default PersistentQueueX<T> sorted() {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.sorted();\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * sorted(java.util.Comparator)\n */\n @Override\n default PersistentQueueX<T> sorted(final Comparator<? super T> c) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.sorted(c);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * skipWhile(java.util.function.Predicate)\n */\n @Override\n default PersistentQueueX<T> skipWhile(final Predicate<? super T> p) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.skipWhile(p);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * skipUntil(java.util.function.Predicate)\n */\n @Override\n default PersistentQueueX<T> skipUntil(final Predicate<? super T> p) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.skipUntil(p);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * limitWhile(java.util.function.Predicate)\n */\n @Override\n default PersistentQueueX<T> limitWhile(final Predicate<? super T> p) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.limitWhile(p);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * limitUntil(java.util.function.Predicate)\n */\n @Override\n default PersistentQueueX<T> limitUntil(final Predicate<? super T> p) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.limitUntil(p);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * intersperse(java.lang.Object)\n */\n @Override\n default PersistentQueueX<T> intersperse(final T value) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.intersperse(value);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * shuffle()\n */\n @Override\n default PersistentQueueX<T> shuffle() {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.shuffle();\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * skipLast(int)\n */\n @Override\n default PersistentQueueX<T> skipLast(final int num) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.skipLast(num);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * limitLast(int)\n */\n @Override\n default PersistentQueueX<T> limitLast(final int num) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.limitLast(num);\n }\n\n /* (non-Javadoc)\n * @see com.oath.cyclops.types.recoverable.OnEmptySwitch#onEmptySwitch(java.util.function.Supplier)\n */\n @Override\n default PersistentQueueX<T> onEmptySwitch(final Supplier<? extends PersistentQueue<T>> supplier) {\n if (isEmpty())\n return PersistentQueueX.fromIterable(supplier.get());\n return this;\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * onEmpty(java.lang.Object)\n */\n @Override\n default PersistentQueueX<T> onEmpty(final T value) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.onEmpty(value);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * onEmptyGet(java.util.function.Supplier)\n */\n @Override\n default PersistentQueueX<T> onEmptyGet(final Supplier<? extends T> supplier) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.onEmptyGet(supplier);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * onEmptyError(java.util.function.Supplier)\n */\n @Override\n default <X extends Throwable> PersistentQueueX<T> onEmptyError(final Supplier<? extends X> supplier) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.onEmptyError(supplier);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * shuffle(java.util.Random)\n */\n @Override\n default PersistentQueueX<T> shuffle(final Random random) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.shuffle(random);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * ofType(java.lang.Class)\n */\n @Override\n default <U> PersistentQueueX<U> ofType(final Class<? extends U> type) {\n\n return (PersistentQueueX<U>) LazyCollectionX.super.ofType(type);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * filterNot(java.util.function.Predicate)\n */\n @Override\n default PersistentQueueX<T> filterNot(final Predicate<? super T> fn) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.filterNot(fn);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * notNull()\n */\n @Override\n default PersistentQueueX<T> notNull() {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.notNull();\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * removeAll(java.util.stream.Stream)\n */\n @Override\n default PersistentQueueX<T> removeAllS(final Stream<? extends T> stream) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.removeAllS(stream);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * removeAll(java.lang.Iterable)\n */\n @Override\n default PersistentQueueX<T> removeAllI(final Iterable<? extends T> it) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.removeAllI(it);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * removeAll(java.lang.Object[])\n */\n @Override\n default PersistentQueueX<T> removeAll(final T... values) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.removeAll(values);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * retainAllI(java.lang.Iterable)\n */\n @Override\n default PersistentQueueX<T> retainAllI(final Iterable<? extends T> it) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.retainAllI(it);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * retainAllI(java.util.stream.Stream)\n */\n @Override\n default PersistentQueueX<T> retainAllS(final Stream<? extends T> seq) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.retainAllS(seq);\n }\n\n /*\n * (non-Javadoc)\n *\n * @see\n * com.oath.cyclops.collections.extensions.persistent.LazyCollectionX#\n * retainAllI(java.lang.Object[])\n */\n @Override\n default PersistentQueueX<T> retainAll(final T... values) {\n\n return (PersistentQueueX<T>) LazyCollectionX.super.retainAll(values);\n }\n\n\n @Override\n default <C extends Collection<? super T>> PersistentQueueX<C> grouped(final int size, final Supplier<C> supplier) {\n\n return (PersistentQueueX<C>) LazyCollectionX.super.grouped(size, supplier);\n }\n\n @Override\n default PersistentQueueX<ListX<T>> groupedUntil(final Predicate<? super T> predicate) {\n\n return (PersistentQueueX<ListX<T>>) LazyCollectionX.super.groupedUntil(predicate);\n }\n\n @Override\n default PersistentQueueX<ListX<T>> groupedStatefullyUntil(final BiPredicate<ListX<? super T>, ? super T> predicate) {\n\n return (PersistentQueueX<ListX<T>>) LazyCollectionX.super.groupedStatefullyUntil(predicate);\n }\n\n @Override\n default PersistentQueueX<ListX<T>> groupedWhile(final Predicate<? super T> predicate) {\n\n return (PersistentQueueX<ListX<T>>) LazyCollectionX.super.groupedWhile(predicate);\n }\n\n @Override\n default <C extends Collection<? super T>> PersistentQueueX<C> groupedWhile(final Predicate<? super T> predicate, final Supplier<C> factory) {\n\n return (PersistentQueueX<C>) LazyCollectionX.super.groupedWhile(predicate, factory);\n }\n\n @Override\n default <C extends Collection<? super T>> PersistentQueueX<C> groupedUntil(final Predicate<? super T> predicate, final Supplier<C> factory) {\n\n return (PersistentQueueX<C>) LazyCollectionX.super.groupedUntil(predicate, factory);\n }\n\n @Override\n default PersistentQueueX<T> recover(final Function<? super Throwable, ? extends T> fn) {\n return (PersistentQueueX<T>)LazyCollectionX.super.recover(fn);\n }\n\n @Override\n default <EX extends Throwable> PersistentQueueX<T> recover(Class<EX> exceptionClass, final Function<? super EX, ? extends T> fn) {\n return (PersistentQueueX<T>)LazyCollectionX.super.recover(exceptionClass,fn);\n }\n @Override\n default PersistentQueueX<T> plusLoop(int max, IntFunction<T> value) {\n return (PersistentQueueX<T>)LazyCollectionX.super.plusLoop(max,value);\n }\n\n @Override\n default PersistentQueueX<T> plusLoop(Supplier<Option<T>> supplier) {\n return (PersistentQueueX<T>)LazyCollectionX.super.plusLoop(supplier);\n }\n\n @Override\n default PersistentQueueX<T> zip(BinaryOperator<Zippable<T>> combiner, final Zippable<T> app) {\n return (PersistentQueueX<T>)LazyCollectionX.super.zip(combiner,app);\n }\n\n @Override\n default <R> PersistentQueueX<R> zipWith(Iterable<Function<? super T, ? extends R>> fn) {\n return (PersistentQueueX<R>)LazyCollectionX.super.zipWith(fn);\n }\n\n @Override\n default <R> PersistentQueueX<R> zipWithS(Stream<Function<? super T, ? extends R>> fn) {\n return (PersistentQueueX<R>)LazyCollectionX.super.zipWithS(fn);\n }\n\n @Override\n default <R> PersistentQueueX<R> zipWithP(Publisher<Function<? super T, ? extends R>> fn) {\n return (PersistentQueueX<R>)LazyCollectionX.super.zipWithP(fn);\n }\n\n @Override\n default <T2, R> PersistentQueueX<R> zipP(final Publisher<? extends T2> publisher, final BiFunction<? super T, ? super T2, ? extends R> fn) {\n return (PersistentQueueX<R>)LazyCollectionX.super.zipP(publisher,fn);\n }\n\n\n\n @Override\n default <U> PersistentQueueX<Tuple2<T, U>> zipP(final Publisher<? extends U> other) {\n return (PersistentQueueX)LazyCollectionX.super.zipP(other);\n }\n\n\n @Override\n default <S, U, R> PersistentQueueX<R> zip3(final Iterable<? extends S> second, final Iterable<? extends U> third, final Function3<? super T, ? super S, ? super U, ? extends R> fn3) {\n return (PersistentQueueX<R>)LazyCollectionX.super.zip3(second,third,fn3);\n }\n\n @Override\n default <T2, T3, T4, R> PersistentQueueX<R> zip4(final Iterable<? extends T2> second, final Iterable<? extends T3> third, final Iterable<? extends T4> fourth, final Function4<? super T, ? super T2, ? super T3, ? super T4, ? extends R> fn) {\n return (PersistentQueueX<R>)LazyCollectionX.super.zip4(second,third,fourth,fn);\n }\n\n /**\n * Companion class for creating Type Class instances for working with PQueues\n * @author johnmcclean\n *\n */\n @UtilityClass\n public static class Instances {\n public static InstanceDefinitions<persistentQueueX> definitions(){\n return new InstanceDefinitions<persistentQueueX>() {\n @Override\n public <T, R> Functor<persistentQueueX> functor() {\n return Instances.functor();\n }\n\n @Override\n public <T> Pure<persistentQueueX> unit() {\n return Instances.unit();\n }\n\n @Override\n public <T, R> Applicative<persistentQueueX> applicative() {\n return Instances.zippingApplicative();\n }\n\n @Override\n public <T, R> Monad<persistentQueueX> monad() {\n return Instances.monad();\n }\n\n @Override\n public <T, R> Maybe<MonadZero<persistentQueueX>> monadZero() {\n return Maybe.just(Instances.monadZero());\n }\n\n @Override\n public <T> Maybe<MonadPlus<persistentQueueX>> monadPlus() {\n return Maybe.just(Instances.monadPlus());\n }\n\n @Override\n public <T> MonadRec<persistentQueueX> monadRec() {\n return Instances.monadRec();\n }\n\n @Override\n public <T> Maybe<MonadPlus<persistentQueueX>> monadPlus(MonoidK<persistentQueueX> m) {\n return Maybe.just(Instances.monadPlus(m));\n }\n\n @Override\n public <C2, T> Traverse<persistentQueueX> traverse() {\n return Instances.traverse();\n }\n\n @Override\n public <T> Foldable<persistentQueueX> foldable() {\n return Instances.foldable();\n }\n\n @Override\n public <T> Maybe<Comonad<persistentQueueX>> comonad() {\n return Maybe.nothing();\n }\n @Override\n public <T> Maybe<Unfoldable<persistentQueueX>> unfoldable() {\n return Maybe.just(Instances.unfoldable());\n }\n };\n }\n\n public static Unfoldable<persistentQueueX> unfoldable(){\n return new Unfoldable<persistentQueueX>() {\n @Override\n public <R, T> Higher<persistentQueueX, R> unfold(T b, Function<? super T, Option<Tuple2<R, T>>> fn) {\n return PersistentQueueX.unfold(b,fn);\n }\n };\n }\n\n /**\n *\n * Transform a list, mulitplying every element by 2\n *\n * <pre>\n * {@code\n * PersistentQueueX<Integer> list = PQueues.functor().map(i->i*2, Arrays.asPQueue(1,2,3));\n *\n * //[2,4,6]\n *\n *\n * }\n * </pre>\n *\n * An example fluent api working with PQueues\n * <pre>\n * {@code\n * PersistentQueueX<Integer> list = PQueues.unit()\n .unit(\"hello\")\n .applyHKT(h->PQueues.functor().map((String v) ->v.length(), h))\n .convert(PersistentQueueX::narrowK3);\n *\n * }\n * </pre>\n *\n *\n * @return A functor for PQueues\n */\n public static <T,R>Functor<persistentQueueX> functor(){\n BiFunction<PersistentQueueX<T>,Function<? super T, ? extends R>,PersistentQueueX<R>> map = Instances::map;\n return General.functor(map);\n }\n /**\n * <pre>\n * {@code\n * PersistentQueueX<String> list = PQueues.unit()\n .unit(\"hello\")\n .convert(PersistentQueueX::narrowK3);\n\n //Arrays.asPQueue(\"hello\"))\n *\n * }\n * </pre>\n *\n *\n * @return A factory for PQueues\n */\n public static <T> Pure<persistentQueueX> unit(){\n return General.<persistentQueueX,T>unit(Instances::of);\n }\n /**\n *\n * <pre>\n * {@code\n * import static com.aol.cyclops.hkt.jdk.PersistentQueueX.widen;\n * import static com.aol.cyclops.util.function.Lambda.l1;\n * import static java.util.Arrays.asPQueue;\n *\n PQueues.zippingApplicative()\n .ap(widen(asPQueue(l1(this::multiplyByTwo))),widen(asPQueue(1,2,3)));\n *\n * //[2,4,6]\n * }\n * </pre>\n *\n *\n * Example fluent API\n * <pre>\n * {@code\n * PersistentQueueX<Function<Integer,Integer>> listFn =PQueues.unit()\n * .unit(Lambda.l1((Integer i) ->i*2))\n * .convert(PersistentQueueX::narrowK3);\n\n PersistentQueueX<Integer> list = PQueues.unit()\n .unit(\"hello\")\n .applyHKT(h->PQueues.functor().map((String v) ->v.length(), h))\n .applyHKT(h->PQueues.zippingApplicative().ap(listFn, h))\n .convert(PersistentQueueX::narrowK3);\n\n //Arrays.asPQueue(\"hello\".length()*2))\n *\n * }\n * </pre>\n *\n *\n * @return A zipper for PQueues\n */\n public static <T,R> Applicative<persistentQueueX> zippingApplicative(){\n BiFunction<PersistentQueueX< Function<T, R>>,PersistentQueueX<T>,PersistentQueueX<R>> ap = Instances::ap;\n return General.applicative(functor(), unit(), ap);\n }\n /**\n *\n * <pre>\n * {@code\n * import static com.aol.cyclops.hkt.jdk.PersistentQueueX.widen;\n * PersistentQueueX<Integer> list = PQueues.monad()\n .flatMap(i->widen(PersistentQueueX.range(0,i)), widen(Arrays.asPQueue(1,2,3)))\n .convert(PersistentQueueX::narrowK3);\n * }\n * </pre>\n *\n * Example fluent API\n * <pre>\n * {@code\n * PersistentQueueX<Integer> list = PQueues.unit()\n .unit(\"hello\")\n .applyHKT(h->PQueues.monad().flatMap((String v) ->PQueues.unit().unit(v.length()), h))\n .convert(PersistentQueueX::narrowK3);\n\n //Arrays.asPQueue(\"hello\".length())\n *\n * }\n * </pre>\n *\n * @return Type class with monad functions for PQueues\n */\n public static <T,R> Monad<persistentQueueX> monad(){\n\n BiFunction<Higher<persistentQueueX,T>,Function<? super T, ? extends Higher<persistentQueueX,R>>,Higher<persistentQueueX,R>> flatMap = Instances::flatMap;\n return General.monad(zippingApplicative(), flatMap);\n }\n /**\n *\n * <pre>\n * {@code\n * PersistentQueueX<String> list = PQueues.unit()\n .unit(\"hello\")\n .applyHKT(h->PQueues.monadZero().filter((String t)->t.startsWith(\"he\"), h))\n .convert(PersistentQueueX::narrowK3);\n\n //Arrays.asPQueue(\"hello\"));\n *\n * }\n * </pre>\n *\n *\n * @return A filterable monad (with default value)\n */\n public static <T,R> MonadZero<persistentQueueX> monadZero(){\n\n return General.monadZero(monad(), PersistentQueueX.empty());\n }\n /**\n * <pre>\n * {@code\n * PersistentQueueX<Integer> list = PQueues.<Integer>monadPlus()\n .plus(Arrays.asPQueue()), Arrays.asPQueue(10)))\n .convert(PersistentQueueX::narrowK3);\n //Arrays.asPQueue(10))\n *\n * }\n * </pre>\n * @return Type class for combining PQueues by concatenation\n */\n public static <T> MonadPlus<persistentQueueX> monadPlus(){\n\n return General.monadPlus(monadZero(), MonoidKs.persistentQueueXConcat());\n }\n public static <T,R> MonadRec<persistentQueueX> monadRec(){\n\n return new MonadRec<persistentQueueX>(){\n @Override\n public <T, R> Higher<persistentQueueX, R> tailRec(T initial, Function<? super T, ? extends Higher<persistentQueueX,? extends Either<T, R>>> fn) {\n return PersistentQueueX.tailRec(initial,fn.andThen(PersistentQueueX::narrowK));\n }\n };\n }\n\n public static MonadPlus<persistentQueueX> monadPlus(MonoidK<persistentQueueX> m){\n\n return General.monadPlus(monadZero(),m);\n }\n\n /**\n * @return Type class for traversables with traverse / sequence operations\n */\n public static <C2,T> Traverse<persistentQueueX> traverse(){\n BiFunction<Applicative<C2>,PersistentQueueX<Higher<C2, T>>,Higher<C2, PersistentQueueX<T>>> sequenceFn = (ap, list) -> {\n\n Higher<C2,PersistentQueueX<T>> identity = ap.unit(PersistentQueueX.empty());\n\n BiFunction<Higher<C2,PersistentQueueX<T>>,Higher<C2,T>,Higher<C2,PersistentQueueX<T>>> combineToPQueue = (acc, next) -> ap.apBiFn(ap.unit((a, b) ->a.plus(b)),acc,next);\n\n BinaryOperator<Higher<C2,PersistentQueueX<T>>> combinePQueues = (a, b)-> ap.apBiFn(ap.unit((l1, l2)-> l1.plusAll(l2)),a,b); ;\n\n return list.stream()\n .reduce(identity,\n combineToPQueue,\n combinePQueues);\n\n\n };\n BiFunction<Applicative<C2>,Higher<persistentQueueX,Higher<C2, T>>,Higher<C2, Higher<persistentQueueX,T>>> sequenceNarrow =\n (a,b) -> PersistentQueueX.widen2(sequenceFn.apply(a, PersistentQueueX.narrowK(b)));\n return General.traverse(zippingApplicative(), sequenceNarrow);\n }\n\n /**\n *\n * <pre>\n * {@code\n * int sum = PQueues.foldable()\n .foldLeft(0, (a,b)->a+b, Arrays.asPQueue(1,2,3,4)));\n\n //10\n *\n * }\n * </pre>\n *\n *\n * @return Type class for folding / reduction operations\n */\n public static <T,R> Foldable<persistentQueueX> foldable(){\n BiFunction<Monoid<T>,Higher<persistentQueueX,T>,T> foldRightFn = (m, l)-> PersistentQueueX.narrowK(l).foldRight(m);\n BiFunction<Monoid<T>,Higher<persistentQueueX,T>,T> foldLeftFn = (m, l)-> PersistentQueueX.narrowK(l).reduce(m);\n Function3<Monoid<R>, Function<T, R>, Higher<persistentQueueX, T>, R> foldMapFn = (m, f, l)->narrowK(l).map(f).foldLeft(m);\n return General.foldable(foldRightFn, foldLeftFn,foldMapFn);\n }\n\n private static <T> PersistentQueueX<T> concat(PersistentQueue<T> l1, PersistentQueue<T> l2){\n\n return PersistentQueueX.fromIterable(l1.plusAll(l2));\n }\n private <T> PersistentQueueX<T> of(T value){\n return PersistentQueueX.of(value);\n }\n private static <T,R> PersistentQueueX<R> ap(PersistentQueueX<Function< T, R>> lt, PersistentQueueX<T> list){\n return PersistentQueueX.fromIterable(lt).zip(list,(a, b)->a.apply(b));\n }\n private static <T,R> Higher<persistentQueueX,R> flatMap(Higher<persistentQueueX,T> lt, Function<? super T, ? extends Higher<persistentQueueX,R>> fn){\n return PersistentQueueX.fromIterable(PersistentQueueX.narrowK(lt)).flatMap(fn.andThen(PersistentQueueX::narrowK));\n }\n private static <T,R> PersistentQueueX<R> map(PersistentQueueX<T> lt, Function<? super T, ? extends R> fn){\n return lt.map(fn);\n }\n }\n\n public static <T,R> PersistentQueueX<R> tailRec(T initial, Function<? super T, ? extends PersistentQueueX<? extends Either<T, R>>> fn) {\n return ListX.tailRec(initial,fn).to().persistentQueueX(Evaluation.LAZY);\n }\n}", "public MyQueue232() {\n stackIn = new Stack<Integer>();\n stackOut = new Stack<Integer>();\n isIn = true;\n }", "@Test\n public void testPeek() {\n Queue queue = new Queue();\n queue.enqueue(testParams[1]);\n queue.enqueue(testParams[2]);\n\n Object[] expResult = {testParams[1], testParams[1]};\n\n // call tested method\n Object[] actualResult = new Object[queue.getSize()];\n for(int i = 0; i < queue.getSize(); i++){\n actualResult[i] = queue.peek();\n }\n\n // compare expected result with actual result\n assertArrayEquals(expResult, actualResult);\n }", "@Override\n\t\tpublic void readyToRead(Vector<byte[]> outQ) {\n\t\t\t\n\t\t}", "public I0304MyQueue() {\n nums = new Stack<>();\n temp = new Stack<>();\n }", "public interface MqConsumer {\n}", "TransferQueue<ResultType> getResultsQueue();", "void enqueue(T d) throws RuntimeException;", "public void toQueueMode() {\n\t\t// TODO Write me!\n\t\t\n\t}", "void enqueue(E item);", "@Test\n public void testDequeue() {\n Queue queue = new Queue();\n queue.enqueue(testParams[1]);\n queue.enqueue(testParams[2]);\n\n Object[] expResult = {testParams[1], testParams[2]};\n\n // call tested method\n Object[] actualResult = new Object[queue.getSize()];\n int len = queue.getSize();\n for(int i = 0; i < len; i++){\n actualResult[i] = queue.dequeue();\n }\n\n // compare expected result with actual result\n assertArrayEquals(expResult, actualResult);\n }", "static int deQueue(Queue q) {\r\n int x;\r\n\r\n /* If both stacks are empty then error */\r\n if (q.stack1.isEmpty() && q.stack2.isEmpty()) {\r\n System.out.println(\"Q is empty\");\r\n System.exit(0);\r\n }\r\n\r\n /*\r\n * Move elements from stack1 to stack 2 only if\r\n * stack2 is empty\r\n */\r\n if (q.stack2.isEmpty()) {\r\n while (!q.stack1.isEmpty()) {\r\n x = pop(q.stack1);\r\n push(q.stack2, x);\r\n }\r\n }\r\n x = pop(q.stack2);\r\n return x;\r\n }", "@Test\n public void queue() {\n\n Queue<String> q = new LinkedList<>();\n q.offer(\"1\");\n q.offer(\"2\");\n q.offer(\"3\");\n System.out.println(q.offer(\"4\"));\n System.out.println(q.add(\"2\"));\n System.out.println(q.toString());\n System.out.println(\"peek \" + q.peek()); // 1, peek() means get the first element in the queue\n System.out.println(\"size \" + q.size()); // 4\n System.out.println(\"poll \" + q.poll()); // 1\n System.out.println(\"size \" + q.size()); // 3\n\n\n }", "static WeakOrderQueue allocate(Recycler.Stack<?> stack, Thread thread)\r\n/* 248: */ {\r\n/* 249:277 */ return reserveSpace(stack.availableSharedCapacity, Recycler.LINK_CAPACITY) ? \r\n/* 250:278 */ newQueue(stack, thread) : null;\r\n/* 251: */ }", "public interface PoolingQueueService {\n\n void setIMessageProcessor(final IMessageProcessor iMessageProcessor) throws PoolingQueueException;\n\n MessageMapper cconn(String serialNumber, String contentType, MessageMapper messageMapper);\n\n MessageMapper cpull(String serialNumber);\n\n MessageMapper cpush(String serialNumber, String applicationID, String broadcast, String contentType, MessageMapper messageMapper);\n\n MessageMapper aconn(String serialNumber, String applicationID, String contentType, MessageMapper messageMapper);\n\n MessageMapper apull(String serialNumber, String applicationID, String messageAmount);\n\n MessageMapper apush(String serialNumber, String applicationID, String contentType, MessageMapper messageMapper);\n\n}", "public ByteQue invoke(ByteQue que) {\n byte[] arr = new byte[que.popSize()];\n for (int i = 0; i < arr.length; ++i) {\n arr[i] = (byte) que.pop(byte.class);\n }\n String name = new String(arr, Charset.forName(\"UTF-8\"));\n ObjectMethod om = funs.get(name);\n if (om == null) {\n return exception(name + \" function not found\");\n }\n Parameter[] types = om.fun.getParameters();\n Object[] args = new Object[types.length];\n for (int i = 0; i < types.length; ++i) {\n Class<?> type = types[i].getType();\n if (que.len() == 0) {\n return exception(\"error when calling function \" + name + \" to restore parameters to the \" + i\n + \"th parameter \" + type.toString());\n }\n try {\n args[i] = que.pop(type);\n } catch (UnsupportedOperationException e) {\n return exception(\"error when calling function \" + name + \" to restore parameters to the \" + i\n + \"th parameter \" + type.toString() + \": \" + e.toString());\n }\n }\n if (que.len() != 0) {\n return exception(\"error when calling function \" + name + \" to restore parameters\");\n }\n ByteQue ret = new ByteQue();\n om.fun.setAccessible(true);\n Object rst;\n try {\n rst = om.fun.invoke(om.obj, args);\n } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {\n return exception(\"error calling function \" + name + \" \" + e.toString());\n }\n ret.push(boolean.class, false);\n Class<?> rtp = om.fun.getReturnType();\n if (rtp != Void.TYPE) {\n try {\n ret.push(rtp, rst);\n } catch (UnsupportedOperationException e) {\n return exception(\"error calling function \" + name + \" to store result \" + e.toString());\n }\n }\n return ret;\n }", "ValueQueue() { super(); }", "public interface TaskQueue {\n\n /**\n * Adds a task to this dependency queue.\n *\n * @param task the {@code KernelRunnable} to add\n * @param owner the {@code Identity} that owns the task\n */\n void addTask(KernelRunnable task, Identity owner);\n\n}", "static WeakOrderQueue newQueue(Recycler.Stack<?> stack, Thread thread)\r\n/* 233: */ {\r\n/* 234:260 */ WeakOrderQueue queue = new WeakOrderQueue(stack, thread);\r\n/* 235: */ \r\n/* 236: */ \r\n/* 237:263 */ stack.setHead(queue);\r\n/* 238:264 */ return queue;\r\n/* 239: */ }", "public MyQueue() {\n stack = new Stack<>();\n }", "private static void tester(APQueue<String> q) {\n q.push(\"c++\");\n q.push(\"python\");\n q.push(\"java\");\n System.out.println(\"Should be 3: \" + q.size());\n \n System.out.println();\n \n System.out.println(\"Should be c++: \" + q.peek());\n System.out.println(\"Should be 3: \" + q.size());\n \n System.out.println();\n \n System.out.println(\"Should be c++: \" + q.pop());\n System.out.println(\"Should be 2: \" + q.size());\n \n System.out.println();\n \n System.out.println(\"Should be python: \" + q.peek());\n System.out.println(\"Should be 2: \" + q.size());\n \n System.out.println();\n \n System.out.println(\"Should be python: \" + q.pop());\n System.out.println(\"Should be 1: \" + q.size());\n \n System.out.println();\n \n System.out.println(\"Should be java: \" + q.peek());\n System.out.println(\"Should be 1: \" + q.size());\n \n System.out.println();\n \n System.out.println(\"Should be java: \" + q.pop());\n System.out.println(\"Should be 0: \" + q.size());\n \n System.out.println();\n }", "public interface QueueManager {\n List<Message> messages = null;\n\n int insertQueue(String queueId, Message message);\n\n List<Message> getQueue(String queueId, int num);\n}", "public static void main(String[] args) {\n int[] test = {1,2,3,4,5,6,7,8,9,10};\n Queue testing = new Queue(test);\n int[] pulled = new int[3];\n pulled[0] = testing.pop();\n pulled[1] = testing.pop();\n pulled[0] = testing.pop();\n System.out.println(\"pulled \" + pulled[0] + \" \" + pulled[1] + \" \" + pulled[2]);\n testing.push(pulled);\n testing.iter();\n }", "public InMemoryQueueService(){\n this.ringBufferQueue = new QueueMessage[10000];\n }", "public MyQueue1() {\n storeStack = new Stack<>();\n }", "@Test\n public void testQueueCodeExamples() throws Exception {\n logger.info(\"Beginning testQueueCodeExamples()...\");\n\n // Allocate an empty queue\n Queue<Integer> queue = new Queue<>(256); // capacity of 256 elements\n\n // Start up some consumers\n Consumer consumer1 = new Consumer(queue);\n new Thread(consumer1).start();\n Consumer consumer2 = new Consumer(queue);\n new Thread(consumer2).start();\n\n // Start up a producer\n Producer producer = new Producer(queue);\n new Thread(producer).start();\n\n // Wait for them to process the messages\n Thread.sleep(200);\n\n logger.info(\"Completed testQueueCodeExamples().\\n\");\n }", "public void enqueue (E element);", "public MyQueue() {\n storeStack = new Stack<>();\n }", "public MyQueue() {\n left = new Stack<>();\n right = new Stack<>();\n }", "@Override\n public void enqueue(T value) {\n myQ[myLength] = value;\n myLength++;\n }", "public interface HoldBackQueueListener {\n public void messagePutInHoldBackQueue(Message message);\n public void messageRemovedFromHoldBackQueue(Message message);\n}", "public List<MediaSessionCompat.QueueItem> getQueue() {\n }", "@Override\n public void queueInputBuffer(\n int index, int offset, int size, long presentationTimeUs, int flags) {\n bufferEnqueuer.queueInputBuffer(index, offset, size, presentationTimeUs, flags);\n }" ]
[ "0.65642965", "0.6507382", "0.630507", "0.6297146", "0.6278921", "0.61737955", "0.6173758", "0.61299914", "0.6126699", "0.60900027", "0.60719174", "0.60208756", "0.60075074", "0.5954872", "0.5903573", "0.59010714", "0.5898809", "0.58916974", "0.58850527", "0.5881271", "0.587689", "0.5852361", "0.5831323", "0.5829956", "0.58249843", "0.5820871", "0.5814616", "0.5796571", "0.57934666", "0.57934666", "0.57748383", "0.5760727", "0.5760727", "0.5752803", "0.5726374", "0.5722458", "0.5709523", "0.570577", "0.5689186", "0.5665857", "0.5665714", "0.5665714", "0.5665714", "0.56622255", "0.56567943", "0.5656599", "0.5654963", "0.56385523", "0.5629968", "0.56299555", "0.5622026", "0.5615376", "0.5593538", "0.5590146", "0.5582211", "0.55779827", "0.5563687", "0.55583", "0.55583", "0.55525774", "0.5534612", "0.5527572", "0.5521772", "0.5521687", "0.55145675", "0.5502239", "0.5492574", "0.5487404", "0.54866624", "0.54706526", "0.54566675", "0.545554", "0.54551685", "0.5454706", "0.54513603", "0.5424526", "0.54242265", "0.54228526", "0.54228294", "0.5418092", "0.5405832", "0.54055375", "0.54021484", "0.53937924", "0.539165", "0.53896576", "0.53854656", "0.5381725", "0.53801596", "0.53635585", "0.5363259", "0.53572476", "0.53413117", "0.53281325", "0.53231525", "0.5313857", "0.53119874", "0.5308872", "0.5307178", "0.5305389", "0.53031313" ]
0.0
-1
Adds in storeorder the given task at given slot of q to null. Caller must ensure q is nonnull and index is in range.
private static void setSlot(Runnable[] q, int i, Runnable t) { UNSAFE.putOrderedObject(q, slotOffset(i), t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean casSlotNull(Runnable[] q, int i,\n Runnable t) {\n return UNSAFE.compareAndSwapObject(q, slotOffset(i), t, null);\n }", "final void pushTask(Runnable t) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int s = sp;\n setSlot(q, s & mask, t);\n storeSp(++s);\n if ((s -= base) == 1)\n pool.signalWork();\n else if (s >= mask)\n growQueue();\n }", "static void insert(Queue<Integer> q, int k){\n \n q.add(k);\n \n }", "@Override\n public <T> void onCreate(Task<T> task) {\n\n final String taskId = task.getTaskId();\n\n if (!StringUtils.isEmpty(taskId)) {\n if (inProgressQueue.containsKey(taskId)) {\n// task.setSkipExecution(true);\n } else {\n inProgressQueue.put(taskId, task);\n// task.setSkipExecution(false);\n }\n } else {\n logger.warn(\"Task Id can not be null for qnqueing task\");\n }\n }", "final boolean unpushTask(Runnable t) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int s = sp - 1;\n if (casSlotNull(q, s & mask, t)) {\n storeSp(s);\n return true;\n }\n return false;\n }", "@Override\n\tpublic void addTask(ISimpleTask task) {\n\t\ttry {\n\t\t\tqueue.put(task);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void recoverTask(int index, Task task) {\n tasks.add(index, task);\n }", "final Runnable deqTask() {\n Runnable t;\n Runnable[] q;\n int i;\n int b;\n if (sp != (b = base) &&\n (q = queue) != null && // must read q after b\n (t = q[i = (q.length - 1) & b]) != null &&\n casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n return null;\n }", "public abstract void queue(@Nonnull LimiterPair task);", "public void nextTask()\n {\n Task next = null;\n \n if (!pq.isEmpty()) next = pq.remove();\n \n if (next == null)\n {\n System.out.println(\"There are no tasks in the list.\");\n }\n else\n {\n //System.out.println(pq.peek());\n System.out.println(next.getDescription());\n }\n }", "private void queueTask(Version theTask) {\n\tsynchronized(_taskQueue) {\n\t _taskQueue.add(theTask);\n\t}\n }", "public void addQ (Question Q)\n {\n newQuestion = Q;\n \n enqueue();\n }", "private void shift(){\n if (queue.length < 1){\n throw new Error(\"Table self destruction!\");\n }\n if (size <= 0){\n return;\n }\n\n if (queue[0] == null){\n E best = null;\n int bestAT = -1;\n for (int x = 0 ; x < queue.length; x++){\n E cur = (E)queue[x];\n if (cur == null){\n continue;\n }\n if (best == null || cur.compareTo(best) > 0){\n best = cur;\n bestAT = x;\n }\n }\n // Not put best at front;\n queue[bestAT] = null;\n queue[0] = best;\n }\n\n }", "void removeTaskAbstract(int i);", "void addQuest(Question quest){\r\n\t\t//if the test bank does not contain this topic, create a new one and add question\r\n\t\tif(!bank.containsKey(quest.getTopic())){\r\n\t\t\tquest.setID(0);\r\n\t\t\tbank.put(quest.getTopic(), new ArrayList<Question>());\r\n\t\t\tbank.get(quest.getTopic()).add(quest);\r\n\t\t}else{\r\n\t\t\tquest.setID(bank.get(quest.getTopic()).size());\r\n\t\t\tbank.get(quest.getTopic()).add(quest);\r\n\t\t}\r\n\t}", "public T put(int index, T t);", "void enqueue(int x, int p){\n for(int i=0;i<size;i++){\n if(values[i]==(-1)){\n values[i] = x;\n priorities[i] = p;\n break;\n }\n }\n }", "void addTask(Task<?> task) {\n tasks.addFirst(task);\n }", "public boolean addNewUnfinishedTask(Task task){\r\n if (!unfinished.add(task)){\r\n Task t = task;\r\n\r\n //Find the task in the set that is equal to the task in the argument\r\n for (Task tsk: unfinished){\r\n if (tsk.equals(task)){\r\n t = tsk;\r\n break;\r\n }\r\n }\r\n\r\n //Increment the hours required for that task\r\n t.incrementHrsReqd(task.getHrsLeft());\r\n return false;\r\n }\r\n return true;\r\n }", "void add(final Task task);", "public boolean addTimeSlotAt(TimeSlot aTimeSlot, int index)\n { \n boolean wasAdded = false;\n if(addTimeSlot(aTimeSlot))\n {\n if(index < 0 ) { index = 0; }\n if(index > numberOfTimeSlots()) { index = numberOfTimeSlots() - 1; }\n timeSlots.remove(aTimeSlot);\n timeSlots.add(index, aTimeSlot);\n wasAdded = true;\n }\n return wasAdded;\n }", "public void add(Task task){ this.tasks.add(task);}", "private void enqueue(E x) {\n final Object[] items = this.items;\n items[putIndex] = x;\n if (++putIndex == items.length) putIndex = 0;\n count++;\n notEmpty.signal();\n }", "private void growQueue() {\n Runnable[] oldQ = queue;\n int oldSize = oldQ.length;\n int newSize = oldSize << 1;\n if (newSize > MAXIMUM_QUEUE_CAPACITY)\n throw new RejectedExecutionException(\"Queue capacity exceeded\");\n Runnable[] newQ = queue = new Runnable[newSize];\n\n int b = base;\n int bf = b + oldSize;\n int oldMask = oldSize - 1;\n int newMask = newSize - 1;\n do {\n int oldIndex = b & oldMask;\n Runnable t = oldQ[oldIndex];\n if (t != null && !casSlotNull(oldQ, oldIndex, t))\n t = null;\n setSlot(newQ, b & newMask, t);\n } while (++b != bf);\n pool.signalWork();\n }", "void enqueue(Node n) {\n if (queueSet.contains(n)) {\n return;\n }\n queueSet.add(n);\n queue.addFirst(n);\n }", "private void arrangeSingleTask(final Task task) {\n\t\ttask.arrangeTask(list,markerStatus,0);\n \tif (task.isReverseScheduled())\n\t\t\tnumberOfReverseScheduledTasks++;\n\t}", "void arrangeTask(Task task) {\n if (task.isReverseScheduled())\n\t\t\tnumberOfReverseScheduledTasks++;\n \ttask.setMarkerStatus(markerStatus);\n TaskReference previousTaskReference;\n \tTask previousTask;\n // go thru in reverse order inserting after first predecessor or parent encountered\n ListIterator i = list.listIterator();\n TaskReference taskReference = new TaskReference(task);\n while (i.hasNext()) {\n \tpreviousTaskReference = (TaskReference)i.next();\n \tpreviousTask = previousTaskReference.getTask();\n if (task.getWbsParentTask() == previousTask) {\n \ti.add(taskReference);\n return;\n }\n }\n i.previous(); // add before end sentinel\n i.add(taskReference);\n }", "synchronized void putWork(PartialSolution sp) {\n\t\ttasks.add(sp);\n\t\t/* anuntam unul dintre workerii care asteptau */\n\t\tthis.notify();\n\n\t}", "private void putOneQueue(BlockingQueue q, List buffer) throws InterruptedException {\n q.put(buffer);\n// System.err.println(Thread.currentThread().getName() + \"[MC] puts \" + buffer.size() + \" on \" + q.hashCode() + \" done\");\n// System.err.println(Thread.currentThread().getName() + \"[MC] puts \" + buffer.size() + \" on \" + q.hashCode() + \" first record \" + buffer.get(0));\n }", "public boolean addTask(Integer i){\n\n return toget.add(i);\n }", "final Runnable popTask() {\n int s = sp;\n while (s != base) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int i = (s - 1) & mask;\n Runnable t = q[i];\n if (t == null || !casSlotNull(q, i, t))\n break;\n storeSp(s - 1);\n return t;\n }\n }\n return null;\n }", "public void add(final Task task) {\n }", "@Override\n public CompletableFuture<Void> addTask(String queueName, GarbageCollector.TaskInfo task) {\n Preconditions.checkNotNull(queueName, \"queueName\");\n Preconditions.checkNotNull(task, \"task\");\n try {\n val processor = eventProcessorMap.get(queueName);\n Preconditions.checkArgument(null != processor, \"Attempt to add to non existent queue (%s).\", queueName);\n return Futures.toVoid(processor.add(SERIALIZER.serialize(task), Duration.ofMillis(1000)));\n } catch (Throwable e) {\n return CompletableFuture.failedFuture(e);\n }\n }", "@Override\n public void edit(Question q) {\n delete(q);\n add(q);\n }", "public Task rescheduleTask(String index, String dateTime) throws DukeException {\n try {\n int intNum = Integer.parseInt(index);\n Task temp = tasks.get(intNum - 1);\n temp = temp.rescheduleTask(dateTime);\n tasks.set(intNum - 1, temp);\n return temp;\n } catch (NumberFormatException e) {\n throw new DukeException(\"Please specify the index of task and number of hours to snooze!\");\n } catch (IndexOutOfBoundsException e) {\n throw new DukeException(\"Task does not exist!\");\n }\n }", "public void invokeLater(Runnable task) {\n queue.add(task);\n }", "private void deleteElement(final int idx) {\r\n\t\tserializer.setRandomAccess(idx, null);\r\n\t\tif (idx < firstFree) {\r\n\t\t\tsetNextPointer(idx, firstFree);\r\n\t\t\tsetPrevPointer(idx, 0);\r\n\t\t\tfirstFree = idx;\r\n\t\t} else {\r\n\t\t\tint free = firstFree;\r\n\t\t\tint lastFree = 0;\r\n\t\t\twhile (free < idx) {\r\n\t\t\t\tlastFree = free;\r\n\t\t\t\tfree = getNextPointer(free);\r\n\t\t\t}\r\n\t\t\tsetNextPointer(lastFree, idx);\r\n\t\t\tsetNextPointer(idx, free);\r\n\t\t}\r\n\t}", "protected void txPut(int n) {}", "public synchronized void registerScheduledTask(ParallelTask<?> task) throws QueryEvaluationException {\r\n\t\tif (done) {\r\n\t\t\tthrow new QueryEvaluationException(\"Query is aborted or closed, cannot accept new tasks\");\r\n\t\t}\r\n\t\tscheduledSubtasks.add(task);\r\n\t}", "void addDoneTask(Task task);", "@Override\n public Object enqueue(Object x) {\n if (!isFull() && x != null){ // Pré-condição\n if (++tail >= MAX){\n tail = 0; // MAX-1 é a ultima posição do vetor\n }\n \n if (head == -1){\n head = tail;\n }\n \n memo[tail] = x;\n total++;\n return x;\n }\n else{ // Não pode inserir elemento nulo (x == null)\n return null; // Ou se a FILA estiver cheia\n }\n }", "@Override\n\tpublic void addTask(Task task) {\n\t\t\n\t}", "public void addTask(Task t){\n\t\ttry {\n\t\t\taction.put(t);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Insert\n long insert(Task task);", "public short prepareSlot(Transaction trans, int tsize)\n throws StorageException {\n int slotId = -1;\n\n // look for a slot to reuse\n int deleteCount = getDeleteCount();\n if (deleteCount > 0) {\n int count = dir.getCount();\n for (int i = 0; i < count; i++) {\n int loc = dir.loc(i);\n if (RowHeader.isDeleted(pageBuffer, loc)\n && !RowHeader.isLocked(pageBuffer, loc)) {\n int rsize = dir.sizeAt(i) - RowHeader.getOverhead();\n if (rsize > 0)\n setDeleteCount((short) (getDeleteCount() - 1));\n dir.replaceAt(i, tsize);\n slotId = i;\n break;\n }\n }\n }\n\n // or add a slot\n if (slotId == -1)\n slotId = dir.push(tsize);\n\n // initialize the slot\n int loc = dir.loc(slotId);\n RowHeader.create(pageBuffer, loc);\n\n // mark it as deleted until the actual insert takes place (if it takes\n // place)\n setDeleted((short) slotId, true);\n\n // lock the slot\n try {\n lock(trans, slotId);\n } catch (LockConflict lc) {\n // should not be possible\n throw new RuntimeException(\n \"Internal error: unexpected exception in attempt to acquire lock\");\n }\n\n return (short) slotId;\n }", "public DeleteTaskCommand(int index) {\n super();\n this.index = index - 1;\n }", "protected void addTombstone(String taskName) {\n if (!DatastoreServiceFactory.getDatastoreService().getActiveTransactions().isEmpty()) {\n // imitate the behavior in production\n throw new IllegalArgumentException(\"transactional tasks cannot be named: \" + taskName);\n }\n if (!tombstones.add(taskName)) {\n throw new TaskAlreadyExistsException(\"Task name '\" + taskName + \"' is already in the queue\");\n }\n }", "void newAnswer (Integer q, Integer a) {\n\t\tif (results.get(q)==null) {\n\t\t\tArrayList<Integer> newEntry = new ArrayList<Integer>();\n\t\t\tnewEntry.add(a);\n\t\t\tresults.put(q, newEntry);\n\t\t} else {\n\t\t\t// append to existing list\n\t\t\tresults.get(q).add(a);\n\t\t}\n\t}", "public void testDrainToNullN() {\n SynchronousQueue q = new SynchronousQueue();\n try {\n q.drainTo(null, 0);\n shouldThrow();\n } catch(NullPointerException success) {\n }\n }", "public void setNodoIzquierdo(Nodo nodo){\n izq = nodo;\n }", "public void testDrainToWithActivePut() {\n final SynchronousQueue q = new SynchronousQueue();\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n q.put(new Integer(1));\n } catch (InterruptedException ie){\n threadUnexpectedException();\n }\n }\n });\n try {\n t.start();\n ArrayList l = new ArrayList();\n Thread.sleep(SHORT_DELAY_MS);\n q.drainTo(l);\n assertTrue(l.size() <= 1);\n if (l.size() > 0)\n assertEquals(l.get(0), new Integer(1));\n t.join();\n assertTrue(l.size() <= 1);\n } catch(Exception e){\n unexpectedException();\n }\n }", "@Override\n public boolean fillSlot(int slot) {\n if(!isValidSlot(slot) || availableSlots.size() == 0 || !availableSlots.contains(slot)){\n return false;\n }\n\n availableSlots.remove(slot);\n return true;\n }", "private synchronized void startTask(Task task) {\n if (_scheduledTasks.get(task.table) == task) {\n _scheduledTasks.remove(task.table);\n }\n _runningTask = task;\n }", "public void setQ(int q) {\n this.q = q;\n }", "void addToList(Task task) throws InvalidCommandException;", "private void enterToRunwayQueue() {\n\t\tqueue.insert(this);\n\t}", "void addTask(Task task);", "public void pushAddToUndoStack(String callingCommand, Task addedTask, int targetIndex) {\n previousActionType.push(callingCommand);\n previousActionIndex.push(UNDO_FILLER_INDEX);\n previousTask.push(addedTask);\n }", "public void enqueue ()\n {\n count++;\n questionList.add(newQuestion);\n //System.out.println(\"Question #\"+ totNumQ + \" is added to the queue.\");\n }", "@Override\n\tpublic ItemStack removeStackFromSlot(int index) {\n\t\treturn null;\n\t}", "public CheckOutQ() {\r\n\t\tq = new LinkedList<Person>();\r\n\t\tmaxQ = 0;\r\n\t}", "static void enQueue(Queue q, int x) {\r\n push(q.stack1, x);\r\n }", "boolean offer(T x){\n if(tail == queueArray.length){\n return false;\n }\n queueArray[tail] = x;\n tail++;\n return true;\n }", "void addTask(Task person) throws UniqueTaskList.DuplicateTaskException;", "public void setQuestion(int index, String question){\n if (question == null || question.equals(\"\")) {\n System.out.println(\"Question cannot be empty.\");\n }\n else {\n questionList.set(index, question);\n }\n }", "public void insert_task(int[] _row, int[] _col, int _row_num, int _col_num){\n ArrayList<Object> temp = new ArrayList<>();\n temp.add(_row);\n temp.add(_col);\n temp.add(_row_num);\n temp.add(_col_num);\n task_queue.add(temp);\n }", "private void setNode(int index, Node n) {\n \t\twhile (index + 1 >= contents.size()) {\n \t\t\tcontents.add(null);\n \t\t}\n \t\tcontents.set(index, n);\n \t}", "public int getQueuePosition();", "public Object put(Object index, Object value) {\n int i;\n if ((i = ((Number) index).intValue()) < 0)\n throw new NoSuchKeyException(i, size - start);\n if ((i += start) >= size)\n throw new NoSuchKeyException(i - start, size - start);\n array[i] = value;\n return null;\n }", "public void add(Task var) {\n\t\tif (tasks.size() < numOfTasks) {\n\t\t\ttasks.add(var);\n\t\t}\n\t}", "@Override\n public void enqueue(T value) {\n myQ[myLength] = value;\n myLength++;\n }", "public void queue(Object newItem){\n if(isFull()){\n System.out.println(\"queue is full\");\n return;\n }\n ArrayQueue[++rear] = newItem;\n if(front == -1)\n front = 0;\n \n }", "protected abstract void insertQuestionTx(QuestionImpl question);", "public void enqueueRear(int n);", "private Task taskAt(int p_index)\n {\n return (Task)m_taskVector.elementAt(p_index);\n }", "int insertTask(TaskInfo taskInfo);", "void remove(final Task task);", "public void testAdd() {\n\ttry {\n SynchronousQueue q = new SynchronousQueue();\n assertEquals(0, q.remainingCapacity());\n q.add(one);\n shouldThrow();\n } catch (IllegalStateException success){\n\t}\n }", "public void offer(E e) {\n if (e == null) throw new NullPointerException();\n queue[currentPos++] = e;\n size++;\n\n if (currentPos == queue.length) resize();\n }", "public @Override void add(int index, E element) {\n \tNode n = index == size ? sentinel : getNode(index);\n \tnew Node(n.pred, element);\n }", "public static void enQueue(Queue q, String entry){ \n if (q.queuesize < q.names.length){ //If the queue isn't full - Size of queue is less than the set array size \n q.names[q.queuesize] = entry; //Set the value at the index of queue size to the input (Using the array in the Queue class to store this)\n q.queuesize +=1; //Increment the size of queue \n }\n }", "public ItemStack transferStackInSlot(int i)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)inventorySlots.get(i);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n itemstack = itemstack1.copy();\n\n if (i < 9)\n {\n if (!mergeItemStack(itemstack1, 9, 45, true))\n {\n return null;\n }\n }\n else if (!mergeItemStack(itemstack1, 0, 9, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack(null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize != itemstack.stackSize)\n {\n slot.onPickupFromSlot(null, itemstack1);\n }\n else\n {\n return null;\n }\n }\n\n return itemstack;\n }", "@Override\n\tpublic void addScheduleTask(ScheduleTask st) {\n\t\tscheduleTaskDAO.add(st);\n\t}", "public void push(int x) {\n q.offer(x);\n }", "public void remove(int index){\n tasks.remove(index);\n }", "public void markNotDone (Index index) throws InventoryNotFoundException {\n\n try {\n Inventory inventory = list.get(index.getZeroBased());\n\n inventory.setIsDone(false);\n\n } catch (IndexOutOfBoundsException e) {\n throw new InventoryNotFoundException();\n }\n }", "public void add(Task t)\n {\n\ttoDo.add(t);\n }", "void add(int index, T element);", "void add(int index, T element);", "void addToQueuing(int tu){\n\t\tfor(Request req : queue.list){\n\t\t\tif(req.getReqTime() * 2 > tu){\t//大于当前时间的就不管了\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(req.getValid() == true){\t//如果没被删除,拷贝一份,删之,并将拷贝添加到Queuing里面\n\t\t\t\tRequest tmp = req.cloneAnObj();\t\t//克隆一个新的对象\n\t\t\t\treq.setValid(false);\n\t\t\t\tqueuing.list.add(tmp);\t//可以用引用对Queuing进行操作\n\t\t\t}\n\t\t}\n\t}", "public void enqueue (int elemento) {\n if(!isFull()){\n data[last] = elemento;\n count++;\n if(last == data.length-1) {\n last = 0;\n } else {\n last++;\n }\n }else{\n throw new RuntimeException(\"A fila está cheia\");\n }\n\n }", "private void inorder(Node x, MyQueue<Key> q) {\n if (x == null) return;\n inorder(x.left, q);\n q.add(x.key);\n inorder(x.right, q);\n }", "protected SlotRange transferSlotRange(int srcSlotIndex, ItemStack stack) {\n return null;\n }", "public void replaceTask(int taskIndex, Task newTask) {\n this.tasks.set(taskIndex, newTask);\n }", "public void testDrainTo() {\n SynchronousQueue q = new SynchronousQueue();\n ArrayList l = new ArrayList();\n q.drainTo(l);\n assertEquals(q.size(), 0);\n assertEquals(l.size(), 0);\n }", "int insertSelective(_task record);", "@Override\n\tpublic ItemStack getStackInSlot(int index) {\n\t\treturn null;\n\t}", "public void insertTicket(Ticket t){if(!this.inProgress()){this.currentTicket = t;}}", "public void populateTaskList(String _task){\n\t\ttaskList.getItems().add(_task);\n\t}", "public void offer(E e) throws NullPointerException {\n\t\tif (e == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tapq.add(e);\n\t\tupheap(this.size()); // size changed\n\t\t// implement this method\n\t}" ]
[ "0.6190767", "0.57763374", "0.55059874", "0.5502181", "0.526916", "0.52174616", "0.5173892", "0.51414245", "0.5049593", "0.5016052", "0.49946153", "0.49885455", "0.48986495", "0.4890336", "0.48868072", "0.48593587", "0.4780641", "0.4753194", "0.47483033", "0.4708827", "0.46936968", "0.4692461", "0.46922624", "0.4669153", "0.46632665", "0.46415782", "0.46394932", "0.46390116", "0.4637059", "0.46359074", "0.46301863", "0.46301675", "0.46009904", "0.45955196", "0.45933717", "0.45917988", "0.45842528", "0.45794693", "0.45789605", "0.45724964", "0.456725", "0.4558919", "0.45561016", "0.45491087", "0.4545694", "0.45419198", "0.45342952", "0.45340306", "0.45301688", "0.45264587", "0.45263585", "0.452343", "0.45174873", "0.45097876", "0.45066854", "0.45062062", "0.44971016", "0.44907346", "0.44895908", "0.44893184", "0.44868588", "0.44799477", "0.44795597", "0.44788653", "0.44784522", "0.44749942", "0.44730207", "0.4469022", "0.44677883", "0.44676313", "0.4461567", "0.44552705", "0.44536778", "0.44512254", "0.44501606", "0.44428307", "0.4442504", "0.4441235", "0.4431434", "0.44302452", "0.44280016", "0.44216254", "0.44182664", "0.44105574", "0.4409123", "0.440845", "0.4404862", "0.44013518", "0.44013518", "0.44012433", "0.44010422", "0.4394445", "0.43889686", "0.43884778", "0.43843663", "0.4381127", "0.43765432", "0.43720654", "0.4367393", "0.43660742" ]
0.56802577
2
CAS given slot of q to null. Caller must ensure q is nonnull and index is in range.
private static boolean casSlotNull(Runnable[] q, int i, Runnable t) { return UNSAFE.compareAndSwapObject(q, slotOffset(i), t, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEmpty(int index);", "public void clear(long index);", "public static void guard(int index) {\n for (int i = 0; i < index; i++) {\n final Object lock = sKnownFixed[i];\n if (lock != null && Thread.holdsLock(lock)) {\n\n // Note in this case sKnownFixed may not contain a lock at the given index,\n // which is okay and in that case we just don't do a WTF.\n final Object targetMayBeNull = sKnownFixed[index];\n doLog(targetMayBeNull, \"Calling thread \" + Thread.currentThread().getName()\n + \" is holding \" + lockToString(i) + \" while trying to acquire \"\n + lockToString(index));\n }\n }\n }", "@Test(timeout = TIMEOUT, expected = IllegalArgumentException.class)\n public void testQuickNull() {\n Random random = new Random(1332);\n Integer[] arr = {4, 2, 1, 3};\n Sorting.quickSort(null, comparator, random);\n Sorting.quickSort(arr, null, random);\n Sorting.quickSort(arr, comparator, null);\n }", "public M csmiQqNull(){if(this.get(\"csmiQqNot\")==null)this.put(\"csmiQqNot\", \"\");this.put(\"csmiQq\", null);return this;}", "void setNull(int index, int sqlType) throws SQLException;", "private static void setSlot(Runnable[] q, int i,\n Runnable t) {\n UNSAFE.putOrderedObject(q, slotOffset(i), t);\n }", "@Override\r\n\tpublic void noControl() {\r\n q.put(null);\r\n v.put(null);\r\n }", "private native boolean selectSlot0(int slotIndex);", "@Override\n public boolean fillSlot(int slot) {\n if(!isValidSlot(slot) || availableSlots.size() == 0 || !availableSlots.contains(slot)){\n return false;\n }\n\n availableSlots.remove(slot);\n return true;\n }", "public void testDrainToNullN() {\n SynchronousQueue q = new SynchronousQueue();\n try {\n q.drainTo(null, 0);\n shouldThrow();\n } catch(NullPointerException success) {\n }\n }", "public void setNull (JaqyPreparedStatement stmt, int column, ParameterInfo paramInfo) throws Exception;", "private void shift(){\n if (queue.length < 1){\n throw new Error(\"Table self destruction!\");\n }\n if (size <= 0){\n return;\n }\n\n if (queue[0] == null){\n E best = null;\n int bestAT = -1;\n for (int x = 0 ; x < queue.length; x++){\n E cur = (E)queue[x];\n if (cur == null){\n continue;\n }\n if (best == null || cur.compareTo(best) > 0){\n best = cur;\n bestAT = x;\n }\n }\n // Not put best at front;\n queue[bestAT] = null;\n queue[0] = best;\n }\n\n }", "@Override\n\tpublic ItemStack removeStackFromSlot(int index) {\n\t\treturn null;\n\t}", "@Override public boolean set_impl(int idx, long l) { return false; }", "public void setNull(PreparedStatement st, int index) throws HibernateException, SQLException {\n st.setCharacterStream(index, null, 0);\n }", "@Override\n\tpublic E remove(int index) {\n\t\treturn null;\n\t}", "@Override\n\tpublic int getSlotIndex() {\n\t\treturn -1;\n\t}", "public E dequeue(){\n if (isEmpty()) return null;\n E answer = arrayQueue[front];\n arrayQueue[front] = null;\n front = (front +1) % arrayQueue.length;\n size--;\n return answer;\n }", "@Override\n\tpublic E set(int i, E e) throws IndexOutOfBoundsException {\n\t\treturn null;\n\t}", "public DocumentMutation setNull(String path);", "public void testUpdateSlots_NullSlots() throws PersistenceException {\n try {\n dao.updateSlots(null);\n fail(\"IllegalArgumentException expected\");\n } catch (IllegalArgumentException e) {\n // should land here\n }\n }", "public baconhep.TTau.Builder clearQ() {\n fieldSetFlags()[5] = false;\n return this;\n }", "private void deleteElement(final int idx) {\r\n\t\tserializer.setRandomAccess(idx, null);\r\n\t\tif (idx < firstFree) {\r\n\t\t\tsetNextPointer(idx, firstFree);\r\n\t\t\tsetPrevPointer(idx, 0);\r\n\t\t\tfirstFree = idx;\r\n\t\t} else {\r\n\t\t\tint free = firstFree;\r\n\t\t\tint lastFree = 0;\r\n\t\t\twhile (free < idx) {\r\n\t\t\t\tlastFree = free;\r\n\t\t\t\tfree = getNextPointer(free);\r\n\t\t\t}\r\n\t\t\tsetNextPointer(lastFree, idx);\r\n\t\t\tsetNextPointer(idx, free);\r\n\t\t}\r\n\t}", "public T remove(int index) {\n return null;\n }", "@Override\n\tpublic ItemStack getStackInSlot(int index) {\n\t\treturn null;\n\t}", "@Override\n public void setNull() {\n\n }", "public void testFairEmptyFull() {\n SynchronousQueue q = new SynchronousQueue(true);\n assertTrue(q.isEmpty());\n\tassertEquals(0, q.size());\n assertEquals(0, q.remainingCapacity());\n assertFalse(q.offer(zero));\n }", "public void setQ(int q) {\n this.q = q;\n }", "@Test(timeout = SHORT_TIMEOUT, expected = IllegalArgumentException.class)\n public void testNullArrQuickSort() {\n Sorting.quickSort(null, comp, new Random(1301));\n }", "public void Reset() \r\n {\r\n _index = -1;\r\n }", "public boolean isNull(int index) {\n\t\treturn JSONNull.NULL.equals(this.getObj(index));\n\t}", "void setNull(int index, int sqlType, String typeName)\n throws SQLException;", "public void setQ(int q) {\n/* 590 */ getCOSObject().setInt(COSName.Q, q);\n/* */ }", "@Test\n public void indexIsUsedForQueryWhenRegionIsEmpty() {\n try {\n CacheUtils.getCache();\n isInitDone = false;\n Query q =\n qs.newQuery(\"SELECT DISTINCT * FROM \" + SEPARATOR + \"portfolio where status = 'active'\");\n QueryObserverHolder.setInstance(new QueryObserverAdapter() {\n\n @Override\n public void afterIndexLookup(Collection coll) {\n indexUsed = true;\n }\n });\n SelectResults set = (SelectResults) q.execute();\n if (set.size() == 0 || !indexUsed) {\n fail(\"Either Size of the result set is zero or Index is not used \");\n }\n indexUsed = false;\n\n region.clear();\n set = (SelectResults) q.execute();\n if (set.size() != 0 || !indexUsed) {\n fail(\"Either Size of the result set is not zero or Index is not used \");\n }\n } catch (Exception e) {\n e.printStackTrace();\n fail(e.toString());\n } finally {\n isInitDone = false;\n CacheUtils.restartCache();\n }\n }", "@Override\n public void visitNullCheck(Quad q) {\n for (RegisterOperand target : q.getUsedRegisters()) {\n String reg = target.getRegister().toString();\n // has been checked\n val.checkVar(reg);\n }\n }", "private void ensureCapacity(int index) {\n\t\t\tint overflow = index - list.size();\n\t\t\twhile (overflow-- >= 0) {\n\t\t\t\tlist.add(null);\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic E set(int index, E e) {\r\n\t\tif (e == null) {\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\t\tif (index < 0 || index >= size) {\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t}\r\n\t\tfor (ListNode p = front; p != null; p = p.next) {\r\n\t\t\tif (e.equals(p.data)) {\r\n\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t}\r\n\t\t}\r\n\t\tE result = null;\r\n\t\tif (front != null && index == 0) {\r\n\t\t\tresult = front.data;\r\n\t\t\tfront.data = e;\r\n\t\t\treturn result;\r\n\t\t} \r\n\r\n\t\tListNode current = front;\r\n\t\twhile (index > 0) {\r\n\t\t\tcurrent = current.next;\r\n\t\t\tindex--;\r\n\t\t}\t\t\t\r\n\t\t//check not beyond end of list\r\n\t\tif (current != null) {\t\t\t\t\r\n\t\t\tresult = current.data;\r\n\t\t\tcurrent.data = e;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n public T set(int index, T element) {\n if (indexCheck(index)) {\n T previousValue = (T) data[index];\n data[index] = element;\n return previousValue;\n }\n return null;\n }", "protected void unmaskSlot(int slot) {\n\t\tif (slot >= 0 && slot < this.length) {\n\t\t\tthis.mask[slot] = false;\n\t\t\tthis.unrevealedSlots--;\n\t\t}\n\t}", "public Item getElse(int slot){\r\n try{\r\n return get(slot);\r\n }catch(IndexOutOfBoundsException e){\r\n return null;\r\n }\r\n }", "protected void initQMark() {\n\t\tINF = calcMaxCapPlus1();\n\t\tmarkVertice(srcId, new Tuple4(NULL_DIRECTION, NO_PRED, INF, false));\n\t}", "@Override\n public E remove(int index) {\n\t E first = _store[index];\n\t _store[index] = null;\n\t for( int i = index; i< _size-1;i++) {\n\t\t _store[i]=_store[i+1];\n\t }\n\t_store[_size-1]=null;\n\t _size -=1;\n\t \n\t\t \n\treturn first;\n }", "protected void removeByIndex(int index) {\n int h = head;\n int t = tail;\n size = size - 1;\n int present = dequeue.length - 1;\n int offset = (index - h) & present;\n int finish = (tail - index) & present;\n\n if (offset < finish) {\n if (h <= index) {\n System.arraycopy(dequeue, h, dequeue, h + 1, offset);\n } else {\n System.arraycopy(dequeue, 0, dequeue, 1, index);\n dequeue[0] = dequeue[present];\n System.arraycopy(dequeue, h, dequeue, h + 1, present - h);\n }\n dequeue[h] = null;\n head = (h + 1) & present;\n } else {\n if (index < t) {\n System.arraycopy(dequeue, index + 1, dequeue, index, finish);\n tail = t - 1;\n } else {\n System.arraycopy(dequeue, index + 1, dequeue, index, present - index);\n dequeue[present] = dequeue[0];\n System.arraycopy(dequeue, 1, dequeue, 0, t);\n tail = (t - 1) & present;\n }\n }\n }", "public void testFairBlockingPut() {\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n SynchronousQueue q = new SynchronousQueue(true);\n q.put(zero);\n threadShouldThrow();\n } catch (InterruptedException ie){\n }\n }});\n t.start();\n try {\n Thread.sleep(SHORT_DELAY_MS);\n t.interrupt();\n t.join();\n }\n catch (InterruptedException ie) {\n\t unexpectedException();\n }\n }", "void dequeue(){\n if(isEmpty()!=1){\n\n for(int i=0;i<size-1;i++){\n values[i] = values[i+1];\n }\n\n values[size-1] = (-1);\n }\n }", "public boolean set(O o, int index)\r\n {\r\n if (index >= count || index < 0) return false;\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=index-1;i++)\r\n {\r\n vi = vi.getNext();\r\n }\r\n \r\n vi.setObject(o);\r\n return true;\r\n \r\n }", "private E dequeue() {\n final Object[] items = this.items;\n @SuppressWarnings(\"unchecked\")\n E x = (E) items[takeIndex];\n items[takeIndex] = null;\n if (++takeIndex == items.length) takeIndex = 0;\n count--;\n notFull.signal();\n return x;\n }", "protected SlotRange transferSlotRange(int srcSlotIndex, ItemStack stack) {\n return null;\n }", "void set(int idx, int val);", "public void testEmptyFull() {\n SynchronousQueue q = new SynchronousQueue();\n assertTrue(q.isEmpty());\n\tassertEquals(0, q.size());\n assertEquals(0, q.remainingCapacity());\n assertFalse(q.offer(zero));\n }", "public void clear() {\n final Object[] items = this.items;\n final ReentrantLock lock = this.lock;\n lock.lock();\n try {\n int k = count;\n if (k > 0) {\n final int putIndex = this.putIndex;\n int i = takeIndex;\n do {\n items[i] = null;\n if (++i == items.length)\n i = 0;\n } while (i != putIndex);\n takeIndex = putIndex;\n count = 0;\n for (; k > 0 && lock.hasWaiters(notFull); k--)\n notFull.signal();\n }\n } finally {\n lock.unlock();\n }\n }", "final Runnable deqTask() {\n Runnable t;\n Runnable[] q;\n int i;\n int b;\n if (sp != (b = base) &&\n (q = queue) != null && // must read q after b\n (t = q[i = (q.length - 1) & b]) != null &&\n casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n return null;\n }", "@Override\n\tpublic <T> void casWithNoReply(String arg0, CASOperation<T> arg1)\n\t\t\tthrows TimeoutException, InterruptedException, MemcachedException {\n\n\t}", "@Override\n\tpublic E get(int index) {\n\t\treturn null;\n\t}", "public ByteBuf setZero(int index, int length)\r\n/* 369: */ {\r\n/* 370:382 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 371:383 */ return super.setZero(index, length);\r\n/* 372: */ }", "public void testBlockingPut() {\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n SynchronousQueue q = new SynchronousQueue();\n q.put(zero);\n threadShouldThrow();\n } catch (InterruptedException ie){\n }\n }});\n t.start();\n try {\n Thread.sleep(SHORT_DELAY_MS);\n t.interrupt();\n t.join();\n }\n catch (InterruptedException ie) {\n\t unexpectedException();\n }\n }", "public abstract void reset(int index);", "@Test\n public void testIntersectionZeroSequenceRemovedFromQueue()\n {\n int zeroSequence = 1; // Zero sequence of length 62\n ConciseSet set1 = new ConciseSet(new int[] {zeroSequence}, false);\n\n ConciseSet set2 = new ConciseSet();\n for (int i = 0; i < 1000; i++) {\n set2.add(i);\n }\n verifyIntersection(set1, set2);\n }", "@Override\n public synchronized E remove(int index) {\n E result = this.get(index);\n if (index < this.size() - 1) {\n System.arraycopy(this.container, index + 1, this.container, index, this.size() - (index + 1));\n }\n this.container[--this.pointer] = null;\n return result;\n }", "CompT zero();", "private void remove(int index){\r\n \tkeys[index] = null;\r\n \tvals[index] = null;\r\n deleteCheck(index);\r\n }", "@Override\n\tpublic <T> void casWithNoReply(String arg0, int arg1, CASOperation<T> arg2)\n\t\t\tthrows TimeoutException, InterruptedException, MemcachedException {\n\n\t}", "@Override\n\tpublic void q() {\n\n\t}", "@Override\n\tpublic E set(int idx, E element) {\n\t\tif (element == null) throw new NullPointerException();\n\t\tif (idx < 0 || idx >= size()) throw new IndexOutOfBoundsException();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (element.equals(list[i]))\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tE output = null;\n\t\toutput = list[idx];\n\t\tlist[idx] = element;\n\t\treturn output;\n\t}", "void clear()\n\t{\n\t\tfront = null;\n\t\tback = null;\n\t\tcursor = null;\n\t\tlength = 0;\n\t\tindex = -1;\n\t}", "@Override\n public boolean isEmpty(int index) {\n return hashTable[index] == null;\n }", "public void makeEmpty(){\n front = null;\n numItems =0;\n }", "protected void tryEnq(T x) {\n int tail2 = (tail + 1) % data.length; // 1, 3\n if (tail2 == head) // 1\n throw new BufferOverflowException(); // 1\n data[tail] = x; // 2\n tail = tail2; // 3\n }", "public void updateNull(int columnIndex) throws SQLException\n {\n m_rs.updateNull(columnIndex);\n }", "public void clear() {\n first = null;\n n = 0;\n }", "void clear(){\n this.queueArray = (T[]) new Object[0];\n this.tail = 0;\n }", "protected T tryDeq() {\n if (head == tail) // 1\n throw new BufferUnderflowException(); // 1\n T x = data[head]; // 2\n head = (head + 1) % data.length; // 3\n return x; // 2\n }", "public T remove(int idx) {\n\t\tint index = (idx << 1);\n\t\tnvPairs.remove(index);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tT result = (T) nvPairs.remove(index); // same index, as things shifted in previous remove\n\t\treturn result;\n\t}", "private void setNode(int index, Node n) {\n \t\twhile (index + 1 >= contents.size()) {\n \t\t\tcontents.add(null);\n \t\t}\n \t\tcontents.set(index, n);\n \t}", "private final void fastRemove(final int index) {\r\n\t\tfinal int numMoved = this.size - index - 1;\r\n\t\tif (numMoved > 0) {\r\n\t\t\tSystem.arraycopy( this.elementData, index + 1, this.elementData, index, numMoved );\r\n\t\t}\r\n\t\tthis.elementData[--this.size] = null; // Let gc do its work\r\n\t}", "public void set(long index);", "public void updateNull(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"updateNull\", columnIndex);\n update(columnIndex, ValueNull.INSTANCE);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "@Override\n public E remove(int index) {\n this.rangeCheck(index);\n this.modCount++;\n E oldValue = (E) this.values[index];\n int numMoved = this.index - index - 1;\n if (numMoved > 0) {\n System.arraycopy(this.values, index + 1, this.values, index, numMoved);\n }\n this.values[--this.index] = null;\n return oldValue;\n }", "@Override\n\t\tpublic Community set(int index, Community element) {\n\t\t\treturn null;\n\t\t}", "public void wipeSlot(int slot) {\n for (T obj : objToSums.keySet()) {\n resetSlotCountToZero(obj, slot);\n }\n }", "void enqueue(int x, int p){\n for(int i=0;i<size;i++){\n if(values[i]==(-1)){\n values[i] = x;\n priorities[i] = p;\n break;\n }\n }\n }", "@Override\n public boolean removeSlot(int slot) {\n return availableSlots.add(slot);\n }", "@Override\n public void set(E e) throws NullPointerException\n {\n if(canRemove = true)\n {\n if(forward = true)\n {\n Node theNode = getNth(idx - 1);\n theNode.data = e;\n }\n else\n {\n Node theNode = getNth(idx);\n theNode.data = e;\n }\n }\n else\n {\n throw new IllegalArgumentException();\n }\n }", "@Test\n public void testConcurrentMapClearAndRegionPutOperation() {\n try {\n CacheUtils.getCache();\n isInitDone = false;\n Query q =\n qs.newQuery(\"SELECT DISTINCT * FROM \" + SEPARATOR + \"portfolio where status = 'active'\");\n QueryObserverHolder.setInstance(new QueryObserverAdapter() {\n\n @Override\n public void afterIndexLookup(Collection coll) {\n indexUsed = true;\n }\n\n @Override\n public void beforeRerunningIndexCreationQuery() {\n // Spawn a separate thread here which does a put opertion on region\n Thread th = new Thread(() -> {\n // Assert that the size of region is now 0\n assertTrue(region.size() == 0);\n region.put(\"\" + 8, new Portfolio(8));\n });\n th.start();\n ThreadUtils.join(th, 30 * 1000);\n assertTrue(region.size() == 1);\n }\n });\n SelectResults set = (SelectResults) q.execute();\n if (set.size() == 0 || !indexUsed) {\n fail(\"Either Size of the result set is zero or Index is not used \");\n }\n indexUsed = false;\n region.clear();\n set = (SelectResults) q.execute();\n if (set.size() != 1 || !indexUsed) {\n fail(\"Either Size of the result set is not one or Index is not used \");\n }\n } catch (Exception e) {\n e.printStackTrace();\n fail(e.toString());\n } finally {\n isInitDone = false;\n CacheUtils.restartCache();\n }\n }", "final boolean unpushTask(Runnable t) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int s = sp - 1;\n if (casSlotNull(q, s & mask, t)) {\n storeSp(s);\n return true;\n }\n return false;\n }", "@Override\n // worst-case complexity: O(1), only assignments and array accesses\n public T set(int index, T item) {\n if (index < size && index >= 0) {\n T prev = arr[index];\n // replace the item\n arr[index] = item;\n // return the previous item at this index\n return prev;\n }\n // else throw an exception\n throw new IndexOutOfBoundsException();\n }", "public void setValueNull()\n\t{\n\t\tallValues.clear();\n\t}", "void setNilScansArray(int i);", "public void setQ(java.lang.Integer value) {\n this.q = value;\n }", "void setQ( byte[] buffer, short offset, short length) throws CryptoException;", "protected V bucketRemove(int h, K k) {\n int j = findSlot(h, k);\n if (j < 0) return null; // nothing to remove\n V answer = table[j].getValue();\n table[j] = DEFUNCT; // mark this slot as deactivated\n n--;\n return answer;\n }", "@Override\r\n public Copiable deleteAt(int index) throws IndexRangeException {\r\n if (count == 0) {\r\n throw new IndexRangeException(-1, -1, index);\r\n }\r\n if (index >= 0 && index <= count - 1) {\r\n Copiable temp = list[index];\r\n int shift = 0;\r\n for (int i = index; i < list.length - 1; i++) {\r\n list[i] = list[i + 1];\r\n shift++;\r\n }\r\n list[index + shift] = null;\r\n count--;\r\n return temp;\r\n } else {\r\n throw new IndexRangeException(0, count - 1, index);\r\n }\r\n }", "@Override\n public Object enqueue(Object x) {\n if (!isFull() && x != null){ // Pré-condição\n if (++tail >= MAX){\n tail = 0; // MAX-1 é a ultima posição do vetor\n }\n \n if (head == -1){\n head = tail;\n }\n \n memo[tail] = x;\n total++;\n return x;\n }\n else{ // Não pode inserir elemento nulo (x == null)\n return null; // Ou se a FILA estiver cheia\n }\n }", "@Override\n protected JsonNode _at(JsonPointer ptr) {\n return null;\n }", "public T put(int index, T t);", "public M csmiPlaceNull(){if(this.get(\"csmiPlaceNot\")==null)this.put(\"csmiPlaceNot\", \"\");this.put(\"csmiPlace\", null);return this;}", "public void clear() {\n\t\tn1 = n0 = 0L;\n\t}", "public Object put(Object index, Object value) {\n int i;\n if ((i = ((Number) index).intValue()) < 0)\n throw new NoSuchKeyException(i, size - start);\n if ((i += start) >= size)\n throw new NoSuchKeyException(i - start, size - start);\n array[i] = value;\n return null;\n }", "public void setQ ( boolean q ) {\n\n\tthis.q = q;\n }" ]
[ "0.5374018", "0.5330051", "0.5122539", "0.50284094", "0.50137436", "0.4981088", "0.49622816", "0.49270463", "0.4888679", "0.4835606", "0.47760695", "0.47542638", "0.4747146", "0.47363058", "0.46920666", "0.4685146", "0.46583843", "0.4621196", "0.46160793", "0.45978048", "0.4596813", "0.45951065", "0.4594319", "0.45644203", "0.4563793", "0.4547111", "0.4542737", "0.45405418", "0.4534873", "0.45315877", "0.45309007", "0.4523593", "0.45145512", "0.45139188", "0.45043847", "0.45030037", "0.45003402", "0.44966614", "0.44842273", "0.4483965", "0.446556", "0.44510534", "0.44447562", "0.4441566", "0.44300488", "0.4427554", "0.44275492", "0.4418899", "0.44184572", "0.4412847", "0.4407026", "0.43926993", "0.43915442", "0.43798262", "0.43758383", "0.43716472", "0.4370808", "0.4363245", "0.43556687", "0.4354668", "0.43534538", "0.43528897", "0.43526813", "0.4352343", "0.4352199", "0.43469074", "0.43383643", "0.4338322", "0.43370906", "0.43361", "0.43347204", "0.4333542", "0.43282765", "0.43266046", "0.43186232", "0.43134117", "0.43100762", "0.43092585", "0.4305052", "0.43008727", "0.4295958", "0.42790085", "0.4267535", "0.4262561", "0.42572075", "0.4255238", "0.42477193", "0.4246005", "0.42452744", "0.4244705", "0.4242085", "0.42391834", "0.4235234", "0.42300484", "0.42275885", "0.422071", "0.42198923", "0.42156944", "0.42133293", "0.42133087" ]
0.7198455
0
Sets sp in storeorder.
private void storeSp(int s) { UNSAFE.putOrderedInt(this, spOffset, s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }", "void setOrder(Order order);", "protected abstract void setSpl();", "public void setSpNumber(Integer spNumber) {\r\n this.spNumber = spNumber;\r\n }", "public store_order(Connection con, Statement s, int order_num, String date, String purpose)\n\t{\n\t\tthis.order_num = order_num;\n\t\tthis.date = date;\n\t\tthis.purpose = purpose;\n\t\tLoc_id = 151;\n\t\torder_num = assignID(con,s,\"store_order\");\n\t}", "public void saveOrder() {\n setVisibility();\n Order order = checkInputFromUser();\n if (order == null){return;}\n if(orderToLoad != null) DBSOperations.remove(connection,orderToLoad);\n DBSOperations.add(connection, order);\n }", "public void setSpId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localSpIdTracker = true;\r\n } else {\r\n localSpIdTracker = false;\r\n \r\n }\r\n \r\n this.localSpId=param;\r\n \r\n\r\n }", "public void setBp_sp(Integer bp_sp) {\r\n this.bp_sp = bp_sp;\r\n }", "public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }", "public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }", "public void setOrder(final Order value)\n\t{\n\t\tsetOrder( getSession().getSessionContext(), value );\n\t}", "public void setOrder(final SessionContext ctx, final Order value)\n\t{\n\t\tsetProperty(ctx, ORDER,value);\n\t}", "public void setOrdersProductss(com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Products> x)\n {\n __ordersProductss = x;\n }", "private void putToTop()\r\n {\r\n OrderManager manager = myOrderManagerRegistry.getOrderManager(ourKey);\r\n manager.activateParticipant(ourKey);\r\n manager.moveToTop(ourKey);\r\n }", "public void setSpLocation(String _location) {\r\n this.spLocation = _location;\r\n }", "public final void setSPosition(final SPosition spos) {_spos = spos;}", "public int getSpid(){\n return localSpid;\n }", "void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}", "public void setSalesorderId(Number value) {\n setAttributeInternal(SALESORDERID, value);\n }", "public void setTensp(String aTensp) {\n tensp = aTensp;\n }", "public void writeOrderId() {\n FacesContext fc = FacesContext.getCurrentInstance();\n HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);\n session.setAttribute(\"orderId\", \"\" + orderId);\n }", "public void setOrderSn(String orderSn) {\n this.orderSn = orderSn;\n }", "public void setOrder(Order order){\n this.order = order;\n }", "public void setItem(SpItem spItem) {\n Assert.notFalse(_spItem == null);\n\n _spItem = spItem;\n _spItem.getAvEditFSM().addObserver(this);\n update(_spItem.getAvEditFSM(), null);\n }", "public Integer getSpNumber() {\r\n return spNumber;\r\n }", "public final void setOrder(java.lang.Integer order)\r\n\t{\r\n\t\tsetOrder(getContext(), order);\r\n\t}", "public void setCurrentOrderId(String currentOrderId) {\n this.currentOrderId = currentOrderId;\n }", "protected void setStore(String store) {\n this.store = store;\n }", "public void setShop(Shop s)\n\t{\n\t\tm_currentShop = s;\n\t}", "public void SetPOS (String pos) {\n pos_ = pos;\n }", "public static void PP_Order(MPPOrder o) {\n\t\tProperties ctx = o.getCtx();\n\t\tString trxName = o.get_TrxName();\n\t\t//\n\t\t// Supply\n\t\tMPPMRP mrpSupply = getQuery(o, TYPEMRP_Supply, ORDERTYPE_ManufacturingOrder).firstOnly();\n\t\tif (mrpSupply == null) {\n\t\t\tmrpSupply = new MPPMRP(ctx, 0, trxName);\n\t\t\tmrpSupply.setAD_Org_ID(o.getAD_Org_ID());\n\t\t\tmrpSupply.setTypeMRP(MPPMRP.TYPEMRP_Supply);\n\t\t}\n\t\tmrpSupply.setPP_Order(o);\n\t\tmrpSupply.setPriority(o.getPriorityRule());\n\t\tmrpSupply.setPlanner_ID(o.getPlanner_ID());\n\t\tmrpSupply.setM_Product_ID(o.getM_Product_ID());\n\t\tmrpSupply.setM_Warehouse_ID(o.getM_Warehouse_ID());\n\t\tmrpSupply.setQty(o.getQtyOrdered().subtract(o.getQtyDelivered()));\n\t\tmrpSupply.save();\n\t\t//\n\t\t// Demand\n\t\tList<MPPMRP> mrpDemandList = getQuery(o, TYPEMRP_Demand, ORDERTYPE_ManufacturingOrder).list();\n\t\tfor (MPPMRP mrpDemand : mrpDemandList) {\n\t\t\tmrpDemand.setPP_Order(o);\n\t\t\tmrpDemand.save();\n\t\t}\n\t}", "public void placeOrder(TradeOrder order)\r\n {\r\n brokerage.placeOrder(order);\r\n }", "void setOrderType(OrderType inOrderType);", "public void setSpmc(String spmc) {\n this.spmc = spmc;\n }", "void setLspId(String lspId);", "public void setSalesOrderId(Number value) {\n setAttributeInternal(SALESORDERID, value);\n }", "public void setSPART(java.lang.String SPART) {\n this.SPART = SPART;\n }", "public void setOrder(int value) {\n this.order = value;\n }", "public void setSupplier (jkt.hms.masters.business.MasStoreSupplier supplier) {\n\t\tthis.supplier = supplier;\n\t}", "void setOrderCapacity(OrderCapacity inOrderCapacity);", "public void setNETSP(java.lang.String NETSP) {\n this.NETSP = NETSP;\n }", "public void setOrder(Order order) {\n this.order = order;\n notifyChanged();\n }", "@Override\n\tpublic void placeOrder() {\n\t\t\n\t}", "public void setShippingAddressInCart(Address addr);", "public void besetze(int spalte, int spieler)\n\t{\n\t\tswitch (spalte)\n\t\t{\n\t\tcase 0:\n\t\t\t_spalte0 = spieler;\n\t\t\tbreak;\n\n\t\tcase 1:\n\t\t\t_spalte1 = spieler;\n\t\t\tbreak;\n\n\t\tcase 2:\n\t\t\t_spalte2 = spieler;\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(String.valueOf(spalte));\n\t\t}\n\t}", "public java.lang.String getSpId(){\r\n return localSpId;\r\n }", "@Override\r\n\tpublic void setOrder(int order){\r\n\t\tthis.head.setOrder(order);\r\n\t}", "public void setPo (jkt.hms.masters.business.StorePoHeader po) {\n\t\tthis.po = po;\n\t}", "@Override\n\tpublic void updateOrder(String ordernumber, String setCookie) {\n\t\t\n\t}", "public void setOrder(int order) {\n q = new Queue();\n if (order == 1) {\n inOrder(root, q);\n } else if (order == 2) {\n preOrder(root, q);\n } else if (order == 3) {\n postOrder(root, q);\n } else {\n System.out.println(\"invalid order\");\n }\n }", "public void setup( SpItem spItem )\n\t{\n\t\tif( _spItem != null )\n\t\t\t_spItem.getAvEditFSM().deleteObserver( this ) ;\n\n\t\tsuper.setup( spItem ) ;\n\t\t_spItem.getAvEditFSM().addObserver( this ) ;\n\t}", "public void setOrder(int order) {\n mOrder = order;\n }", "public void setPosition(ServoPosition sp) {\n\t\tif (sp.equals(ServoPosition.UP)) {\n\t\t\tServoManager.getServoDriver().setServoPulse(channel, upPulse);\n\t\t} else if (sp.equals(ServoPosition.CENTER)) {\n\t\t\tServoManager.getServoDriver().setServoPulse(channel, centerPulse);\n\t\t} else if (sp.equals(ServoPosition.DOWN)) {\n\t\t\tServoManager.getServoDriver().setServoPulse(channel, downPulse);\n\t\t}\n\t}", "public void addOrders() {\n\t\torders.stream()\n\t\t\t.forEach(db::store);\n\t}", "public void setSpfl(String spfl) {\n this.spfl = spfl;\n }", "@Override\n\tpublic void setPositionOrder(int positionOrder) {\n\t\t_dmGTShipPosition.setPositionOrder(positionOrder);\n\t}", "public void setLSPID(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localLSPID=param;\n \n\n }", "public void setOrder(int order) {\n this.order = order;\n }", "public void setOrder(int order) {\n this.order = order;\n }", "public void setStore_price(java.lang.String store_price) {\n this.store_price = store_price;\n }", "public void setOrder(int o) throws SystemException {\n group.setDisplayItemOrder(o);\n ModelInputGroupLocalServiceUtil.updateModelInputGroup(group);\n }", "public void placeSingleTaskOrder(User user, SingleTaskOrder order);", "public void setStorageplace(int newStorageplace) {\n\tstorageplace = newStorageplace;\n}", "public SMplace_order() {\n initComponents();\n table();\n }", "public void setSpPhoneNumber(String _PhoneNumber) {\r\n this.spPhoneNumber = _PhoneNumber;\r\n }", "public void setOrder(List<Order> order) {\n this.order = order;\n }", "protected void setSOS(ArrayList<Message> sos_msgs){\n this.sos_msgs = sos_msgs;\n }", "public void setOrderPlay(){\n\t}", "public final void store(final boolean store) {\n\t\tthis.store = store;\n\t}", "@Override\n public void addShopcart(int uid) {\n int maxScid;\n if(shopcartsDao.getMaxScid()==null){\n maxScid = 0;\n }\n else{\n maxScid = shopcartsDao.getMaxScid();\n }\n Shopcarts shopcarts = new Shopcarts();\n shopcarts.setScid(maxScid+1);\n shopcarts.setUid(uid);\n shopcartsDao.addShopcarts(shopcarts);\n }", "public void addSyspropertyset(PropertySet sysp) {\r\n getCommandLine().addSyspropertyset(sysp);\r\n }", "@Override\r\n\tpublic void PassOrder(Order order) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tem.persist(order);\r\n\t\t\r\n\t}", "@Inject\n\tpublic StoreManagement(Store store) {\n\t\tsuper(store.shardId(), store.indexSettings());\n\t\tthis.store = store;\n\t}", "public void setSpFirstName(String _empFirstName) {\r\n this.spFirstName = _empFirstName;\r\n }", "@Override\n\tpublic void placeOrder(Map<String, Integer> orderDetails, Buyer buyer) {\n\t\tif (successor != null) {\n\t\t\tsuccessor.placeOrder(orderDetails, buyer);\n\t\t} else {\n\t\t\tSystem.out.println(\"Did not set successor of SupplierProxy\");\n\t\t}\n\t\t\n\t}", "@PortedFrom(file = \"ToDoList.h\", name = \"save\")\n protected void save(TODOListSaveState tss) {\n tss.sp = sPointer;\n tss.ep = size;\n }", "@Override\r\n public void setObject(ExecutionContext ec, PreparedStatement ps, int[] exprIndex, Object value, DNStateManager ownerSM, int fieldNumber)\r\n {\r\n ApiAdapter api = ec.getApiAdapter();\r\n if (api.isPersistable(value))\r\n {\r\n // Assign a StateManager to the serialised object if none present\r\n DNStateManager embSM = ec.findStateManager(value);\r\n if (embSM == null || api.getExecutionContext(value) == null)\r\n {\r\n embSM = ec.getNucleusContext().getStateManagerFactory().newForEmbedded(ec, value, false, ownerSM, fieldNumber, PersistableObjectType.EMBEDDED_PC);\r\n }\r\n }\r\n\r\n DNStateManager sm = null;\r\n if (api.isPersistable(value))\r\n {\r\n // Find SM for serialised PC object\r\n sm = ec.findStateManager(value);\r\n }\r\n\r\n if (sm != null)\r\n {\r\n sm.setStoringPC();\r\n }\r\n getColumnMapping(0).setObject(ps, exprIndex[0], value);\r\n if (sm != null)\r\n {\r\n sm.unsetStoringPC();\r\n }\r\n }", "public void setWHStationNumberOrder(int num, boolean bool)\n\t{\n\t\tsetOrder(_Prefix + HardZone.WHSTATIONNUMBER.toString(), num, bool);\n\t}", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void AssegnaSlot(Slot S)\r\n {\r\n position = S;\r\n }", "public void startOrder() {\r\n this.o= new Order();\r\n }", "public void set(int pos);", "@PutMapping(path = \"/orders/{id}/assign\")\n ShopOrder assign(@RequestHeader(HttpHeaders.AUTHORIZATION) String token, @PathVariable Long id);", "public void setPosition(Position pos) {\n \tthis.position = pos;\n \t//setGrade();\n }", "public void setOrder(int order) {\n\t\tthis.order = order;\n\t}", "public void setSysPK(Integer SysPK) {\n\t\tthis.sysPK.set(SysPK);\n\t}", "private void storePotList(){\n String tempName;\n int tempWeight;\n SharedPreferences preferences = getSharedPreferences(SHAREDPREF_SET, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n int sizeOfPotList = potList.countPots();\n editor.putInt(SHAREDPREF_ITEM_POTLIST_SIZE, sizeOfPotList);\n for(int i = 0; i < potList.countPots();i++){\n tempWeight = (potList.getPot(i).getWeightInG());\n tempName = (potList.getPot(i).getName());\n editor.putString(SHAREDPREF_ITEM_POTLIST_NAME+i, tempName);\n editor.putInt(SHAREDPREF_ITEM_POTLIST_WEIGHT+i, tempWeight);\n }\n editor.commit();\n }", "public void SetState(int s) {\n this.state=LS[s];\n }", "void setPosNr(String posNr);", "public SalePurchase addSPEntry(SalePurchase speEntry) {\n\t\t List<SalePurchase> list = new ArrayList<>(salePurchaseEntries.values());\n\t\t int large = 0;\n\t\t for(int i = 0;i < list.size();i++){\n\t\t\t if(list.get(i).getSPId() > large){\n\t\t\t\t large = list.get(i).getSPId();\n\t\t\t }\n\t\t }\n\t\tspeEntry.setSPId(large+1);\n\t\tsalePurchaseEntries.put(speEntry.getSPId(), speEntry);\n\t\t//System.out.println(salePurchaseEntries);\n\t\treturn speEntry;\n\t}", "public void setSpouse() {\n\n if (user.getGender().equals('m')) {\n maleSpouse.add(user.getPersonID());\n } else {\n femaleSpouse.add(user.getPersonID());\n }\n\n if(user.getSpouseID() != null) {\n\n Person spouse = people.get(user.getSpouseID());\n\n if(spouse.getGender().equals(\"m\")) {\n maleSpouse.add(spouse.getPersonID());\n } else {\n femaleSpouse.add(spouse.getPersonID());\n }\n }\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void setStoreNoList(String storeNoList) {\n this.storeNoList = storeNoList;\n }", "public void setOrderList() {\n\n\t\tint index = 0;\n\t\tlistModel.clear();\n\t\tfor (Order order : driver.getOrderDB().getCustomerOrderList()) {\n\t\t\tlistModel\n\t\t\t\t\t.addElement(textAlignment(\" \" + order.getId(), \"\" + order.getDate(), \"\"\n\t\t\t\t\t\t\t+ order.getPerson().getId(), \"\"\n\t\t\t\t\t\t\t+ order.getCurrentlyLoggedInStaff().getId()));\n\t\t\t// stockList.setSelectedIndex(orderListIndex);\n\t\t\tindex++;\n\t\t}\n\t}", "@Transient\n\tpublic String getSpId() \t{ \n\t\treturn spId; \n\t}", "public void placeOrder(String custID) {\r\n //creates Order object based on current cart\r\n Order order = new Order(custID, getItems());\r\n //inserts new order into DB\r\n order.insertDB();\r\n }", "@Override\r\n\tpublic void placeSettlement(VertexLocation vertLoc) {\n\t\t\r\n\t}", "public void setSellOrders(List<MarketOrder> sellOrders) {\n this.sellOrders = sellOrders;\n }", "public Integer getSpId() {\n\t\treturn this.spId;\n\t}" ]
[ "0.5819413", "0.5775126", "0.5686176", "0.56604576", "0.5654644", "0.5549553", "0.5482238", "0.53326315", "0.5251314", "0.5251314", "0.5249753", "0.5197393", "0.51913553", "0.51627517", "0.5143096", "0.5125701", "0.51121026", "0.51070905", "0.50954366", "0.50843596", "0.508096", "0.50511354", "0.5013442", "0.50054044", "0.49576855", "0.49519843", "0.49347985", "0.49176022", "0.49159557", "0.49071476", "0.49069217", "0.48982435", "0.48957086", "0.48860413", "0.4883469", "0.4882277", "0.48728472", "0.48567715", "0.48514044", "0.4841413", "0.4838587", "0.4838521", "0.48360035", "0.48269865", "0.48157132", "0.48144078", "0.48110226", "0.48034", "0.48031098", "0.48009548", "0.48007157", "0.47995022", "0.47812593", "0.47762898", "0.47622594", "0.47606435", "0.47553623", "0.4748843", "0.4748843", "0.4744875", "0.4734253", "0.4728609", "0.47142476", "0.47067073", "0.47040975", "0.47010884", "0.46933267", "0.4688479", "0.46883512", "0.46824753", "0.4669889", "0.46677756", "0.46666747", "0.46635845", "0.46591353", "0.4653613", "0.46499455", "0.46478736", "0.46450686", "0.4644893", "0.46377763", "0.46273196", "0.46248734", "0.46140826", "0.46090075", "0.46061102", "0.45986718", "0.45863", "0.45853573", "0.4569601", "0.45652366", "0.45636305", "0.45636305", "0.45604286", "0.45595375", "0.4555906", "0.45508733", "0.4548937", "0.454557", "0.4545008" ]
0.64354444
0
Main queue methods Pushes a task. Called only by current thread.
final void pushTask(Runnable t) { Runnable[] q = queue; int mask = q.length - 1; int s = sp; setSlot(q, s & mask, t); storeSp(++s); if ((s -= base) == 1) pool.signalWork(); else if (s >= mask) growQueue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void queueTask(Version theTask) {\n\tsynchronized(_taskQueue) {\n\t _taskQueue.add(theTask);\n\t}\n }", "private void workOnQueue() {\n }", "void runQueue();", "public synchronized void enqueue(Task task) {\n tasks.add(task);\n }", "@Override\n\tpublic void addTask(ISimpleTask task) {\n\t\ttry {\n\t\t\tqueue.put(task);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void onQueue();", "public void enqueue(T pushed)\n\t{insert(pushed);}", "public void invokeLater(Runnable task) {\n queue.add(task);\n }", "public void submit(Task task) {\n\t\tthis.engine.pushTask(task);\n\t}", "public abstract void queue(@Nonnull LimiterPair task);", "@Override\n\tpublic void run() {\n\t\tif (queue.size() > 0) {\n\t\t\tITask task = queue.poll();\n\t\t\tpool.execute(task);\n\t\t} else {\n\t\t\tqueue.setTaskRunning(false);\n\t\t}\n\t}", "void processQueue();", "private void m1557a(Task task) {\n synchronized (f1826f) {\n if (f1827g == null) {\n f1827g = new SideChannelManager(this.f1828d.getApplicationContext());\n }\n f1827g.queueTask(task);\n }\n }", "void enqueue(T t);", "public void push(int x) {\r\n this.queueMain.offer(x);\r\n }", "void push(Recycler.DefaultHandle<?> item)\r\n/* 519: */ {\r\n/* 520:554 */ Thread currentThread = Thread.currentThread();\r\n/* 521:555 */ if (this.threadRef.get() == currentThread) {\r\n/* 522:557 */ pushNow(item);\r\n/* 523: */ } else {\r\n/* 524:562 */ pushLater(item, currentThread);\r\n/* 525: */ }\r\n/* 526: */ }", "private void enterToRunwayQueue() {\n\t\tqueue.insert(this);\n\t}", "@Override\n\tpublic void addToQueue() {\n\t}", "public void submit(Runnable task){\n\t\tStatusTask stask = new StatusTask(task,this);\n\t\tpending.add(stask);\n\t}", "public synchronized void enqueue(T thing) {\r\n\t\twhile (queue.size()==maxSize){\r\n\t\t\ttry{\r\n\t\t\t\tthis.wait();\r\n\t\t\t} catch(InterruptedException e){\r\n\t\t\t\tSystem.out.println(\"Interruption during enqueue\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tqueue.addLast(thing);\r\n\t\tthis.notifyAll();\r\n\t}", "@Override\n public CompletableFuture<Void> addTask(String queueName, GarbageCollector.TaskInfo task) {\n Preconditions.checkNotNull(queueName, \"queueName\");\n Preconditions.checkNotNull(task, \"task\");\n try {\n val processor = eventProcessorMap.get(queueName);\n Preconditions.checkArgument(null != processor, \"Attempt to add to non existent queue (%s).\", queueName);\n return Futures.toVoid(processor.add(SERIALIZER.serialize(task), Duration.ofMillis(1000)));\n } catch (Throwable e) {\n return CompletableFuture.failedFuture(e);\n }\n }", "protected void onQueued() {}", "private synchronized void addTask(Runnable runnable) {\r\n mTaskQueue.add(runnable);\r\n try {\r\n if (mPoolThreadHandler==null){\r\n mSemaphorePoolThreadHandler.acquire();\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n mPoolThreadHandler.sendEmptyMessage(0x110);\r\n }", "public void execute(Runnable task) {\n Objects.requireNonNull(task, \"Task must not be null\");\n if (isStopped) {\n // throw new IllegalStateException(\"WorkerPoolExecutor has been stopped!\");\n System.out.println(\"WorkerPoolExecutor has been stopped!\");\n }\n taskQueue.add(task);\n }", "public void executeQueue() {\n\tLog.d(TaskExecutor.class.getName(), \"Execute \" + mQueue.size() + \" Tasks\");\n\tfor (Task task : mQueue) {\n\t if (!mTaskExecutor.getQueue().contains(task))\n\t\texecuteTask(task);\n\t}\n }", "public void queueTask(Runnable runnable) {\n\t\tsynchronized (tasks) {\n\t\t\ttasks.add(runnable);\n\t\t}\n\t}", "public synchronized void execute(Runnable task) throws Exception{\n \n if(threadPoolExecutor.isShutdown()){\n \tSystem.out.println(\"Thread pool \" + \"\" + \" is being Shutdown.\\n\"\n \t\t\t\t\t+ \"No tasks are allowed to be scheduled.\");\n \n }\n //add the task to the queue\n //this will cause a thread in the work pool to pick this up and execute\n queue.put(task);\n System.out.println(\"task has been added.\");\n }", "void enqueue(T x);", "@Override\n public CommandResult execute() {\n tasks.add(taskToAdd);\n try {\n storage.appendToFile(taskToAdd);\n return new CommandResult(String.format(MESSAGE_SUCCESS, taskToAdd));\n } catch (IOException e) {\n return new CommandResult(e.getMessage());\n }\n }", "myQueue(){\n }", "void queueShrunk();", "public void push(int x) {\n queue.offer(x);\n }", "public void enqueue (T item) {\n leftStack.push(item);\n }", "void push(T t);", "public void runTask(Runnable task) {\n\t\tthreadPool.execute(task);\r\n\t\t// System.out.println(\"Queue Size after assigning the\r\n\t\t// task..\"+queue.size() );\r\n\t\t// System.out.println(\"Pool Size after assigning the\r\n\t\t// task..\"+threadPool.getActiveCount() );\r\n\t\t// System.out.println(\"Task count..\"+threadPool.getTaskCount() );\r\n\t\tSystem.out.println(\"Task count..\" + queue.size());\r\n\r\n\t}", "private void push(GameAction action) {\n this.queue.add(action);\n }", "public void add(Task task){ this.tasks.add(task);}", "public void push(int x) {\n queue.add(x);\n }", "public void push(int x) {\n queue.add(x);\n }", "public void push(int x) {\n queue.push(x);\n }", "public void enqueue(T element);", "private void AsyncPush(String topic){\n\t\t\t\t \t\n\t \t/**\n\t \t * output a map, delete existed items\n\t \t */\n\t \t//Map<Key, Integer> deduplicatedBuff = mergeDuplicatedItemsAndDelte(buff);\n\t \t\n\t \t//not in, create, delay\n\t \tif(!producerMap.containsKey(topic)){\n\t \t\ttry {\n\t\t\t\t\t\t\tCreateProducer(topic,LogicController.batchMessagesMaxMessagesPerBatch);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (ExecutionException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\t \t\t \n\t \t}\n\t \tlog.info(\"#publish\"+topic+\", \"+buffMap.size());\n\t \tProducer<byte[]> producer = producerMap.get(topic);\n\t \t/**\n\t \t * init set, copy to hash set\n\t \t */\n\t \t//Set<Key> Keys = Sets.newConcurrentHashSet(buffMap.keySet());\n\t \t\n\t \t \n\t \tfor (Key key : buffMap.keySet()){\n\t \t\t \n\t \t\t //if(buffMap.containsKey(key)){\n\t \t\t \n\t \t\t \n\t \t\t if(buffMap.containsKey(key)){\n\t \t\t\t Integer val = buffMap.get(key);\n\t \t\t\t //clear,skip\n\t \t\t\t if(val<=0){buffMap.remove(key);continue;}\n\t \t\t\t //concenate\n\t \t\t\t byte[] out = createKVByte(key,val);\n\t \t\t\t \n\t \t\t\t//get producer\n\t\t\t \t\t\t \n\t\t\t \t\t\t //byte[] tempTable = new byte[](buffMap);\n\t\t producer.sendAsync(out).thenRun(() -> {\n\t\t\t messagesSent.increment();\n\t\t\t bytesSent.add(out.length);\n\t\t\t //update\n\t\t\t TopicMap.replace(topic, TopicMap.get(topic)+out.length);\t\n\t\t\t \n\t\t\t //delete\n\t\t\t rescaleBufferMap(buffMap,key,val);\n\t\t\t \n\t\t\t //CheckNumberPacketsEnoughEndMessageAndSend(topic);\n\t\t\t //buffMap.remove(key);\n\t\t\t //remove from the set\n\t\t\t //ier.remove();\n\t\t\t \t\t \t\t \n\t\t\t }).exceptionally(ex -> {\n\t\t\t log.warn(\"Write error on message\", ex);\n\t\t\t //System.exit(-1);\n\t\t\t return null;\n\t\t\t });\n\t \t\t }\n\t \t\t }\n\t \t\t \n\t \t }", "public void push(final String queueName, final String item);", "void pushToFirebase(Task task) {\n un_FirebaseRef_tasks.push().setValue(task);\n }", "public void pushBottom(Runnable r) {\n tasks[bottom] = r; // store task\n bottom++; // advance bottom\n }", "protected void postTask(Task __task) {\r\n\t\tlock.lock();\r\n\t\ttry {\r\n\t\t\ttaskList.addLast(__task);\r\n\t\t\tcondition.signalAll();\r\n\t\t} finally {\r\n\t\t\tlock.unlock();\r\n\t\t}\r\n\t}", "public synchronized void enqueue(Object msg) {\n\t\tqueue.add(msg);\n\n\t\t// if any threads wait on empty queue then wake them up\n\t\tnotifyAll();\n\t}", "public void addTask(Task task) {\n\t\tMessage msg=new Message(null, null, task);\n\t\ttry {\n\t\t\tchannel.send(msg);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\t//Runtime exception with info for use in debugging\n\t\t\tthrow new RuntimeException(ex.getMessage());\n\t\t}\n\t}", "public Serializable asyncPop() {//can move on to another task before it finishes.\n Serializable temp = null;\n boolean finished = false;\n while(!finished){\n if(taskQueue.isEmpty()){\n try {\n Thread.sleep(1000);//1 second\n } catch (InterruptedException ex) {\n Logger.getLogger(BasicMsgQ.class.getName()).log(Level.SEVERE, null, ex);\n }\n }else{\n temp = taskQueue.removeFirst();\n finished = true;\n } \n }\n return temp;\n }", "public void add(Runnable task) {\n synchronized (mComIOQueue) {\n mComIOQueue.add(task);\n mComIOQueue.notify();\n }\n }", "@Override\n\tpublic void run() {\n\t\tlong starttime = System.currentTimeMillis();\n\n\t\tboolean started = statusMap.get(type);\n\t\tif (!started) {\n\n\t\t\tstatusMap.put(type, true);\n\t\t\tlogger.info(\n\t\t\t\t\t\"task of id add to queue of busType : {} started,current milestone : {}\",\n\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type), milestone);\n\t\t\ttry {\n\t\t\t\tIdGeneratorQueue queue = QueueUtil\n\t\t\t\t\t\t.getIdGeneratorQueue(AptConstants.BUS_NAME_MAP.get(type));\n\n\t\t\t\tif (null == queue) {\n\t\t\t\t\tlogger.error(\n\t\t\t\t\t\t\t\"task of add id to queue faile , no queue of name: {} finded\",\n\t\t\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tlogger.info(\"queue : {} has {} id not uesed.\", queue.getSize());\n\t\t\t\tlong nextMilestone = generatorService.nextMilestone(type);\n\t\t\t\tlogger.info(\"task of add id to queue,nextMilestone is {}\", nextMilestone);\n\n\t\t\t\tif (nextMilestone <= milestone) {\n\t\t\t\t\tlogger.error(\n\t\t\t\t\t\t\t\"task of get next milestone error,nextMileStone is smaller, busType: {},miletone : {}\",\n\t\t\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type), milestone);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tlong start = milestone + 1;\n\t\t\t\tlong end = nextMilestone + 1;\n\n\t\t\t\tlogger.info(\"start add id to queue : {},start : {},end : {}\",\n\t\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type), start, end);\n\t\t\t\tqueue.setMileStone(nextMilestone);\n\t\t\t\t//填充数据 满等待\n\t\t\t\tfor (long i = start; i <= end; i++) {\n\t\t\t\t\tqueue.putId(i);\n\t\t\t\t}\n\t\t\t\tlogger.info(\"success add id to queue! busType : {}\",\n\t\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type));\n\t\t\t\tstatusMap.put(type, false);\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.error(\"task of id add to queue of busType : {} failed \",\n\t\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type));\n\t\t\t\tlogger.error(\"\", e);\n\t\t\t}\n\t\t}\n\t\tlong endtime = System.currentTimeMillis();\n\n\t\tlogger.info(\"task off add to queue ended,busType : {},usetime : {}\",\n\t\t\t\tAptConstants.BUS_NAME_MAP.get(type), endtime - starttime);\n\t}", "@Override\r\n public void handleMessage(Message msg) {\n mThreadPool.execute(getTask());\r\n try {\r\n mSemaphoreThreadPool.acquire();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n public void flush() {\n new QueueConsumer().run();\n }", "public void task(Task task) throws JolRuntimeException {\n\t\ttry {\n\t\t\tthis.taskQueue.put(task);\n\t\t} catch (InterruptedException e) {\n\t\t\tthrow new JolRuntimeException(e);\n\t\t}\n\t}", "private void sendQueueToWear() {\n new APITask(new APICallback() {\n @Override\n public void r(String result) {\n try {\n JSONArray normalOrderQueue = new JSONObject(result).getJSONArray(\"queue\");\n\n for (int i = 0; i < normalOrderQueue.length(); i++) {\n if (gettingHelp(normalOrderQueue.getJSONObject(i)))\n if (mAdapter.helpedByMe(normalOrderQueue.getJSONObject(i))) {\n JSONObject attendedUser = normalOrderQueue.getJSONObject(i);\n normalOrderQueue = new JSONArray();\n normalOrderQueue.put(attendedUser);\n break;\n } else {\n normalOrderQueue.remove(i);\n i--;\n }\n }\n\n String queue = normalOrderQueue.toString();\n\n PutDataMapRequest putDataMapReq = PutDataMapRequest.create(\"/stayawhile/queue\");\n putDataMapReq.getDataMap().putString(QUEUE_KEY, queue);\n PutDataRequest putDataReq = putDataMapReq.asPutDataRequest();\n putDataReq.setUrgent();\n PendingResult<DataApi.DataItemResult> pendingResult =\n Wearable.DataApi.putDataItem(mGoogleApiClient, putDataReq);\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }).execute(\"method\", \"queue/\" + Uri.encode(mQueueName));\n }", "public void push(int x) {\n int n = queue.size();\n queue.offer(x);\n for (int i = 0; i < n; i++) {\n queue.offer(queue.poll());\n }\n }", "public void enqueue ()\n {\n count++;\n questionList.add(newQuestion);\n //System.out.println(\"Question #\"+ totNumQ + \" is added to the queue.\");\n }", "public final void execute() {\n\t\tLogUtils.i(TAG, \"execute\");\n\t\tpurelySetState(TaskState.Preparing);\n\t\tTaskQueue.addTask(this);\n\t}", "public void push(E e) throws InterruptedException {\n while (!isFree) {\n synchronized (this) {\n wait();\n }\n }\n\n synchronized (this) {\n if (queue != null) {\n queue.add(e);\n }\n isFree = true;\n notifyAll();\n }\n }", "public void push(T data);", "public void push(T data);", "public void push(int x) {\n q.offer(x);\n }", "public void push(T x);", "public void enqueue (E element);", "public final void execute() {\n thread = Thread.currentThread();\n while (!queue.isEmpty()) {\n if (currentThreads.get() < maxThreads) {\n queue.remove(0).start();\n currentThreads.incrementAndGet();\n } else {\n try {\n Thread.sleep(Long.MAX_VALUE);\n } catch (InterruptedException ex) {}\n }\n }\n while (currentThreads.get() > 0) {\n try {\n Thread.sleep(Long.MAX_VALUE);\n } catch (InterruptedException ex) {}\n }\n }", "void enqueue(E item);", "public synchronized void enqueue(TemperatureMessage t) throws RemoteException {\n //logger.log(Level.INFO, owner.ID() + \"Enqueueing \" + t.getPayload());\n\n this.temperatureQueue.add(t);\n }", "public interface Queue {\n\tpublic Set getGatheredElements();\n\tpublic Set getProcessedElements();\n\tpublic int getQueueSize(int level);\n\tpublic int getProcessedSize();\n\tpublic int getGatheredSize();\n\tpublic void setMaxElements(int elements);\n\tpublic Object pop(int level);\n\tpublic boolean push(Object task, int level);\n\tpublic void clear();\n}", "public void push(E item) {\n if (!isFull()) {\n this.stack[top] = item;\n top++;\n } else {\n Class<?> classType = this.queue.getClass().getComponentType();\n E[] newArray = (E[]) Array.newInstance(classType, this.stack.length*2);\n System.arraycopy(stack, 0, newArray, 0, this.stack.length);\n this.stack = newArray;\n\n this.stack[top] = item;\n top++;\n }\n }", "@Override\n\tpublic void execute() {\n\t\tThreadPool pool=ThreadPool.getInstance();\n\t\tpool.beginTaskRun(this);\n\t}", "void push(T item);", "void push(T item);", "void push(T x);", "public void push(Product p) throws InterruptedException\n\t{\n\t\tqueue.put(p);\n\t}", "public static void pushQueue(MyQueue q, int x) {\n push(q.stack1, x);\n }", "public void push(int x) {\n queue.addLast(x);\n }", "@Override\n\tpublic void addTask(Task task) {\n\t\t\n\t}", "public void queueMicrotask( Key<Microtask> microtaskKey, String excludedWorkerID)\n\t{\n\t\t// if the microtask is not in the queue, add it\n\t\tif( ! microtaskQueue.contains( Microtask.keyToString(microtaskKey) ) ){\n\t\t\tmicrotaskQueue.addLast( Microtask.keyToString(microtaskKey) ) ;\n\t\t\tHistoryLog\n\t\t\t\t.Init(this.getID())\n\t\t\t\t.addEvent( new MicrotaskQueued( ofy().load().key(microtaskKey).now() ));\n\t\t}\n\n\t\t// if is there an excluded workerId,\n\t\t// add the workerId to the excluded workers for this microtask\n\t\tif ( excludedWorkerID != null ){\n\t\t\taddPermExcludedWorkerForMicrotask( microtaskKey, excludedWorkerID );\n\t\t}\n\n\t\t// save the queue in Objectify and Firebase\n\t\tofy().save().entity(this).now();\n\t\tFirebaseService.writeMicrotaskQueue(new QueueInFirebase(microtaskQueue), this.getID());\n\t}", "public void push(int x) {\n queue.add(x);\n for (int i = 0; i < queue.size()-1; i++) {\n queue.add(queue.poll());\n }\n }", "public void push(int x) {\n queue.addLast(x);\n }", "@Override\n public void run() {\n task.run();\n }", "void enqueue(BasePayload payload, EnqueueCallback callback);", "public void enqueue( MyTreeNode<T> treeNode ) {\n\t\tQueueNode newNode = new QueueNode(treeNode);\n\t\t// the queue is empty\n\t\tif ( tail == null ) {\n\t\t\t// the tail and the head point to the same only element in the collection\n\t\t\tthis.tail = newNode;\n\t\t\tthis.head = newNode;\n\t\t// the queue is not empty\n\t\t} else {\n\t\t\t// the second from the end item of the collection keeps track with the tail\n\t\t\tthis.tail.next = newNode;\n\t\t\t// the new element becomes the tail of the collection\n\t\t\tthis.tail = newNode;\n\t\t}\n\t}", "protected abstract long waitOnQueue();", "void enqueue(E e);", "@Override\n\t\tpublic void run() {\n\t\t\tLooper.prepare();\n\n\t\t\tMap<String, String> param = new HashMap<String, String>();// 组装请求参数\n\t\t\tparam.put(\"UID\", \"3617\");\n\n\t\t\tHttp_PushTask HP = new Http_PushTask();\n\t\t\ttry {\n\t\t\t\tString result = HP\n\t\t\t\t\t\t.execute(\n\t\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\t\t\"http://192.168.51.200:8080/dfweb/sys/profitFR/profitResultList?UID=10&start=1&limit=5\")\n\t\t\t\t\t\t.get();\n\t\t\t\tif (!TextUtils.isEmpty(result)) {\n\t\t\t\t\tJSONObject js = new JSONObject(result);\n\t\t\t\t\tif (js.getBoolean(\"result\")) {\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString message = js.getString(\"message\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public void queueMessage(ByteBuffer bb) {\n queue.add(bb);\n processOut();\n updateInterestOps();\n }", "void add(final Task task);", "public void enqueue(Item item) \n {\n stack1.push(item);\n }", "public void push(int x) {\n\t int size=q.size();\n\t q.offer(x);\n\t for(int i=0;i<size;i++){\n\t q.offer(q.poll());\n\t }\n\t \n\t }", "public void queueMessage(ByteBuffer bb) {\n\t\tqueue.add(bb);\n\t\tprocessOut();\n\t\tupdateInterestOps();\n\t}", "void enqueue(T d) throws RuntimeException;", "private void startBackgroundWorker() {\n\t\tworker.execute(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\tif (!buildList.isEmpty()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTestsResultQueueEntry testsResultQueueEntry = buildList.get(0);\n\t\t\t\t\t\t\tTestsResult testsResult = pluginServices.getTestsResult(testsResultQueueEntry.jobId, testsResultQueueEntry.buildId);\n\t\t\t\t\t\t\tOctaneResponse response = pushTestsResult(testsResult);\n\t\t\t\t\t\t\tif (response.getStatus() == HttpStatus.SC_ACCEPTED) {\n\t\t\t\t\t\t\t\tlogger.info(\"tests result push SUCCEED\");\n\t\t\t\t\t\t\t\tbuildList.remove(0);\n\t\t\t\t\t\t\t} else if (response.getStatus() == HttpStatus.SC_SERVICE_UNAVAILABLE) {\n\t\t\t\t\t\t\t\tlogger.info(\"tests result push FAILED, service unavailable; retrying after a breathe...\");\n\t\t\t\t\t\t\t\tbreathe(SERVICE_UNAVAILABLE_BREATHE_INTERVAL);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// case of any other fatal error\n\t\t\t\t\t\t\t\tlogger.error(\"tests result push FAILED, status \" + response.getStatus() + \"; dropping this item from the queue\");\n\t\t\t\t\t\t\t\tbuildList.remove(0);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tlogger.error(\"tests result push failed; will retry after \" + SERVICE_UNAVAILABLE_BREATHE_INTERVAL + \"ms\", e);\n\t\t\t\t\t\t\tbreathe(SERVICE_UNAVAILABLE_BREATHE_INTERVAL);\n\t\t\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\t\t\tlogger.error(\"tests result push failed; dropping this item from the queue \", t);\n\t\t\t\t\t\t\tbuildList.remove(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreathe(LIST_EMPTY_INTERVAL);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "void push() {\n\t\t// push logic here\n\t\t_pushes++;\n\t\t_money += _bet;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}", "public void run() {\n\twhile (true) {\n\t synchronized(_taskQueue) {\n\t\twhile (_taskQueue.size() > 0) {\n\t\t Version v = (Version) _taskQueue.firstElement();\n\t\t _taskQueue.remove(0);\n\t\t executeRemoteTask(v);\n\t\t}\n\t }\n\t try {\n\t\tThread.sleep(_SLEEP_TIME);\n\t } catch (InterruptedException e) {\n\t\tlog(e.toString());\n\t }\n\t}\n }", "public abstract void submit(Runnable runnable);", "public void push(T item);", "protected final void spawn(Task<?>... task) {\n // Gets a list of tasks, make a forLoop, and add it the the queue of that specific task\n for (int i=0; i<task.length; i++){\n // We want the pool to add a given task.\n // pool.addTask(task[i], id); <- this function needs to increase aswell.\n myProcessor.getPool().addTask(task[i], myProcessor.getProcessorID());\n //\tSystem.out.println(\"Spawned \" + i + \" new tasks\");\n }\n }", "public void enqueue(Message msg){\n\t\tqueue.add(msg);\n\t}", "void addDoneTask(Task task);" ]
[ "0.7330137", "0.6792348", "0.67878735", "0.6734485", "0.6729322", "0.66040504", "0.65103996", "0.650686", "0.6373197", "0.63188547", "0.6308149", "0.6271611", "0.6271455", "0.625812", "0.6247769", "0.62361073", "0.6214451", "0.6207204", "0.6193665", "0.618607", "0.6183521", "0.618172", "0.61351526", "0.6125601", "0.61092144", "0.61086553", "0.6084725", "0.6082925", "0.6077203", "0.6067131", "0.60524255", "0.6022746", "0.5994358", "0.5992319", "0.59866875", "0.59817094", "0.59660184", "0.5963361", "0.5963361", "0.59554666", "0.592556", "0.59161985", "0.5904833", "0.5897962", "0.5896026", "0.58908796", "0.5881463", "0.5866395", "0.58547115", "0.5837102", "0.58190215", "0.5818058", "0.5817386", "0.58115494", "0.57934386", "0.5786507", "0.57853633", "0.5783542", "0.57801646", "0.5772471", "0.5772471", "0.5767899", "0.5757767", "0.5754107", "0.5750268", "0.57474375", "0.5738678", "0.5737223", "0.5736738", "0.5716403", "0.57127357", "0.57127357", "0.57110393", "0.5707644", "0.57055503", "0.5705077", "0.57026124", "0.5692638", "0.56890327", "0.5682586", "0.56759465", "0.56665254", "0.56554776", "0.5650625", "0.5630296", "0.5627322", "0.5625311", "0.56252325", "0.5624634", "0.5619877", "0.5613125", "0.5609842", "0.56072", "0.5599904", "0.55990386", "0.5596419", "0.5593867", "0.55790234", "0.5578198", "0.557219" ]
0.7638633
0
Tries to take a task from the base of the queue, failing if either empty or contended.
final Runnable deqTask() { Runnable t; Runnable[] q; int i; int b; if (sp != (b = base) && (q = queue) != null && // must read q after b (t = q[i = (q.length - 1) & b]) != null && casSlotNull(q, i, t)) { base = b + 1; return t; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final Runnable popTask() {\n int s = sp;\n while (s != base) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int i = (s - 1) & mask;\n Runnable t = q[i];\n if (t == null || !casSlotNull(q, i, t))\n break;\n storeSp(s - 1);\n return t;\n }\n }\n return null;\n }", "public void testTakeFromEmpty() {\n final SynchronousQueue q = new SynchronousQueue();\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n q.take();\n\t\t\tthreadShouldThrow();\n } catch (InterruptedException success){ }\n }\n });\n try {\n t.start();\n Thread.sleep(SHORT_DELAY_MS);\n t.interrupt();\n t.join();\n } catch (Exception e){\n unexpectedException();\n }\n }", "public void testFairTakeFromEmpty() {\n final SynchronousQueue q = new SynchronousQueue(true);\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n q.take();\n\t\t\tthreadShouldThrow();\n } catch (InterruptedException success){ }\n }\n });\n try {\n t.start();\n Thread.sleep(SHORT_DELAY_MS);\n t.interrupt();\n t.join();\n } catch (Exception e){\n unexpectedException();\n }\n }", "final Runnable peekTask() {\n Runnable[] q = queue;\n if (q == null)\n return null;\n int mask = q.length - 1;\n int i = base;\n return q[i & mask];\n }", "@Test\n public void testTake() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Callable<String> c = new StringTask();\n ecs.submit(c);\n Future<String> f = ecs.take();\n Assert.assertTrue(f.isDone());\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "public Serializable asyncPop() {//can move on to another task before it finishes.\n Serializable temp = null;\n boolean finished = false;\n while(!finished){\n if(taskQueue.isEmpty()){\n try {\n Thread.sleep(1000);//1 second\n } catch (InterruptedException ex) {\n Logger.getLogger(BasicMsgQ.class.getName()).log(Level.SEVERE, null, ex);\n }\n }else{\n temp = taskQueue.removeFirst();\n finished = true;\n } \n }\n return temp;\n }", "T dequeue() throws RuntimeException;", "T dequeue() throws RuntimeException;", "final Runnable locallyDeqTask() {\n Runnable work = dispatchQueue.poll();\n if( work!=null ) {\n return work;\n }\n int b;\n while (sp != (b = base)) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int i = (q.length - 1) & b;\n Runnable t = q[i];\n if (t != null && casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n }\n }\n return dispatchQueue.getSourceQueue().poll();\n }", "public void testDrainToSelfN() {\n SynchronousQueue q = new SynchronousQueue();\n try {\n q.drainTo(q, 0);\n shouldThrow();\n } catch(IllegalArgumentException success) {\n }\n }", "private synchronized Task takeTask() {\n while (true) {\n Task task = null;\n if (runningActions < maxConcurrentActions) {\n task = runnableActions.poll();\n }\n if (task == null) {\n task = runnableTasks.poll();\n }\n\n if (task != null) {\n runningTasks++;\n if (task.isAction()) {\n runningActions++;\n }\n return task;\n }\n\n if (isExhausted()) {\n return null;\n }\n\n try {\n wait();\n } catch (InterruptedException e) {\n throw new AssertionError();\n }\n }\n }", "protected abstract long waitOnQueue();", "@Override\n\tpublic synchronized T take() throws InterruptedException {\n try {\n while (queue.size()==0) wait();\n //if(debug) System.out.println(\"take: \"+queue.get(0));\n }\n catch (InterruptedException ie) {\n System.err.println(\"heh, who woke me up too soon?\");\n }\n // we have the lock and state we're seeking; remove, return element\n T o = queue.get(0);\n\n queue.remove(0);\n //this.data[] = null; // kill the old data\n notifyAll();\n return o;\n\t}", "T get() throws QueueEmpytException;", "public E take() throws InterruptedException,FileQueueClosedException;", "@Test\n public void testTakeBlocksWhenEmpty() throws InterruptedException {\n final int capacity = 10;\n final BoundedBuffer<Integer> bb = new BoundedBuffer<Integer>(capacity);\n\n Runnable task = new Runnable() {\n public void run() {\n try {\n bb.take();\n } catch (InterruptedException e) {\n assertEquals(InterruptedException.class, e.getClass());\n //e.printStackTrace();\n }\n }\n };\n\n Thread thread = new Thread(task);\n thread.start();\n\n\n Thread.sleep(LOCKUP_DETECT_TIMEOUT);\n try{\n thread.interrupt();\n thread.join();\n\n }\n catch(Exception e){\n e.printStackTrace();\n }\n\n\n\n\n\n }", "public void testDrainToWithActivePut() {\n final SynchronousQueue q = new SynchronousQueue();\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n q.put(new Integer(1));\n } catch (InterruptedException ie){\n threadUnexpectedException();\n }\n }\n });\n try {\n t.start();\n ArrayList l = new ArrayList();\n Thread.sleep(SHORT_DELAY_MS);\n q.drainTo(l);\n assertTrue(l.size() <= 1);\n if (l.size() > 0)\n assertEquals(l.get(0), new Integer(1));\n t.join();\n assertTrue(l.size() <= 1);\n } catch(Exception e){\n unexpectedException();\n }\n }", "private Task pickupTaskOrNull(AltoClef mod, Item itemToGrab, double maxRange) {\n Optional<ItemEntity> nearestDrop = Optional.empty();\n if (mod.getEntityTracker().itemDropped(itemToGrab)) {\n nearestDrop = mod.getEntityTracker().getClosestItemDrop(mod.getPlayer().getPos(), itemToGrab);\n }\n if (nearestDrop.isPresent()) {\n if (nearestDrop.get().isInRange(mod.getPlayer(), maxRange)) {\n return new PickupDroppedItemTask(new ItemTarget(itemToGrab), true);\n }\n //return new GetToBlockTask(nearestDrop.getBlockPos(), false);\n }\n return null;\n }", "private void tryDoingTasksInQueue() {\n var list = queue.exceptionsList;\n var t2 = new Thread(() -> {\n Retry.Operation op = (list1) -> {\n if (!list1.isEmpty()) {\n LOG.warn(\"Error in accessing queue db to do tasks, trying again..\");\n throw list1.remove(0);\n }\n doTasksInQueue();\n };\n Retry.HandleErrorIssue<QueueTask> handleError = (o, err) -> {\n };\n var r = new Retry<>(op, handleError, numOfRetries, retryDuration,\n e -> DatabaseUnavailableException.class.isAssignableFrom(e.getClass()));\n try {\n r.perform(list, null);\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n });\n t2.start();\n }", "public T take() throws InterruptedException, IOException {\n lock.lock();\n try {\n T wrapper = this.dequeue();\n if (wrapper == null) {\n while ((wrapper = this.dequeue()) == null) {\n logger.debug(\"Waiting for take condition\");\n await();\n }\n }\n return wrapper;\n } finally {\n lock.unlock();\n }\n }", "final void pushTask(Runnable t) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int s = sp;\n setSlot(q, s & mask, t);\n storeSp(++s);\n if ((s -= base) == 1)\n pool.signalWork();\n else if (s >= mask)\n growQueue();\n }", "@Override\n public E poll() {\n E tmp = (E)queue[0];\n System.arraycopy(queue, 1, queue, 0, size - 1);\n size--;\n return tmp;\n }", "private Runnable getTask() {\r\n if (mType== Type.FIFO){\r\n return mTaskQueue.removeFirst();\r\n }else if (mType== Type.LIFO){\r\n return mTaskQueue.removeLast();\r\n }\r\n return null;\r\n }", "@Test\n public void testTake2() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Callable<String> c = new StringTask();\n Future<String> f1 = ecs.submit(c);\n Future<String> f2 = ecs.take();\n Assert.assertSame(f1, f2);\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "Runnable popBottom() {\n // is the queue empty?\n if (bottom == 0) // empty\n return null;\n bottom--;\n Runnable r = tasks[bottom];\n int[] stamp = new int[1];\n int oldTop = top.get(stamp), newTop = oldTop + 1;\n int oldStamp = stamp[0], newStamp = oldStamp + 1;\n // no conflict with thieves\n if (bottom > oldTop)\n return r;\n // possible conflict: try to pop it ourselves\n if (bottom == oldTop)\n if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp))\n return r;\n // queue is empty, reset bottom and top to 0\n bottom = 0;\n top.set(0, newStamp);\n return null;\n }", "@Test (expected = QueueEmptyException.class)\n public void testPeekOnEmpty() {\n this.iPQ.peek();\n this.sPQ.peek();\n }", "T dequeue();", "T dequeue();", "public E take(long timeout, TimeUnit timeUnit) throws InterruptedException,FileQueueClosedException;", "@Override\r\n\tpublic T dequeue() throws QueueUnderflowException {\r\n\r\n\t\tif (this.isEmpty()) {\r\n\t\t\tthrow new QueueUnderflowException(\"The queue is empty\");\r\n\t\t}\r\n\t\t// Remove the first element\t\t\r\n\t\treturn data.remove(0);\r\n\t}", "public T dequeue() throws EmptyCollectionException;", "public void testDrainToNullN() {\n SynchronousQueue q = new SynchronousQueue();\n try {\n q.drainTo(null, 0);\n shouldThrow();\n } catch(NullPointerException success) {\n }\n }", "@Override\n\tpublic void run() {\n\t\tif (queue.size() > 0) {\n\t\t\tITask task = queue.poll();\n\t\t\tpool.execute(task);\n\t\t} else {\n\t\t\tqueue.setTaskRunning(false);\n\t\t}\n\t}", "@Override\n public CardAccessNumber call() throws Exception {\n return queue.take();\n }", "public void nextTask()\n {\n Task next = null;\n \n if (!pq.isEmpty()) next = pq.remove();\n \n if (next == null)\n {\n System.out.println(\"There are no tasks in the list.\");\n }\n else\n {\n //System.out.println(pq.peek());\n System.out.println(next.getDescription());\n }\n }", "EmulatorDriver.Cmd take()\n {\n synchronized (QUEUE_LOCK)\n {\n while (queue.isEmpty())\n {\n boolean wasWaiting = waitFlags != 0;\n try\n {\n QUEUE_LOCK.wait();\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n continue;\n }\n if ( wasWaiting && waitFlags == 0 ) // woke up\n {\n if ( EmulatorDriver.PRINT_CYCLES_PER_SECOND )\n {\n // start counting cycles again since it makes\n // no sense to track cycles per second while\n // the thread state was SLEEPING.\n totalCycleCount = 0;\n lastTimestamp = System.currentTimeMillis();\n }\n return queue.isEmpty() ? null : queue.remove(0);\n }\n if ( ! queue.isEmpty() )\n {\n return queue.remove(0);\n }\n }\n return queue.remove(0);\n }\n }", "final boolean unpushTask(Runnable t) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int s = sp - 1;\n if (casSlotNull(q, s & mask, t)) {\n storeSp(s);\n return true;\n }\n return false;\n }", "public synchronized T dequeue() {\r\n\t\twhile(queue.size()==0){\r\n\t\t\ttry {\r\n\t\t\t\tthis.wait();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tSystem.out.println(\"Problem during dequeue\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tT ans = queue.removeFirst();\r\n\t\tthis.notifyAll();\r\n\t\treturn ans;\r\n\r\n\t}", "public E poll(){\n int cnt = 0;\n long expect = front;\n int index;\n int curTryNum = tryNum;\n E e ;\n for(;;) {\n HighPerformanceQueue q = this;\n expect = front;\n index = (int)(expect&(max_size-1));\n if(available[index]) {\n e = (E) data[index];\n //TODO Additional write burden is added to the read operation\n available[index] = false;\n if (help.compareAndSwapLong(q, frontOffset, expect, expect + 1)) {\n // TODO Dynamic maintenance retries\n break;\n }\n available[index] = true;\n }\n cnt++;\n if(cnt==tryNum){\n return null;\n }\n }\n return e;\n }", "public void testDrainTo() {\n SynchronousQueue q = new SynchronousQueue();\n ArrayList l = new ArrayList();\n q.drainTo(l);\n assertEquals(q.size(), 0);\n assertEquals(l.size(), 0);\n }", "public OutOfBoundException() {\n super(\"Task does not exist. Please send a correct task number ><\");\n }", "public boolean shouldContinueExecuting()\n {\n return this.currentTask >= 0 && super.shouldContinueExecuting();\n }", "@Override\n public void receive(Task task) throws RemoteException, BusyWorkerException\n {\n if (this.isBusy) {\n throw new BusyWorkerException(\"I'm busy right now\");\n }\n\n // run a new task on a separated thread\n (new ProcessTask(task)).start();\n }", "private void pollQueue(AtomicLong wip, AtomicLong requested, Queue<Object> queue, Subscriber<? super T> child) {\n if (requested.get() > 0) {\n // only one draining at a time\n try {\n /*\n * This needs to protect against concurrent execution because `request` and `on*` events can come concurrently.\n */\n if (wip.getAndIncrement() == 0) {\n while (true) {\n if (requested.getAndDecrement() != 0) {\n Object o = queue.poll();\n if (o == null) {\n // nothing in queue\n requested.incrementAndGet();\n return;\n }\n on.accept(child, o);\n } else {\n // we hit the end ... so increment back to 0 again\n requested.incrementAndGet();\n return;\n }\n }\n }\n\n } finally {\n wip.decrementAndGet();\n }\n }\n }", "public void testTimedPoll0() {\n try {\n SynchronousQueue q = new SynchronousQueue();\n assertNull(q.poll(0, TimeUnit.MILLISECONDS));\n } catch (InterruptedException e){\n\t unexpectedException();\n\t}\n }", "@Test\n public void peekTest() {\n assertThat(\"work1\", is(this.queue.peek()));\n }", "public T getNextSpilledPartition() {\n Preconditions.checkState(initialized);\n return queue.poll();\n }", "public abstract void queue(@Nonnull LimiterPair task);", "private DispatchTask next()\n {\n synchronized (m_lock)\n {\n while (null == m_runnable)\n {\n if (m_released)\n {\n return null;\n }\n\n try\n {\n m_lock.wait();\n } catch (InterruptedException e)\n {\n // Not needed\n }\n }\n\n return m_runnable;\n }\n }", "public T dequeue();", "public boolean shouldContinueExecuting() {\n return this.currentTask >= 0 && super.shouldContinueExecuting();\n }", "public void testEmptyFull() {\n SynchronousQueue q = new SynchronousQueue();\n assertTrue(q.isEmpty());\n\tassertEquals(0, q.size());\n assertEquals(0, q.remainingCapacity());\n assertFalse(q.offer(zero));\n }", "@Override\r\n public CustomProcess peekBest() {\r\n if (data[0] == null || isEmpty()) {\r\n throw new NoSuchElementException(\"queue is empty\");\r\n }\r\n return data[0];\r\n }", "public E takeUninterruptible(){\r\n\twhile(true){\r\n\t\ttry{\r\n\t\t\treturn buf.take();\r\n\t\t} catch(InterruptedException ignored){\r\n\t\t}\r\n\t}\r\n}", "public void testFairEmptyFull() {\n SynchronousQueue q = new SynchronousQueue(true);\n assertTrue(q.isEmpty());\n\tassertEquals(0, q.size());\n assertEquals(0, q.remainingCapacity());\n assertFalse(q.offer(zero));\n }", "private void awaitItems() throws IgniteInterruptedCheckedException {\n U.await(takeLatch);\n }", "public void testPutWithTake() {\n final SynchronousQueue q = new SynchronousQueue();\n Thread t = new Thread(new Runnable() {\n public void run() {\n int added = 0;\n try {\n q.put(new Object());\n ++added;\n q.put(new Object());\n ++added;\n q.put(new Object());\n ++added;\n q.put(new Object());\n ++added;\n\t\t\tthreadShouldThrow();\n } catch (InterruptedException e){\n assertTrue(added >= 1);\n }\n }\n });\n try {\n t.start();\n Thread.sleep(SHORT_DELAY_MS);\n q.take();\n Thread.sleep(SHORT_DELAY_MS);\n t.interrupt();\n t.join();\n } catch (Exception e){\n unexpectedException();\n }\n }", "public T front() throws EmptyQueueException;", "public Person peek() throws EmptyQueueException{\n if (holdingQueue.isEmpty()){\n throw new EmptyQueueException(\"This queue is empty.\");\n }else{\n return holdingQueue.get(0);\n }\n }", "T getFront() throws EmptyQueueException;", "E dequeue();", "E dequeue();", "E dequeue();", "@Test\n public void testPoll1() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Assert.assertNull(ecs.poll());\n Callable<String> c = new StringTask();\n ecs.submit(c);\n Thread.sleep(SHORT_DELAY_MS);\n for (;;) {\n Future<String> f = ecs.poll();\n if (f != null) {\n Assert.assertTrue(f.isDone());\n break;\n }\n }\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "public Serializable pop() throws InterruptedException {\n Serializable temp = null;\n if(taskQueue.isEmpty()){\n waitForThread();//blocks for taskQueue.\n }\n temp = taskQueue.removeFirst();\n threadLimit++;\n \n return temp;\n }", "private E dequeue() {\n final Object[] items = this.items;\n @SuppressWarnings(\"unchecked\")\n E x = (E) items[takeIndex];\n items[takeIndex] = null;\n if (++takeIndex == items.length) takeIndex = 0;\n count--;\n notFull.signal();\n return x;\n }", "@Override\n public E peek() {\n return (E)queue[0];\n }", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tTask t = bq.take();\n\n\t\t\t\t\n\t\t\t\tThread.sleep(t.getProcessTime() * 1000);\n\t\t\t\twaitingTime.addAndGet((-1) * t.getProcessTime());\n\t\t\t\tSimulator.getFrame().displayData(\"Client \"+t.getNr()+\" left. \\n\");\n\t\t\t\tsize--;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "public Task complete(int index) throws DukeArgumentException {\r\n try {\r\n Task toComplete = tasks.get(index);\r\n toComplete.setCompleted();\r\n return toComplete;\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeArgumentException(String.format(\"Array index %d is out of bounds.\", index));\r\n }\r\n }", "@Test\n public void testPoll2() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Assert.assertNull(ecs.poll());\n Callable<String> c = new StringTask();\n ecs.submit(c);\n Future<String> f = ecs.poll(SHORT_DELAY_MS, TimeUnit.MILLISECONDS);\n if (f != null) Assert.assertTrue(f.isDone());\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "@Override\n public boolean offer(Runnable e) {\n if (duplicatePolicy != null) {\n if (contains(e)) {\n if (duplicatePolicy == DuplicatePolicy.DISCARD_OLD) {\n remove(e);\n Logger.getDefault().vv(\"drop old task: \", e);\n } else if (duplicatePolicy == DuplicatePolicy.DISCARD_NEW) {\n Logger.getDefault().vv(\"drop new task: \", e);\n // drop the new task by doing nothing and telling the\n // caller that everything goes well.\n return true;\n }\n }\n }\n // enqueue task\n return LIFO ? super.offerFirst(e) : super.offer(e);\n }", "protected T tryDeq() {\n if (head == tail) // 1\n throw new BufferUnderflowException(); // 1\n T x = data[head]; // 2\n head = (head + 1) % data.length; // 3\n return x; // 2\n }", "public void testFairPutWithTake() {\n final SynchronousQueue q = new SynchronousQueue(true);\n Thread t = new Thread(new Runnable() {\n public void run() {\n int added = 0;\n try {\n q.put(new Object());\n ++added;\n q.put(new Object());\n ++added;\n q.put(new Object());\n ++added;\n q.put(new Object());\n ++added;\n\t\t\tthreadShouldThrow();\n } catch (InterruptedException e){\n assertTrue(added >= 1);\n }\n }\n });\n try {\n t.start();\n Thread.sleep(SHORT_DELAY_MS);\n q.take();\n Thread.sleep(SHORT_DELAY_MS);\n t.interrupt();\n t.join();\n } catch (Exception e){\n unexpectedException();\n }\n }", "public abstract void backoffQueue();", "@Override\n public SyncObjectState call() {\n\n SyncObjectState callState = SyncObjectState.STARTED;\n \n \n long remainingSleep = task.getSleepUntil() - System.currentTimeMillis();\n if (remainingSleep > 0) {\n try {\n Thread.sleep(remainingSleep);\n } catch (InterruptedException ex) {\n logger.warn(buildStandardLogMessage(null, \" Interrupted task-remaining-sleep\"));\n }\n }\n\n // TODO: consider replacing Lock with with IMap, for the automatic GC\n // see https://groups.google.com/forum/#!topic/hzProcessingClient/9YFGh3xwe8I\n Lock hzPidLock = hzProcessingClient.getLock(task.getPid());\n \n // this section must be thread-safe otherwise, we may skip unlocking a lock.\n // see http://docs.hazelcast.org/docs/3.5/manual/html/lock.html\n try {\n logger.info(buildStandardLogMessage(null, \" Locking task, attempt \" + task.getLockAttempt()));\n \n if (hzPidLock.tryLock(1, TimeUnit.SECONDS)) {\n // got lock\n try {\n logger.info(buildStandardLogMessage(null, \" Processing SyncObject\"));\n SystemMetadata mnSystemMetadata = retrieveMNSystemMetadata();\n logger.debug(task.taskLabel() + \" MN system metadata retrieved...\");\n\n processTask(mnSystemMetadata);\n callState = SyncObjectState.SUCCESS;\n \n } catch (RetryableException ex) {\n if (task.getAttempt() < 20) {\n callState = SyncObjectState.RETRY;\n \n logger.warn(buildStandardLogMessage(ex, \" RetryableException raised on attempt \"\n + task.getAttempt() + \" of 20. Sleeping and requeueing.\"));\n\n task.setAttempt(task.getAttempt() + 1);\n task.setSleepUntil(System.currentTimeMillis() + 5000L);\n\n hzProcessingClient.getQueue(synchronizationObjectQueue).put(task);\n \n } else {\n logger.error(buildStandardLogMessage(ex,\" Exceeded retry limit.\"\n + \" Unable to process the SyncObject. Converting to UnrecoverableException\"),ex);\n throw new UnrecoverableException(task.getPid() + \": retry limits reached without success.\",\n ex.getCause());\n }\n } finally {\n hzPidLock.unlock();\n logger.info(buildStandardLogMessage(null, \" Unlocked Pid.\"));\n }\n } else {\n // lock-retry handling\n if (task.getLockAttempt() < 100) {\n callState = SyncObjectState.RETRY;\n \n logger.warn(buildStandardLogMessage(null,\n \" Cannot lock Pid! Requeueing the task. Attempt \" + task.getLockAttempt()));\n\n task.setLockAttempt(task.getLockAttempt() + 1);\n task.setSleepUntil(System.currentTimeMillis() + 1000L);\n hzProcessingClient.getQueue(synchronizationObjectQueue).put(task);\n \n } else {\n callState = SyncObjectState.FAILED;\n \n String message = \"Cannot lock Pid! Reached Max attempts (100), abandoning processing of this pid.\";\n logger.error(buildStandardLogMessage(null, message));\n throw new SynchronizationFailed(\"5000\",message);\n }\n }\n } catch (SynchronizationFailed e) {\n callState = SyncObjectState.FAILED;\n \n logger.error(buildStandardLogMessage(e.getCause(),\"SynchronizationFailed: \" + e.getMessage()),e);\n SyncFailedTask syncFailedTask = new SyncFailedTask(nodeCommunications, task);\n syncFailedTask.submitSynchronizationFailed(e);\n\n } catch (UnrecoverableException e) {\n callState = SyncObjectState.FAILED;\n // this is the proper location to decide whether or not to notify the MemberNode\n // (these are exceptions caused by internal problems)\n \n // in all cases, we need to log\n logger.error(buildStandardLogMessage(e.getCause(),\"UnrecoverableException: \" + e.getMessage()),e);\n \n // report to MN, for now\n\n SyncFailedTask syncFailedTask = new SyncFailedTask(nodeCommunications, task);\n if (e.getCause() instanceof BaseException)\n syncFailedTask.submitSynchronizationFailed(task.getPid(), null,(BaseException) e.getCause());\n \n else \n syncFailedTask.submitSynchronizationFailed(task.getPid(), null,\n new ServiceFailure(\"5000\", this.buildStandardLogMessage(e.getCause(), null)));\n\n\n \n } catch (InterruptedException e) {\n callState = SyncObjectState.FAILED;\n // was handled as Exception before I split this out\n // don't know if we need to handle it any differently,\n logger.error(buildStandardLogMessage(e, \"Interrupted: \" + e.getMessage()), e);\n\n } catch (Exception e) {\n callState = SyncObjectState.FAILED;\n logger.error(this.buildStandardLogMessage(e,e.getMessage()),e);\n\n } finally {\n logger.info(buildStandardLogMessage(null, \" exiting with callState: \" + callState));\n// XXX: Hold until 2.4, because it depends on an update to d1_cn_common\n// MetricLogEntry metricLogEntry = new MetricLogEntry(MetricEvent.SYNCHRONIZATION_TASK_EXECUTION);\n// metricLogEntry.setNodeId(TypeFactory.buildNodeReference(task.getNodeId()));\n// metricLogEntry.setPid(TypeFactory.buildIdentifier(task.getPid()));\n// metricLogEntry.setMessage(\"status=\" + callState);\n// MetricLogClientFactory.getMetricLogClient().logMetricEvent(metricLogEntry);\n }\n return callState;\n }", "public void testPoll() {\n SynchronousQueue q = new SynchronousQueue();\n\tassertNull(q.poll());\n }", "@Override\n\tpublic void run() {\n\t\tboolean done = false;\n\t\t\n\t\twhile(!done){\n\t\t\tFile file;\n\t\t\ttry {\n\t\t\t\tfile = queue.take();\n\t\t\t\tif(file == FileEnumrationTask.Dummy){\n\t\t\t\t\tdone = true;\n\t\t\t\t\tqueue.put(file);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tserch(file);\n\t\t\t\t}\n\t\t\t} catch (InterruptedException | FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public synchronized int take(){\n while(!isPut){\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n System.out.println(\"Took from a ground \" + n);\n isPut = false;\n notify();\n return n;\n }", "public E dequeue();", "public boolean isFull() { return front == (rear + 1) % MAX_QUEUE_SIZE; }", "public Optional<Task> getATask() {\n HttpHeaders headers = new HttpHeaders();\n headers.setAccept(List.of(MediaType.APPLICATION_JSON));\n\n ResponseEntity<Task> responseEntity = restTemplate.exchange(\n queueUrl + \"/getATask\",\n HttpMethod.GET,\n new HttpEntity<>(headers),\n Task.class);\n\n return Optional.ofNullable(responseEntity.getBody());\n }", "public void testRemove() {\n SynchronousQueue q = new SynchronousQueue();\n try {\n q.remove();\n shouldThrow();\n } catch (NoSuchElementException success){\n\t}\n }", "Object dequeue();", "Object dequeue();", "public void testOfferInExecutor() {\n final SynchronousQueue q = new SynchronousQueue();\n ExecutorService executor = Executors.newFixedThreadPool(2);\n final Integer one = new Integer(1);\n\n executor.execute(new Runnable() {\n public void run() {\n threadAssertFalse(q.offer(one));\n try {\n threadAssertTrue(q.offer(one, MEDIUM_DELAY_MS, TimeUnit.MILLISECONDS));\n threadAssertEquals(0, q.remainingCapacity());\n }\n catch (InterruptedException e) {\n threadUnexpectedException();\n }\n }\n });\n\n executor.execute(new Runnable() {\n public void run() {\n try {\n Thread.sleep(SMALL_DELAY_MS);\n threadAssertEquals(one, q.take());\n }\n catch (InterruptedException e) {\n threadUnexpectedException();\n }\n }\n });\n\n joinPool(executor);\n\n }", "public String getFirst () {\n lengthMutex.lock ();\n try\n {\n while (length == 0)\n empty.await ();\n }\n catch (Exception e)\n {}\n finally\n {\n lengthMutex.unlock ();\n }\n\n String result = null;\n for (int i=9; i>-1; i--)\n {\n qLock[i].lock ();\n result = q[i].pollFirst ();\n qLock[i].unlock ();\n if (result != null)\n {\n length--;\n break;\n }\n }\n if (result == null)\n {\n // System.out.println (\"pooop\");\n System.exit (1);\n }\n\n lengthMutex.lock ();\n full.signal ();\n lengthMutex.unlock ();\n\n return result;\n }", "protected Ticket checkNextCompletedTicket()\n\t{\n\t\treturn tickets.peek();\n\t}", "@Test\n public void popTest() {\n assertThat(\"work1\", is(this.queue.pop()));\n assertThat(\"work2\", is(this.queue.peek()));\n }", "public T pop() throws EmptyQueueException, EmptyCollectionException;", "@Test (expected = QueueEmptyException.class)\n public void testRemoveMaxOnEmpty() {\n this.iPQ.remove();\n this.sPQ.remove();\n }", "EmulatorDriver.Cmd poll()\n {\n synchronized (QUEUE_LOCK)\n {\n if ( ! queue.isEmpty() )\n {\n return queue.remove(0);\n }\n return isWaiting() ? take() : null;\n }\n }", "@Override\n public void run() {\n ICBlock currentBlock = null;\n\n while (running) {\n try {\n currentBlock = mQueue.take();\n currentBlock.doAction();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n\n }\n\n\n }", "private static Task take(String serial) {\n int len = TASKS.size();\n for (int i = 0; i < len; i++) {\n if (serial.equals(TASKS.get(i).serial)) {\n return TASKS.remove(i);\n }\n }\n return null;\n }", "@Override\n protected void afterExecute(final Runnable r, final Throwable t) {\n mActiveTasks.remove(r);\n\n // Perform a quick check to see if there are any remaining requests in\n // the blocked queue. Peek the head and check for duplicates in the \n // active and task queues. If no duplicates exist, add the request to\n // the task queue. Repeat this until a duplicate is found\n synchronized (mBlockedTasks) {\n while(mBlockedTasks.peek()!=null && \n !mTaskQueue.contains(mBlockedTasks.peek()) && \n !mActiveTasks.contains(mBlockedTasks.peek())){\n Runnable runnable = mBlockedTasks.poll();\n if(runnable!=null){\n mThreadPool.execute(runnable);\n }\n }\n }\n super.afterExecute(r, t);\n }", "@Test\n public void testIsEmptyAfterTakesAll() throws InterruptedException {\n final int capacity = 10;\n final BoundedBuffer<Integer> bb = new BoundedBuffer<Integer>(capacity);\n\n for(int i = 0; i < capacity; i++){\n bb.put((new Random()).nextInt());\n }\n assertTrue(bb.isFull());\n\n Runnable task = new Runnable() {\n public void run() {\n try {\n bb.take();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n };\n\n Thread[] threads = new Thread[capacity];\n\n for (int i = 0; i < capacity; i++) {\n threads[i] = new Thread(task);\n threads[i].start();\n }\n\n for (int i = 0; i < capacity; i++) {\n threads[i].join();\n }\n\n //postcondition: buffer is empty\n assertTrue(bb.isEmpty());\n assertFalse(bb.isFull());\n\n }", "@Override\n public void checkTaskStillAvailable(String path) {\n this.watcher\n .getRecoverableZooKeeper()\n .getZooKeeper()\n .getData(path, this.watcher, new GetDataAsyncCallback(),\n Long.valueOf(-1) /* retry count */);\n SplitLogCounters.tot_mgr_get_data_queued.incrementAndGet();\n }", "public Runnable popTop() {\n int[] stamp = new int[1];\n int oldTop = top.get(stamp), newTop = oldTop + 1;\n int oldStamp = stamp[0], newStamp = oldStamp + 1;\n if (bottom <= oldTop) // empty\n return null;\n Runnable r = tasks[oldTop];\n if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp))\n return r;\n return null;\n }", "final Runnable pollTask() {\n Runnable t = locallyDeqTask();\n if (t == null && (t = scan()) != null)\n ++stealCount;\n return t;\n }", "public void run() {\n while (!stopped) {\n Runnable task = (Runnable) queue.remove();\n if (task != null) {\n try {\n task.run();\n } catch (Throwable t) {\n monitor.handleThrowable(this.getClass(), task, t);\n }\n }\n }\n }", "public O consume(BoundedInMemoryQueue<?, I> queue) throws Exception {\n Iterator<I> iterator = queue.iterator();\n\n while (iterator.hasNext()) {\n consumeOneRecord(iterator.next());\n }\n\n // Notifies done\n finish();\n\n return getResult();\n }" ]
[ "0.6720251", "0.66869634", "0.645679", "0.62841845", "0.6001063", "0.59846467", "0.5888399", "0.5888399", "0.5881991", "0.5792892", "0.57683885", "0.57487094", "0.57416594", "0.57160246", "0.56915265", "0.5616526", "0.5584151", "0.556916", "0.55468804", "0.5521311", "0.54794043", "0.547931", "0.54341614", "0.54291797", "0.5389162", "0.53690714", "0.5358257", "0.5358257", "0.5317313", "0.5302712", "0.52951026", "0.5294381", "0.5294082", "0.52922094", "0.5283885", "0.52821594", "0.52809376", "0.527397", "0.52629", "0.5261658", "0.5255901", "0.52407897", "0.5215574", "0.5209966", "0.5209635", "0.52085745", "0.520357", "0.5191787", "0.5188896", "0.5182854", "0.51826304", "0.51661974", "0.5160674", "0.51459306", "0.51410645", "0.512698", "0.512388", "0.5123457", "0.5121208", "0.51169866", "0.51044196", "0.51044196", "0.51044196", "0.5099053", "0.50920177", "0.5090833", "0.5089772", "0.50653225", "0.50652516", "0.5054427", "0.5045018", "0.50325817", "0.502879", "0.5027842", "0.5020285", "0.50142205", "0.5010899", "0.500986", "0.50010484", "0.4986301", "0.4974271", "0.4969936", "0.4968588", "0.4968588", "0.49635145", "0.49623963", "0.49544016", "0.49451548", "0.49443147", "0.4943679", "0.49421605", "0.49392077", "0.49358198", "0.49338606", "0.49326658", "0.49217424", "0.49178484", "0.489892", "0.48988172", "0.4898639" ]
0.6363437
3
Tries to take a task from the base of own queue, activating if necessary, failing only if empty. Called only by current thread.
final Runnable locallyDeqTask() { Runnable work = dispatchQueue.poll(); if( work!=null ) { return work; } int b; while (sp != (b = base)) { if (tryActivate()) { Runnable[] q = queue; int i = (q.length - 1) & b; Runnable t = q[i]; if (t != null && casSlotNull(q, i, t)) { base = b + 1; return t; } } } return dispatchQueue.getSourceQueue().poll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final Runnable popTask() {\n int s = sp;\n while (s != base) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int i = (s - 1) & mask;\n Runnable t = q[i];\n if (t == null || !casSlotNull(q, i, t))\n break;\n storeSp(s - 1);\n return t;\n }\n }\n return null;\n }", "final Runnable peekTask() {\n Runnable[] q = queue;\n if (q == null)\n return null;\n int mask = q.length - 1;\n int i = base;\n return q[i & mask];\n }", "final Runnable deqTask() {\n Runnable t;\n Runnable[] q;\n int i;\n int b;\n if (sp != (b = base) &&\n (q = queue) != null && // must read q after b\n (t = q[i = (q.length - 1) & b]) != null &&\n casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n return null;\n }", "final void pushTask(Runnable t) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int s = sp;\n setSlot(q, s & mask, t);\n storeSp(++s);\n if ((s -= base) == 1)\n pool.signalWork();\n else if (s >= mask)\n growQueue();\n }", "@Override\n protected void afterExecute(final Runnable r, final Throwable t) {\n mActiveTasks.remove(r);\n\n // Perform a quick check to see if there are any remaining requests in\n // the blocked queue. Peek the head and check for duplicates in the \n // active and task queues. If no duplicates exist, add the request to\n // the task queue. Repeat this until a duplicate is found\n synchronized (mBlockedTasks) {\n while(mBlockedTasks.peek()!=null && \n !mTaskQueue.contains(mBlockedTasks.peek()) && \n !mActiveTasks.contains(mBlockedTasks.peek())){\n Runnable runnable = mBlockedTasks.poll();\n if(runnable!=null){\n mThreadPool.execute(runnable);\n }\n }\n }\n super.afterExecute(r, t);\n }", "public void startTaskTriggerCheckerThread() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n canRunEnqueueTaskThread.set(true);\n while(canRunEnqueueTaskThread.get()) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if(taskEnqueued.get() || canRunTaskThread.get()) { //do not enqueue the task if an instance of that task is already enqueued or running.\n continue;\n //log(PrioritizedReactiveTask.this.getClass().getSimpleName() + \" already in queue or is currently executing\");\n } else if(shouldTaskActivate()) {\n System.out.println(\"Thread \" + Thread.currentThread().getId() + \" enqueued task: \" + this.getClass().getSimpleName());\n taskQueue.add(PrioritizedReactiveTask.this);\n activeTasks.add(PrioritizedReactiveTask.this);\n taskEnqueued.set(true);\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }).start();\n }", "private synchronized Task takeTask() {\n while (true) {\n Task task = null;\n if (runningActions < maxConcurrentActions) {\n task = runnableActions.poll();\n }\n if (task == null) {\n task = runnableTasks.poll();\n }\n\n if (task != null) {\n runningTasks++;\n if (task.isAction()) {\n runningActions++;\n }\n return task;\n }\n\n if (isExhausted()) {\n return null;\n }\n\n try {\n wait();\n } catch (InterruptedException e) {\n throw new AssertionError();\n }\n }\n }", "protected abstract long waitOnQueue();", "public void testTakeFromEmpty() {\n final SynchronousQueue q = new SynchronousQueue();\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n q.take();\n\t\t\tthreadShouldThrow();\n } catch (InterruptedException success){ }\n }\n });\n try {\n t.start();\n Thread.sleep(SHORT_DELAY_MS);\n t.interrupt();\n t.join();\n } catch (Exception e){\n unexpectedException();\n }\n }", "@Override\n\tpublic void run() {\n\t\tif (queue.size() > 0) {\n\t\t\tITask task = queue.poll();\n\t\t\tpool.execute(task);\n\t\t} else {\n\t\t\tqueue.setTaskRunning(false);\n\t\t}\n\t}", "public void testFairTakeFromEmpty() {\n final SynchronousQueue q = new SynchronousQueue(true);\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n q.take();\n\t\t\tthreadShouldThrow();\n } catch (InterruptedException success){ }\n }\n });\n try {\n t.start();\n Thread.sleep(SHORT_DELAY_MS);\n t.interrupt();\n t.join();\n } catch (Exception e){\n unexpectedException();\n }\n }", "private void tryDoingTasksInQueue() {\n var list = queue.exceptionsList;\n var t2 = new Thread(() -> {\n Retry.Operation op = (list1) -> {\n if (!list1.isEmpty()) {\n LOG.warn(\"Error in accessing queue db to do tasks, trying again..\");\n throw list1.remove(0);\n }\n doTasksInQueue();\n };\n Retry.HandleErrorIssue<QueueTask> handleError = (o, err) -> {\n };\n var r = new Retry<>(op, handleError, numOfRetries, retryDuration,\n e -> DatabaseUnavailableException.class.isAssignableFrom(e.getClass()));\n try {\n r.perform(list, null);\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n });\n t2.start();\n }", "private void m1557a(Task task) {\n synchronized (f1826f) {\n if (f1827g == null) {\n f1827g = new SideChannelManager(this.f1828d.getApplicationContext());\n }\n f1827g.queueTask(task);\n }\n }", "private void workOnQueue() {\n }", "public Serializable asyncPop() {//can move on to another task before it finishes.\n Serializable temp = null;\n boolean finished = false;\n while(!finished){\n if(taskQueue.isEmpty()){\n try {\n Thread.sleep(1000);//1 second\n } catch (InterruptedException ex) {\n Logger.getLogger(BasicMsgQ.class.getName()).log(Level.SEVERE, null, ex);\n }\n }else{\n temp = taskQueue.removeFirst();\n finished = true;\n } \n }\n return temp;\n }", "public void beginInvoke(Runnable task) {\r\n synchronized (taskLock) {\r\n tasks.add(task);\r\n // Do not wakeup the Selector thread by calling selector.wakeup().\r\n // Doing so generates too much contention on the selector internal lock.\r\n // Instead, the selector will periodically poll the array with tasks\r\n }\r\n }", "private Runnable getTask() {\r\n if (mType== Type.FIFO){\r\n return mTaskQueue.removeFirst();\r\n }else if (mType== Type.LIFO){\r\n return mTaskQueue.removeLast();\r\n }\r\n return null;\r\n }", "public abstract void queue(@Nonnull LimiterPair task);", "@Override\n public void receive(Task task) throws RemoteException, BusyWorkerException\n {\n if (this.isBusy) {\n throw new BusyWorkerException(\"I'm busy right now\");\n }\n\n // run a new task on a separated thread\n (new ProcessTask(task)).start();\n }", "public abstract void backoffQueue();", "@Override\n public SyncObjectState call() {\n\n SyncObjectState callState = SyncObjectState.STARTED;\n \n \n long remainingSleep = task.getSleepUntil() - System.currentTimeMillis();\n if (remainingSleep > 0) {\n try {\n Thread.sleep(remainingSleep);\n } catch (InterruptedException ex) {\n logger.warn(buildStandardLogMessage(null, \" Interrupted task-remaining-sleep\"));\n }\n }\n\n // TODO: consider replacing Lock with with IMap, for the automatic GC\n // see https://groups.google.com/forum/#!topic/hzProcessingClient/9YFGh3xwe8I\n Lock hzPidLock = hzProcessingClient.getLock(task.getPid());\n \n // this section must be thread-safe otherwise, we may skip unlocking a lock.\n // see http://docs.hazelcast.org/docs/3.5/manual/html/lock.html\n try {\n logger.info(buildStandardLogMessage(null, \" Locking task, attempt \" + task.getLockAttempt()));\n \n if (hzPidLock.tryLock(1, TimeUnit.SECONDS)) {\n // got lock\n try {\n logger.info(buildStandardLogMessage(null, \" Processing SyncObject\"));\n SystemMetadata mnSystemMetadata = retrieveMNSystemMetadata();\n logger.debug(task.taskLabel() + \" MN system metadata retrieved...\");\n\n processTask(mnSystemMetadata);\n callState = SyncObjectState.SUCCESS;\n \n } catch (RetryableException ex) {\n if (task.getAttempt() < 20) {\n callState = SyncObjectState.RETRY;\n \n logger.warn(buildStandardLogMessage(ex, \" RetryableException raised on attempt \"\n + task.getAttempt() + \" of 20. Sleeping and requeueing.\"));\n\n task.setAttempt(task.getAttempt() + 1);\n task.setSleepUntil(System.currentTimeMillis() + 5000L);\n\n hzProcessingClient.getQueue(synchronizationObjectQueue).put(task);\n \n } else {\n logger.error(buildStandardLogMessage(ex,\" Exceeded retry limit.\"\n + \" Unable to process the SyncObject. Converting to UnrecoverableException\"),ex);\n throw new UnrecoverableException(task.getPid() + \": retry limits reached without success.\",\n ex.getCause());\n }\n } finally {\n hzPidLock.unlock();\n logger.info(buildStandardLogMessage(null, \" Unlocked Pid.\"));\n }\n } else {\n // lock-retry handling\n if (task.getLockAttempt() < 100) {\n callState = SyncObjectState.RETRY;\n \n logger.warn(buildStandardLogMessage(null,\n \" Cannot lock Pid! Requeueing the task. Attempt \" + task.getLockAttempt()));\n\n task.setLockAttempt(task.getLockAttempt() + 1);\n task.setSleepUntil(System.currentTimeMillis() + 1000L);\n hzProcessingClient.getQueue(synchronizationObjectQueue).put(task);\n \n } else {\n callState = SyncObjectState.FAILED;\n \n String message = \"Cannot lock Pid! Reached Max attempts (100), abandoning processing of this pid.\";\n logger.error(buildStandardLogMessage(null, message));\n throw new SynchronizationFailed(\"5000\",message);\n }\n }\n } catch (SynchronizationFailed e) {\n callState = SyncObjectState.FAILED;\n \n logger.error(buildStandardLogMessage(e.getCause(),\"SynchronizationFailed: \" + e.getMessage()),e);\n SyncFailedTask syncFailedTask = new SyncFailedTask(nodeCommunications, task);\n syncFailedTask.submitSynchronizationFailed(e);\n\n } catch (UnrecoverableException e) {\n callState = SyncObjectState.FAILED;\n // this is the proper location to decide whether or not to notify the MemberNode\n // (these are exceptions caused by internal problems)\n \n // in all cases, we need to log\n logger.error(buildStandardLogMessage(e.getCause(),\"UnrecoverableException: \" + e.getMessage()),e);\n \n // report to MN, for now\n\n SyncFailedTask syncFailedTask = new SyncFailedTask(nodeCommunications, task);\n if (e.getCause() instanceof BaseException)\n syncFailedTask.submitSynchronizationFailed(task.getPid(), null,(BaseException) e.getCause());\n \n else \n syncFailedTask.submitSynchronizationFailed(task.getPid(), null,\n new ServiceFailure(\"5000\", this.buildStandardLogMessage(e.getCause(), null)));\n\n\n \n } catch (InterruptedException e) {\n callState = SyncObjectState.FAILED;\n // was handled as Exception before I split this out\n // don't know if we need to handle it any differently,\n logger.error(buildStandardLogMessage(e, \"Interrupted: \" + e.getMessage()), e);\n\n } catch (Exception e) {\n callState = SyncObjectState.FAILED;\n logger.error(this.buildStandardLogMessage(e,e.getMessage()),e);\n\n } finally {\n logger.info(buildStandardLogMessage(null, \" exiting with callState: \" + callState));\n// XXX: Hold until 2.4, because it depends on an update to d1_cn_common\n// MetricLogEntry metricLogEntry = new MetricLogEntry(MetricEvent.SYNCHRONIZATION_TASK_EXECUTION);\n// metricLogEntry.setNodeId(TypeFactory.buildNodeReference(task.getNodeId()));\n// metricLogEntry.setPid(TypeFactory.buildIdentifier(task.getPid()));\n// metricLogEntry.setMessage(\"status=\" + callState);\n// MetricLogClientFactory.getMetricLogClient().logMetricEvent(metricLogEntry);\n }\n return callState;\n }", "@Override\n public void run() {\n ICBlock currentBlock = null;\n\n while (running) {\n try {\n currentBlock = mQueue.take();\n currentBlock.doAction();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n\n }\n\n\n }", "@Override\n public <T> void onCreate(Task<T> task) {\n\n final String taskId = task.getTaskId();\n\n if (!StringUtils.isEmpty(taskId)) {\n if (inProgressQueue.containsKey(taskId)) {\n// task.setSkipExecution(true);\n } else {\n inProgressQueue.put(taskId, task);\n// task.setSkipExecution(false);\n }\n } else {\n logger.warn(\"Task Id can not be null for qnqueing task\");\n }\n }", "final boolean unpushTask(Runnable t) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int s = sp - 1;\n if (casSlotNull(q, s & mask, t)) {\n storeSp(s);\n return true;\n }\n return false;\n }", "private void enterToRunwayQueue() {\n\t\tqueue.insert(this);\n\t}", "public boolean shouldContinueExecuting()\n {\n return this.currentTask >= 0 && super.shouldContinueExecuting();\n }", "public synchronized void dispatch(Runnable runnable) {\n\t\tif (!isStart) {\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tif (runnable != null) {\n\t\t\tqueue.push(runnable);\n\t\t} else {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t}", "@Override\n\tpublic void addTask(ISimpleTask task) {\n\t\ttry {\n\t\t\tqueue.put(task);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private Runnable pollSubmission() {\n StealingPool p = pool;\n while (p.hasQueuedSubmissions()) {\n Runnable t;\n if (tryActivate() && (t = p.pollSubmission()) != null)\n return t;\n }\n return null;\n }", "public boolean shouldContinueExecuting() {\n return this.currentTask >= 0 && super.shouldContinueExecuting();\n }", "@Override\n public CardAccessNumber call() throws Exception {\n return queue.take();\n }", "protected void execute() {\n super.execute ();\n \n // processTasks is ordinarily only called when tasks have accumulated\n // in the buffer and the buffer dispatch condition has been met.\n // \n // This ensures that if there are delayed tasks, they are re-examined,\n // whether there's something in the buffer or not.\n //\n // Fix for bug #13455\n\n if (!delayedTasks.isEmpty ()) {\n processTasks (new ArrayList());\n }\n }", "private void queueTask(Version theTask) {\n\tsynchronized(_taskQueue) {\n\t _taskQueue.add(theTask);\n\t}\n }", "public void testDrainToWithActivePut() {\n final SynchronousQueue q = new SynchronousQueue();\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n q.put(new Integer(1));\n } catch (InterruptedException ie){\n threadUnexpectedException();\n }\n }\n });\n try {\n t.start();\n ArrayList l = new ArrayList();\n Thread.sleep(SHORT_DELAY_MS);\n q.drainTo(l);\n assertTrue(l.size() <= 1);\n if (l.size() > 0)\n assertEquals(l.get(0), new Integer(1));\n t.join();\n assertTrue(l.size() <= 1);\n } catch(Exception e){\n unexpectedException();\n }\n }", "private DispatchTask next()\n {\n synchronized (m_lock)\n {\n while (null == m_runnable)\n {\n if (m_released)\n {\n return null;\n }\n\n try\n {\n m_lock.wait();\n } catch (InterruptedException e)\n {\n // Not needed\n }\n }\n\n return m_runnable;\n }\n }", "@Override\n protected boolean performTask() {\n Map<WebSocketChannel, ProcessRequest> requests = this.channelManager.getRequests(MessageType.PROCESS_REQUEST);\n if (requests.isEmpty()) {\n return false;\n }\n\n List<Request> l = requests.entrySet().stream()\n .map(e -> new Request(e.getKey(), e.getValue()))\n .collect(Collectors.toList());\n\n dispatch(l);\n\n return false;\n }", "@Override\n\tpublic void execute() {\n\t\tThreadPool pool=ThreadPool.getInstance();\n\t\tpool.beginTaskRun(this);\n\t}", "public static Task getCurrentTask(Fiber paramFiber)\n/* 194 */ throws Pausable { return null; }", "private Task pickupTaskOrNull(AltoClef mod, Item itemToGrab, double maxRange) {\n Optional<ItemEntity> nearestDrop = Optional.empty();\n if (mod.getEntityTracker().itemDropped(itemToGrab)) {\n nearestDrop = mod.getEntityTracker().getClosestItemDrop(mod.getPlayer().getPos(), itemToGrab);\n }\n if (nearestDrop.isPresent()) {\n if (nearestDrop.get().isInRange(mod.getPlayer(), maxRange)) {\n return new PickupDroppedItemTask(new ItemTarget(itemToGrab), true);\n }\n //return new GetToBlockTask(nearestDrop.getBlockPos(), false);\n }\n return null;\n }", "public void runTask(Runnable task) {\n\t\tthreadPool.execute(task);\r\n\t\t// System.out.println(\"Queue Size after assigning the\r\n\t\t// task..\"+queue.size() );\r\n\t\t// System.out.println(\"Pool Size after assigning the\r\n\t\t// task..\"+threadPool.getActiveCount() );\r\n\t\t// System.out.println(\"Task count..\"+threadPool.getTaskCount() );\r\n\t\tSystem.out.println(\"Task count..\" + queue.size());\r\n\r\n\t}", "public void a() {\n NamedRunnable active;\n synchronized (this.mTasks) {\n if (!this.mTasks.isEmpty()) {\n this.mActive = this.mTasks.remove(0);\n } else {\n this.mActive = null;\n com.alipay.mobile.common.task.Log.v(TAG, \"mTasks is empty.\");\n }\n active = this.mActive;\n }\n if (active != null) {\n com.alipay.mobile.common.task.Log.d(TAG, \"StandardPipeline.scheduleNext()\");\n if (this.a != null) {\n this.a.execute(active);\n return;\n }\n throw new RuntimeException(\"The StandardPipeline's Executor is null.\");\n }\n com.alipay.mobile.common.task.Log.d(TAG, \"StandardPipeline.scheduleNext(mTasks is empty)\");\n }", "@Override\n public boolean offer(Runnable e) {\n if (duplicatePolicy != null) {\n if (contains(e)) {\n if (duplicatePolicy == DuplicatePolicy.DISCARD_OLD) {\n remove(e);\n Logger.getDefault().vv(\"drop old task: \", e);\n } else if (duplicatePolicy == DuplicatePolicy.DISCARD_NEW) {\n Logger.getDefault().vv(\"drop new task: \", e);\n // drop the new task by doing nothing and telling the\n // caller that everything goes well.\n return true;\n }\n }\n }\n // enqueue task\n return LIFO ? super.offerFirst(e) : super.offer(e);\n }", "T dequeue() throws RuntimeException;", "T dequeue() throws RuntimeException;", "public abstract boolean dispatch(final CallRunner callTask) throws InterruptedException;", "@Override\n\tpublic synchronized T take() throws InterruptedException {\n try {\n while (queue.size()==0) wait();\n //if(debug) System.out.println(\"take: \"+queue.get(0));\n }\n catch (InterruptedException ie) {\n System.err.println(\"heh, who woke me up too soon?\");\n }\n // we have the lock and state we're seeking; remove, return element\n T o = queue.get(0);\n\n queue.remove(0);\n //this.data[] = null; // kill the old data\n notifyAll();\n return o;\n\t}", "private UniqueElementSingleThreadWorker()\n {\n _state = ActivityState.INITIALIZING;\n _taskQueue = new UniqueTagQueue<String, Runnable>();\n \n _taskThread = new Thread(\"UniqueElementSingleThreadWorker-\" + COUNTER.incrementAndGet())\n {\n @Override\n public void run()\n {\n while(true)\n {\n try\n {\n Runnable task = _taskQueue.blockingPop();\n if(task == SHUTDOWN_TASK)\n {\n break;\n }\n task.run();\n }\n catch(InterruptedException ex) { }\n //Catch run time exceptions that the runnable might throw so that the thread does not die\n catch(RuntimeException ex)\n {\n ErrorReporter.reportUncaughtException(ex);\n }\n }\n \n _state = ActivityState.SHUT_DOWN;\n }\n };\n }", "private Object getTask(Runnable runnable)\r\n {\r\n Object innerTask = \r\n ObservableExecutors.getInnerTask(runnable, Object.class);\r\n if (innerTask != null)\r\n {\r\n return innerTask;\r\n }\r\n return runnable;\r\n }", "private void scheduleNext() {\n lock.lock();\n try {\n active = tasks.poll();\n if (active != null) {\n executor.execute(active);\n terminating.signalAll();\n } else {\n //As soon as a SerialExecutor is empty, we remove it from the executors map.\n if (lock.isHeldByCurrentThread() && isEmpty() && this == serialExecutorMap.get(identifier)) {\n serialExecutorMap.remove(identifier);\n terminating.signalAll();\n if (state == State.SHUTDOWN && serialExecutorMap.isEmpty()) {\n executor.shutdown();\n }\n }\n }\n } finally {\n lock.unlock();\n }\n }", "@Test\n public void testTake() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Callable<String> c = new StringTask();\n ecs.submit(c);\n Future<String> f = ecs.take();\n Assert.assertTrue(f.isDone());\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "@Test\n public void testTakeBlocksWhenEmpty() throws InterruptedException {\n final int capacity = 10;\n final BoundedBuffer<Integer> bb = new BoundedBuffer<Integer>(capacity);\n\n Runnable task = new Runnable() {\n public void run() {\n try {\n bb.take();\n } catch (InterruptedException e) {\n assertEquals(InterruptedException.class, e.getClass());\n //e.printStackTrace();\n }\n }\n };\n\n Thread thread = new Thread(task);\n thread.start();\n\n\n Thread.sleep(LOCKUP_DETECT_TIMEOUT);\n try{\n thread.interrupt();\n thread.join();\n\n }\n catch(Exception e){\n e.printStackTrace();\n }\n\n\n\n\n\n }", "private void growQueue() {\n Runnable[] oldQ = queue;\n int oldSize = oldQ.length;\n int newSize = oldSize << 1;\n if (newSize > MAXIMUM_QUEUE_CAPACITY)\n throw new RejectedExecutionException(\"Queue capacity exceeded\");\n Runnable[] newQ = queue = new Runnable[newSize];\n\n int b = base;\n int bf = b + oldSize;\n int oldMask = oldSize - 1;\n int newMask = newSize - 1;\n do {\n int oldIndex = b & oldMask;\n Runnable t = oldQ[oldIndex];\n if (t != null && !casSlotNull(oldQ, oldIndex, t))\n t = null;\n setSlot(newQ, b & newMask, t);\n } while (++b != bf);\n pool.signalWork();\n }", "T get() throws QueueEmpytException;", "@Override\r\n public void handleMessage(Message msg) {\n mThreadPool.execute(getTask());\r\n try {\r\n mSemaphoreThreadPool.acquire();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n public void run() {\n task.run();\n }", "public void execute(final DispatchTask task, final DeliverTask callback)\n {\n // Note that we associate a callback with a task via the thread used to \n // execute the task. In general, a free slot in the pool (i.e., m_pool[i] is \n // null) can be used to set-up a new thread. Also note that we need to \n // update the LRU index if we change the pool.\n synchronized(m_lock)\n {\n if(m_closed)\n {\n // We are closed hence, spin-of a new thread for the new task.\n final PooledThread result = new PooledThread();\n \n // Set-up the thread and associate the task with the callback.\n result.reset(task, callback);\n \n // release the thread immediately since we don't pool anymore.\n result.release();\n \n return;\n }\n \n // Search in the pool for a free thread.\n for (int i = 0; i < m_pool.length; i++)\n {\n // o.k. we found a free slot now set-up a new thread for it.\n if (null == m_pool[i])\n {\n m_pool[i] = new PooledThread();\n\n m_pool[i].reset(task, callback);\n \n m_index.add(new Integer(i));\n \n return;\n }\n else if (m_pool[i].available())\n {\n // we found a free thread now set it up.\n m_pool[i].reset(task, callback);\n \n final Integer idx = new Integer(i);\n \n m_index.remove(idx);\n \n m_index.add(idx);\n \n return;\n }\n }\n\n // The pool is full and no threads are available hence, spin-off a new\n // thread and add it to the pool while decoupling the least recently used\n // one. This assumes that older threads are likely to take longer to \n // become available again then younger ones.\n final int pos = ((Integer) m_index.remove(0)).intValue();\n \n m_index.add(new Integer(pos));\n \n m_pool[pos].release();\n\n m_pool[pos] = new PooledThread();\n\n m_pool[pos].reset(task, callback);\n }\n }", "public final void execute() {\n\t\tLogUtils.i(TAG, \"execute\");\n\t\tpurelySetState(TaskState.Preparing);\n\t\tTaskQueue.addTask(this);\n\t}", "private void pollQueue(AtomicLong wip, AtomicLong requested, Queue<Object> queue, Subscriber<? super T> child) {\n if (requested.get() > 0) {\n // only one draining at a time\n try {\n /*\n * This needs to protect against concurrent execution because `request` and `on*` events can come concurrently.\n */\n if (wip.getAndIncrement() == 0) {\n while (true) {\n if (requested.getAndDecrement() != 0) {\n Object o = queue.poll();\n if (o == null) {\n // nothing in queue\n requested.incrementAndGet();\n return;\n }\n on.accept(child, o);\n } else {\n // we hit the end ... so increment back to 0 again\n requested.incrementAndGet();\n return;\n }\n }\n }\n\n } finally {\n wip.decrementAndGet();\n }\n }\n }", "public void executeQueue() {\n\tLog.d(TaskExecutor.class.getName(), \"Execute \" + mQueue.size() + \" Tasks\");\n\tfor (Task task : mQueue) {\n\t if (!mTaskExecutor.getQueue().contains(task))\n\t\texecuteTask(task);\n\t}\n }", "protected void onQueued() {}", "@Override\n protected void beforeExecute(final Thread thread, final Runnable run) {\n mActiveTasks.add(run);\n super.beforeExecute(thread, run);\n }", "final Runnable pollLocalTask() {\n return locallyDeqTask();\n }", "protected final boolean rescheduleTaskIfNecessary(Object task) {\n if (this.running) {\n try {\n doRescheduleTask(task);\n } catch (RuntimeException ex) {\n logRejectedTask(task, ex);\n this.pausedTasks.add(task);\n }\n return true;\n } else if (this.active) {\n this.pausedTasks.add(task);\n return true;\n } else {\n return false;\n }\n }", "public DispatchTask getTask(Thread thread, DispatchTask defaultTask)\n {\n synchronized (m_lock)\n {\n if (thread instanceof PooledThread)\n {\n return ((PooledThread) thread).getTask();\n }\n\n return defaultTask;\n }\n }", "public void invokeLater(Runnable task) {\n queue.add(task);\n }", "@Override\n\tpublic void run() {\n\t\tboolean done = false;\n\t\t\n\t\twhile(!done){\n\t\t\tFile file;\n\t\t\ttry {\n\t\t\t\tfile = queue.take();\n\t\t\t\tif(file == FileEnumrationTask.Dummy){\n\t\t\t\t\tdone = true;\n\t\t\t\t\tqueue.put(file);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tserch(file);\n\t\t\t\t}\n\t\t\t} catch (InterruptedException | FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n while (!stopped) {\n Runnable task = (Runnable) queue.remove();\n if (task != null) {\n try {\n task.run();\n } catch (Throwable t) {\n monitor.handleThrowable(this.getClass(), task, t);\n }\n }\n }\n }", "@Override\n public boolean act(Task task) throws RuntimeException {\n return this.subscribe(task);\n }", "private synchronized void addTask(Runnable runnable) {\r\n mTaskQueue.add(runnable);\r\n try {\r\n if (mPoolThreadHandler==null){\r\n mSemaphorePoolThreadHandler.acquire();\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n mPoolThreadHandler.sendEmptyMessage(0x110);\r\n }", "public final void execute() {\n thread = Thread.currentThread();\n while (!queue.isEmpty()) {\n if (currentThreads.get() < maxThreads) {\n queue.remove(0).start();\n currentThreads.incrementAndGet();\n } else {\n try {\n Thread.sleep(Long.MAX_VALUE);\n } catch (InterruptedException ex) {}\n }\n }\n while (currentThreads.get() > 0) {\n try {\n Thread.sleep(Long.MAX_VALUE);\n } catch (InterruptedException ex) {}\n }\n }", "protected Pin loadPinBelongingTo(PinTask task)\n throws CacheException\n {\n Pin pin = _dao.getPin(task.getPinId(), task.getSticky(), PINNING);\n if (pin == null) {\n throw new CacheException(\"Operation was aborted\");\n }\n return pin;\n }", "DispatchTask getTask()\n {\n synchronized (m_lock)\n {\n return m_runnable;\n }\n }", "@Override\r\n\tpublic void doTask() {\n\t}", "final Runnable pollTask() {\n Runnable t = locallyDeqTask();\n if (t == null && (t = scan()) != null)\n ++stealCount;\n return t;\n }", "protected void checkMyTask(GWCTask task) {\n \tcheckArgument(task.getJob()==this, \"Task %s does not belong to Job %s\", task.getTaskId(), this.getId());\n }", "public abstract void task() throws InterruptedException;", "private void awaitItems() throws IgniteInterruptedCheckedException {\n U.await(takeLatch);\n }", "abstract boolean shouldTaskActivate();", "void queueShrunk();", "@SuppressWarnings(\"unchecked\")\n\tprivate void processQueue() throws DatabaseException {\n\t\tString qs = \"from PendingTask pt order by pt.created\";\n\t\tGson gson = new Gson();\n\t\tSession session = null;\n\t\t\n\t\ttry {\n\t\t\tsession = HibernateUtil.getSessionFactory().openSession();\n\t\t\tQuery q = session.createQuery(qs);\n\t\t\t\n\t\t\tfor (PendingTask pt : (List<PendingTask>) q.list()) {\n\t\t\t\tif (!runningTasks.contains(pt.getId())) {\n\t\t\t\t\tlog.info(\"Processing {}\", pt);\n\t\t\t\t\t\n\t\t\t\t\tif (PendingTask.TASK_UPDATE_PATH.equals(pt.getTask())) {\n\t\t\t\t\t\tif (Config.STORE_NODE_PATH) {\n\t\t\t\t\t\t\texecutor.execute(new PendingTaskThread(pt, new UpdatePathTask()));\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (PendingTask.TASK_CHANGE_SECURITY.equals(pt.getTask())) {\n\t\t\t\t\t\tChangeSecurityParams params = gson.fromJson(pt.getParams(), ChangeSecurityParams.class);\n\t\t\t\t\t\texecutor.execute(new PendingTaskThread(pt, new ChangeSecurityTask(params)));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlog.warn(\"Unknown pending task: {}\", pt.getTask());\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tlog.info(\"Task already running: {}\", pt);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (HibernateException e) {\n\t\t\tthrow new DatabaseException(e.getMessage(), e);\n\t\t} finally {\n\t\t\tHibernateUtil.close(session);\n\t\t}\n\t}", "protected Job getNextJobInReadyQueue(long tick) {\n Job targetJob = null;\n int highestActivePriority = 0;\n\n for (Job job : nextJobOfATask.values()) {\n if (job.releaseTime > tick)\n continue;\n if (job.task.getPriority() > highestActivePriority) {\n highestActivePriority = job.task.getPriority();\n targetJob = job;\n }\n }\n return targetJob;\n }", "public void testOfferInExecutor() {\n final SynchronousQueue q = new SynchronousQueue();\n ExecutorService executor = Executors.newFixedThreadPool(2);\n final Integer one = new Integer(1);\n\n executor.execute(new Runnable() {\n public void run() {\n threadAssertFalse(q.offer(one));\n try {\n threadAssertTrue(q.offer(one, MEDIUM_DELAY_MS, TimeUnit.MILLISECONDS));\n threadAssertEquals(0, q.remainingCapacity());\n }\n catch (InterruptedException e) {\n threadUnexpectedException();\n }\n }\n });\n\n executor.execute(new Runnable() {\n public void run() {\n try {\n Thread.sleep(SMALL_DELAY_MS);\n threadAssertEquals(one, q.take());\n }\n catch (InterruptedException e) {\n threadUnexpectedException();\n }\n }\n });\n\n joinPool(executor);\n\n }", "public void run() {\n\n\t\tQueueObject qO = null;\n\t\tQueueRUNNING = true;\n\t\tint iNext = -1;\n\t\t// if not RUNNING, then check queue\n\t\t// get next object\n\t\t// set to running\n\n\t\twhile (TRUE) {\n\n\t\t\tif (QueueRUNNING) {\n\t\t\t\t//date = new Date();\n\n\t\t\t\t// don't get next job until free in run queue, except for\n\t\t\t\t// standard jobs\n\t\t\t\tif (!bRunning)\n\t\t\t\t\tiNext = Queue.getNextJobToRun();\n\n\t\t\t\tif ((!bRunning) && (iNext != Globals.NOT_FOUND)) {\n\t\t\t\t\tqO = Queue.get(iNext);\n\n\t\t\t\t\tint id = qO.getID();\n\t\t\t\t\tqO.setStart(); // update the object\n\t\t\t\t\tQueue.set(iNext, qO); // update the object in the queue\n\n\t\t\t\t\tif (id == SITEMAP) {\n\t\t\t\t\t\tbRunning = true;\n\t\t\t\t\t\tsiteMap = new SiteMapThread(qO.getJobID());\n\t\t\t\t\t\tsiteMap.start();\n\t\t\t\t\t}\n//\t\t\t\t\tif (id == CHECK_NEW_PHOTOS) {\n//\t\t\t\t\t\tcheck = new CheckDirectoryStructure(qO.getJobID());\n//\t\t\t\t\t\tcheck.start();\n//\t\t\t\t\t}\n//\t\t\t\t\tif (id == RASTERIZE) {\n//\t\t\t\t\t\trasterize = new WatchRastQueue(qO.getJobID());\n//\t\t\t\t\t\trasterize.start();\n//\t\t\t\t\t}\n\n//\t\t\t\t\tif (id == XMLUPDATE) {\n//\t\t\t\t\t\txmlUpdate = new WatchXMLQueue(qO.getJobID());\n//\t\t\t\t\t\txmlUpdate.start();\n//\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tLogging.info(this.getClass().getName(), \"Queue is not running.\");\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tThread.sleep(10000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tLogging.error(e);\n\t\t\t}\n\n\t\t\tif (ABORT_ID != -100) {\n\t\t\t\tQueueObject qTemp = Queue.get(ABORT_ID);\n\t\t\t\tif (qTemp.getJobID() == ABORT_ID) {\n\t\t\t\t\tLogging.info(this.getClass().getName(), \"Aborting: \" + ABORT_ID);\n\t\t\t\t\tLogging.info(this.getClass().getName(), \"Type: \" + qO.getID());\n\t\t\t\t\tswitch (qTemp.getID()) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tsiteMap.Abort();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n//\t\t\t\t\t\tcheck.interrupt();\n//\t\t\t\t\t\tcheck.Abort();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n//\t\t\t\t\t\trasterize.interrupt();\n//\t\t\t\t\t\trasterize.Abort();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n//\t\t\t\t\t\txmlUpdate.interrupt();\n//\t\t\t\t\t\txmlUpdate.Abort();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tABORT_ID = -100; // reset ID\n\t\t\t}\n\n\t\t}\n\n\t}", "public abstract void task();", "void runQueue();", "@Test\n public void testIfThreadsAreBlockedIfThereIsNothinginQueue() throws InterruptedException {\n \t\n \tqueue.addUserRequest(createUserRequest(1, 10, ElevatorDirection.UP));\n \tqueue.addUserRequest(createUserRequest(1, 8, ElevatorDirection.UP));\n \t\n final Thread t = startTestThread( new TestRunnable() {\n\t\t\t@Override\n\t\t\tprotected void runTestThread() throws Throwable {\n\t\t\t\tfor (int i = 0; i < 2; ++i) {\n\t\t\t\t\tAssert.assertNotNull(queue.pickRequest(1, ElevatorDirection.UP));\n\t\t\t\t\tlogger.debug(\"Picked Element Fron Queue\");\n }\n\t\t\t\tThread.currentThread().interrupt();\n try {\n \tqueue.pickRequest(1, ElevatorDirection.UP);\n Assert.assertFalse(true);\n } catch (InterruptedException success) {\n \tlogger.debug(\"Thread Interrupted\");\n }\n Assert.assertFalse(Thread.interrupted());\n\t\t\t}\n\t\t});\n t.start();\n \n }", "private synchronized void startTask(Task task) {\n if (_scheduledTasks.get(task.table) == task) {\n _scheduledTasks.remove(task.table);\n }\n _runningTask = task;\n }", "protected ThreadState pickNextThread() //Returns the ThreadState of the head of the PriorityQueue or null if the queue is empty\n\t\t{\n\t\t\tLib.assertTrue(Machine.interrupt().disabled());\n KThread thread = waitQueue.peek();\n if(thread == null)\n\t\t\t{\n return null;\n }\n else\n\t\t\t{\n return getThreadState(thread);\n }\n\t\t}", "public static synchronized void execute(Task task) {\n Future<?> future = null;\n if (task.serial == null || !hasSerialRunning(task.serial)) {\n task.executionAsked = true;\n future = directExecute(task, task.remainingDelay);\n }\n if ((task.id != null || task.serial != null) && !task.managed.get()) {\n /* keep task */\n task.future = future;\n TASKS.add(task);\n }\n }", "public T take() throws InterruptedException, IOException {\n lock.lock();\n try {\n T wrapper = this.dequeue();\n if (wrapper == null) {\n while ((wrapper = this.dequeue()) == null) {\n logger.debug(\"Waiting for take condition\");\n await();\n }\n }\n return wrapper;\n } finally {\n lock.unlock();\n }\n }", "public synchronized void makeAvailable(){\n isBusy = false;\n }", "public synchronized void execute(Runnable task) throws Exception{\n \n if(threadPoolExecutor.isShutdown()){\n \tSystem.out.println(\"Thread pool \" + \"\" + \" is being Shutdown.\\n\"\n \t\t\t\t\t+ \"No tasks are allowed to be scheduled.\");\n \n }\n //add the task to the queue\n //this will cause a thread in the work pool to pick this up and execute\n queue.put(task);\n System.out.println(\"task has been added.\");\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttask();\n\t\t}", "private Runnable scan() {\n Runnable t = null;\n int r = seed; // extract once to keep scan quiet\n StealingThread[] ws; // refreshed on outer loop\n int mask; // must be power 2 minus 1 and > 0\n outer:do {\n if ((ws = pool.threads) != null && (mask = ws.length - 1) > 0) {\n int idx = r;\n int probes = ~mask; // use random index while negative\n for (;;) {\n r = xorShift(r); // update random seed\n StealingThread v = ws[mask & idx];\n if (v == null || v.sp == v.base) {\n if (probes <= mask)\n idx = (probes++ < 0) ? r : (idx + 1);\n else\n break;\n }\n else if (!tryActivate() || (t = v.deqTask()) == null)\n continue outer; // restart on contention\n else\n break outer;\n }\n }\n } while (pool.hasNewSyncEvent(this)); // retry on pool events\n seed = r;\n return t;\n }", "protected void addChannelToReadCompletePendingQueue() {\n/* 354 */ while (!Http2MultiplexHandler.this.readCompletePendingQueue.offer(this)) {\n/* 355 */ Http2MultiplexHandler.this.processPendingReadCompleteQueue();\n/* */ }\n/* */ }", "public Boolean lazyQueue();", "private void safeWaitTasks(Set<Future<?>> activeTasks, CompletionService<?> completionService)\n throws IOException {\n // Wait until backup tasks are completed.\n while (activeTasks.size() > 0) {\n try {\n Future<?> resultFuture = completionService.take();\n activeTasks.remove(resultFuture);\n resultFuture.get();\n } catch (InterruptedException ie) {\n // Cancel pending tasks.\n activeTasks.forEach((future) -> future.cancel(true));\n // Continue interrupt chain.\n Thread.currentThread().interrupt();\n throw new RuntimeException(\"Thread interrupted while waiting for backup threads.\", ie);\n } catch (ExecutionException ee) {\n // Cancel pending tasks.\n activeTasks.forEach((future) -> future.cancel(true));\n // Throw.\n Throwable cause = ee.getCause();\n if (cause instanceof IOException) {\n throw (IOException) cause;\n } else {\n throw new IOException(cause);\n }\n }\n }\n }", "@Override\n public E poll() {\n E tmp = (E)queue[0];\n System.arraycopy(queue, 1, queue, 0, size - 1);\n size--;\n return tmp;\n }", "public final void run() {\n\t\ttask();\n\t\t_nextTaskHasRan = true;\n\t}", "public Optional<Task> getATask() {\n HttpHeaders headers = new HttpHeaders();\n headers.setAccept(List.of(MediaType.APPLICATION_JSON));\n\n ResponseEntity<Task> responseEntity = restTemplate.exchange(\n queueUrl + \"/getATask\",\n HttpMethod.GET,\n new HttpEntity<>(headers),\n Task.class);\n\n return Optional.ofNullable(responseEntity.getBody());\n }" ]
[ "0.66293126", "0.61550117", "0.60062325", "0.5967744", "0.5941993", "0.5917642", "0.5883742", "0.58650696", "0.58190054", "0.57915777", "0.5700288", "0.5629246", "0.5617314", "0.5564472", "0.55639213", "0.5511577", "0.5497496", "0.5471561", "0.5451625", "0.5449085", "0.5449053", "0.5442239", "0.5433603", "0.54079366", "0.53819215", "0.5368128", "0.53313524", "0.5301459", "0.5299803", "0.52959", "0.5295177", "0.52912766", "0.5287927", "0.5283459", "0.52826494", "0.52792203", "0.52621406", "0.5230293", "0.5229023", "0.5215093", "0.5212068", "0.5184403", "0.51751035", "0.51751035", "0.51666754", "0.5145588", "0.51453984", "0.51363575", "0.5115077", "0.51149535", "0.5109547", "0.5107954", "0.50999653", "0.5091944", "0.508942", "0.50823754", "0.5079385", "0.5074626", "0.5073824", "0.5070979", "0.50699615", "0.5068307", "0.50616413", "0.50468516", "0.5042525", "0.50406826", "0.50380576", "0.50379604", "0.50362307", "0.5014984", "0.50061905", "0.5004079", "0.50025654", "0.5001976", "0.49977872", "0.49875358", "0.4984781", "0.49842834", "0.4976596", "0.4973068", "0.49695444", "0.49636957", "0.4959513", "0.4958584", "0.49539545", "0.4953759", "0.4947369", "0.49472916", "0.49372694", "0.4932965", "0.49321893", "0.4921303", "0.4911593", "0.49044865", "0.48986608", "0.48893183", "0.48860112", "0.48739618", "0.4870402", "0.4861148" ]
0.6407669
1
Returns a popped task, or null if empty. Ensures active status if nonnull. Called only by current thread.
final Runnable popTask() { int s = sp; while (s != base) { if (tryActivate()) { Runnable[] q = queue; int mask = q.length - 1; int i = (s - 1) & mask; Runnable t = q[i]; if (t == null || !casSlotNull(q, i, t)) break; storeSp(s - 1); return t; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Runnable getTask() {\r\n if (mType== Type.FIFO){\r\n return mTaskQueue.removeFirst();\r\n }else if (mType== Type.LIFO){\r\n return mTaskQueue.removeLast();\r\n }\r\n return null;\r\n }", "public Serializable asyncPop() {//can move on to another task before it finishes.\n Serializable temp = null;\n boolean finished = false;\n while(!finished){\n if(taskQueue.isEmpty()){\n try {\n Thread.sleep(1000);//1 second\n } catch (InterruptedException ex) {\n Logger.getLogger(BasicMsgQ.class.getName()).log(Level.SEVERE, null, ex);\n }\n }else{\n temp = taskQueue.removeFirst();\n finished = true;\n } \n }\n return temp;\n }", "public Runnable popTop() {\n int[] stamp = new int[1];\n int oldTop = top.get(stamp), newTop = oldTop + 1;\n int oldStamp = stamp[0], newStamp = oldStamp + 1;\n if (bottom <= oldTop) // empty\n return null;\n Runnable r = tasks[oldTop];\n if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp))\n return r;\n return null;\n }", "public Serializable pop() throws InterruptedException {\n Serializable temp = null;\n if(taskQueue.isEmpty()){\n waitForThread();//blocks for taskQueue.\n }\n temp = taskQueue.removeFirst();\n threadLimit++;\n \n return temp;\n }", "private GameAction pull() {\n if (this.queue.size() > 0) {\n return this.queue.remove(0);\n } else {\n return null;\n }\n }", "final Runnable locallyDeqTask() {\n Runnable work = dispatchQueue.poll();\n if( work!=null ) {\n return work;\n }\n int b;\n while (sp != (b = base)) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int i = (q.length - 1) & b;\n Runnable t = q[i];\n if (t != null && casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n }\n }\n return dispatchQueue.getSourceQueue().poll();\n }", "public Optional<PickingRequest> getTask() {\n return Optional.ofNullable(task);\n }", "final Runnable peekTask() {\n Runnable[] q = queue;\n if (q == null)\n return null;\n int mask = q.length - 1;\n int i = base;\n return q[i & mask];\n }", "private synchronized Task taskGet() {\n\t\treturn this.taskList.remove();\n\t}", "final Runnable pollLocalTask() {\n return locallyDeqTask();\n }", "EmulatorDriver.Cmd poll()\n {\n synchronized (QUEUE_LOCK)\n {\n if ( ! queue.isEmpty() )\n {\n return queue.remove(0);\n }\n return isWaiting() ? take() : null;\n }\n }", "final Runnable deqTask() {\n Runnable t;\n Runnable[] q;\n int i;\n int b;\n if (sp != (b = base) &&\n (q = queue) != null && // must read q after b\n (t = q[i = (q.length - 1) & b]) != null &&\n casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n return null;\n }", "Runnable popBottom() {\n // is the queue empty?\n if (bottom == 0) // empty\n return null;\n bottom--;\n Runnable r = tasks[bottom];\n int[] stamp = new int[1];\n int oldTop = top.get(stamp), newTop = oldTop + 1;\n int oldStamp = stamp[0], newStamp = oldStamp + 1;\n // no conflict with thieves\n if (bottom > oldTop)\n return r;\n // possible conflict: try to pop it ourselves\n if (bottom == oldTop)\n if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp))\n return r;\n // queue is empty, reset bottom and top to 0\n bottom = 0;\n top.set(0, newStamp);\n return null;\n }", "public String pop() {\n if (queue.size() == 0) {\n return null;\n }\n\n String result = top();\n queue.remove(0);\n return result;\n }", "public Task poll() \n\t{\n\t\tif(this.isEmpty())\n\t\t{\n\t\t\tSystem.out.println(\"Cannot remove from an empty list.\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tint parent = 1;\n\t\tint child = 2;\n\t\tTask newTask = heap[1];\n\t\tTask temp = heap[size--];\n\t\t\n\t\twhile(child <= size)\n\t\t{\n\t\t\tif(child < size && heap[child].getPriority() > heap[child + 1].getPriority())\n\t\t\t{\n\t\t\t\tchild++;\n\t\t\t}\n\t\t\tif(temp.getPriority() <= heap[child].getPriority())\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\theap[parent] = heap[child];\n\t\t\tparent = child;\n\t\t\tchild *= 2;\n\t\t\t\n\t\t}\n\t\t\n\t\theap[parent] = temp;\n\t\treturn newTask;\n\t}", "public synchronized T pop() throws PoolException {\n try {\n\n T item = getStack().poll();\n if (item == null || !isValid(item)) {\n trace(\"pop: creating new item\");\n return doCreate();\n }\n inUse++;\n trace(\"pop: in use = \" + inUse + \", created = \" + totalCreated);\n return item;\n } catch (IndexOutOfBoundsException x) { // pool is empty\n return doCreate();\n } catch (NoSuchElementException x) { // pool is empty\n return doCreate();\n }\n }", "public T poll() {\n if(size==0)\n return null;\n else {\n T temp= (T) pq[0];\n pq[0]=pq[size-1];\n size--;\n percolateDown(0);\n return temp;\n\n\n }\n }", "public E blockingPop() throws InterruptedException\n {\n _lock.lock();\n try\n {\n //Wait for an item to be offered to the queue\n try\n {\n //This loop is necessary because it is possible to be awoken erroneously; however, empty will still\n //be false and so the thread will go back to sleep\n while(_empty)\n {\n _notEmptyCondition.await();\n }\n }\n //Propogate to a non-interrupted thread\n //The situation of multiple consumer threads is not currently used in cakehat\n catch(InterruptedException e)\n {\n _notEmptyCondition.signal();\n throw e;\n }\n \n //Retrieve and remove next element\n Iterator<TaggedElement<T, E>> iterator = _elements.iterator();\n TaggedElement<T, E> taggedElement = iterator.next();\n iterator.remove();\n _empty = !iterator.hasNext();\n \n //If the element was tagged, remove it from the set of elements with that tag\n if(taggedElement.getTag() != null)\n {\n _tagMap.get(taggedElement.getTag()).remove(taggedElement);\n }\n \n return taggedElement.getElement();\n }\n finally\n {\n _lock.unlock();\n }\n }", "public T pop() {\n if (head == null) {\n return null;\n } else {\n Node<T> returnedNode = head;\n head = head.getNext();\n return returnedNode.getItem();\n }\n }", "public T pop();", "public T pop();", "public T pop();", "public T pop();", "public T pop();", "public T pop();", "public T pop();", "public T pop();", "@Override\r\n\tpublic E pop() {\r\n\t\tif (isEmpty())\r\n\t\t\treturn null;\r\n\t\tE answer = stack[t];\r\n\t\tstack[t] = null; // dereference to help garbage collection\r\n\t\tt--;\r\n\t\treturn answer;\r\n\t}", "T peek(){\n if(isEmpty()){\n return null;\n }\n return (T)queueArray[0];\n }", "public static Task getCurrentTask(Fiber paramFiber)\n/* 194 */ throws Pausable { return null; }", "public T pop() {\n\t\tT value = peek();\n\t\tstack.remove(value);\n\t\treturn value;\n\t}", "public T pop() {\n\t\tif (this.l.getHead() != null) {\n\t\t\tT tmp = l.getHead().getData();\n\t\t\tl.setHead(l.getHead().getNext());\n\t\t\treturn tmp;\n\t\t} else {\n\t\t\tSystem.out.println(\"No element in stack\");\n\t\t\treturn null;\n\t\t}\n\t}", "T pop();", "T pop();", "T pop();", "public T pop() {\n T top = peek();\n stack[topIndex] = null;\n topIndex--;\n return top;\n }", "public Object pop() {\n if (top >= 0) {\n Object currentObject = stack[top--];\n if (top > minStackSize) {\n decreaseStackSize(1);\n }\n return currentObject;\n }\n else {\n return null;\n }\n }", "private synchronized Task takeTask() {\n while (true) {\n Task task = null;\n if (runningActions < maxConcurrentActions) {\n task = runnableActions.poll();\n }\n if (task == null) {\n task = runnableTasks.poll();\n }\n\n if (task != null) {\n runningTasks++;\n if (task.isAction()) {\n runningActions++;\n }\n return task;\n }\n\n if (isExhausted()) {\n return null;\n }\n\n try {\n wait();\n } catch (InterruptedException e) {\n throw new AssertionError();\n }\n }\n }", "@Override\n\tpublic T pop() {\n\t\tif(isEmpty()) {\n\t\t\tSystem.out.println(\"Stack is Empty\");\n\t\treturn null;}\n\t\ttop--;\t\t\t\t\t\t//top-- now before since we need index top-1\n\t\tT result = stack[top];\n\t\tstack[top] = null;\n\t\treturn result;\n\t\t\t\n\t}", "public T pop() {\n\t\tT value = null;\n\t\tif (!isEmpty()) {\n\t\t\ttop = top.next;\n\t\t\tvalue = top.value;\n\t\t}\n\t\treturn value; // returning popped value\n\t}", "public E poll() {\n E item;\n try {\n item = remove();\n } catch (NoSuchElementException e) {\n return null;\n }\n return item;\n }", "public T pop() throws EmptyQueueException, EmptyCollectionException;", "public T pop()\n\t{\n\t\treturn list.removeFirst();\n\t}", "public T poll() {\n if (size == 0) {\n return null;\n }\n\n // set returned value to queue[0]\n T value = (T) array[0];\n\n // decrease size - we are removing element\n size--;\n\n // move queue 1 place left\n System.arraycopy(array, 1, array, 0, size);\n\n // clear last element\n array[size] = null;\n\n return value;\n }", "private T pop(Node topNode)\n {\n if (isEmpty())\n {\n return null;\n }\n else // not empty\n {\n T result = (T) topNode.getData();\n first = topNode.getNextNode();\n return result;\n }\n }", "public E pull() throws InterruptedException {\n while (!isFree) {\n synchronized (this) {\n wait();\n }\n }\n\n synchronized (this) {\n if (queue != null && !queue.isEmpty()) {\n E element = queue.poll();\n isFree = true;\n notifyAll();\n return element;\n }\n }\n\n return null;\n }", "public T pop()\n {\n if (ll.getSize()==0){\n return null;\n }else {\n T temp = ll.getData(ll.getSize() - 1);\n ll.remove(ll.getSize() - 1);\n\n return temp;\n }\n }", "public final CMR pop()\n\t{\n\t\tif (cmr_queue_.isEmpty()) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tCMR \tcmr = (CMR) cmr_queue_.firstElement();\n\t\t\tcmr_queue_.removeElementAt(0);\n\t\t\treturn cmr;\n\t\t}\n\t}", "public CachedTask getLastCachedTask() {\n return cachedTasks.pop();\n }", "T poll(){\n if(isEmpty()){\n return null;\n }\n T temp = (T) queueArray[0];\n for(int i=0; i<tail-1;i++){\n queueArray[i] = queueArray[i+1];\n }\n tail--;\n return temp;\n }", "@Override\r\n\tpublic T pop() {\r\n\t\tT top = stack[topIndex];\r\n\t\tstack[topIndex] = null;\r\n\t\ttopIndex--;\r\n\t\treturn top;\r\n\t}", "public Optional<Task> getATask() {\n HttpHeaders headers = new HttpHeaders();\n headers.setAccept(List.of(MediaType.APPLICATION_JSON));\n\n ResponseEntity<Task> responseEntity = restTemplate.exchange(\n queueUrl + \"/getATask\",\n HttpMethod.GET,\n new HttpEntity<>(headers),\n Task.class);\n\n return Optional.ofNullable(responseEntity.getBody());\n }", "public T poll() {\n if (size == 0)\n return null;\n int s = --size;\n T result = (T) heap[0];\n T backup = (T) heap[s];\n heap[s] = null; // delete\n if (s != 0)\n siftDown(0, backup);\n return result;\n }", "public Person peek() throws EmptyQueueException{\n if (holdingQueue.isEmpty()){\n throw new EmptyQueueException(\"This queue is empty.\");\n }else{\n return holdingQueue.get(0);\n }\n }", "final Runnable pollTask() {\n Runnable t = locallyDeqTask();\n if (t == null && (t = scan()) != null)\n ++stealCount;\n return t;\n }", "public T pop() {\r\n T o = get(size() - 1);\r\n remove(size() - 1);\r\n return o;\r\n\t}", "@VisibleForTesting\n public TaskStack getTopStack() {\n if (DisplayContent.this.mTaskStackContainers.getChildCount() > 0) {\n return (TaskStack) DisplayContent.this.mTaskStackContainers.getChildAt(DisplayContent.this.mTaskStackContainers.getChildCount() - 1);\n }\n return null;\n }", "public T pop() {\n if(isEmpty()) {\n throw new NoSuchElementException(\"Stack is empty\");\n }\n return this.stackArray[top--];\n }", "public Object peek()\n {\n return queue.peekLast();\n }", "public T pop() throws EmptyStackException\r\n {\r\n if (isEmpty())\r\n throw new EmptyStackException();\r\n\r\n top--;\r\n T result = stack[top];\r\n stack[top] = null; \r\n\r\n return result;\r\n }", "public Task getTask() {\n Long __key = this.TaskId;\n if (task__resolvedKey == null || !task__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n TaskDao targetDao = daoSession.getTaskDao();\n Task taskNew = targetDao.load(__key);\n synchronized (this) {\n task = taskNew;\n \ttask__resolvedKey = __key;\n }\n }\n return task;\n }", "public T pop() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//remove top element from stack\n\t\t//and \"clear to let GC do its work\"\n\t\treturn elements.remove(elements.size() - 1);\n\t}", "public T poll() {\n if (this.size > 0) {\n T min = (T) pq[0];\n pq[0] = pq[this.size - 1];\n size--;\n percolateDown(0);\n return min;\n } else {\n return null;\n }\n }", "public Session pop() {\r\n\t\tint oldIndex = index;\r\n\t\tif (index >= 0) {\r\n\t\t\tindex--;\r\n\t\t\treturn stack[oldIndex];\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic E peek() {\r\n\t\tif (isEmpty())\r\n\t\t\treturn null;\r\n\t\treturn stack[t];\r\n\t}", "public T pop() throws NoSuchElementException\n\t{\n\t\tcheckEmpty();\n\t\treturn list.remove(0);\n\t}", "@Override\n public T pop() {\n if (!isEmpty()) {\n T data = backing[size - 1];\n backing[size - 1] = null;\n size--;\n return data;\n } else {\n throw new NoSuchElementException(\"The stack is empty\");\n }\n }", "@Override\n public T dequeue() {\n if (!isEmpty()) {\n return heap.remove();\n } else {\n throw new NoSuchElementException(\"Priority Queue is null\");\n }\n }", "public T peek() {\n if (this.size <= 0)\n return null;\n return (T) pq[0];\n }", "public PopResult<T> pop() throws RPLEmptyStackException {\n\t\tif (element == null) {\n\t\t\tthrow new RPLEmptyStackException();\n\t\t}\n\t\treturn new PopResult<T>(parent, element);\n\t}", "public Object pop() {\n if (top != null) {\n Object item = top.getOperand();\n\n top = top.next;\n return item;\n }\n\n System.out.println(\"Stack is empty\");\n return null;\n\n }", "public T pop() {\n return this.list[this.size-1];\n }", "public Object pop( )\n {\n Object item = null;\n\n try\n {\n if ( this.top == null)\n {\n throw new Exception( );\n }\n\n item = this.top.data;\n this.top = this.top.next;\n \n this.count--;\n }\n catch (Exception e)\n {\n System.out.println( \" Exception: attempt to pop an empty stack\" );\n }\n\n return item;\n }", "public T pop() {\r\n\r\n\t\tT top = peek(); // Throws exception if stack is empty.\r\n\t\t\r\n\t\t// Sets top of stack to next link. \r\n\t\ttopNode = topNode.getNext();\r\n\t\t\r\n\t\treturn top;\r\n\t\t\r\n\t}", "@Override\n\tpublic E pop() {\n\t\treturn null;\n\t}", "public int pop() {\n return queue.poll();\n }", "public Object pop()\r\n {\n assert !this.isEmpty();\r\n\t\t\r\n Node oldTop = this.top;\r\n this.top = oldTop.getNext();\r\n oldTop.setNext(null); // enable garbage collection\r\n return oldTop.getItem();\r\n }", "public int pop() {\n\t return q.poll();\n\t }", "@Override\n public E pop() {\n E result = peek();\n storage[ top-- ] = null;\n return result;\n\n }", "public Object peek() {\n if (top >= 0) {\n return stack[top];\n }\n else {\n return null;\n }\n }", "public T pop()\n {\n return pop(first);\n }", "protected Ticket completeTicket()\n\t{\n\t\tif (tickets.size() != 0)\n\t\t{\n\t\t\treturn tickets.pop();\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\r\n\tpublic E pop() {\n\t\treturn null;\r\n\t}", "public T pop() {\n\t\tT data = null;\n\t\tif (head == null)\n\t\t\treturn null;\n\n\t\tif (head.getNext() == null) {\n\t\t\tdata = head.getData();\n\t\t\thead = null;\n\t\t\treturn data;\n\t\t}\n\n\t\tNode<T> next = head.getNext();\n\t\tdata = head.getData();\n\t\thead = null;\n\t\thead = next;\n\t\treturn data;\n\t}", "public T pop() {\n \tT retVal = stack.get(stack.size() - 1); // get the value at the top of the stack\n \tstack.remove(stack.size() - 1); // remove the value at the top of the stack\n \treturn retVal;\n }", "public E peek(){\r\n if(isEmpty())\r\n return null;\r\n\r\n return queue[currentSize-1]; //return the object without removing it\r\n }", "public T peek() {\n\t if (size==0)\n\t return null;\n\t else return (T) pq[0];\n }", "public E poll() {\r\n\t\tif (isEmpty()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tE ret = (E) data.get(0);\r\n\t\tdata.remove(0);\r\n\t\treturn ret;\r\n\t}", "public Object pop() {\n\t\tif(this.isEmpty())\n throw new IllegalStateException(\"Stack is empty\");\n return items.remove(items.size() - 1);\n\t}", "public T pop() throws EmptyCollectionException;", "public Object dequeue()\n {\n return queue.removeFirst();\n }", "protected File getFreeTask() {\n for (File task : tasks) {\n boolean isFree = true;\n for (EvaluatorHandle handle : evaluations) {\n if (handle.getTask() == task) {\n isFree = false;\n break;\n }\n }\n if (isFree) {\n return task;\n }\n }\n return null;\n }", "public T pop()\n\t{\n\t\tif (head == null)\n\t\t\treturn null;\n\t\t\n\t\tT ret = head.data;\n\t\thead = head.link;\n\t\tsize--;\n\t\treturn ret;\n\t}", "public synchronized Object get() {\n try {\n Object obj = queue.take().getElement();\n\n // set next offset\n delayOffset = System.currentTimeMillis();\n\n return obj;\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "@InterfaceAudience.Private\n public synchronized Procedure popWaitingProcedure(final boolean popFront) {\n Procedure proc = popFront ? waitingProcedures.removeFirst() : waitingProcedures.removeLast();\n if (waitingProcedures.isEmpty()) {\n waitingProcedures = null;\n }\n return proc;\n }", "public int pop() {\n return q.poll();\n }", "public T pop() {\n if (this.top == null) {\n throw new EmptyStackException();\n }\n T data = this.top.data;\n this.top = this.top.below;\n return data;\n }", "@Override\r\n\tpublic T pop() throws StackUnderflowException {\r\n\t\tif (!isEmpty()) {\r\n\t\t\tT e = stack.get(size()-1);\r\n\t\t\tstack.remove(size()-1);\r\n\t\t\treturn e;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new StackUnderflowException();\r\n\t\t}\r\n\t}", "public T pop() throws EmptyStackException {\n if (top == null) {\n throw new EmptyStackException();\n }\n\n StackNode<T> removed = top;\n top = top.getNext();\n return removed.getData();\n }", "private Runnable pollSubmission() {\n StealingPool p = pool;\n while (p.hasQueuedSubmissions()) {\n Runnable t;\n if (tryActivate() && (t = p.pollSubmission()) != null)\n return t;\n }\n return null;\n }" ]
[ "0.7317431", "0.7126045", "0.70891726", "0.6843817", "0.6784334", "0.675555", "0.6742477", "0.660975", "0.65815246", "0.6566436", "0.6490766", "0.63804466", "0.6370252", "0.6360732", "0.6333304", "0.62854093", "0.6237267", "0.6231599", "0.62234765", "0.6154182", "0.6154182", "0.6154182", "0.6154182", "0.6154182", "0.6154182", "0.6154182", "0.6154182", "0.61514443", "0.61205536", "0.6119192", "0.6083903", "0.6081637", "0.606874", "0.606874", "0.606874", "0.6067914", "0.60530233", "0.6039154", "0.60294557", "0.60015947", "0.60005957", "0.5990805", "0.5983826", "0.59672695", "0.5959491", "0.59478474", "0.59466547", "0.5941543", "0.59408695", "0.59335166", "0.59269184", "0.5922325", "0.5921798", "0.59179574", "0.5913755", "0.5907588", "0.58983654", "0.5898117", "0.5893986", "0.5888173", "0.5879498", "0.58782583", "0.5876668", "0.58743715", "0.5873316", "0.58637714", "0.5862191", "0.58487207", "0.58477557", "0.58457845", "0.5839566", "0.5827099", "0.5826183", "0.582087", "0.5818548", "0.5815549", "0.58125013", "0.5811273", "0.5808134", "0.5806152", "0.57994974", "0.5798725", "0.5796084", "0.5794511", "0.57907104", "0.57860893", "0.577854", "0.5775191", "0.57697", "0.57671714", "0.5766819", "0.5764931", "0.5763418", "0.5744645", "0.5744079", "0.5744065", "0.573772", "0.57322896", "0.57269746", "0.5724012" ]
0.80099356
0
Specialized version of popTask to pop only if topmost element is the given task. Called only by current thread while active.
final boolean unpushTask(Runnable t) { Runnable[] q = queue; int mask = q.length - 1; int s = sp - 1; if (casSlotNull(q, s & mask, t)) { storeSp(s); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final Runnable popTask() {\n int s = sp;\n while (s != base) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int i = (s - 1) & mask;\n Runnable t = q[i];\n if (t == null || !casSlotNull(q, i, t))\n break;\n storeSp(s - 1);\n return t;\n }\n }\n return null;\n }", "public Runnable popTop() {\n int[] stamp = new int[1];\n int oldTop = top.get(stamp), newTop = oldTop + 1;\n int oldStamp = stamp[0], newStamp = oldStamp + 1;\n if (bottom <= oldTop) // empty\n return null;\n Runnable r = tasks[oldTop];\n if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp))\n return r;\n return null;\n }", "Runnable popBottom() {\n // is the queue empty?\n if (bottom == 0) // empty\n return null;\n bottom--;\n Runnable r = tasks[bottom];\n int[] stamp = new int[1];\n int oldTop = top.get(stamp), newTop = oldTop + 1;\n int oldStamp = stamp[0], newStamp = oldStamp + 1;\n // no conflict with thieves\n if (bottom > oldTop)\n return r;\n // possible conflict: try to pop it ourselves\n if (bottom == oldTop)\n if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp))\n return r;\n // queue is empty, reset bottom and top to 0\n bottom = 0;\n top.set(0, newStamp);\n return null;\n }", "public Serializable asyncPop() {//can move on to another task before it finishes.\n Serializable temp = null;\n boolean finished = false;\n while(!finished){\n if(taskQueue.isEmpty()){\n try {\n Thread.sleep(1000);//1 second\n } catch (InterruptedException ex) {\n Logger.getLogger(BasicMsgQ.class.getName()).log(Level.SEVERE, null, ex);\n }\n }else{\n temp = taskQueue.removeFirst();\n finished = true;\n } \n }\n return temp;\n }", "private Runnable getTask() {\r\n if (mType== Type.FIFO){\r\n return mTaskQueue.removeFirst();\r\n }else if (mType== Type.LIFO){\r\n return mTaskQueue.removeLast();\r\n }\r\n return null;\r\n }", "private T pop(Node topNode)\n {\n if (isEmpty())\n {\n return null;\n }\n else // not empty\n {\n T result = (T) topNode.getData();\n first = topNode.getNextNode();\n return result;\n }\n }", "public Task poll() \n\t{\n\t\tif(this.isEmpty())\n\t\t{\n\t\t\tSystem.out.println(\"Cannot remove from an empty list.\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tint parent = 1;\n\t\tint child = 2;\n\t\tTask newTask = heap[1];\n\t\tTask temp = heap[size--];\n\t\t\n\t\twhile(child <= size)\n\t\t{\n\t\t\tif(child < size && heap[child].getPriority() > heap[child + 1].getPriority())\n\t\t\t{\n\t\t\t\tchild++;\n\t\t\t}\n\t\t\tif(temp.getPriority() <= heap[child].getPriority())\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\theap[parent] = heap[child];\n\t\t\tparent = child;\n\t\t\tchild *= 2;\n\t\t\t\n\t\t}\n\t\t\n\t\theap[parent] = temp;\n\t\treturn newTask;\n\t}", "T pop();", "T pop();", "T pop();", "public Serializable pop() throws InterruptedException {\n Serializable temp = null;\n if(taskQueue.isEmpty()){\n waitForThread();//blocks for taskQueue.\n }\n temp = taskQueue.removeFirst();\n threadLimit++;\n \n return temp;\n }", "void remove(final Task task);", "final Runnable locallyDeqTask() {\n Runnable work = dispatchQueue.poll();\n if( work!=null ) {\n return work;\n }\n int b;\n while (sp != (b = base)) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int i = (q.length - 1) & b;\n Runnable t = q[i];\n if (t != null && casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n }\n }\n return dispatchQueue.getSourceQueue().poll();\n }", "private synchronized Task taskGet() {\n\t\treturn this.taskList.remove();\n\t}", "public T pop();", "public T pop();", "public T pop();", "public T pop();", "public T pop();", "public T pop();", "public T pop();", "public T pop();", "final Runnable peekTask() {\n Runnable[] q = queue;\n if (q == null)\n return null;\n int mask = q.length - 1;\n int i = base;\n return q[i & mask];\n }", "@Override\n public T pop(){\n\n if (arrayAsList.isEmpty()){\n throw new IllegalStateException(\"Stack is empty. Nothing to pop!\");\n }\n\n T tempElement = arrayAsList.get(stackPointer - 1);\n arrayAsList.remove(--stackPointer);\n\n return tempElement;\n }", "final Runnable deqTask() {\n Runnable t;\n Runnable[] q;\n int i;\n int b;\n if (sp != (b = base) &&\n (q = queue) != null && // must read q after b\n (t = q[i = (q.length - 1) & b]) != null &&\n casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n return null;\n }", "private void pop() {\r\n pop( false );\r\n }", "public void pop();", "public T pop() { //pop = remove the last element added to the array, in a stack last in, first out (in a queue pop and push from different ends)\n try {\n T getOut = (T) myCustomStack[numElements - 1]; //variable for element to remove (pop off) = last element (if you have 7 elements, the index # is 6)\n myCustomStack[numElements] = null; //remove element by making it null\n numElements--; //remove last element, decrease the numElements\n return getOut; //return popped number\n\n } catch (Exception exc) {\n System.out.println(\"Can't pop from empty stack!\");\n return null;\n }\n }", "@Override\r\n\tpublic T pop() {\r\n\t\tT top = stack[topIndex];\r\n\t\tstack[topIndex] = null;\r\n\t\ttopIndex--;\r\n\t\treturn top;\r\n\t}", "public void nextTask()\n {\n Task next = null;\n \n if (!pq.isEmpty()) next = pq.remove();\n \n if (next == null)\n {\n System.out.println(\"There are no tasks in the list.\");\n }\n else\n {\n //System.out.println(pq.peek());\n System.out.println(next.getDescription());\n }\n }", "@Override\n\tpublic T pop() {\n\t\tif(isEmpty()) {\n\t\t\tSystem.out.println(\"Stack is Empty\");\n\t\treturn null;}\n\t\ttop--;\t\t\t\t\t\t//top-- now before since we need index top-1\n\t\tT result = stack[top];\n\t\tstack[top] = null;\n\t\treturn result;\n\t\t\t\n\t}", "public T pop() throws EmptyCollectionException;", "public T pop() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//remove top element from stack\n\t\t//and \"clear to let GC do its work\"\n\t\treturn elements.remove(elements.size() - 1);\n\t}", "@Override\n\tpublic E pop() throws EmptyStackException {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException(\"Empty Stack\");\n\t\t}\n\t\tE element = arr[top];\n\t\tarr[top--] = null;\n\t\treturn element;\n\t}", "public E pop(){\n\t\tif(top == null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tE retval = top.element;\n\t\ttop = top.next;\n\t\t\n\t\treturn retval;\n\t}", "public void removeFromTaskList(Task task) {\n if (task != null)\n task.removeSafely();\n taskList.removeValue(task, true);\n }", "public void pop() {\n one.poll();\n \n }", "public T pop() {\n\t\tT value = null;\n\t\tif (!isEmpty()) {\n\t\t\ttop = top.next;\n\t\t\tvalue = top.value;\n\t\t}\n\t\treturn value; // returning popped value\n\t}", "void removeSubTask(AuctionTask task);", "int pop()\n\t{\n // Your code here\n if(top == -1){\n return -1;\n }\n int x = arr[top];\n top--;\n return x;\n\t}", "public void removeElement(DemoTask task) {\n\t\tdata.remove(task);\n\t}", "abstract void pop();", "@Override\r\n\tpublic E pop() {\r\n\t\tif (isEmpty())\r\n\t\t\treturn null;\r\n\t\tE answer = stack[t];\r\n\t\tstack[t] = null; // dereference to help garbage collection\r\n\t\tt--;\r\n\t\treturn answer;\r\n\t}", "public T pop() {\r\n if ( top == null )\r\n throw new IllegalStateException(\"Can't pop from an empty stack.\");\r\n T topItem = top.item; // The item that is being popped.\r\n top = top.next; // The previous second item is now on top.\r\n return topItem;\r\n }", "public void removeTask(Task task) {\n tasks.remove(task);\n }", "public GenericStack popStack(){\n if(isEmpty() == true)return null;\n GenericStack temp = top;\n // makes next item in list the tip\n top = top.next;\n return temp;\n }", "public Object pop();", "public TYPE pop();", "public E pop(){\r\n\t\tObject temp = peek();\r\n\t\t/**top points to the penultimate element*/\r\n\t\ttop--;\r\n\t\treturn (E)temp;\r\n\t}", "public T pop() {\r\n\t\tT ele = top.ele;\r\n\t\ttop = top.next;\r\n\t\tsize--;\r\n\t\t\r\n\t\treturn ele;\r\n\t}", "public T pop()\n {\n return pop(first);\n }", "public T pop() throws EmptyQueueException, EmptyCollectionException;", "@Override\n public E pop() {\n E result = peek();\n storage[ top-- ] = null;\n return result;\n\n }", "public Object pop()\r\n {\n assert !this.isEmpty();\r\n\t\t\r\n Node oldTop = this.top;\r\n this.top = oldTop.getNext();\r\n oldTop.setNext(null); // enable garbage collection\r\n return oldTop.getItem();\r\n }", "public int pop() {\n int size = queue.size();\n while (size > 2) {\n queue.offer(queue.poll());\n size--;\n }\n topElem = queue.peek();\n queue.offer(queue.poll());\n return queue.poll();\n }", "@VisibleForTesting\n public TaskStack getTopStack() {\n if (DisplayContent.this.mTaskStackContainers.getChildCount() > 0) {\n return (TaskStack) DisplayContent.this.mTaskStackContainers.getChildAt(DisplayContent.this.mTaskStackContainers.getChildCount() - 1);\n }\n return null;\n }", "public abstract Object pop();", "public T pop() {\n T top = peek();\n stack[topIndex] = null;\n topIndex--;\n return top;\n }", "private synchronized Task takeTask() {\n while (true) {\n Task task = null;\n if (runningActions < maxConcurrentActions) {\n task = runnableActions.poll();\n }\n if (task == null) {\n task = runnableTasks.poll();\n }\n\n if (task != null) {\n runningTasks++;\n if (task.isAction()) {\n runningActions++;\n }\n return task;\n }\n\n if (isExhausted()) {\n return null;\n }\n\n try {\n wait();\n } catch (InterruptedException e) {\n throw new AssertionError();\n }\n }\n }", "@Override\r\n\tpublic T pop() throws StackUnderflowException {\r\n\t\tif (!isEmpty()) {\r\n\t\t\tT e = stack.get(size()-1);\r\n\t\t\tstack.remove(size()-1);\r\n\t\t\treturn e;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new StackUnderflowException();\r\n\t\t}\r\n\t}", "public T pop() throws EmptyStackException\r\n {\r\n if (isEmpty())\r\n throw new EmptyStackException();\r\n\r\n top--;\r\n T result = stack[top];\r\n stack[top] = null; \r\n\r\n return result;\r\n }", "E pop() throws EmptyStackException;", "public int pop(){\n if (isEmpty()) throw new RuntimeException(\"Stack underflow\");\n int tmp=myarray[top];\n top--;\n return tmp;\n \n \n }", "@Override\r\n public T pop() {\r\n if (this.isEmpty()) {\r\n throw new ArrayIndexOutOfBoundsException();\r\n }\r\n final T top = (T) this.array[0];\r\n this.array[0] = this.array[--this.size];\r\n this.bubbleDown();\r\n return top;\r\n }", "public E pop();", "public E pop();", "public E pop();", "public E pop();", "public E pop();", "public T pop()\n\t{\n\t\treturn list.removeFirst();\n\t}", "@Override\n public T pop() {\n if (!isEmpty()) {\n T data = backing[size - 1];\n backing[size - 1] = null;\n size--;\n return data;\n } else {\n throw new NoSuchElementException(\"The stack is empty\");\n }\n }", "IPriorityQueue pop() throws EmptyPriorityQueueException;", "public void pop(){\n \n if(top==null) System.out.println(\"stack is empty\");\n else top=top.next;\n \t\n }", "public synchronized T pop() throws PoolException {\n try {\n\n T item = getStack().poll();\n if (item == null || !isValid(item)) {\n trace(\"pop: creating new item\");\n return doCreate();\n }\n inUse++;\n trace(\"pop: in use = \" + inUse + \", created = \" + totalCreated);\n return item;\n } catch (IndexOutOfBoundsException x) { // pool is empty\n return doCreate();\n } catch (NoSuchElementException x) { // pool is empty\n return doCreate();\n }\n }", "public int pop() {\n int res= q1.remove();\n if (!q1.isEmpty())\n top = q1.peek();\n return res;\n }", "public E blockingPop() throws InterruptedException\n {\n _lock.lock();\n try\n {\n //Wait for an item to be offered to the queue\n try\n {\n //This loop is necessary because it is possible to be awoken erroneously; however, empty will still\n //be false and so the thread will go back to sleep\n while(_empty)\n {\n _notEmptyCondition.await();\n }\n }\n //Propogate to a non-interrupted thread\n //The situation of multiple consumer threads is not currently used in cakehat\n catch(InterruptedException e)\n {\n _notEmptyCondition.signal();\n throw e;\n }\n \n //Retrieve and remove next element\n Iterator<TaggedElement<T, E>> iterator = _elements.iterator();\n TaggedElement<T, E> taggedElement = iterator.next();\n iterator.remove();\n _empty = !iterator.hasNext();\n \n //If the element was tagged, remove it from the set of elements with that tag\n if(taggedElement.getTag() != null)\n {\n _tagMap.get(taggedElement.getTag()).remove(taggedElement);\n }\n \n return taggedElement.getElement();\n }\n finally\n {\n _lock.unlock();\n }\n }", "public void pop() {\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\twhile (!queue.isEmpty())\n\t\t\tlist.add(queue.poll());\n\t\tfor (int i = 0; i < list.size() - 1; i++)\n\t\t\tqueue.add(list.get(i));\n\t}", "public T pop() {\n if(isEmpty()) {\n throw new NoSuchElementException(\"Stack is empty\");\n }\n return this.stackArray[top--];\n }", "@Override\r\n public T pop (){\r\n T elemento= (T) miLista.get(posicion-1);\r\n miLista.remove(posicion-1);\r\n posicion--;\r\n return elemento;\r\n }", "private synchronized BackStep pop() {\r\n\t\t\tBackStep bs;\r\n\t\t\tbs = stack[top];\r\n\t\t\tif (size == 1) {\r\n\t\t\t\ttop = -1;\r\n\t\t\t} else {\r\n\t\t\t\ttop = (top + capacity - 1) % capacity;\r\n\t\t\t}\r\n\t\t\tsize--;\r\n\t\t\treturn bs;\r\n\t\t}", "public Object pop( )\n {\n Object item = null;\n\n try\n {\n if ( this.top == null)\n {\n throw new Exception( );\n }\n\n item = this.top.data;\n this.top = this.top.next;\n \n this.count--;\n }\n catch (Exception e)\n {\n System.out.println( \" Exception: attempt to pop an empty stack\" );\n }\n\n return item;\n }", "public void pop()\r\n\t{\r\n\t\ttop--;\r\n\t\tstack[top] = null;\r\n\t}", "public T pop() {\r\n\t\t\r\n\t\tT numPila = this.num.remove(this.num.size()-1);\r\n\t\t\r\n\t\tfor (StackObserver<T> o : observers )\r\n\t\t\to.onPop(numPila);\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\treturn numPila;\r\n\t\t\r\n\t\t//return this.num.remove(this.num.size()-1);\r\n\t\t\r\n\t\t\r\n\t}", "public Object pop() {\n if (top != null) {\n Object item = top.getOperand();\n\n top = top.next;\n return item;\n }\n\n System.out.println(\"Stack is empty\");\n return null;\n\n }", "public void pop() {\n int size = q.size();\n for(int i = 1; i<size;i++){\n q.offer(q.poll());\n }\n q.poll();\n }", "public T pop() throws NoSuchElementException\n\t{\n\t\tcheckEmpty();\n\t\treturn list.remove(0);\n\t}", "public Object pop() {\n if (top >= 0) {\n Object currentObject = stack[top--];\n if (top > minStackSize) {\n decreaseStackSize(1);\n }\n return currentObject;\n }\n else {\n return null;\n }\n }", "public boolean stackPop() {\r\n\t\t if(stackEmpty())\r\n\t\t {\r\n\t\t\t return false;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t if(top == 0)\r\n\t\t {\r\n\t\t \ttop = -1;\r\n\t\t \tcount--;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t \tarray[top] = array[top-1];\r\n\t\t \ttop--;\r\n\t\t \tcount--;\r\n\t\t }\r\n\t\t\t return true;\r\n\t\t } \t\r\n\t }", "private Element popElement() {\r\n return ((Element)this.elements.remove(this.elements.size() - 1));\r\n }", "public Item pop() {\n\t\tif (N < arr.length/4)\n\t\t\tresize (arr.length/2);\n\t\tItem s = arr[--N];\n\t\tarr[N] = null;\n\t\treturn s;\n\t}", "T pop(){\n\tif(m.size() == 0){\n\t throw new NoSuchElementException();\n\t}\n\tT answer = m.remove(0);\n\treturn answer;\n }", "public T pop() throws EmptyStackException {\n if (top == null) {\n throw new EmptyStackException();\n }\n\n StackNode<T> removed = top;\n top = top.getNext();\n return removed.getData();\n }", "public int pop() {\n q1.remove();\n int res = top;\n if (!q1.isEmpty()) {\n top = q1.peek();\n }\n return res;\n }", "public void pop() {\n \n q1.poll();\n }", "private GameAction pull() {\n if (this.queue.size() > 0) {\n return this.queue.remove(0);\n } else {\n return null;\n }\n }", "E pop();", "E pop();", "E pop();", "public T pop() {\n\t\tT value = peek();\n\t\tstack.remove(value);\n\t\treturn value;\n\t}", "private final Object pop() {\r\n\t\treturn eval_stack.remove(eval_stack.size() - 1);\r\n\t}" ]
[ "0.71173847", "0.7037583", "0.64254594", "0.64050287", "0.6043106", "0.5881993", "0.5813133", "0.5789615", "0.5789615", "0.5789615", "0.5767138", "0.5710459", "0.5682223", "0.5679151", "0.5669882", "0.5669882", "0.5669882", "0.5669882", "0.5669882", "0.5669882", "0.5669882", "0.5669882", "0.5634172", "0.5626033", "0.5594656", "0.55679226", "0.54608804", "0.54511994", "0.5450123", "0.5429967", "0.542618", "0.54135525", "0.5406802", "0.5399257", "0.539741", "0.5387422", "0.5376883", "0.5374823", "0.53367424", "0.5323959", "0.53203106", "0.5314971", "0.53097636", "0.53017384", "0.53011173", "0.529839", "0.5270731", "0.52694875", "0.5257545", "0.52563673", "0.5250945", "0.52412814", "0.5236273", "0.52157956", "0.5205692", "0.5204224", "0.52027285", "0.52018553", "0.5197252", "0.51942706", "0.5185673", "0.5179954", "0.5157062", "0.515486", "0.5153438", "0.5153438", "0.5153438", "0.5153438", "0.5153438", "0.5149905", "0.5134625", "0.5122561", "0.51186854", "0.51180035", "0.51168513", "0.5115584", "0.5109243", "0.5107267", "0.5106957", "0.5106832", "0.51050466", "0.5104143", "0.51018715", "0.5097596", "0.50883895", "0.5079764", "0.5076184", "0.50705254", "0.50696206", "0.5066623", "0.50645494", "0.50601524", "0.5057316", "0.50567156", "0.505581", "0.5054447", "0.5054447", "0.5054447", "0.5052421", "0.5047084" ]
0.5809249
7
Returns next task or null if empty or contended
final Runnable peekTask() { Runnable[] q = queue; if (q == null) return null; int mask = q.length - 1; int i = base; return q[i & mask]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Task getNextTask(final String name) {\n return null;\n }", "public void nextTask()\n {\n Task next = null;\n \n if (!pq.isEmpty()) next = pq.remove();\n \n if (next == null)\n {\n System.out.println(\"There are no tasks in the list.\");\n }\n else\n {\n //System.out.println(pq.peek());\n System.out.println(next.getDescription());\n }\n }", "public Task getNextTask(final String pername) {\n for (int i = 0; i < size; i++) {\n if (taskarr[i].getassignedTo().equals(pername)) {\n if (taskarr[i].getStatus().equals(\"todo\")\n && taskarr[i].getImportant().equals(\"Important\")\n && taskarr[i].getUrgent().equals(\"Not Urgent\")) {\n return taskarr[i];\n }\n }\n }\n return null;\n }", "public Task getNext()\n {\n\treturn new Task(toDo.get(0));\n }", "public String getNextTask(String name){\n\t\tfor(int i =0;i<taskList.size();i++){\n\t\t\tif(name.equals(taskList.get(i).getName())){\n\t\t\t\tif(taskList.get(i).\n\t\t\t\t\tgetImportant()==true && taskList.get(i).\n\t\t\t\t\tgetUrgent()==false && taskList.get(i).\n\t\t\t\t\tgetStatus().equals(\"todo\")){\n\t\t\t\t\treturn taskList.get(i).getPrint();\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t\n\t\t}\n\t\t//System.out.println(\"This is end: \");\n\t\treturn \"null\";\n\t}", "private DispatchTask next()\n {\n synchronized (m_lock)\n {\n while (null == m_runnable)\n {\n if (m_released)\n {\n return null;\n }\n\n try\n {\n m_lock.wait();\n } catch (InterruptedException e)\n {\n // Not needed\n }\n }\n\n return m_runnable;\n }\n }", "private Runnable getTask() {\r\n if (mType== Type.FIFO){\r\n return mTaskQueue.removeFirst();\r\n }else if (mType== Type.LIFO){\r\n return mTaskQueue.removeLast();\r\n }\r\n return null;\r\n }", "final Runnable popTask() {\n int s = sp;\n while (s != base) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int i = (s - 1) & mask;\n Runnable t = q[i];\n if (t == null || !casSlotNull(q, i, t))\n break;\n storeSp(s - 1);\n return t;\n }\n }\n return null;\n }", "private Task getTask(Integer identifier) {\n Iterator<Task> iterator = tasks.iterator();\n while (iterator.hasNext()) {\n Task nextTask = iterator.next();\n if (nextTask.getIdentifier().equals(identifier)) {\n return nextTask;\n }\n }\n\n return null;\n }", "public Task task()\n {\n return _link.first;\n }", "final Runnable deqTask() {\n Runnable t;\n Runnable[] q;\n int i;\n int b;\n if (sp != (b = base) &&\n (q = queue) != null && // must read q after b\n (t = q[i = (q.length - 1) & b]) != null &&\n casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n return null;\n }", "public ServiceSubTask getNextOpenSubTask() {\n\t\tServiceSubTask openTask = null;\n\t\tfor (ServiceSubTask subTask : getSubTasks().values()) {\n\t\t\tif (subTask.getStatus().equals(ServiceSubTaskStatus.WAITING)\n\t\t\t\t\t&& (openTask == null || subTask.getPosition() < openTask.getPosition()))\n\t\t\t\topenTask = subTask;\n\t\t\telse if (subTask.getStatus().equals(ServiceSubTaskStatus.OPEN))\n\t\t\t\treturn subTask;\n\t\t}\n\t\treturn openTask;\n\t}", "public NodeT getNext() {\n String nextItemKey = queue.poll();\n if (nextItemKey == null) {\n return null;\n }\n return nodeTable.get(nextItemKey);\n }", "public TaskInfo getNextFrameTask(TaskInfo ppTaskInfo) {\n\t\tTaskInfo pNextTask = m_pFrameList;\r\n\t\tif (pNextTask != null && pNextTask.time.next <= m_clock.getFrame()) {\r\n\t\t\tm_pFrameList = pNextTask.pNext;\r\n\t\t\t// pNextTask.pNext = null;\r\n\t\t\tppTaskInfo = pNextTask;\r\n\t\t\treturn ppTaskInfo;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "protected File getFreeTask() {\n for (File task : tasks) {\n boolean isFree = true;\n for (EvaluatorHandle handle : evaluations) {\n if (handle.getTask() == task) {\n isFree = false;\n break;\n }\n }\n if (isFree) {\n return task;\n }\n }\n return null;\n }", "public final String next() {\n if (this.task_set == null)\n throw new IllegalStateException(\"must initialize the scheduler before using it\");\n\n String next = scheduler_next();\n return next;\n }", "public Task[] getNextTask(final String pername, final Integer coutas) {\n Task[] task1 = new Task[coutas];\n int size1 = 0;\n for (int i = 0; i < size; i++) {\n if (taskarr[i].getassignedTo().equals(pername)) {\n if (taskarr[i].getStatus().equals(\"todo\")\n && taskarr[i].getImportant().equals(\"Important\")\n && taskarr[i].getUrgent().equals(\"Not Urgent\")) {\n task1[size1] = taskarr[i];\n size1++;\n if (size1 == coutas) {\n break;\n }\n }\n }\n }\n return task1;\n }", "public static Task getCurrentTask(Fiber paramFiber)\n/* 194 */ throws Pausable { return null; }", "private synchronized Task takeTask() {\n while (true) {\n Task task = null;\n if (runningActions < maxConcurrentActions) {\n task = runnableActions.poll();\n }\n if (task == null) {\n task = runnableTasks.poll();\n }\n\n if (task != null) {\n runningTasks++;\n if (task.isAction()) {\n runningActions++;\n }\n return task;\n }\n\n if (isExhausted()) {\n return null;\n }\n\n try {\n wait();\n } catch (InterruptedException e) {\n throw new AssertionError();\n }\n }\n }", "@Override\r\n\tpublic Statement getNextStatement(Task task) {\r\n\t\tif ((boolean)(this.getExpression().evaluate(task)))\r\n\t\t\treturn body;\r\n\t\telse\r\n\t\t\treturn nextStatement;\r\n\t}", "public TaskInfo getNextTimeTask(TaskInfo ppTaskInfo) {\n\t\tTaskInfo pNextTask = m_pTaskList;\r\n\t\tif (pNextTask != null && pNextTask.time.next <= m_clock.getFrameEnd()) {\r\n\t\t\tm_pTaskList = pNextTask.pNext;\r\n\t\t\t// pNextTask.pNext = null;\r\n\t\t\tppTaskInfo = pNextTask;\r\n\t\t\treturn ppTaskInfo;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "private myPoint getNextRoute(){\n\t\ttry {\n\t\t\treturn this.Route.take();\n\t\t} catch (InterruptedException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "final Runnable locallyDeqTask() {\n Runnable work = dispatchQueue.poll();\n if( work!=null ) {\n return work;\n }\n int b;\n while (sp != (b = base)) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int i = (q.length - 1) & b;\n Runnable t = q[i];\n if (t != null && casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n }\n }\n return dispatchQueue.getSourceQueue().poll();\n }", "public Task getTaskById(int id) {\n\t\t\n\t\tfor(Task task: tasks) {\n\t\t\tif(task.getId()==id)\n\t\t\t\treturn task;\n\t\t}\n\t\t\t\n\t\tthrow new NoSuchElementException(\"Invalid Id:\"+id);\n\t}", "public T next()\n {\n // TODO: implement this method\n return null;\n }", "public Cerradura next() {\n\t\tfor (Cerradura cerradura : cerraduras) {\n\t\t\tif (!cerradura.isProcess()) {\n\t\t\t\treturn cerradura;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "protected abstract String scheduler_next();", "@Override\n public Optional<Task> getTaskById(UUID id)\n {\n return null;\n }", "@Override\r\n public CustomProcess peekBest() {\r\n if (data[0] == null || isEmpty()) {\r\n throw new NoSuchElementException(\"queue is empty\");\r\n }\r\n return data[0];\r\n }", "private Task getFirstTestTask() {\n Task task = new Task();\n task.setName(\"Buy Milk\");\n task.setCalendarDateTime(TODAY);\n task.addTag(\"personal\");\n task.setCompleted();\n return task;\n }", "public Task getTask(int index) {\n return taskList.get(index - 1);\n }", "public Optional<PickingRequest> getTask() {\n return Optional.ofNullable(task);\n }", "public E getNext() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index >= this.size() - 1)\n\t\t\t\tindex = -1;\n\t\t\treturn this.get(++index);\n\t\t}\n\t\treturn null;\n\t}", "public Waypoint getNextWaypoint() {\n if (waypoints.isEmpty()) {\n return null;\n } else {\n Waypoint waypoint = waypoints.remove(0);\n return waypoint;\n }\n }", "private static Task take(String serial) {\n int len = TASKS.size();\n for (int i = 0; i < len; i++) {\n if (serial.equals(TASKS.get(i).serial)) {\n return TASKS.remove(i);\n }\n }\n return null;\n }", "public Task getTask(Integer tid);", "protected ThreadState pickNextThread() //Returns the ThreadState of the head of the PriorityQueue or null if the queue is empty\n\t\t{\n\t\t\tLib.assertTrue(Machine.interrupt().disabled());\n KThread thread = waitQueue.peek();\n if(thread == null)\n\t\t\t{\n return null;\n }\n else\n\t\t\t{\n return getThreadState(thread);\n }\n\t\t}", "@Nullable\n public Task getTask(int id) {\n Task output = null;\n\n // get a readable instance of the database\n SQLiteDatabase db = getReadableDatabase();\n if (db == null) return null;\n\n // run the query to get the matching task\n Cursor rawTask = db.rawQuery(\"SELECT * FROM Tasks WHERE id = ? ORDER BY due_date ASC;\", new String[]{String.valueOf(id)});\n\n // move the cursor to the first result, if one exists\n if (rawTask.moveToFirst()) {\n // convert the cursor to a task and assign it to our output\n output = new Task(rawTask);\n }\n\n // we're done with the cursor and database, so we can close them here\n rawTask.close();\n db.close();\n\n // return the (possibly null) output\n return output;\n }", "public T pollFirst() {\n if (!isEmpty()) {\n T polled = (T) list[startIndex];\n startIndex++;\n if (isEmpty()) {\n startIndex = 0;\n nextindex = 0;\n }\n return polled;\n }\n return null;\n }", "@Override\n\t\tpublic T next() {\n\t\t\treturn null;\n\t\t}", "public final UnitOfWork getNext() throws IOException {\n UnitOfWork result = null;\n\n synchronized (addedFrontWork) {\n if (addedFrontWork.size() > 0) {\n result = addedFrontWork.removeFirst();\n }\n }\n\n if (result == null) {\n result = doGetNext();\n\n if (result == null) {\n synchronized (addedBackWork) {\n if (addedBackWork.size() > 0) {\n result = addedBackWork.removeFirst();\n }\n }\n }\n }\n\n if (result != null && result.getWorkStatus() == WorkStatus.ALL_DONE) {\n sawAllDone.set(true);\n }\n\n return result;\n }", "public void postponeNext()\n {\n\tif (toDo.size() > 0)\n\t {\n\t\tTask t = toDo.get(0);\n\t\ttoDo.remove(0);\n\t\ttoDo.add(t);\n\t }\n }", "public Optional<Task> getATask() {\n HttpHeaders headers = new HttpHeaders();\n headers.setAccept(List.of(MediaType.APPLICATION_JSON));\n\n ResponseEntity<Task> responseEntity = restTemplate.exchange(\n queueUrl + \"/getATask\",\n HttpMethod.GET,\n new HttpEntity<>(headers),\n Task.class);\n\n return Optional.ofNullable(responseEntity.getBody());\n }", "public T getNext(T element);", "public T getNextItem();", "public T getNextElement();", "public Task getTask(int index)\n {\n return tasks.get(index);\n }", "@Override\n\tpublic Object next() {\n\t\treturn null;\n\t}", "private ISuspendableSchedulableProcess currentStep() {\n if (!processQ_NonInterruptable.isEmpty()) {\r\n return processQ_NonInterruptable.peek();\r\n } else {\r\n return processQ_Interruptable.peek();\r\n }\r\n }", "public Player nextMove() {\n\t\treturn null;\n\t\t\n\t}", "public Optional<QueuedEvent> getNextEvent() {\n if (events.size() == 0) {\n return Optional.empty();\n }\n QueuedEvent nextEvent = events.get(0);\n for (QueuedEvent e : this.events) {\n if (e.getMsLeft() < nextEvent.getMsLeft()) {\n nextEvent = e;\n }\n }\n return Optional.of(nextEvent);\n }", "public int get_next(boolean optimized) {\n\t\tint id = future_moves.get(0).get(0);\n\t\tfuture_moves.remove(0);\n\t\treturn id;\n\t\t\n\t}", "@Nonnull\n public Optional<ENTITY> peekNext()\n {\n return hasNext() ? Optional.of(items.get(index + 1)) : Optional.empty();\n }", "@Override\n public T next() {\n T n = null;\n if (hasNext()) {\n // Give it to them.\n n = next;\n next = null;\n // Step forward.\n it = it.next;\n stop -= 1;\n } else {\n // Not there!!\n throw new NoSuchElementException();\n }\n return n;\n }", "private Student getNextWaitingStudent() {\n if (waitingStudents.size() < 1) return null;\n System.out.println(\"TA: TA asking a sitting student to come in.\");\n Student s = waitingStudents.remove(0);\n // Notify the student that he/she can come in\n s.notifyWaitingDone();\n return s;\n }", "protected Tuple fetchNext() throws NoSuchElementException, TransactionAbortedException, DbException {\n\t\t// some code goes here\n\t\tTuple ret;\n\t\twhile (childOperator.hasNext()) {\n\t\t\tret = childOperator.next();\n\t\t\tif (pred.filter(ret))\n\t\t\t\treturn ret;\n\t\t}\n\t\treturn null;\n\t}", "protected ThreadState pickNextThread() {\n Lib.assertTrue(Machine.interrupt().disabled());\n if (threadStates.isEmpty())\n return null;\n\n return threadStates.last();\n }", "private Task taskAt(int p_index)\n {\n return (Task)m_taskVector.elementAt(p_index);\n }", "public Object getNextDataFor(DataFlowID inFlowID) throws InterruptedException {\r\n BlockingQueue<Object> queue = mFlowData.get(inFlowID);\r\n return queue == null\r\n ? null\r\n : queue.take();\r\n }", "protected Ticket checkNextCompletedTicket()\n\t{\n\t\treturn tickets.peek();\n\t}", "public Task getTask(String stateName) throws ProcessManagerException {\r\n Task[] tasks = getTasks();\r\n for (int i = 0; i < tasks.length; i++) {\r\n if (tasks[i].getState().getName().equals(stateName)) {\r\n return tasks[i];\r\n }\r\n }\r\n return null;\r\n }", "Callable<E> getTask();", "protected T nextUnvisited() {\r\n\t\tfor (T node: getNodes()) {\r\n\t\t\tif (!visited.contains(node)) {\r\n\t\t\t\treturn node;\r\n\t\t\t}\r\n\t\t} \r\n\t\t\treturn null;\r\n\t}", "public SMTraffic getNext(String nextstate){\n TaskState taskstate = getTaskstates().get(currentrealm + \"_\" + nextstate);\n if (taskstate != null){\n return new SMTraffic(0l, 0l, 0, taskstate.getCallstate(), this.getClass(),\n new VirnaPayload()\n .setObjectType(nextstate)\n .setObject(this)\n .setString(taskstate.getStatecmd())\n );\n }\n return null;\n }", "public boolean getNext();", "final Runnable pollTask() {\n Runnable t = locallyDeqTask();\n if (t == null && (t = scan()) != null)\n ++stealCount;\n return t;\n }", "T peek(){\n if(isEmpty()){\n return null;\n }\n return (T)queueArray[0];\n }", "public Task getTask(String analysis) {\n\t\tfor (int i = 0; i < tasks.size(); i++) {\n\t\t\tif (tasks.get(i).getAnalysis().toString().equals(analysis))\n\t\t\t\treturn tasks.get(i);\n\t\t}\n\t\treturn null;\n\t}", "T next();", "public Runnable popTop() {\n int[] stamp = new int[1];\n int oldTop = top.get(stamp), newTop = oldTop + 1;\n int oldStamp = stamp[0], newStamp = oldStamp + 1;\n if (bottom <= oldTop) // empty\n return null;\n Runnable r = tasks[oldTop];\n if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp))\n return r;\n return null;\n }", "private @Nullable\n Future<FeedType> loadNext(final AtomicReference<OptionType<URI>> next_ref) {\n final OptionType<URI> next_opt = next_ref.get();\n if (next_opt.isSome()) {\n final Some<URI> next_some = (Some<URI>) next_opt;\n final URI next = next_some.get();\n\n final Pair<ListenableFuture<FeedType>, URI> in_loading = this.loading.get();\n if (in_loading == null) {\n LOG.debug(\"no feed currently loading; loading next feed: {}\", next);\n return this.loadNextActual(next);\n }\n\n final URI loading_uri = in_loading.getRight();\n if (!loading_uri.equals(next)) {\n LOG.debug(\"different feed currently loading; loading next feed: {}\", next);\n return this.loadNextActual(next);\n }\n\n LOG.debug(\"already loading next feed, not loading again: {}\", next);\n }\n\n return null;\n }", "TaskNode getNode(Task task);", "Object getNextElement() throws NoSuchElementException;", "public process get_first() {\n\t\treturn queue.getFirst();\n\t}", "public Processo next() {\n Node temp = first;\n if (first == null) {\n last = null;\n }\n return temp.processo;\n }", "public Serializable asyncPop() {//can move on to another task before it finishes.\n Serializable temp = null;\n boolean finished = false;\n while(!finished){\n if(taskQueue.isEmpty()){\n try {\n Thread.sleep(1000);//1 second\n } catch (InterruptedException ex) {\n Logger.getLogger(BasicMsgQ.class.getName()).log(Level.SEVERE, null, ex);\n }\n }else{\n temp = taskQueue.removeFirst();\n finished = true;\n } \n }\n return temp;\n }", "public T caseTask(Task object) {\n\t\treturn null;\n\t}", "String getNext();", "String getNext();", "public Action getNextAction() {\n if (actionQueue.isEmpty()) {\n return new Action(this.getEntityType(), this.getId(), \"pause\", this.getX(), this.getY(), this.getDirection());\n } else {\n Action nextAction = actionQueue.remove(0);\n logger.debug(this.getName() + \"'s next action: \" + nextAction.toString());\n\n return nextAction;\n }\n }", "public boolean executeNext();", "public Task get(int index){\n return tasks.get(index);\n }", "@Override\n public Integer next() {\n return query.poll();\n }", "Optional<ZonedDateTime> nextExecution(final ZonedDateTime date);", "public int findNext(Resource resource);", "public void a() {\n NamedRunnable active;\n synchronized (this.mTasks) {\n if (!this.mTasks.isEmpty()) {\n this.mActive = this.mTasks.remove(0);\n } else {\n this.mActive = null;\n com.alipay.mobile.common.task.Log.v(TAG, \"mTasks is empty.\");\n }\n active = this.mActive;\n }\n if (active != null) {\n com.alipay.mobile.common.task.Log.d(TAG, \"StandardPipeline.scheduleNext()\");\n if (this.a != null) {\n this.a.execute(active);\n return;\n }\n throw new RuntimeException(\"The StandardPipeline's Executor is null.\");\n }\n com.alipay.mobile.common.task.Log.d(TAG, \"StandardPipeline.scheduleNext(mTasks is empty)\");\n }", "public Question next() {\n\t\tif (this.questions.size() == this.iter) {\n\t\t\treturn null;\n\t\t}\n\t\tQuestion q = this.questions.get(this.iter);\n\t\tthis.iter++;\n\t\treturn q;\n\t}", "public SMTraffic goNext(String nextstate){\n \n \n String nstate = currentrealm + \"_\" + nextstate;\n setCurrent_taskstate(getTaskstates().get(nstate));\n \n if (getCurrent_taskstate() != null){\n return new SMTraffic(0l, 0l, 0, getCurrent_taskstate().getCallstate(), this.getClass(),\n new VirnaPayload()\n .setObject(this)\n .setString(getCurrent_taskstate().getStatecmd())\n );\n }\n return null;\n }", "public C getNext();", "public ListNode<T> getNext();", "public Node findInOrderSuccessor() {\n\n return null;\n }", "public static int getLatestTaskId() {\n\n int id = 0;\n try {\n List<Task> list = Task.listAll(Task.class);\n int size = list.size();\n Task task = list.get(size - 1);\n id = task.getTaskId();\n\n } catch (Exception e) {\n id=0;\n }\n return id;\n\n }", "private void scheduleNext() {\n lock.lock();\n try {\n active = tasks.poll();\n if (active != null) {\n executor.execute(active);\n terminating.signalAll();\n } else {\n //As soon as a SerialExecutor is empty, we remove it from the executors map.\n if (lock.isHeldByCurrentThread() && isEmpty() && this == serialExecutorMap.get(identifier)) {\n serialExecutorMap.remove(identifier);\n terminating.signalAll();\n if (state == State.SHUTDOWN && serialExecutorMap.isEmpty()) {\n executor.shutdown();\n }\n }\n }\n } finally {\n lock.unlock();\n }\n }", "public HIR\n getNextExecutableNode();", "private com.tvos.downloadmanager.download.IDownloadTask getTaskById(int r6) {\n /*\n r5 = this;\n r4 = r5.tasksLock;\n monitor-enter(r4);\n r3 = r5.tasks;\t Catch:{ all -> 0x0027 }\n if (r3 == 0) goto L_0x0010;\n L_0x0007:\n r0 = 0;\n L_0x0008:\n r3 = r5.tasks;\t Catch:{ all -> 0x0027 }\n r3 = r3.size();\t Catch:{ all -> 0x0027 }\n if (r0 < r3) goto L_0x0013;\n L_0x0010:\n monitor-exit(r4);\t Catch:{ all -> 0x0027 }\n r2 = 0;\n L_0x0012:\n return r2;\n L_0x0013:\n r3 = r5.tasks;\t Catch:{ all -> 0x0027 }\n r2 = r3.get(r0);\t Catch:{ all -> 0x0027 }\n r2 = (com.tvos.downloadmanager.download.IDownloadTask) r2;\t Catch:{ all -> 0x0027 }\n r1 = r2.getCurrentDownloadParam();\t Catch:{ all -> 0x0027 }\n r3 = r1.getId();\t Catch:{ all -> 0x0027 }\n if (r3 != r6) goto L_0x002a;\n L_0x0025:\n monitor-exit(r4);\t Catch:{ all -> 0x0027 }\n goto L_0x0012;\n L_0x0027:\n r3 = move-exception;\n monitor-exit(r4);\t Catch:{ all -> 0x0027 }\n throw r3;\n L_0x002a:\n r0 = r0 + 1;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tvos.downloadmanager.download.Download.getTaskById(int):com.tvos.downloadmanager.download.IDownloadTask\");\n }", "public Task getTask(int i) {\n return this.tasks.get(i);\n }", "WorkingTask getWorkingTask();", "public Task done(String numString) throws DukeException {\n try {\n int num = Integer.parseInt(numString);\n return tasks.set(num - 1, tasks.get(num - 1).completeTask());\n } catch (IndexOutOfBoundsException e) {\n throw new DukeException(\"The task does not exist!\");\n } catch (NumberFormatException e) {\n throw new DukeException(\"Please key in an index!\");\n }\n }", "public T next();", "public T next();" ]
[ "0.7301692", "0.71072686", "0.71018744", "0.7044197", "0.68663704", "0.66982996", "0.65593994", "0.6498398", "0.64950395", "0.6467371", "0.6375983", "0.6313913", "0.6176635", "0.61641777", "0.61328685", "0.60844", "0.6060572", "0.6047204", "0.5935428", "0.5876057", "0.5873308", "0.5831998", "0.58295083", "0.5786354", "0.5782319", "0.5774449", "0.5772491", "0.576806", "0.57527715", "0.57399523", "0.5718938", "0.57139087", "0.57120615", "0.5669712", "0.56665576", "0.56605756", "0.5655641", "0.56542283", "0.565143", "0.5638635", "0.56325155", "0.55894905", "0.55721223", "0.5555705", "0.5546995", "0.55394566", "0.5501624", "0.5499896", "0.5498261", "0.5489059", "0.54858166", "0.5485368", "0.5481516", "0.5466434", "0.54638755", "0.5456221", "0.5453568", "0.5430887", "0.54291105", "0.542341", "0.54175085", "0.54037666", "0.540247", "0.53927976", "0.53901225", "0.538072", "0.5374616", "0.5372728", "0.5369242", "0.53574586", "0.53401244", "0.5329007", "0.5321747", "0.53203833", "0.53192216", "0.5317176", "0.53101987", "0.53033453", "0.53033453", "0.52989334", "0.5297924", "0.5295398", "0.5285662", "0.5284883", "0.52742517", "0.52675056", "0.5256881", "0.5256879", "0.5252678", "0.52451384", "0.5236648", "0.5231779", "0.52263474", "0.5215899", "0.5213031", "0.52125204", "0.5210522", "0.5209007", "0.5196939", "0.5196939" ]
0.66119444
6
Doubles queue array size. Transfers elements by emulating steals (deqs) from old array and placing, oldest first, into new array.
private void growQueue() { Runnable[] oldQ = queue; int oldSize = oldQ.length; int newSize = oldSize << 1; if (newSize > MAXIMUM_QUEUE_CAPACITY) throw new RejectedExecutionException("Queue capacity exceeded"); Runnable[] newQ = queue = new Runnable[newSize]; int b = base; int bf = b + oldSize; int oldMask = oldSize - 1; int newMask = newSize - 1; do { int oldIndex = b & oldMask; Runnable t = oldQ[oldIndex]; if (t != null && !casSlotNull(oldQ, oldIndex, t)) t = null; setSlot(newQ, b & newMask, t); } while (++b != bf); pool.signalWork(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void increaseSize() {\n Estimate[] newQueue = new Estimate[queue.length * 2];\n\n for (int i = 0; i < queue.length; i++) {\n newQueue[i] = queue[i];\n }\n\n queue = newQueue;\n }", "private void queueResize() {\n queue = Arrays.copyOf(queue, queue.length + 1);\n }", "private void resize() {\n Object[] newQueue = new Object[(int) (queue.length * 1.75)];\n System.arraycopy(queue, startPos, newQueue, 0, queue.length - startPos);\n\n currentPos = queue.length - startPos;\n startPos = 0;\n queue = newQueue;\n\n }", "public void fixArray(){\n if (size == 0 || queue.length < 1){\n return;\n }\n E[] newer = ((E[])new Comparable[queue.length]);\n\n int x = 0;\n for(Object cur : queue){\n if (cur != null){\n newer[x++] = (E)cur;\n }\n }\n\n this.queue = newer;\n this.size = x;\n\n }", "private void widen() {\n E[] newDequeue = (E[]) new Object[dequeue.length * 2];\n copyToBeginning(newDequeue);\n tail = size - 1;\n head = 0;\n dequeue = newDequeue;\n }", "@SuppressWarnings(\"unchecked\")\n private void upSize()\n {\n T[] newArray = (T[]) new Object [theArray.length * 2];\n for (int i =0; i < theArray.length; i++){\n newArray[i] = theArray[i];\n }\n theArray = newArray;\n }", "public void resize()\r\n\t{\r\n\t\tif(nItems >= arraySize/2)\t\t\t\t\t\t\t\t\t\t\t\t//If array is half full, the array becomes twice as large.\r\n\t\t{\t\t\t\r\n\t\t\tItem[] tempArray = (Item[]) new Object[2*arraySize];\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < nItems; i++)\r\n\t\t\t{\r\n\t\t\t\ttempArray[i] = q[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tq = tempArray;\t\t\t\t\t\t\t\t\t\t\t\t//Re-initialization of q array.\r\n\t\t\tarraySize = 2*arraySize;\t\t\t\t\t\t\t\t\t\t\t//Array size is doubled.\r\n\t\t}\r\n\t\telse if(nItems <= arraySize/4)\t\t\t\t\t\t\t\t\t\t\t//If array is a quarter full, the array size is halved.\r\n\t\t{\r\n\t\t\tItem[] tempArray = (Item[]) new Object[arraySize/2];\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < nItems; i++)\r\n\t\t\t{\r\n\t\t\t\ttempArray[i] = q[i];\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tq = tempArray;\t\t\t\t\t\t\t\t\t\t\t\t//Re-initialization of q array.\r\n\t\t\tarraySize = arraySize/2;\t\t\t\t\t\t\t\t\t\t\t//Array size is halved.\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn;\r\n\t}", "private void grow() {\n int oldCapacity = heap.length;\n // Double size if small; else grow by 50%\n int newCapacity = oldCapacity + ((oldCapacity < 64) ?\n (oldCapacity + 2) :\n (oldCapacity >> 1));\n Object[] newQueue = new Object[newCapacity];\n for (int i = 0; i < heap.length; i++) {\n newQueue[i] = heap[i];\n }\n heap = newQueue;\n }", "private void growQueue() {\n int newSize = (int)(QUEUE.length * 1.5f);\n \n Logger.log(\"INFO\", \"Queue is full, growing to new size: \" + Integer.toString(newSize));\n \n Object[] newQueue = new Object[newSize];\n lockQueue();\n copyQueue(newQueue);\n unlockQueue();\n }", "private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }", "private void doubleArray()\n\t{\n\t\tT[] oldList = list;\n\t\tint oldSize = oldList.length;\n\t\t\n\t\tlist = (T[]) new Object[2 * oldSize];\n\t\t\n\t\t// copy entries from old array to new, bigger array\n\t\tfor (int index = 0; index < oldSize; index++)\n\t\t\tlist[index] = oldList[index];\n\t}", "synchronized protected void enlargeArrays() {\n \t\tenlargeArrays(5);\n \t}", "private void grow() {\n int growSize = size + (size<<1);\n array = Arrays.copyOf(array, growSize);\n }", "public void doubleSize()\r\n\t{\r\n \t\tint newSize = Stack.length * 2;\r\n\t Stack = Arrays.copyOf(Stack, newSize);\r\n\t}", "private void grow() {\n T[] arr_temp = (T[]) new Object[arr.length*2];\n for (int i=0; i<arr.length; i++){\n arr_temp[i] = arr[i];\n }\n arr = arr_temp;\n }", "private void reallocateDoubleCapacity() {\n\t\tObject oldElements[] = elements;\n\t\tcapacity *= reallocateFactor;\n\t\tsize = 0;\n\t\telements = new Object[capacity];\n\n\t\tfor (Object object : oldElements) {\n\t\t\tthis.add(object);\n\t\t}\n\t}", "void resize() {\n Comparable[] temp = new Comparable[size * 2];\n for (int i = 0; i < pq.length; i++) {\n temp[i] = pq[i];\n }\n pq = temp;\n }", "private void doubleSize() {\n\t\tint[] arr2 = new int[2 * arr.length];\n\t\tfor (int i = 0; i < arr.length; ++i) {\n\t\t\tarr2[i] = arr[i];\n\t\t}\n\t\tarr = arr2;\n\t}", "private void increaseSize() {\r\n\t\tE[] biggerE = (E[]) new Object[this.capacity * 2];\r\n\t\tdouble[] biggerC = new double[this.capacity * 2];\r\n\t\tfor (int i = 0; i < this.size; i++) {\r\n\t\t\tbiggerE[i] = this.objectHeap[i];\r\n\t\t\tbiggerC[i] = this.costHeap[i];\r\n\t\t}\r\n\t\tthis.costHeap = biggerC;\r\n\t\tthis.objectHeap = biggerE;\r\n\t\tthis.capacity = this.capacity * 2;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void growArray() {\n\t\tObject[] newList = new Object[size * 2];\n\t\tfor (int i = 0; i < size(); i++) {\n\t\t\tnewList[i] = get(i);\n\t\t}\n\t\tlist = (E[]) newList;\n\t\tsize *= 2;\n\t}", "public void reSize() {\n int newSize = arr.length * 2;\n arr = Arrays.copyOf(arr, newSize);\n }", "private void resize(int newSize){\n Item[] temp = (Item[]) new Object[newSize]; //newsize\n for(int i=0; i<itemCount; i++){\n temp[i] = array[i]; // fill temp with array's stuff\n }\n array = temp; // reset array to temp\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void growArray() {\n\t\tint tempSize = size * 2;\n\t\tE[] tempList = (E[]) new Object[tempSize];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\ttempList[i] = list[i];\n\t\t}\n\t\tlist = tempList;\n\t}", "private void expandCapacity() {\n\t\tT[] larger = (T[]) (new Object[stack.length*2]);\t\t//double size of previous stack\n\t\t\n\t\tfor(int i = 0; i < stack.length; i++)\n\t\t\tlarger[i] = stack[i];\n\t\t\n\t\tstack = larger;\n\t}", "private void resizeDown()\n\t{\n\t\tint newSize = myArray.length/2;\n\t\tmyArray = Arrays.copyOf(myArray, newSize);\n\t}", "private void updateQueueSize() {\n\t\tsims.minQS = state.queueSize < sims.minQS ? state.queueSize : sims.minQS;\n\t\tsims.maxQS = state.queueSize > sims.maxQS ? state.queueSize : sims.maxQS;\n\t}", "private void grow() {\n capacity *= 2;\n Object[] temp = new Object[capacity];\n for (int i = 0; i < values.length; i++) temp[i] = values[i];\n values = temp;\n }", "private void resize(long oldMask, E[] oldBuffer, long pIndex, E e)\r\n/* 389: */ {\r\n/* 390:680 */ int newBufferLength = getNextBufferSize(oldBuffer);\r\n/* 391:681 */ E[] newBuffer = CircularArrayOffsetCalculator.allocate(newBufferLength);\r\n/* 392: */ \r\n/* 393:683 */ this.producerBuffer = newBuffer;\r\n/* 394:684 */ int newMask = newBufferLength - 2 << 1;\r\n/* 395:685 */ this.producerMask = newMask;\r\n/* 396: */ \r\n/* 397:687 */ long offsetInOld = LinkedArrayQueueUtil.modifiedCalcElementOffset(pIndex, oldMask);\r\n/* 398:688 */ long offsetInNew = LinkedArrayQueueUtil.modifiedCalcElementOffset(pIndex, newMask);\r\n/* 399: */ \r\n/* 400:690 */ UnsafeRefArrayAccess.soElement(newBuffer, offsetInNew, e);\r\n/* 401:691 */ UnsafeRefArrayAccess.soElement(oldBuffer, nextArrayOffset(oldMask), newBuffer);\r\n/* 402: */ \r\n/* 403: */ \r\n/* 404:694 */ long cIndex = lvConsumerIndex();\r\n/* 405:695 */ long availableInQueue = availableInQueue(pIndex, cIndex);\r\n/* 406:696 */ RangeUtil.checkPositive(availableInQueue, \"availableInQueue\");\r\n/* 407: */ \r\n/* 408: */ \r\n/* 409: */ \r\n/* 410:700 */ soProducerLimit(pIndex + Math.min(newMask, availableInQueue));\r\n/* 411: */ \r\n/* 412: */ \r\n/* 413:703 */ soProducerIndex(pIndex + 2L);\r\n/* 414: */ \r\n/* 415: */ \r\n/* 416: */ \r\n/* 417: */ \r\n/* 418:708 */ UnsafeRefArrayAccess.soElement(oldBuffer, offsetInOld, JUMP);\r\n/* 419: */ }", "private void reallocate() {\n\t\tthis.capacity *= 2;\n\t\tObject[] newElements = new Object[this.capacity];\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tnewElements[i] = this.elements[i];\n\t\t}\n\n\t\tthis.elements = newElements;\n\t}", "private void addSizeArray() {\n int doubleSize = this.container.length * 2;\n Object[] newArray = new Object[doubleSize];\n System.arraycopy(this.container, 0, newArray, 0, this.container.length);\n this.container = new Object[doubleSize];\n System.arraycopy(newArray, 0, this.container, 0, doubleSize);\n }", "private void resize(int cap) {\n Item[] temp = (Item[]) new Object[cap];\n for(int i = 0; i < size; i++)\n temp[i] = rqArrays[i];\n rqArrays = temp;\n }", "@SuppressWarnings(\"unchecked\")\n\tprotected void grow(){\n\t\t// makes new arraylist\n\t\tT[] temp = (T[]) new Object[data.length *2];\n\t\tfor(int i = 0; i < data.length; i++ ){\n\t\t\ttemp[i] = data[i];\n\t\t}\n\t\tdata = temp;\n\t}", "@SuppressWarnings(\"unchecked\")\n\t private boolean grow() {\n\n\t /* \n\t * Add code here \n\t * Expand capacity (double it) and copy old array contents to the\n\t * new one. \n\t */\n\t\t \n\t\t capacity = (capacity*2);\n\t\t E[] new_elements = elements;\n\t\t elements = (E[])new Object[capacity];\n\t\t for(int i=0; i<new_elements.length;i++){\n\t\t\t elements[i] = new_elements[i];\n\t\t }\n\t System.out.println(\"Capacity reached. Increasing storage...\");\n\t System.out.println(\"New capacity is \" + capacity + \" elements\");\n\n\t return true;\n\t }", "private void expandCapacity()\r\n {\r\n T[] larger = (T[])(new Object[stack.length*2]);\r\n \r\n for (int index=0; index < stack.length; index++)\r\n larger[index] = stack[index];\r\n \r\n stack = larger;\r\n }", "private void grow()\r\n\t{\r\n\t\tint [] temp = new int[count * 2]; // new array to hold the data\r\n\r\n\t\t// copy old data in new array\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t\ttemp[i] = array[i];\r\n\r\n\t\tarray = temp; // update the new array\r\n\t}", "private void resizeUp() \n\t {\n\t\t int newSize = myArray.length * 2;\n\t\t myArray = Arrays.copyOf(myArray, newSize);\n\t }", "protected void grow()\r\n\t{\t\r\n\t\tif(debug)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Debug - Starting grow\");\r\n\t\t}\r\n\t\t\r\n\t\tint[] temp = new int[count*2];\r\n\t\t\r\n\t\tfor(int index = 0; index < count; index++)\r\n\t\t{\r\n\t\t\ttemp[index] = numArray[index];\r\n\t\t\t\r\n\t\t\tif(debug)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Debug - temp[index] = \" + temp[index]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tnumArray = temp;\r\n\t\t\r\n\t\tif(debug)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Debug - Ending grow\");\r\n\t\t}\r\n\t}", "public ResizingArrayDeque() {\n q = (Item[]) new Object[2];\n N = 0;\n first = 0;\n last = 0;\n }", "public void reallocate()\r\n\t{\r\n\t\tE[] newArray = (E[]) new Object[capacity * 2];\r\n\t\tint i = 0;\r\n\t\tfor(i = 0; i < this.size(); i++)\r\n\t\t{\r\n\t\t\tnewArray[i] = innerArray[(front + i) % capacity];\r\n\t\t\tSystem.out.println((front + i) % capacity);\r\n\t\t}\r\n\t\tfront = 0;\r\n\t\trear = this.size() - 1;\r\n\t\tcapacity = capacity * 2;\r\n\t\tinnerArray = newArray;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n private void resize() {\n // Create a temporary array of the old capacity of the heap and store all of the heaps\n // elements in it\n int size = heap.length;\n T[] temp = (T[]) new Comparable[size];\n System.arraycopy(heap, 0, temp, 0, size);\n\n // Double the capacity of the heap array and copy the values of the temp array back into\n // the heap\n heap = (T[]) new Comparable[size * DOUBLE];\n System.arraycopy(temp, 0, heap, 0, size);\n }", "private void expand(){\n \n int newSize = size + expand;\n E[] tempArray = (E[]) new Object[newSize];\n for(int n = 0; n < size; n++){\n tempArray[n] = stackArray[n]; \n }\n stackArray = tempArray;\n size = newSize;\n }", "private void ensureCapacity() {\n\t\n\t\tif (elements.length == size) {\n\t\t\tT[] oldElements = elements;\n\t\t\t\n\t\t\telements = (T[]) new Object[2 * elements.length + 1];\n\t\t\t\n\t\t\tSystem.arraycopy(oldElements, 0, elements, 0, size);\n\t\t\n\t\t}\n\t\n\t}", "private void expandArray() {\r\n//\t\tSystem.out.println(\"Expanding: current capacity \" + capacity); //Used for debugging\r\n\t\tcapacity = 2 * capacity;\r\n\t\tE[] temp = (E[]) new Object[capacity];\r\n\t\tfor (int i = 0; i < t + 1; i++)\r\n\t\t\ttemp[i] = stack[i];\r\n\t\tstack = temp;\r\n\t}", "public void doubleArray() {\r\n\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tT[] temp=(T[]) new Object[item_count*2];\r\n\t\t\r\n\t\t// Copies elements from the initial array to a larger array\r\n\t\tfor(int i=0;i<item_count;i++) \r\n\t\t\ttemp[i]=arr[i];\r\n\t\tarr=temp;\r\n\t}", "private void grow()\n\t{\n\t\tint temp[] = new int[count * 2];\n\t\tfor(int index = 0; index < count; index = index + 1)\n\t\t\ttemp[index] = array1[index];\n\t\tarray1 = temp;\n\t}", "private void ensureCapacity()\n\t{\n\t\tif (elements.length == size)\n\t\t\telements = Arrays.copyOf(elements, 2 * size + 1);\n\t}", "private void resize(int newCapacity) {\n\n E[] temp = (E[]) new Object[newCapacity];\n for(int i = 0; i < size(); i++)\n temp[i] = data[calculate(i)];\n data = temp;\n head = 0;\n tail = size()-1;\n\n\n }", "public void resize(){\n Object[] old = myCustomStack;\n //resize array to be twice the size when the Stack is more than 3/4 full\n if(numElements > old.length * .75){\n Object[] resizedArr = new Object[old.length * 2];\n for(int i = 0; i < numElements; i++){\n resizedArr[i] = old[i];\n }\n myCustomStack = resizedArr;\n System.out.println(\"Array has been resized to twice the size. Array length: \" + myCustomStack.length);\n }\n //resize array to be half the size when the Stack is more than 1/4 empty\n else if(numElements < old.length * .25){\n Object[] resizedArr = new Object[old.length / 2];\n for(int i = 0; i < numElements; i++){\n resizedArr[i] = old[i];\n }\n myCustomStack = resizedArr;\n System.out.println(\"Array has been resized to half the size. Array length: \" + myCustomStack.length);\n }\n else{\n return;\n }\n }", "public void queue(Object newItem){\n if(isFull()){\n System.out.println(\"queue is full\");\n return;\n }\n ArrayQueue[++rear] = newItem;\n if(front == -1)\n front = 0;\n \n }", "private void reallocate() {\n capacity = 2 * capacity;\n ElementType[] newData = (ElementType[]) new Object[DEFAULT_INIT_LENGTH];\n System.arraycopy(elements, 0, newData, 0, size);\n elements = newData;\n }", "private void resize() {\n if (ifFull() || ifTooEmpty()) {\n int capacity = items.length;\n if (ifFull()) {\n capacity *= 2;\n } else if (ifTooEmpty()) {\n capacity /= 2;\n }\n Item[] newArray = (Item[]) new Object[capacity];\n int lastIndex = moveBack(nextLast, 1);\n int firstIndex = moveForward(nextFirst, 1);\n System.arraycopy(items, 0, newArray, 0, lastIndex + 1);\n int numOfReminder = size - (lastIndex + 1);\n int newFirstIndex = newArray.length - numOfReminder;\n System.arraycopy(items, firstIndex, newArray, newFirstIndex, numOfReminder);\n items = newArray;\n nextFirst = moveBack(newFirstIndex, 1);\n nextLast = moveForward(lastIndex, 1);\n return;\n }\n return;\n }", "private void resize(int newSize) {\n Item[] resized = (Item[]) new Object[newSize];\n\n for (int i = 0; i < elements; i++)\n resized[i] = values[i];\n\n values = resized;\n }", "@Override\n\tpublic void enqueue(E e) {\n\t\tif(size==data.length-1){\n\t\t\tresize();\n\t\t}\n\t\tif(rear==data.length-1){\n\t\t\tdata[rear]=e;\n\t\t\tsize++;\n\t\t\trear=(rear+1)%data.length;\n\t\t}else{\n\t\t\tsize++;\n\t\t\tdata[rear++]=e;\n\t\t}\n\t\t\n\t\t\n\t}", "private void ensureCapacity() {\n if ( top + 1 < storage.length ) {\n return;\n }\n storage = Arrays.copyOf( storage, storage.length * 2 );\n }", "private void expandCapacity() {\n heap = Arrays.copyOf(heap, heap.length * 2);\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void resize(int newSize){\n\t\tif(newSize > max){\n\t\t\tnewSize = max;\n\t\t}\n\t\tT[] newData = (T[])new Object[newSize];\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tnewData[i] = data[i];\n\t\t}\n\t\tdata = newData;\n\t}", "void dequeue(){\n if(isEmpty()!=1){\n\n for(int i=0;i<size-1;i++){\n values[i] = values[i+1];\n }\n\n values[size-1] = (-1);\n }\n }", "private synchronized void resize() {\n tableSize = 2 * tableSize;\n tableSize = nextPrime(tableSize);\n FlightDetails[] old = HT;\n\n HT = new FlightDetails[tableSize];\n count.set(0);\n\n for (FlightDetails oldFlightDetails : old) {\n if (oldFlightDetails != null) {\n FlightDetails flightDetails = oldFlightDetails;\n put(flightDetails);\n\n while (flightDetails.getNext() != null) {\n flightDetails = flightDetails.getNext();\n put(flightDetails);\n }\n }\n }\n }", "private void shrink() {\n int shrinkSize = array.length>>1;\n array = Arrays.copyOf(array, shrinkSize);\n }", "private void doubleArraySizeBy(final int numberOfNewSize) {\n if (numberOfNewSize > 0) {\n int newSize = this.data.length * numberOfNewSize;\n this.data = Arrays.copyOf(this.data, newSize);\n }\n }", "private void grow(LinkedList<Book>[] array2) {\r\n \r\n //condition to double the capacity, resize the array, and copy the contents\r\n if ((this.size + 1) > (this.capacity * 0.8)) {\r\n \r\n int oldCapacity = this.capacity; //stores the old capacity\r\n \r\n this.capacity = this.capacity * 2; //doubles the capacity\r\n \r\n LinkedList [] oldArray = array2; //prior to change array\r\n \r\n LinkedList [] newArray = new LinkedList[capacity]; //new array to be filled\r\n \r\n //steps through the old array of linked lists\r\n for (int i = 0; i < oldCapacity;i++) {\r\n \r\n //checks if there is a linked list at index i, if not it skips this iteration\r\n if (oldArray[i]==null) {\r\n continue; \r\n }\r\n \r\n //if there is a linked list it is stepped through \r\n for (int j = 0; j < oldArray[i].size();j++) {\r\n\r\n // if the oldArray[i] has a KeyValue object\r\n if (oldArray[i].get(j) != null) {\r\n\r\n\r\n KeyType oldKey = (KeyType) ((Book) oldArray[i].get(j)).getTitle(); // copies the key\r\n // of the KeyValue\r\n // object\r\n\r\n \r\n Book bookNode = ((Book) oldArray[i].get(j)); // copies the KeyValue object\r\n\r\n int index = Math.abs(oldKey.hashCode()) % this.capacity; // rehashes the key to find its\r\n // new index to be placed at\r\n\r\n // if theres no linked list at newArray[index] create one then add the node from\r\n // oldArray[]\r\n if (newArray[index] == null) {\r\n newArray[index] = new LinkedList<Book>();\r\n newArray[index].add(bookNode);\r\n\r\n\r\n }\r\n\r\n\r\n newArray[index].add(bookNode); //otherwise add it to the list at that index\r\n\r\n this.array = newArray; //sets array\r\n\r\n }\r\n }\r\n }\r\n }\r\n }", "private int dequeue(){\n size--;\n int ret = array[front];\n front = (front+1)%capacity;\n return ret;\n }", "private void reallocate() {\r\n //elem = java.util.Arrays.copyOf(elem, elem.length * 2);\r\n E[] temp = (E[]) new Object[elem.length * 2];\r\n int i = 0;\r\n while (elem[i] != null) {\r\n temp[i] = elem[i];\r\n i++;\r\n }\r\n int j = elem.length - 1;\r\n int k = temp.length - 1;\r\n while (elem[i] != null) {\r\n temp[k] = elem[j];\r\n j--;\r\n k--;\r\n }\r\n front = k;\r\n elem = temp;\r\n }", "private void grow() {\n Book[] temp = new Book[books.length + GROWTH_SIZE];\n for (int i = 0; i < books.length; i ++){\n temp[i] = books[i];\n }\n books = temp;\n }", "public void toArray(Object[] a) {\n int index = 0;\n int size = count;\n int i = (front + 1) % maxSize;\n while(size > 0){\n a[index++] = queue[i++];\n i %= maxSize;\n size--;\n }\n }", "private Object[] resize(E[] elems, int newsize){\n if(newsize < 0){\n throw new IllegalArgumentException();\n // UP FOR CHANGE\n }\n E[] newelems = (E[])(new Comparable[newsize]);\n if (elems == null){\n return newelems;\n }\n // Add elements back in\n System.arraycopy(elems, 0, newelems, 0, Math.min(elems.length, newsize));\n\n return newelems;\n }", "@Override\n public void handle(Node[] array) {\n int shiftingIndex = head; // number of elements that the queue should be shifted\n for (int i = 0; i <= tail - head; i++) {\n // If it is the last element this swap should not happen, as it is empty due to the shift.\n array[i] = array[i + shiftingIndex];\n array[i + shiftingIndex] = null;\n }\n // The new tail will be the difference between the last tail and the last head.\n tail = tail - head;\n head = 0;\n }", "private void resize(int capacity) {\n// assert capacity >= N;\n// StdOut.println(\"resize capacity:\"+ capacity);\n// StdOut.println(\"resize count:\"+ count);\n \n Item[] temp = (Item[]) new Object[capacity];\n int index = 0;\n for (int i = 0; i < N; i++) {\n if (randomizedQueue[i] != null){\n// StdOut.println(\"resize index :\"+ index);\n// StdOut.println(\"resize i :\"+ i);\n// StdOut.println(\"resize N :\"+ N);\n// StdOut.println(\"resize randomizedQueue[i] :\"+ randomizedQueue[i]);\n// StdOut.println(\"--------------------------------------------------\");\n temp[index] = randomizedQueue[i];\n index++;\n }\n }\n randomizedQueue = temp;\n }", "private void resizeArray()\n {\n int[] temp = new int[integerList.length * 2];//Create new array with twice the size.\n for(int i = 0; i < integerList.length; i++)//Populate new array with data from old array\n {\n temp[i] = integerList[i];\n }\n integerList = temp;//Set the integerList to point to the new array.\n }", "private void enlargeCapacity() {\n Object[] tmp = this.container;\n this.container = new Object[this.container.length + this.capacity];\n System.arraycopy(tmp, 0, this.container, 0, tmp.length);\n }", "private void ensureCap(){\n T[] temp = (T[])new Object[arr.length * 2];\n for(int i = 0; i < numItems; i++){\n temp[i] = this.arr[i];\n }\n this.arr = temp;\n }", "private void ensureCapacity() {\n int newSize = elements.length * 2;\n Object[] newElements = new Object[newSize];\n for (int i = 0; i < elements.length; i++) {\n newElements[i] = elements[i];\n }\n elements = newElements;\n }", "private void resize(int newCap) {\n\t\tE[] newArray = (E[]) new Object[newCap];\n\t\tfor(int x = 0; x < newCap && x < capacity; x++) {\n\t\t\tnewArray[x] = elements[x];\n\t\t}\n\t\telements = newArray;\n\t\tcapacity = newCap;\n\t}", "private void reallocate(){\n capacity = 2 * capacity;\n theData = Arrays.copyOf(theData, capacity);\n }", "private void resize(int capacity) {\n // create a new array, and copy the original array items to the new array\n T[] newArray = (T[]) new Object[capacity];\n int position = plusOne(nextFirst);\n for (int i = 0; i < size; i += 1) {\n newArray[i] = array[position];\n position = plusOne(position);\n }\n nextFirst = newArray.length - 1;\n nextLast = size;\n array = newArray;\n }", "private void grow() {\n final int new_size = Math.min(size * 2, Const.MAX_TIMESPAN);\n if (new_size == size) {\n throw new AssertionError(\"Can't grow \" + this + \" larger than \" + size);\n }\n values = Arrays.copyOf(values, new_size);\n qualifiers = Arrays.copyOf(qualifiers, new_size);\n }", "private T[] resize(T[] arr, double factor) {\n int nSize = (int) (arr.length * factor) + 1;\n // initialize the new array with a new size\n T[] nArr = (T[]) (new Object[nSize]);\n // always take the smallest length to make sure the index is in bound\n int size = Math.min(nArr.length, arr.length);\n // copy all values from the old array into the new array\n for (int i = 0; i < size; i++) {\n nArr[i] = arr[i];\n }\n return nArr;\n }", "public static void enQueue(Queue q, String entry){ \n if (q.queuesize < q.names.length){ //If the queue isn't full - Size of queue is less than the set array size \n q.names[q.queuesize] = entry; //Set the value at the index of queue size to the input (Using the array in the Queue class to store this)\n q.queuesize +=1; //Increment the size of queue \n }\n }", "public ResizingArrayQueueOfStrings(){\n s = (Item[]) new Object[2];\n n = 0;\n first = 0;\n last = 0;\n }", "private void grow() {\n int oldCapacity = this.values.length;\n int newCapacity = oldCapacity + (oldCapacity >> 1);\n Object[] newValues = new Object[newCapacity];\n System.arraycopy(this.values, 0, newValues, 0, oldCapacity);\n this.values = newValues;\n }", "private void expand() { \n\t\tComparable[] temp = new Comparable[ _data.length * 2 ];\n\t\tfor( int i = 0; i < _data.length; i++ )\n\t \ttemp[i] = _data[i];\n\t\t_data = temp;\n }", "public void setSize(int size) {\n\t\tdist = new double[size];\n\t\tprev = new Node[size];\n\t\tready = new boolean[size];\n\t}", "private void arrayIncreaaseSize(MyArrayList myArrayList, Results results) {\r\n int old_size = myArrayList.length();\r\n int value;\r\n Random rand = new Random();\r\n \r\n for(int i=0; i<50; i++) {\r\n value = rand.nextInt(10000);\r\n if(value < 0) {\r\n value = value * -1;\r\n }\r\n myArrayList.insertSorted(value);\r\n }\r\n if(myArrayList.length() == old_size + 25) {\r\n results.storeNewResult(\"ArrayIncrease test case: PASSED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayIncrease test case: FAILED\");\r\n }\r\n }", "private void expandArray(int expandSize) {\n\t\tif(expandSize < 1) {\n\t\t\treturn;\n\t\t}\n\t\t// Save current array reference, and create new array size\n\t\tObject[] temp = array;\n\t\tthis.array = new Object[temp.length + expandSize]; // same as [this.array.length + expandSize]\n\n\t\t// If there is any 'wrap around' data, copy data up to the end of the array and copy the wrap around data\n\t\tif(index+length > temp.length) {\n\t\t\t// Copy everything up to the end of the old array\n\t\t\tSystem.arraycopy(temp, index, array, index, temp.length - index);\n\n\t\t\t// Calculate the remaining number of elements that need copying\n\t\t\tint remaining = (length - (temp.length - index));\n\t\t\t// Determine if all of the wrap around elements can fit in the remaining space at the end of the\n\t\t\t// expanded array\n\t\t\tint tailSize = 0;\n\t\t\tif(remaining < expandSize) { tailSize = remaining; }\n\t\t\telse { tailSize = expandSize; }\n\n\t\t\t// Copy the wrap around elements into the expanded array up to the end of the expanded array\n\t\t\tSystem.arraycopy(temp, 0, array, temp.length, tailSize);\n\t\t\t// Wrap around and copy any remaining wrap around elements\n\t\t\tif(remaining > tailSize) {\n\t\t\t\tSystem.arraycopy(temp, tailSize, array, 0, remaining-tailSize);\n\t\t\t}\n\t\t}\n\t\t// Else none of the data 'wraps around', so everything can be copied at once\n\t\telse {\n\t\t\tSystem.arraycopy(temp, index, array, index, length);\n\t\t}\n\t}", "public QueueArrayShiftingVirtualOverflow(int size) {\n super(size);\n }", "@SuppressWarnings(\"unchecked\")\n private void resize() {\n int newCap = Math.max(capacity*2, DEFAULT_CAP);\n if(size < list.length) return;\n \n Object[] temp = new Object[newCap];\n for(int i = 0; i < list.length; i++) {\n temp[i] = list[i];\n }\n list = (E[])temp;\n capacity = newCap;\n }", "public long remove(){\n\t\t\r\n\t\t\tlong temp = queueArray[front]; //retrieves and stores the front element\r\n\t\t\tfront++;\r\n\t\t\tif(front == maxSize){ //To set front = 0 and use it again\r\n\t\t\t\tfront = 0;\r\n\t\t\t}\r\n\t\t\tnItems--;\r\n\t\t\treturn temp;\r\n\t\t}", "int increaseCapacity(int expectedCapacity)\r\n/* 425: */ {\r\n/* 426:456 */ int newCapacity = this.elements.length;\r\n/* 427:457 */ int maxCapacity = this.maxCapacity;\r\n/* 428: */ do\r\n/* 429: */ {\r\n/* 430:459 */ newCapacity <<= 1;\r\n/* 431:460 */ } while ((newCapacity < expectedCapacity) && (newCapacity < maxCapacity));\r\n/* 432:462 */ newCapacity = Math.min(newCapacity, maxCapacity);\r\n/* 433:463 */ if (newCapacity != this.elements.length) {\r\n/* 434:464 */ this.elements = ((Recycler.DefaultHandle[])Arrays.copyOf(this.elements, newCapacity));\r\n/* 435: */ }\r\n/* 436:467 */ return newCapacity;\r\n/* 437: */ }", "public void newQueue(){\r\n\t\tgenerateQueue();\r\n\t\trefreshLeft = true;\r\n\t}", "public void enqueue(T item) {\r\n\r\n\t\t++item_count;\r\n\t\tif(item_count==arr.length)\r\n\t\t\tdoubleArray();\r\n\t\tarr[++back%arr.length]=item;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void resize(int capacity) {\r\n\t\tItem[] copy = (Item[]) new Object[capacity];\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t\tcopy[i] = arr[i];\r\n\t\tarr = copy;\r\n\t}", "private void resize() {\n int listSize = numItemInList();\n //debug\n //System.out.println(\"resize: \" + nextindex + \"/\" + list.length + \" items:\" + listSize);\n if (listSize <= list.length / 2) {\n for (int i = 0; i < listSize; i++) {\n list[i] = list[startIndex + i];\n }\n } else {\n Object[] newList = new Object[this.list.length * 2];\n\n// System.arraycopy(this.list, startIndex, newList, 0, this.list.length-startIndex);\n for (int i = 0; i < listSize; i++) {\n newList[i] = list[i + startIndex];\n }\n this.list = newList;\n //debug\n //System.out.println(\"After resize:\" + nextindex + \" / \" + list.length + \" items:\" + numItemInList());\n }\n nextindex = nextindex - startIndex;\n startIndex = 0;\n }", "private void ensureCapacity() {\n if(size() >= (0.75 * data.length)) // size() == curSize\n resize(2 * size());\n }", "public void moveOldArray(int newArraySize){\n\t\t\n\t\tString[] cleanArray = removeEmptySpacesInArray(theArray);\n\t\tthis.theArray = new String[newArraySize];\n\t\tthis.arraySize = newArraySize;\n\t\t\n\t\tfillArrayWithNeg1();\n\t\thashFunction(cleanArray);\n\t\t\n\t}", "public void enqueue(T data) {\n if (data == null) {\n throw new IllegalArgumentException(\"The data you entered is null.\"\n + \" Please enter existing data.\");\n }\n if (size == backingArray.length) {\n T[] oldarray = backingArray;\n Object[] arr = new Object[2 * size];\n backingArray = (T[]) arr;\n int temp = front;\n for (int i = 0; i < oldarray.length - front; i++) {\n backingArray[i] = oldarray[temp];\n temp++;\n }\n temp = 0;\n for (int i = oldarray.length - front; i < oldarray.length; i++) {\n backingArray[i] = oldarray[temp];\n temp++;\n }\n front = 0;\n backingArray[size] = data;\n } else if (backingArray[backingArray.length - 1] != null) {\n int back = (front + size) % backingArray.length;\n backingArray[back] = data;\n\n } else {\n int back = front + size;\n backingArray[back] = data;\n }\n size++;\n\n }", "public void sort(){\n for(int i = array.length-1;i >= 0;i--){\n sink(i);\n }\n while(size > 0){\n swap(0, size-1);\n size -= 1;\n sink(0);\n }\n }", "private void ensureCapacity() {\n\t\tif (numberOfElements == capacity) {\n\t\t\tT[] newArray = (T[])new Object[(numberOfElements+1) * CAPACITY_MULTIPLIER];\n\t\t\tSystem.arraycopy(elements,0,newArray,0,numberOfElements);\n\t\t\telements = newArray;\n\t\t}\n\t}", "public E dequeue(){\n if (isEmpty()) return null;\n E answer = arrayQueue[front];\n arrayQueue[front] = null;\n front = (front +1) % arrayQueue.length;\n size--;\n return answer;\n }", "private void resizeArray() {\n stackArray = Arrays.copyOf(stackArray, stackArray.length * 2 + 1);\n }", "public void requeue() {\n\t\tenqueue(queue.removeFirst());\n\t}" ]
[ "0.7629684", "0.73956215", "0.7275495", "0.70991725", "0.68854237", "0.67700934", "0.67553777", "0.67511094", "0.6731977", "0.669281", "0.6692655", "0.6635086", "0.661862", "0.65365344", "0.65225476", "0.65167004", "0.65084153", "0.6492474", "0.6449126", "0.6418263", "0.6404474", "0.6346571", "0.62912124", "0.6269198", "0.6265313", "0.626308", "0.62381047", "0.62061006", "0.6198148", "0.61942166", "0.6170118", "0.6168215", "0.6164732", "0.6143116", "0.61350256", "0.61242443", "0.6115746", "0.60880417", "0.6079067", "0.60635877", "0.60628396", "0.6054636", "0.60402143", "0.60280603", "0.5999281", "0.5989973", "0.5981452", "0.5960796", "0.5958462", "0.595311", "0.59518", "0.5942998", "0.5940739", "0.5938632", "0.5935369", "0.59339684", "0.5926219", "0.5925209", "0.591784", "0.5914519", "0.5913102", "0.59073937", "0.59053427", "0.5903584", "0.59025496", "0.58945364", "0.5856964", "0.5828722", "0.58115184", "0.57822996", "0.577416", "0.57706517", "0.5723542", "0.5723514", "0.57183903", "0.5711647", "0.5678195", "0.5676822", "0.5671017", "0.56536114", "0.56426543", "0.5617932", "0.56096196", "0.5609524", "0.5597818", "0.5588065", "0.55866313", "0.5568744", "0.5560739", "0.55557865", "0.55554235", "0.55549777", "0.55542207", "0.55511725", "0.5548425", "0.5543998", "0.554229", "0.5530333", "0.55164945", "0.55164236" ]
0.63587284
21
Tries to steal a task from another worker. Starts at a random index of threads array, and probes threads until finding one with nonempty queue or finding that all are empty. It randomly selects the first n probes. If these are empty, it resorts to a full circular traversal, which is necessary to accurately set active status by caller. Also restarts if pool events occurred since last scan, which forces refresh of threads array, in case barrier was associated with resize. This method must be both fast and quiet usually avoiding memory accesses that could disrupt cache sharing etc other than those needed to check for and take tasks. This accounts for, among other things, updating random seed in place without storing it until exit.
private Runnable scan() { Runnable t = null; int r = seed; // extract once to keep scan quiet StealingThread[] ws; // refreshed on outer loop int mask; // must be power 2 minus 1 and > 0 outer:do { if ((ws = pool.threads) != null && (mask = ws.length - 1) > 0) { int idx = r; int probes = ~mask; // use random index while negative for (;;) { r = xorShift(r); // update random seed StealingThread v = ws[mask & idx]; if (v == null || v.sp == v.base) { if (probes <= mask) idx = (probes++ < 0) ? r : (idx + 1); else break; } else if (!tryActivate() || (t = v.deqTask()) == null) continue outer; // restart on contention else break outer; } } } while (pool.hasNewSyncEvent(this)); // retry on pool events seed = r; return t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run (){\n String currThrdId = new String (\"\");\n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n currThrdId = new Long(Thread.currentThread().getId()).toString(); \n tArray.add(currThrdId);\n ConcurrentTest.cb.await(); \n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n }\n \n if (ConcurrentTest.cb.isBroken()){\n ConcurrentTest.log.add(\"Failed to wait all starting threads!\");\n ConcurrentTest.failed = true;\n }\n \n // The task for thread: try to find its name for 100 exchange operations\n int counter = rm.nextInt(300)+100;\n try {\n Thread.sleep(rm.nextInt(100)+1);\n } catch (InterruptedException e1) {\n ConcurrentTest.failed = true;\n }\n String thrdId = tArray.remove(0); \n while (counter > 0){\n if (thrdId == currThrdId){\n break;\n }\n try {\n thrdId = exch.exchange(thrdId, rm.nextInt(100)+1, TimeUnit.MILLISECONDS);\n } catch (InterruptedException e) {\n ConcurrentTest.failed = true;\n } catch (TimeoutException e) {\n // Expected\n }\n counter--;\n }\n //System.out.println(counter);\n\n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n ConcurrentTest.cb.await();\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n }\n\n // Stage 2: test PriorityBlockingQueue \n //devide threads to sending and receiving\n // to thread: Who are you - sender or receiver?\n counter = rm.nextInt(100);\n int threadChoice = rm.nextInt(2);\n if (threadChoice == 0){\n while (counter > 0){\n //emit into queue\n String toQue = \"Que_\" + new Long(Thread.currentThread().getId()).toString() + \"_\" + rm.nextInt(100);\n if (counter == 50){\n // process one exception\n toQue = null;\n }\n try{\n bQue.put(toQue);\n }catch(NullPointerException e){\n // Expected\n }\n counter--;\n //System.out.println(\"Emmited \" + counter);\n }\n } else{\n while (counter > 0){\n //read from queue\n try {\n bQue.poll(rm.nextInt(100)+1, TimeUnit.MILLISECONDS);\n } catch (InterruptedException e) {\n ConcurrentTest.failed = true;\n }\n counter--;\n //System.out.println(\"Read \" + counter);\n }\n }\n \n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n ConcurrentTest.cb.await();\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 2!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 2!\");\n ConcurrentTest.failed = true;\n }\n\n // Stage 3: test Semaphore \n // limit Semathor with 1/3 of number of threads\n // replaced doing something with rundomized time thread sleep\n // sm is located in ConcurrentTest bacause we need to initialize it\n // with 1/3 number of threads\n counter = 1000;\n while (counter > 0){\n try {\n stats.getAndAdd(ConcurrentTest.sm.availablePermits());\n ConcurrentTest.sm.acquire();\n //System.out.println(\"in\");\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Some thread is interrupted, stage 3!\");\n ConcurrentTest.failed = true;\n }\n \n try {\n Thread.currentThread().sleep(rm.nextInt(5)+1);\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Some thread is interrupted, stage 3!\");\n //ConcurrentTest.failed = true;\n }\n \n stats.getAndAdd(ConcurrentTest.sm.getQueueLength());\n ConcurrentTest.sm.release();\n //System.out.println(\"out\");\n counter--; \n }\n\n // final actions\n if (ConcurrentTest.cb.isBroken()){\n ConcurrentTest.log.add(\"Failed to wait all starting threads, final!\");\n ConcurrentTest.failed = true;\n }\n \n ConcurrentTest.cb.reset();\n }", "private void initialBlockOnMoarRunners() throws InterruptedException\n {\n lock.lock();\n try\n {\n if (taskQueue.isEmpty() && runners > 1)\n {\n runners--;\n needMoreRunner.await();\n runners++;\n }\n }\n finally\n {\n lock.unlock();\n }\n }", "private void delegateTasks() {\n logger.debug(\"task delegation started\");\n\n untilTasksAndThreadsAreAvailable:\n while (true) {\n Optional<Node> selectedNode;\n Optional<WorkerPoolTask> task = workerPool.pollTask();\n\n if (!task.isPresent()) {\n while (true) {\n State prevState = state.get();\n State nextState;\n if (prevState == DURING_DELEGATION) {\n // No more tasks and free threads appeared\n nextState = NO_DELEGATION;\n } else {\n //prevState == DURING_DELEGATION_WITH_SCHEDULED_RE_EXECUTION\n nextState = DURING_DELEGATION;\n }\n if (state.compareAndSet(prevState, nextState)) {\n logger.debug(\"changed from \" + prevState + \" to \" + nextState);\n if (prevState == DURING_DELEGATION) {\n return;\n } else {\n //prevState == DURING_DELEGATION_WITH_SCHEDULED_RE_EXECUTION\n continue untilTasksAndThreadsAreAvailable;\n }\n }\n logger.debug(\"state change missed in delegateTasks when task wasn't present\");\n }\n }\n\n synchronized (nodes) { // Synchronization with HeartBeat nodes.updateAfterHeartBeat method.\n selectedNode = nodes.drainThreadFromNodeHavingHighestPriority();\n if (!selectedNode.isPresent()) {\n workerPool.submitTask(task.get(), true);\n State nextState = AWAITING_FREE_THREADS;\n State prevState = state.getAndSet(nextState);\n logger.debug(\"changed from \" + prevState + \" to \" + nextState);\n return;\n }\n }\n\n if (!delegateTask(selectedNode.get(), task.get())) {\n //If delegation failed we release the thread to keep proper number of free threads up-to-date\n //If HeartBeat happened between draining a thread and returning it, this operation will take no effect\n //as we are working on invalidated version of node.\n nodes.returnThread(selectedNode.get());\n }\n }\n }", "public void doAllTasks() throws Exception {\n final GenericInitializer<E,T> initializer = config.getInitializer();\n final TaskFactory<E,T,GenericInitializer<E,T>> initTaskFac = config.getInitFactory();\n final ObjectCache<GenericInitializer<E,T>> initCache = new ObjectCache<>(2*threads,initializer);\n \n final long sT = System.currentTimeMillis();\n List<Task<T>> initTasks = comm.getInitialTasks(maxTasks,myID);\n final long mT = System.currentTimeMillis();\n initFetchTimeMS += mT-sT;\n initChunksGotten++;\n \n do{\n noInits = initTasks.size();\n if(noInits == 0){\n // nothing to be done, kinda weird.\n System.out.println(\"WARNING: No tasks gotten for threading backend \" + myID + \" continuing but wondering...\");\n break;\n }\n // kind of subptimal but we need to get the ID offset\n currIDStart = (int) initTasks.get(0).getDummyAnswer(myID).getResult().getID();\n \n if(DEBUG){System.out.println(\"DEBUG: Starting with ID \" + currIDStart + \" we have \" + initTasks.size() + \" tasks to init.\");}\n\n final long tOff = System.currentTimeMillis();\n doXXX(threads, initTaskFac, initCache, initTasks);\n final long tMid = System.currentTimeMillis();\n initWorkTimeMS += (tMid-tOff);\n \n final boolean doneYet = synchronizePools(true);\n if(!doneYet){\n initTasks = comm.getInitialTasks(maxTasks,myID);\n initChunksGotten++;\n } else {\n initTasks.clear(); // not strictly necessary, I think\n }\n final long tEnd = System.currentTimeMillis();\n initFetchTimeMS += (tEnd-tMid);\n \n } while(!initTasks.isEmpty());\n \n // merge pools, technically this should have happened before already. However, this does not hurt and synchronizes even further.\n synchronizePools(false);\n \n ISINIT = false;\n \n // then do globopt tasks (setup task factory and cachers)\n final GenericGlobalOptimization<E,T> globopt = config.getGlobalOptimization();\n final ObjectCache<GenericGlobalOptimization<E,T>> globCache = new ObjectCache<>(2*threads,globopt);\n TaskFactory<E,T,GenericGlobalOptimization<E,T>> globTasks = new GlobTaskFactory<>();\n\n while(!comm.isEverythingDone()){\n \n final long tOff = System.currentTimeMillis();\n doXXX(threads, globTasks, globCache, (int) currIDStart, (int) tasksGotten);\n final long tMid = System.currentTimeMillis();\n optWorkTimeMS += (tMid-tOff);\n \n final boolean done = synchronizePools(false);\n final long tEnd = System.currentTimeMillis();\n optFetchTimeMS += (tEnd-tMid);\n \n if(done) {break;}\n }\n }", "private synchronized Task takeTask() {\n while (true) {\n Task task = null;\n if (runningActions < maxConcurrentActions) {\n task = runnableActions.poll();\n }\n if (task == null) {\n task = runnableTasks.poll();\n }\n\n if (task != null) {\n runningTasks++;\n if (task.isAction()) {\n runningActions++;\n }\n return task;\n }\n\n if (isExhausted()) {\n return null;\n }\n\n try {\n wait();\n } catch (InterruptedException e) {\n throw new AssertionError();\n }\n }\n }", "@Override\r\n\tpublic void run() {\n\t if (isDone) {\r\n\t\ttimer.cancel();\r\n\t\treturn;\r\n\t }\r\n\t \r\n\t if (interestedList.size() == 0) {\r\n\t\treturn;\r\n\t }\r\n\t \r\n\t synchronized (interestedList) {\r\n\t\tint index = (int)(Math.random()*interestedList.size());\r\n\t\tif (ouNbr != 0 && interestedList.get(index) != ouNbr) {\r\n\t\t //System.out.println(\"Optimistically Unchoke \" + interestedList.get(index));\r\n\t\t Message.sendMsg(new UnChoke(), connmap.get(interestedList.get(index)).getOutputStream());\r\n\t\t \r\n\t\t if (ouNbr != 0 && !prefNbrs.contains(ouNbr)) {\r\n\t\t\t//System.out.println(\"Optimistically Choke \" + ouNbr);\r\n\t\t\tMessage.sendMsg(new Choke(), connmap.get(ouNbr).getOutputStream());\r\n\t\t }\r\n\t\t ouNbr = interestedList.get(index);\r\n\t\t log (\"Peer \" + pid + \" has the optimistically-unchoked neighbot \" + ouNbr);\r\n\t\t}\r\n\t }\r\n\t \r\n\t}", "private void chooseNextAvailableThreadOrWait() {\n while (true) {\n for (int i = 0; i < PCJ.threadCount(); ++i) {\n int newThreadNo = (threadNo + i) % (PCJ.threadCount() - 1) + 1;\n if (writeIndex[newThreadNo] != readIndex[newThreadNo]) {\n threadNo = newThreadNo;\n return;\n }\n }\n PCJ.waitFor(InputFileReader.Shared.readIndex);\n }\n }", "protected void takeForks(int i) throws InterruptedException {\n mutex.lock();\n try {\n state[i] = State.HUNGRY;\n printState(\"begin takeForks\");\n test(i);\n printState(\"end takeForks\");\n while (state[i] != State.EATING)\n self[i].await();\n } finally {\n mutex.unlock();\n } // unlock whether or not exceptions thrown\n }", "@Override\n\t\tpublic void run() {\n\t\t\tArrayBlockingQueue<ByteBuffer> cachedBuffers = null;\n\t\t\tScheduledFuture<?> futureP = null;\n\t\t\tScheduledFuture<?> futureA = null;\n\t\t\tScheduledFuture<?> futureB = null;\n\t\t\ttry {\n\t\t\t\tScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(1, new ThreadFactory() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Thread newThread(@Nonnull Runnable r) {\n\t\t\t\t\t\tThread t = new Thread(THREAD_GROUP, r);\n\t\t\t\t\t\tt.setDaemon(true);\n\t\t\t\t\t\treturn t;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tByteBuffer b = ByteBuffer.wrap(genId);\n\t\t\t\tb.putInt(workerId);\n\t\t\t\tb.putLong(Long.reverse(System.nanoTime()) ^ System.currentTimeMillis());\n\t\t\t\tb.putInt(ThreadLocalFixedSeedRandom.current().nextInt());\n\t\t\t\tb.flip();\n\t\t\t\tb.get(genId);\n\n\t\t\t\t// tasks should be removed if the future is canceled\n\t\t\t\texecutor.setRemoveOnCancelPolicy(true);\n\n\t\t\t\t// make sure shutdown removes all pending tasks\n\t\t\t\texecutor.setContinueExistingPeriodicTasksAfterShutdownPolicy(false);\n\t\t\t\texecutor.setExecuteExistingDelayedTasksAfterShutdownPolicy(false);\n\n\t\t\t\tcachedBuffers = new ArrayBlockingQueue<>(CACHED_BUFFERS);\n\t\t\t\tfor (int i = 0; i < CACHED_BUFFERS; i++) {\n\t\t\t\t\tByteBuffer buff = ByteBuffer.allocate(BUFFER_SIZE);\n\t\t\t\t\tif (rustMode) {\n\t\t\t\t\t\tbuff.order(ByteOrder.LITTLE_ENDIAN);\n\t\t\t\t\t}\n\t\t\t\t\tcachedBuffers.add(buff);\n\t\t\t\t}\n\n\t\t\t\tint personSize = personsGenerator.itemSize();\n\t\t\t\tint auctionSize = auctionsGenerator.itemSize();\n\t\t\t\tint bidSize = bidGenerator.itemSize();\n\n\t\t\t\tlong ratio = targetPartitionSize / TOTAL_EVENT_RATIO;\n\t\t\t\tlong personsToGenerate = (PERSON_EVENT_RATIO * ratio) / personSize;\n\t\t\t\tlong auctionsToGenerate = (AUCTION_EVENT_RATIO * ratio) / auctionSize;\n\t\t\t\tlong bidsToGenerate = (BID_EVENT_RATIO * ratio) / auctionSize;\n\t\t\t\tlong recordsToGenerate = personsToGenerate + auctionsToGenerate + bidsToGenerate;\n\n\t\t\t\tint itemsPerBufferPerson = (BUFFER_SIZE - METADATA_SIZE) / personSize;\n\t\t\t\tint itemsPerBufferAuction = (BUFFER_SIZE - METADATA_SIZE) / auctionSize;\n\t\t\t\tint itemsPerBufferBid = (BUFFER_SIZE - METADATA_SIZE) / bidSize;\n\n\t\t\t\tAtomicLong sharedCounterPerson = new AtomicLong();\n\t\t\t\tAtomicLong sharedCounterAuction = new AtomicLong();\n\t\t\t\tAtomicLong sharedCounterBid = new AtomicLong();\n\n\t\t\t\tstarter.countDown();\n\t\t\t\tfairStarter.await();\n\n\t\t\t\tThroughtputLogger personLogger = new ThroughtputLogger(sharedCounterPerson, csvDirectory, name, topicNamePerson + \"-\" + workerId, 5, personSize);\n\t\t\t\tfutureP = executor.scheduleAtFixedRate(personLogger, 5, 5, TimeUnit.SECONDS);\n\n\t\t\t\tThroughtputLogger auctionLogger = new ThroughtputLogger(sharedCounterAuction, csvDirectory, name, topicNameAuction + \"-\" + workerId,5, auctionSize);\n\t\t\t\tfutureA = executor.scheduleAtFixedRate(auctionLogger, 6, 5, TimeUnit.SECONDS);\n\n\t\t\t\tThroughtputLogger bidsLogger = new ThroughtputLogger(sharedCounterBid, csvDirectory, name, topicNameBid + \"-\" + workerId,5, bidSize);\n\t\t\t\tfutureB = executor.scheduleAtFixedRate(bidsLogger, 6, 5, TimeUnit.SECONDS);\n\n\t\t\t\tdouble startMs = System.currentTimeMillis();\n\t\t\t\tlong sentBytes = 0;\n\t\t\t\tThreadLocalFixedSeedRandom randomness = ThreadLocalFixedSeedRandom.current();\n\n\n\t\t\t\tlong desiredThroughputBytesPerSecondMax = desiredThroughputBytesPerSecond;\n\t\t\t\tlong desiredThroughputBytesPerSecondMin = varyingWorkload ? 1024 * 1024 : desiredThroughputBytesPerSecond; // 1 MB/s\n\t\t\t\tlong throughputDelta = varyingWorkload ? 512 * 1024 : 0;\n\t\t\t\tlong currentThroughput = desiredThroughputBytesPerSecondMin;\n\t\t\t\tlong throughputChangeTimestamp = 0;\n\n\t\t\t\tRateLimiter throughputThrottler = RateLimiter.create(currentThroughput, 5, TimeUnit.SECONDS);\n\t\t\t\tLOG.debug(\"Create throughputThrottler for {} -> << {} MB/sec : {} MB/sec >>\",\n\t\t\t\t\t\tworkerId, desiredThroughputBytesPerSecondMin / ONE_MEGABYTE, desiredThroughputBytesPerSecondMax / ONE_MEGABYTE);\n\t\t\t\tint chkP = personsGenerator.genChecksum();\n\t\t\t\tint chkA = auctionsGenerator.genChecksum();\n\t\t\t\tint chkB = bidGenerator.genChecksum();\n\t\t\t\tlong pendingPerson = (recordsToGenerate / TOTAL_EVENT_RATIO) * PERSON_EVENT_RATIO;\n\t\t\t\tlong pendingAuctions = (recordsToGenerate / TOTAL_EVENT_RATIO) * AUCTION_EVENT_RATIO;\n\t\t\t\tlong pendingBids = (recordsToGenerate / TOTAL_EVENT_RATIO) * BID_EVENT_RATIO;\n\t\t\t\tlong sentBytesDelta = 0;\n\t\t\t\tByteBuffer bufP = cachedBuffers.take();\n\t\t\t\tByteBuffer bufA = cachedBuffers.take();\n\t\t\t\tByteBuffer bufB = cachedBuffers.take();\n\t\t\t\tbufA.putInt(chkA);\n\t\t\t\tbufP.putInt(chkP);\n\t\t\t\tbufB.putInt(chkB);\n\t\t\t\tint itemsInThisBufferA = (int) Math.min(itemsPerBufferAuction, pendingAuctions);\n\t\t\t\tint itemsInThisBufferP = (int) Math.min(itemsPerBufferPerson, pendingPerson);\n\t\t\t\tint itemsInThisBufferB = (int) Math.min(itemsPerBufferBid, pendingBids);\n\t\t\t\tlong backlogPerson = pendingPerson - itemsInThisBufferP;\n\t\t\t\tlong backlogAuction = pendingAuctions - itemsInThisBufferA;\n\t\t\t\tlong backlogBid = pendingBids - itemsInThisBufferA;\n\t\t\t\tbufP.putInt(itemsInThisBufferP);\n\t\t\t\tbufP.putLong(backlogPerson);\n\t\t\t\tbufA.putInt(itemsInThisBufferA);\n\t\t\t\tbufA.putLong(backlogAuction);\n\t\t\t\tbufB.putInt(itemsInThisBufferB);\n\t\t\t\tbufB.putLong(backlogBid);\n\n\t\t\t\tlong sentPersons = 0;\n\t\t\t\tlong sentAuctions = 0;\n\t\t\t\tlong sentBids = 0;\n\t\t\t\tlong eventId = 0;\n\n\t\t\t\tfor (; eventId < recordsToGenerate; eventId++) {\n\n\t\t\t\t\tfinal long timestamp = System.currentTimeMillis();\n\n\t\t\t\t\tlong rem = eventId % TOTAL_EVENT_RATIO;\n\t\t\t\t\tif (rem < PERSON_EVENT_RATIO) {\n\t\t\t\t\t\tpersonsGenerator.writeItem(eventId, timestamp, randomness, bufP);\n\t\t\t\t\t\tpendingPerson--;\n\t\t\t\t\t\tif (bufP.remaining() < personSize) {\n\t\t\t\t\t\t\tbufP.position(bufP.position() + bufP.remaining());\n\t\t\t\t\t\t\tProducerRecord<byte[], ByteBuffer> kafkaRecord = new ProducerRecord<>(topicNamePerson, targetPartition, genId, bufP);\n\t\t\t\t\t\t\tkafkaProducerPersons.send(kafkaRecord, new InternalCallback(cachedBuffers, bufP, sharedCounterPerson, itemsInThisBufferP));\n\t\t\t\t\t\t\tsentPersons += itemsInThisBufferP;\n\t\t\t\t\t\t\tbufP = cachedBuffers.take();\n\t\t\t\t\t\t\tbufP.putInt(chkP);\n\t\t\t\t\t\t\titemsInThisBufferP = (int) Math.min(itemsPerBufferPerson, pendingPerson);\n\t\t\t\t\t\t\tbacklogPerson = pendingPerson - itemsInThisBufferP;\n\t\t\t\t\t\t\tbufP.putInt(itemsInThisBufferP);\n\t\t\t\t\t\t\tbufP.putLong(backlogPerson);\n\t\t\t\t\t\t\tsentBytes += BUFFER_SIZE;\n\t\t\t\t\t\t\tsentBytesDelta += BUFFER_SIZE;\n\t\t\t\t\t\t\tthroughputThrottler.acquire(BUFFER_SIZE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (rem < (PERSON_EVENT_RATIO + AUCTION_EVENT_RATIO)) {\n\t\t\t\t\t\tauctionsGenerator.writeItem(eventId, timestamp, randomness, bufA);\n\t\t\t\t\t\tpendingAuctions--;\n\t\t\t\t\t\tif (bufA.remaining() < auctionSize) {\n\t\t\t\t\t\t\tbufA.position(bufA.position() + bufA.remaining());\n\t\t\t\t\t\t\tProducerRecord<byte[], ByteBuffer> kafkaRecord = new ProducerRecord<>(topicNameAuction, targetPartition, genId, bufA);\n\t\t\t\t\t\t\tkafkaProducerAuctions.send(kafkaRecord, new InternalCallback(cachedBuffers, bufA, sharedCounterAuction, itemsInThisBufferA));\n\t\t\t\t\t\t\tsentAuctions += itemsInThisBufferA;\n\t\t\t\t\t\t\tbufA = cachedBuffers.take();\n\t\t\t\t\t\t\tbufA.putInt(chkA);\n\t\t\t\t\t\t\titemsInThisBufferA = (int) Math.min(itemsPerBufferAuction, pendingAuctions);\n\t\t\t\t\t\t\tbacklogAuction = pendingAuctions - itemsInThisBufferA;\n\t\t\t\t\t\t\tbufA.putInt(itemsInThisBufferA);\n\t\t\t\t\t\t\tbufA.putLong(backlogAuction);\n\t\t\t\t\t\t\tsentBytes += BUFFER_SIZE;\n\t\t\t\t\t\t\tsentBytesDelta += BUFFER_SIZE;\n\t\t\t\t\t\t\tthroughputThrottler.acquire(BUFFER_SIZE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbidGenerator.writeItem(eventId, timestamp, randomness, bufB);\n\t\t\t\t\t\tpendingBids--;\n\t\t\t\t\t\tif (bufB.remaining() < bidSize) {\n\t\t\t\t\t\t\tbufB.position(bufB.position() + bufB.remaining());\n\t\t\t\t\t\t\tProducerRecord<byte[], ByteBuffer> kafkaRecord = new ProducerRecord<>(topicNameBid, targetPartition, genId, bufB);\n\t\t\t\t\t\t\tkafkaProducerBids.send(kafkaRecord, new InternalCallback(cachedBuffers, bufB, sharedCounterBid, itemsInThisBufferB));\n\t\t\t\t\t\t\tsentBids += itemsInThisBufferB;\n\t\t\t\t\t\t\tbufB = cachedBuffers.take();\n\t\t\t\t\t\t\tbufB.putInt(chkB);\n\t\t\t\t\t\t\titemsInThisBufferB = (int) Math.min(itemsPerBufferBid, pendingBids);\n\t\t\t\t\t\t\tbacklogBid = pendingBids - itemsInThisBufferB;\n\t\t\t\t\t\t\tbufB.putInt(itemsInThisBufferB);\n\t\t\t\t\t\t\tbufB.putLong(backlogBid);\n\t\t\t\t\t\t\tsentBytes += BUFFER_SIZE;\n\t\t\t\t\t\t\tsentBytesDelta += BUFFER_SIZE;\n\t\t\t\t\t\t\tthroughputThrottler.acquire(BUFFER_SIZE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n//\n\n\t\t\t\t\tif (sentBytesDelta > LOGGING_THRESHOLD) {\n\t\t\t\t\t\tLOG.info(\"{} has just sent {} MB to kafka in {} sec - rate limiter {} bytes/sec\",\n\t\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\t\tsentBytes / ONE_MEGABYTE,\n\t\t\t\t\t\t\t\t(timestamp - startMs) / 1_000,\n\t\t\t\t\t\t\t\tthroughputThrottler.getRate());\n\t\t\t\t\t\tsentBytesDelta = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((timestamp - throughputChangeTimestamp) > 10_000) {\n\t\t\t\t\t\tcurrentThroughput += throughputDelta;\n\t\t\t\t\t\tif (currentThroughput > desiredThroughputBytesPerSecondMax) {\n\t\t\t\t\t\t\tthroughputDelta = -throughputDelta;\n\t\t\t\t\t\t} else if (currentThroughput < desiredThroughputBytesPerSecondMin) {\n\t\t\t\t\t\t\tcurrentThroughput = desiredThroughputBytesPerSecondMin;\n\t\t\t\t\t\t\tthroughputDelta = -throughputDelta;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthroughputThrottler.setRate(currentThroughput);\n\t\t\t\t\t\tthroughputChangeTimestamp = timestamp;\n\t\t\t\t\t\tLOG.debug(\"Throttler changed to {}\", currentThroughput);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\twhile (!sharedCounterPerson.compareAndSet(sentPersons, 0)) {\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t}\n\t\t\t\twhile (!sharedCounterAuction.compareAndSet(sentAuctions, 0)) {\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t}\n\t\t\t\twhile (!sharedCounterAuction.compareAndSet(sentBids, 0)) {\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t}\n\t\t\t\tdouble end = System.currentTimeMillis();\n\t\t\t\tdouble diff = end - startMs;\n\t\t\t\tLOG.info(\"{} is finished after {} msec and {} GBs and {} items with an overall throughput of {}\",\n\t\t\t\t\t\tname,\n\t\t\t\t\t\tdiff,\n\t\t\t\t\t\tsentBytes / ONE_GIGABYTE,\n\t\t\t\t\t\trecordsToGenerate,\n\t\t\t\t\t\t(sentBytes * 1_000.0) / (diff * ONE_GIGABYTE));\n\t\t\t} catch (Throwable error) {\n\t\t\t\tLOG.error(\"Error: {}\", error);\n\t\t\t} finally {\n\t\t\t\tif (cachedBuffers != null) {\n\t\t\t\t\tcachedBuffers.clear();\n\t\t\t\t}\n\t\t\t\tkafkaProducerAuctions.close();\n\t\t\t\tkafkaProducerPersons.close();\n\t\t\t\tkafkaProducerBids.close();\n\t\t\t\tcontroller.countDown();\n\t\t\t\tif (futureA != null) {\n\t\t\t\t\tfutureA.cancel(false);\n\t\t\t\t}\n\t\t\t\tif (futureP != null) {\n\t\t\t\t\tfutureP.cancel(false);\n\t\t\t\t}\n\t\t\t\tif (futureB != null) {\n\t\t\t\t\tfutureB.cancel(false);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n public void run() {\n List<Integer> list = new ArrayList<Integer>();\n int num_peer = P.peer_port.length;\n int ind = -1;\n for (int i = 0; i < num_peer; i++) {\n list.add(i);\n }\n while (P.choke_thread_running) {\n synchronized (P.lock_current_neighbors) { //lock the object\n\n if(P.current_neighbors==null) continue;\n\n int[] cn = P.current_neighbors.clone(); //current neighbor.\n Arrays.sort(cn);\n if (P.own_file || P.finished) { //select randomly.\n java.util.Collections.shuffle(list);\n int cnt = 0; //#peers selected.\n for (int i = 0; i < num_peer && cnt < P.num_preferred_neighbors; i++) {\n ind = list.get(i);\n if (P.is_interested[ind] && P.peer_id[ind] != P.id) {\n P.current_neighbors[cnt++] = P.peer_id[ind];\n //send unchoke message to previously choked peer.\n if (Arrays.binarySearch(cn, P.peer_id[ind]) < 0) {\n Message msg = new Message();\n msg.length = 0; //no payload.\n msg.type = 1; //unchoke.\n msg.payload = null; //no payload.\n P.send(P.peer_id[ind], msg);\n }\n }\n }\n P.print(\"Choke selected \" + cnt + \" neighbors randomly.\");\n } else { //select according to the download rates.\n int[] order = getIndices(P.download_rates);\n int cnt = 0; //#peers selected.\n for (int i = 0; i < num_peer && cnt < P.num_preferred_neighbors; i++) {\n ind = order[i];\n if (P.is_interested[ind] && P.peer_id[ind] != P.id) {\n P.current_neighbors[cnt++] = P.peer_id[ind];\n //send unchoke message to previously choked peer.\n if (Arrays.binarySearch(cn, P.peer_id[ind]) < 0) {\n Message msg = new Message();\n msg.length = 0; //no payload.\n msg.type = 1; //unchoke.\n msg.payload = null; //no payload.\n P.send(P.peer_id[ind], msg);\n }\n }\n }\n //print debugging info.\n P.print(\"Choke selected \" + cnt + \" neighbors according to download rates.\");\n }\n //send choke message to peers previously unchoked but currently choked.\n Arrays.sort(Arrays.copyOfRange(P.current_neighbors, 0, P.num_preferred_neighbors - 1));\n for (int i = 0; i < P.num_preferred_neighbors; i++) {\n if (Arrays.binarySearch(P.current_neighbors, cn[i]) < 0) { //cn[i] not in current neighbor list.\n Message msg = new Message();\n msg.length = 0; //no payload.\n msg.type = 0; //choke.\n msg.payload = null; //no payload.\n P.send(P.peer_id[ind], msg);\n }\n }\n }\n //sleep some interval.\n try {\n Thread.sleep(1000 * P.unchoking_internal);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n }\n }", "protected ThreadState pickNextThread() {\n Lib.assertTrue(Machine.interrupt().disabled());\n if (threadStates.isEmpty())\n return null;\n\n return threadStates.last();\n }", "@Override\n\tpublic Void call() throws Exception {\n\t\tList<Integer> list=new ArrayList<>(THRESHOLD);\n\t\tfor(int i=0;i<iterations;i++) {\n\t\t\tlist.add(ThreadLocalRandom.current().nextInt());\n\t\t\tif(list.size() == THRESHOLD) {\n\t\t\t\t//To avoid contention at queue level sending data in chunks.\n\t\t\t\tqueue.put(list);\n\t\t\t\tlist = new ArrayList<>(THRESHOLD);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Test\n public void testIfThreadsAreBlockedIfThereIsNothinginQueue() throws InterruptedException {\n \t\n \tqueue.addUserRequest(createUserRequest(1, 10, ElevatorDirection.UP));\n \tqueue.addUserRequest(createUserRequest(1, 8, ElevatorDirection.UP));\n \t\n final Thread t = startTestThread( new TestRunnable() {\n\t\t\t@Override\n\t\t\tprotected void runTestThread() throws Throwable {\n\t\t\t\tfor (int i = 0; i < 2; ++i) {\n\t\t\t\t\tAssert.assertNotNull(queue.pickRequest(1, ElevatorDirection.UP));\n\t\t\t\t\tlogger.debug(\"Picked Element Fron Queue\");\n }\n\t\t\t\tThread.currentThread().interrupt();\n try {\n \tqueue.pickRequest(1, ElevatorDirection.UP);\n Assert.assertFalse(true);\n } catch (InterruptedException success) {\n \tlogger.debug(\"Thread Interrupted\");\n }\n Assert.assertFalse(Thread.interrupted());\n\t\t\t}\n\t\t});\n t.start();\n \n }", "final void pushTask(Runnable t) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int s = sp;\n setSlot(q, s & mask, t);\n storeSp(++s);\n if ((s -= base) == 1)\n pool.signalWork();\n else if (s >= mask)\n growQueue();\n }", "private void initReadBlockingTask(int size){ \n for (int i=0; i < size; i++){\n getReadTasks().offer(newReadBlockingTask(false));\n }\n }", "protected ThreadState pickNextThread() //Returns the ThreadState of the head of the PriorityQueue or null if the queue is empty\n\t\t{\n\t\t\tLib.assertTrue(Machine.interrupt().disabled());\n KThread thread = waitQueue.peek();\n if(thread == null)\n\t\t\t{\n return null;\n }\n else\n\t\t\t{\n return getThreadState(thread);\n }\n\t\t}", "public void startTaskTriggerCheckerThread() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n canRunEnqueueTaskThread.set(true);\n while(canRunEnqueueTaskThread.get()) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if(taskEnqueued.get() || canRunTaskThread.get()) { //do not enqueue the task if an instance of that task is already enqueued or running.\n continue;\n //log(PrioritizedReactiveTask.this.getClass().getSimpleName() + \" already in queue or is currently executing\");\n } else if(shouldTaskActivate()) {\n System.out.println(\"Thread \" + Thread.currentThread().getId() + \" enqueued task: \" + this.getClass().getSimpleName());\n taskQueue.add(PrioritizedReactiveTask.this);\n activeTasks.add(PrioritizedReactiveTask.this);\n taskEnqueued.set(true);\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }).start();\n }", "final Runnable pollTask() {\n Runnable t = locallyDeqTask();\n if (t == null && (t = scan()) != null)\n ++stealCount;\n return t;\n }", "protected ForkJoinWorkerThread(ForkJoinPool pool) {\n<<<<<<< HEAD\n super(pool.nextWorkerName());\n this.pool = pool;\n int k = pool.registerWorker(this);\n poolIndex = k;\n eventCount = ~k & SMASK; // clear wait count\n locallyFifo = pool.locallyFifo;\n Thread.UncaughtExceptionHandler ueh = pool.ueh;\n if (ueh != null)\n setUncaughtExceptionHandler(ueh);\n setDaemon(true);\n }", "synchronized int attemptSteal(ActivityRecord[] tmp, WorkerContext context,\n StealStrategy s, StealPool pool, ConstellationIdentifier src,\n int size, boolean local) {\n if (src.equals(identifier)) {\n logger.error(\"INTERAL ERROR: attemp steal from self!\",\n new Throwable());\n return 0;\n }\n\n if (!pool.overlap(wrapper.belongsTo())) {\n logger.info(\"attemptSteal: wrong pool!\");\n return 0;\n }\n\n // First steal from the activities that I cannot run myself.\n int offset = wrongContext.steal(context, s, tmp, 0, size);\n if (logger.isDebugEnabled() && !local) {\n logger.debug(\"Stole \" + offset + \" jobs from wrongContext of \"\n + identifier.id + \", size = \" + wrongContext.size());\n }\n\n if (local) {\n\n // Only peers from our own constellation are allowed to steal\n // restricted or stolen jobs.\n if (offset < size) {\n offset += restrictedWrongContext.steal(context, s, tmp, offset,\n size - offset);\n }\n\n if (offset < size) {\n offset += restricted.steal(context, s, tmp, offset,\n size - offset);\n }\n\n if (offset < size) {\n offset += stolen.steal(context, s, tmp, offset, size - offset);\n }\n }\n\n // Anyone may steal a fresh job\n if (offset < size) {\n int n = fresh.steal(context, s, tmp, offset, size - offset);\n offset += n;\n if (logger.isDebugEnabled() && !local) {\n logger.debug(\"Stole \" + n + \" jobs from fresh, size = \"\n + fresh.size());\n }\n\n }\n\n if (offset == 0) {\n // steal failed, no activities stolen\n return 0;\n }\n\n // Success. Trim if necessary\n if (offset != size) {\n tmp = trim(tmp, offset);\n }\n\n // System.out.println(\"ST: \" + identifier + \" returning \" + offset +\n // \" stolen jobs to \" + src);\n\n // Next, remove activities from lookup, and mark and register them as\n // relocated or stolen/exported\n registerLeavingActivities(tmp, offset, src, local);\n\n return offset;\n }", "public void runTasks() {\n promoteBlockedTasks();\n\n final AtomicInteger counter = new AtomicInteger(0);\n\n ExecutorService runners = threadPerCpuExecutor(stderr, \"TaskQueue\");\n\n for (int i = 0; i < Runtime.getRuntime().availableProcessors(); i++) {\n runners.execute(() -> {\n while (runOneTask()) {\n // running one task at a time\n counter.getAndIncrement();\n }\n });\n }\n\n runners.shutdown();\n\n try {\n runners.awaitTermination(FOREVER, TimeUnit.SECONDS);\n\n stdout.println(String.format(\"Executed tasks: %d\", counter.get()));\n\n } catch (InterruptedException e) {\n stdout.println(\"failed task: \" + e.getMessage());\n e.printStackTrace(stderr);\n throw new AssertionError();\n }\n }", "public void startThread() \n { \n ExecutorService taskList = \n Executors.newFixedThreadPool(2); \n for (int i = 0; i < 5; i++) \n { \n // Makes tasks available for execution. \n // At the appropriate time, calls run \n // method of runnable interface \n taskList.execute(new Counter(this, i + 1, \n \"task \" + (i + 1))); \n } \n \n // Shuts the thread that's watching to see if \n // you have added new tasks. \n taskList.shutdown(); \n }", "final Runnable locallyDeqTask() {\n Runnable work = dispatchQueue.poll();\n if( work!=null ) {\n return work;\n }\n int b;\n while (sp != (b = base)) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int i = (q.length - 1) & b;\n Runnable t = q[i];\n if (t != null && casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n }\n }\n return dispatchQueue.getSourceQueue().poll();\n }", "public static void main(String[] argv) {\n\t\ttry {\n\t\t\t// Some initial stats...\n\t\t\tSystem.out.println(\"Main thread starts executing.\");\n\t\t\tSystem.out.println(\"Initial value of top = \" + soStack.getTop() + \".\");\n\t\t\tSystem.out.println(\"Initial value of stack top = \" + soStack.pick() + \".\");\n\t\t\tSystem.out.println(\"Main thread will now fork several threads.\");\n\n\t\t\t/*\n\t\t\t * The birth of threads\n\t\t\t */\n\t\t\tAcquireBlock ab1 = new AcquireBlock();\n\t\t\tAcquireBlock ab2 = new AcquireBlock();\n\t\t\tAcquireBlock ab3 = new AcquireBlock();\n\n\t\t\tSystem.out.println(\"main(): Three AcquireBlock threads have been created.\");\n\n\t\t\tReleaseBlock rb1 = new ReleaseBlock();\n\t\t\tReleaseBlock rb2 = new ReleaseBlock();\n\t\t\tReleaseBlock rb3 = new ReleaseBlock();\n\n\t\t\tSystem.out.println(\"main(): Three ReleaseBlock threads have been created.\");\n\n\t\t\t// Create an array object first\n\t\t\tCharStackProber aStackProbers[] = new CharStackProber[NUM_PROBERS];\n\n\t\t\t// Then the CharStackProber objects\n\t\t\tfor (int i = 0; i < NUM_PROBERS; i++)\n\t\t\t\taStackProbers[i] = new CharStackProber();\n\n\t\t\tSystem.out.println(\"main(): CharStackProber threads have been created: \" + NUM_PROBERS);\n\n\t\t\t/*\n\t\t\t * Twist 'em all\n\t\t\t */\n\t\t\tab1.start();\n\t\t\taStackProbers[0].start();\n\t\t\trb1.start();\n\t\t\taStackProbers[1].start();\n\t\t\tab2.start();\n\t\t\taStackProbers[2].start();\n\t\t\trb2.start();\n\t\t\tab3.start();\n\t\t\taStackProbers[3].start();\n\t\t\trb3.start();\n\n\t\t\tSystem.out.println(\"main(): All the threads are ready.\");\n\n\t\t\t/*\n\t\t\t * Wait by here for all forked threads to die\n\t\t\t */\n\t\t\tab1.join();\n\t\t\tab2.join();\n\t\t\tab3.join();\n\n\t\t\trb1.join();\n\t\t\trb2.join();\n\t\t\trb3.join();\n\n\t\t\tfor (int i = 0; i < NUM_PROBERS; i++)\n\t\t\t\taStackProbers[i].join();\n\n\t\t\t// Some final stats after all the child threads terminated...\n\t\t\tSystem.out.println(\"System terminates normally.\");\n\t\t\tSystem.out.println(\"Final value of top = \" + soStack.getTop() + \".\");\n\t\t\tSystem.out.println(\"Final value of stack top = \" + soStack.pick() + \".\");\n\t\t\tSystem.out.println(\"Final value of stack top-1 = \" + soStack.getAt(soStack.getTop() - 1) + \".\");\n\t\t\tSystem.out.println(\"Stack access count = \" + soStack.getAccessCounter());\n\n\t\t\tSystem.exit(0);\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.err.println(\"Caught InterruptedException (internal error): \" + e.getMessage());\n\t\t\te.printStackTrace(System.err);\n\t\t} catch (EmptyStackException e) {\n\t\t\treportException(e);\n\t\t} catch (OutOfStackBoundException e) {\n\t\t\treportException(e);\n\t\t} catch (Exception e) {\n\t\t\treportException(e);\n\t\t} finally {\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public static void naive(int numResources){\n while(terminatedCount < taskList.size()){\n\n releaseArr = new int [numResources];\n boolean wait = addressWaiting();\n boolean notWait = addressNonWaiting();\n\n while((wait == false && notWait == false) && !checkResources() && terminatedCount < taskList.size() ){\n for(Task t : taskList){\n if(t.terminateTime == -1 && (!t.isAborted)){ // not terminated yet\n releaseAll(t);\n\n t.isAborted = true;\n terminatedCount ++;\n removeWaiting(t.taskNumber);\n\n break; // break out of forloop\n }\n }\n updateResources();\n }\n\n updateResources();\n time += 1;\n\n for(Instruction i : removeSet){\n waitingList.remove(i);\n }\n Collections.sort(waitingList);\n }\n }", "@Test\n public void testThread() {\n\n Thread thread1 = new Thread(() -> {\n //i++;\n for (int j = 0; j < 2000000; j++) {\n (this.i)++;\n }\n });\n\n Thread thread2 = new Thread(() -> {\n //System.out.println(\"i = \" + i);\n for (int j = 0; j < 2000000; j++) {\n System.out.println(\"i = \" + this.i);\n }\n });\n\n thread1.start();\n thread2.start();\n /*for (int j = 0; j < 20; j++) {\n thread1.start();\n thread2.start();\n }*/\n\n\n /* ValueTask valueTask = new ValueTask();\n PrintTask printTask = new PrintTask();*/\n\n /*for (int i = 0; i < 20; i++) {\n Worker1 worker1 = new Worker1(valueTask);\n Worker2 worker2 = new Worker2(printTask);\n\n worker1.start();\n worker2.start();\n }*/\n\n }", "private void run() {\n log.log(Level.INFO, \"Starting multiple evaluation of {0} tasks\", tasks.size());\n boolean done = tasks.isEmpty();\n while (!done) {\n boolean hasFreeTasks = true;\n while (hasCapacity() && hasFreeTasks) {\n File task = getFreeTask();\n if (task == null) {\n hasFreeTasks = false;\n } else {\n EvaluatorHandle handle = new EvaluatorHandle();\n if (handle.createEvaluator(task, log, isResume)) {\n log.fine(\"Created new evaluation handler\");\n evaluations.add(handle);\n }\n }\n }\n\n log.log(Level.INFO, \"Tasks in progress: {0}, Unfinished tasks: {1}\", new Object[]{evaluations.size(), tasks.size()});\n try {\n Thread.sleep(5000);\n } catch (InterruptedException ex) {\n //Bla bla\n }\n checkRunningEvaluations();\n done = tasks.isEmpty();\n }\n\n }", "void event(long t) {\n\r\n \r\n\r\n Job temp;\r\n if (this.TempListMigrating.front != null) { //if there are any new migrating tasks\r\n TempListMigrating.insertionSortIdentifier(this.TempListMigrating.front); //order the TempList, from smallest-largest\r\n\r\n while (this.TempListMigrating.front != null) {\r\n //TempList.calculateD(t);\r\n temp = TempListMigrating.remove();\r\n int assignedProcessor = this.getNextProcessor(temp);\r\n\r\n //add this task to the processor\r\n this.servers[this.Tasks[temp.identifier].index[assignedProcessor]].addToMigratingPool(temp);\r\n\r\n }\r\n }\r\n\r\n while (this.TempListFixed.front != null) {\r\n\r\n temp = TempListFixed.remove();\r\n this.servers[this.Tasks[temp.identifier].index[0]].pool.insertionSortDeadline(temp, t);\r\n\r\n }\r\n\r\n //add things to the processor now\r\n for (int i = 0; i < numProcessors; i++) {\r\n\r\n if (this.servers[i].executing.top != null) { //not empty, there is a job present\r\n //check for migrating tasks\r\n if (this.servers[i].migratingPool.front != null) {\r\n //there are migrating Tasks, and something on the stack\r\n if (this.Tasks[this.servers[i].executing.top.identifier].numMigrations < 2 || this.Tasks[this.servers[i].executing.top.identifier].fixed == true) { //executing is a fixed task\r\n if (servers[i].migratingPool.front != null) {\r\n //switch\r\n temp = servers[i].executing.top;\r\n servers[i].executing.top = servers[i].migratingPool.remove();\r\n servers[i].pool.insertionSortDeadline(temp, t);\r\n this.preemptions++;\r\n\r\n }\r\n } //if both migrating tasks\r\n else if (this.servers[i].migratingPool.front.identifier < servers[i].executing.top.identifier) {\r\n temp = servers[i].migratingPool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n this.preemptions++;\r\n }\r\n } else if (this.servers[i].pool.front != null)//check for fixed tasks\r\n {\r\n if (this.servers[i].pool.front.deadline < servers[i].executing.top.deadline) {\r\n temp = servers[i].pool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n this.preemptions++;\r\n }\r\n }\r\n\r\n } else if (this.servers[i].migratingPool.front != null) //it was empty, add now migrating\r\n {\r\n temp = servers[i].migratingPool.remove();\r\n servers[i].executing.top=temp;\r\n \r\n \r\n\r\n } else if (this.servers[i].pool.front != null) //executing was empty, and migratingPool was empty, add from fixed list\r\n {\r\n\r\n temp = servers[i].pool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n }\r\n\r\n }\r\n }", "public synchronized void retThread(WorkerThread w) {\n\t\tfor (int i = 0; i < this.threadPool.size(); ++i) {\n\t\t\tif (this.threadPool.get(i) == w) {\n\t\t\t\tthis.threadPool.get(i).setAvailable(true);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true) {\r\n\t\t\t\tsynchronized(a) {\r\n\t\t\t\t\twhile(!a.isEmpty()) {\r\n\t\t\t\t\t\ta.getFirst().cover();\r\n\t\t\t\t\t\ta.removeFirst();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(2000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public void testForNThreads();", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\tIterator<Future<Integer>> iter = runningThreadsList.iterator();\n\t\t\tif (iter.hasNext()) {\n\t\t\t\tFuture<Integer> future = (Future<Integer>) iter.next();\n\t\t\t\tif (future.isDone()) {\n\t\t\t\t\trunningThreadsList.remove(future);\n\t\t\t\t\t\n\t\t\t\t\tif (allocator.getInventory().isEmpty()) {\n\t\t\t\t\t\tallocator.shutdown();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tThread.yield();\n\t\t}\n\t\t\t\n\t\t\n\t}", "public synchronized void setThreads(int threads)\n/* */ {\n/* 122 */ if (threads <= 0) {\n/* 123 */ return;\n/* */ }\n/* */ \n/* 126 */ this.threads = threads;\n/* */ \n/* */ \n/* 129 */ if (this.helpers == null) {\n/* 130 */ this.helpers = new NeighborhoodHelper[threads];\n/* 131 */ for (int i = 0; i < threads; i++)\n/* */ {\n/* 133 */ this.helpers[i] = new NeighborhoodHelper(null);\n/* 134 */ this.helpers[i].start();\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 140 */ if (this.helpers.length < threads)\n/* */ {\n/* */ \n/* 143 */ NeighborhoodHelper[] temp = new NeighborhoodHelper[threads];\n/* */ \n/* */ \n/* 146 */ for (int i = 0; i < threads; i++) {\n/* 147 */ temp[i] = (i < this.helpers.length ? this.helpers[i] : new NeighborhoodHelper(null));\n/* */ }\n/* */ \n/* 150 */ this.helpers = temp;\n/* */ \n/* */ \n/* */ \n/* */ }\n/* 155 */ else if (this.helpers.length > threads)\n/* */ {\n/* */ \n/* 158 */ NeighborhoodHelper[] temp = new NeighborhoodHelper[threads];\n/* */ \n/* */ \n/* 161 */ for (int i = 0; i < threads; i++) {\n/* 162 */ if (i < threads) {\n/* 163 */ temp[i] = this.helpers[i];\n/* */ } else {\n/* 165 */ this.helpers[i].dispose();\n/* */ }\n/* */ }\n/* 168 */ this.helpers = temp;\n/* */ }\n/* 170 */ notifyAll();\n/* */ }", "public void runExploration() {\n List<Queue<String>> smallSkierQueues = partitionQueue(skierQueue);\n List<Queue<String>> smallLiftQueues = partitionQueue(liftQueue);\n List<Queue<String>> smallhourQueues = partitionQueue(hourQueue);\n\n // run threads here\n long startTime = System.nanoTime();\n for(int i = 0; i < 8; i++) {\n SmallSkierThread runSmallSkier = new SmallSkierThread(smallSkierQueues.get(i));\n SmallLiftThread runSmallLift = new SmallLiftThread(smallLiftQueues.get(i));\n SmallHourThread runSmallHour = new SmallHourThread(smallhourQueues.get(i));\n runSmallSkier.start();\n runSmallHour.start();\n runSmallLift.start();\n }\n // -> Aggregate results here\n // ...\n // ...\n // ...\n // <- End aggregation\n long endTime = System.nanoTime();\n long duration = endTime - startTime;\n System.out.println(\"Concurrent Solution Runtime: \" + duration/1000f + \" microseconds\");\n }", "final void interruptTask() {\n/* 82 */ Thread currentRunner = this.runner;\n/* 83 */ if (currentRunner != null) {\n/* 84 */ currentRunner.interrupt();\n/* */ }\n/* 86 */ this.doneInterrupting = true;\n/* */ }", "public void uponRelease() {\n try {\n\n int size = waitingList.size();\n if (size > 0) {\n int random = (int) (stream.getNumber() * size);\n NodeThread next = (NodeThread)waitingList.get(random);\n next.wakeUp();\n }\n\n } catch (IOException e) {}\n }", "@Override\n protected void afterExecute(final Runnable r, final Throwable t) {\n mActiveTasks.remove(r);\n\n // Perform a quick check to see if there are any remaining requests in\n // the blocked queue. Peek the head and check for duplicates in the \n // active and task queues. If no duplicates exist, add the request to\n // the task queue. Repeat this until a duplicate is found\n synchronized (mBlockedTasks) {\n while(mBlockedTasks.peek()!=null && \n !mTaskQueue.contains(mBlockedTasks.peek()) && \n !mActiveTasks.contains(mBlockedTasks.peek())){\n Runnable runnable = mBlockedTasks.poll();\n if(runnable!=null){\n mThreadPool.execute(runnable);\n }\n }\n }\n super.afterExecute(r, t);\n }", "@Override\n public void run() {\n int everyBlock = limit / THREADS;\n int end = everyBlock * threadId + 2;\n for(int i = end - everyBlock; i < end; i++){\n if(isPrime(i)){\n synchronized (primeNumbers){\n primeNumbers.add(i);\n }\n }\n }\n }", "public static void main(String[] args) {\n ExecutorService executor = Executors.newFixedThreadPool(5);\n\n for (int i = 0; i < 10; i++) {\n Runnable worker = new WorkerThreadSand(\" \" + i);\n executor.execute(worker);\n }\n executor.shutdown();\n\n// nasty path for executor\n try {\n ExecutorService nastyExecutor = Executors.newSingleThreadExecutor();\n nastyExecutor.execute(null);\n }catch (Exception e){\n System.out.println(\"Nulls don't work\");\n }\n\n\n System.out.println(\"Finished all threads\");\n\n }", "public void runPendingTasks() {\n/* */ try {\n/* 578 */ this.loop.runTasks();\n/* 579 */ } catch (Exception e) {\n/* 580 */ recordException(e);\n/* */ } \n/* */ \n/* */ try {\n/* 584 */ this.loop.runScheduledTasks();\n/* 585 */ } catch (Exception e) {\n/* 586 */ recordException(e);\n/* */ } \n/* */ }", "private UniqueElementSingleThreadWorker()\n {\n _state = ActivityState.INITIALIZING;\n _taskQueue = new UniqueTagQueue<String, Runnable>();\n \n _taskThread = new Thread(\"UniqueElementSingleThreadWorker-\" + COUNTER.incrementAndGet())\n {\n @Override\n public void run()\n {\n while(true)\n {\n try\n {\n Runnable task = _taskQueue.blockingPop();\n if(task == SHUTDOWN_TASK)\n {\n break;\n }\n task.run();\n }\n catch(InterruptedException ex) { }\n //Catch run time exceptions that the runnable might throw so that the thread does not die\n catch(RuntimeException ex)\n {\n ErrorReporter.reportUncaughtException(ex);\n }\n }\n \n _state = ActivityState.SHUT_DOWN;\n }\n };\n }", "@Test (timeout=180000)\n public void testHbckThreadpooling() throws Exception {\n TableName table =\n TableName.valueOf(\"tableDupeStartKey\");\n try {\n // Create table with 4 regions\n setupTable(table);\n\n // limit number of threads to 1.\n Configuration newconf = new Configuration(conf);\n newconf.setInt(\"hbasefsck.numthreads\", 1);\n assertNoErrors(doFsck(newconf, false));\n\n // We should pass without triggering a RejectedExecutionException\n } finally {\n cleanupTable(table);\n }\n }", "public void execute(final DispatchTask task, final DeliverTask callback)\n {\n // Note that we associate a callback with a task via the thread used to \n // execute the task. In general, a free slot in the pool (i.e., m_pool[i] is \n // null) can be used to set-up a new thread. Also note that we need to \n // update the LRU index if we change the pool.\n synchronized(m_lock)\n {\n if(m_closed)\n {\n // We are closed hence, spin-of a new thread for the new task.\n final PooledThread result = new PooledThread();\n \n // Set-up the thread and associate the task with the callback.\n result.reset(task, callback);\n \n // release the thread immediately since we don't pool anymore.\n result.release();\n \n return;\n }\n \n // Search in the pool for a free thread.\n for (int i = 0; i < m_pool.length; i++)\n {\n // o.k. we found a free slot now set-up a new thread for it.\n if (null == m_pool[i])\n {\n m_pool[i] = new PooledThread();\n\n m_pool[i].reset(task, callback);\n \n m_index.add(new Integer(i));\n \n return;\n }\n else if (m_pool[i].available())\n {\n // we found a free thread now set it up.\n m_pool[i].reset(task, callback);\n \n final Integer idx = new Integer(i);\n \n m_index.remove(idx);\n \n m_index.add(idx);\n \n return;\n }\n }\n\n // The pool is full and no threads are available hence, spin-off a new\n // thread and add it to the pool while decoupling the least recently used\n // one. This assumes that older threads are likely to take longer to \n // become available again then younger ones.\n final int pos = ((Integer) m_index.remove(0)).intValue();\n \n m_index.add(new Integer(pos));\n \n m_pool[pos].release();\n\n m_pool[pos] = new PooledThread();\n\n m_pool[pos].reset(task, callback);\n }\n }", "private Task[] stealTaskFromOtherResourcesToExecute(String resourceName, int numberOfTasks) {\n Boolean[] fulfillsLicenses = new Boolean[Core.coreCount];\n\n Task[] stolenTask = new Task[numberOfTasks];\n Task[] bestTask = new Task[numberOfTasks];\n String[] taskOwner = new String[numberOfTasks];\n int[] bestScore = new int[numberOfTasks];\n\n for (int i = 0; i < numberOfTasks; i++) {\n bestTask[i] = null;\n bestScore[i] = Integer.MIN_VALUE;\n taskOwner[i] = \"\";\n }\n int minimumScore = Integer.MIN_VALUE;\n int minimumPosition = 0;\n\n\n\n\n Task[] bestTaskEnforced = new Task[numberOfTasks];\n String[] taskOwnerEnforced = new String[numberOfTasks];\n int[] bestScoreEnforced = new int[numberOfTasks];\n\n for (int i = 0; i < numberOfTasks; i++) {\n bestTaskEnforced[i] = null;\n bestScoreEnforced[i] = Integer.MIN_VALUE;\n taskOwnerEnforced[i] = \"\";\n }\n int minimumScoreEnforced = Integer.MIN_VALUE;\n int minimumPositionEnforced = 0;\n\n TreeSet<String> compatibleResources = new TreeSet<String>();\n List<Integer> executableMethods = resManager.getExecutableCores(resourceName);\n for (Integer methodId : executableMethods) {\n compatibleResources.addAll(resManager.findResources(methodId));\n }\n compatibleResources.remove(resourceName);\n\n for (String ownerName : compatibleResources) {\n // Find best scoring task whose constraints are fulfilled by the resource\n for (Task t : queueManager.getPendingTasks(ownerName)) {\n if (fulfillsLicenses[t.getCore().getId()] == null) {\n fulfillsLicenses[t.getCore().getId()] = queueManager.canRunCore(t.getCore().getId());\n }\n if (!fulfillsLicenses[t.getCore().getId()]) {\n continue;\n }\n boolean matches = resManager.matches(resourceName, t.getCore().getId());\n if (matches) {\n int score = 0;\n Parameter[] params = t.getCore().getParameters();\n for (Parameter p : params) {\n if (p instanceof DependencyParameter) {\n DependencyParameter dp = (DependencyParameter) p;\n DataInstanceId dId = null;\n switch (dp.getDirection()) {\n case IN:\n RAccessId raId = (RAccessId) dp.getDataAccessId();\n dId = raId.getReadDataInstance();\n break;\n case INOUT:\n RWAccessId rwaId = (RWAccessId) dp.getDataAccessId();\n dId = rwaId.getReadDataInstance();\n break;\n case OUT:\n break;\n }\n\n if (dId != null) {\n\n TreeSet<String> hosts = FTM.getHosts(dId);\n for (String host : hosts) {\n if (host.equals(ownerName)) {\n score--;\n break;\n }\n if (host.equals(resourceName)) {\n score += 2;\n break;\n }\n }\n }\n }\n }\n if (t.isStrongEnforcedScheduling()) {\n continue;\n } else if (t.isEnforcedSceduling()) {\n if (score > minimumScore) {\n bestScoreEnforced[minimumPositionEnforced] = score;\n bestTaskEnforced[minimumPositionEnforced] = t;\n taskOwnerEnforced[minimumPositionEnforced] = ownerName;\n\n minimumScoreEnforced = bestScoreEnforced[0];\n minimumPositionEnforced = 0;\n\n\n\n for (int i = 1; i < numberOfTasks; i++) {\n if (minimumScoreEnforced > bestScoreEnforced[i]) {\n minimumScoreEnforced = bestScoreEnforced[i];\n minimumPositionEnforced = i;\n }\n }\n }\n } else {\n if (score > minimumScore) {\n bestScore[minimumPosition] = score;\n bestTask[minimumPosition] = t;\n taskOwner[minimumPosition] = ownerName;\n\n minimumScore = bestScore[0];\n minimumPosition = 0;\n\n\n\n for (int i = 1; i < numberOfTasks; i++) {\n if (minimumScore > bestScore[i]) {\n minimumScore = bestScore[i];\n minimumPosition = i;\n }\n }\n }\n }\n }\n }\n }\n int count = 0;\n for (int i = 0; i < numberOfTasks; i++) {\n if (bestTask[i] != null) {\n queueManager.moveFromNode(bestTask[i], taskOwner[i], resourceName);\n stolenTask[count] = bestTask[i];\n count++;\n }\n }\n for (int i = count; i < numberOfTasks; i++) {\n if (bestTaskEnforced[i] != null) {\n queueManager.moveFromNode(bestTaskEnforced[i], taskOwnerEnforced[i], resourceName);\n stolenTask[count] = bestTaskEnforced[i];\n count++;\n }\n }\n return stolenTask;\n }", "private void waitUntilAllThreadsAreFinished() {\n int index = 1;\n\n while (true) {\n while (index <= noThread) {\n if (carry[index] == -1) {\n index = 1;\n } else {\n index++;\n }\n }\n break;\n }\n }", "@Setup\n public void setup() {\n\n f = x -> {\n Blackhole.consumeCPU(1000 * busyFactor);\n return x * x;\n };\n set = new HashSet<>();\n {\n Random random = new Random();\n for (int i = 0; i < dataSize; i++) {\n set.add(random.nextInt(dataSize));\n }\n }\n list = new ArrayList<>();\n {\n Random random = new Random();\n for (int i = 0; i < dataSize; i++) {\n list.add(random.nextInt(dataSize));\n }\n }\n executor1 = Executors.newFixedThreadPool(4);\n executor2 = Executors.newFixedThreadPool(8);\n executor3 = Executors.newFixedThreadPool(16);\n forkJoinPool = new ForkJoinPool();\n\n }", "Future_<V> take() throws InterruptedException;", "final Runnable popTask() {\n int s = sp;\n while (s != base) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int i = (s - 1) & mask;\n Runnable t = q[i];\n if (t == null || !casSlotNull(q, i, t))\n break;\n storeSp(s - 1);\n return t;\n }\n }\n return null;\n }", "public void testFairTakeFromEmpty() {\n final SynchronousQueue q = new SynchronousQueue(true);\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n q.take();\n\t\t\tthreadShouldThrow();\n } catch (InterruptedException success){ }\n }\n });\n try {\n t.start();\n Thread.sleep(SHORT_DELAY_MS);\n t.interrupt();\n t.join();\n } catch (Exception e){\n unexpectedException();\n }\n }", "private static Thread pruneThread(Thread base, Thread prune)\r\n/* 71: */ {\r\n/* 72:84 */ if (prune.isEmpty()) {\r\n/* 73:84 */ return prune;\r\n/* 74: */ }\r\n/* 75:85 */ if (base.equals(prune)) {\r\n/* 76:86 */ return new Thread(prune);\r\n/* 77: */ }\r\n/* 78:88 */ if (base.contains(prune.get(prune.size() - 1))) {\r\n/* 79:89 */ return new Thread(prune);\r\n/* 80: */ }\r\n/* 81:91 */ Thread pruned = new Thread(prune);\r\n/* 82:92 */ pruned.remove(prune.get(prune.size() - 1));\r\n/* 83:93 */ return pruned;\r\n/* 84: */ }", "@Test\n public void testParallelOnce() {\n final int count = 100000;\n final int threads = 4;\n final int perThread = count / threads;\n Cache<Integer, Integer> c =\n builder()\n .entryCapacity(-1)\n .weigher((key, value) -> value)\n .maximumWeight(MAX_VALUE)\n .build();\n AtomicInteger offset = new AtomicInteger();\n Runnable inserter = () -> {\n int start = offset.getAndAdd(perThread);\n int end = start + perThread;\n for (int i = start; i < end; i++) {\n c.put(i, i);\n }\n for (int i = start; i < end; i++) {\n c.remove(i);\n }\n };\n ThreadingStressTester tst = new ThreadingStressTester();\n tst.setOneShotMode(true);\n tst.setOneShotTimeoutMillis(MAX_FINISH_WAIT_MILLIS);\n tst.addTask(threads, inserter);\n tst.run();\n assertThat(getInfo().getTotalWeight())\n .as(\"total weight is 0\")\n .isEqualTo(0);\n }", "public Serializable pop() throws InterruptedException {\n Serializable temp = null;\n if(taskQueue.isEmpty()){\n waitForThread();//blocks for taskQueue.\n }\n temp = taskQueue.removeFirst();\n threadLimit++;\n \n return temp;\n }", "private void scheduleNext() {\n lock.lock();\n try {\n active = tasks.poll();\n if (active != null) {\n executor.execute(active);\n terminating.signalAll();\n } else {\n //As soon as a SerialExecutor is empty, we remove it from the executors map.\n if (lock.isHeldByCurrentThread() && isEmpty() && this == serialExecutorMap.get(identifier)) {\n serialExecutorMap.remove(identifier);\n terminating.signalAll();\n if (state == State.SHUTDOWN && serialExecutorMap.isEmpty()) {\n executor.shutdown();\n }\n }\n }\n } finally {\n lock.unlock();\n }\n }", "private static Runnable makeTaskGang(String[] wordList,\n TestsToRun choice) {\n switch(choice) {\n case COUNTDOWNLATCH:\n return new OneShotSearchWithCountDownLatch(wordList,\n mOneShotInputStrings);\n case CYCLIC_BARRIER:\n return new CyclicSearchWithCyclicBarrier(wordList,\n mFixedNumberOfInputStrings);\n case PHASER:\n return new CyclicSearchWithPhaser(wordList,\n mVariableNumberOfInputStrings);\n }\n return null;\n }", "public void randomBoard(int Row, int Col){\n board.makeBoard(Row,Col);\n int length = board.getRow();\n int splited = length/numWorkers;\n for (int i = 1; i <splitedBoard.length ; i++) {\n splitedBoard[i-1] = splited * i;\n }\n splitedBoard[splitedBoard.length-1] = board.getRow();\n \n for (int i = 0; i < numWorkers; i++) {\n int start;\n int stop;\n if (i == 0){\n start = 0;\n stop = splitedBoard[i];\n }else{\n start = splitedBoard[i-1];\n stop = splitedBoard[i];\n }\n\n workers[i] = new Thread(RandomRun(start,stop ));\n\n }\n for (Thread worker : workers) {\n worker.start();\n }\n\n try {\n for (Thread worker : workers) {\n worker.join();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n public void run() {\n List<Integer> list = new ArrayList<Integer>();\n int num_peer = P.peer_port.length;\n int ind = -1;\n while (P.choke_thread_running) {\n synchronized (P.lock_current_neighbors) { //lock the object\n for (int i = 0; i < num_peer; i++) {\n list.add(i);\n }\n //select randomly.\n java.util.Collections.shuffle(list);\n int[] cn = P.current_neighbors.clone();\n Arrays.sort(cn);\n for (int i = 0; i < num_peer; i++) {\n int ind2 = list.get(i);\n if (P.is_interested[ind2] && Arrays.binarySearch(cn, P.peer_id[ind2]) < 0 && P.peer_id[ind2] != P.id && P.sockets[ind2]!=null) {\n ind = ind2;\n P.current_neighbors[P.current_neighbors.length - 1] = P.peer_id[ind];\n break;\n }\n\n }\n }\n //send unchoke message.\n Message msg = new Message();\n msg.length = 0; //no payload.\n msg.type = 1; //unchoke.\n msg.payload = null; //no payload.\n \n if (ind >= 0) //there is someone interested in my data.\n {\n P.send(P.peer_id[ind], msg);\n P.print(\"OptChoke unchoked peer with id \" + P.peer_id[ind]);\n }\n ind = -1;\n //print debugging info.\n \n //sleep some interval.\n try {\n Thread.sleep(1000 * P.optimistic_unchoking_interval);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n }\n }", "private void mainLoop() {\n while (!isShutdown()) {\n Runnable t = pollTask();\n if (t != null || (t = pollSubmission()) != null)\n t.run();\n else if (tryInactivate())\n pool.sync(this);\n }\n }", "@Override\n\tpublic Object[] splitTasks() {\n\t\tif (tasks == null) {\n\t\t\tSystem.out.println(\"There are \"+taskNum +\" tasks, and handled by \"+clientsNum+\" clients\");\n\t\t}\t\t\n\t\ttasks = new SimpleTask[clientsNum];\n\t\ttq = taskNum / clientsNum;\n//\t\tbatchSize = tq;\n\t\tint left = taskNum - tq * clientsNum;\n\t\t\n\t\tfor (int i = 0; i < tasks.length; i++) {\n\t\t\tint l = 0;\n\t\t\tif (left >= i+1) {\n\t\t\t\tl = 1;\n\t\t\t}\n\t\t\tif (i == 0) {\n\t\t\t\ttasks[i] = new SimpleTask(1, tq + l, batchSize);\n\t\t\t} else {\n\t\t\t\ttasks[i] = new SimpleTask(\n\t\t\t\t\t\ttasks[i - 1].getEnd()+ 1, tasks[i - 1].getEnd() + tq + l, batchSize);\n\t\t\t}\t\t\t\n\t\t}\n//\t\tSystem.out.println(\"done .\"+clientsNum);\n\t\tthis.srvQ2QLSTM.getCfg().getQlSTMConfigurator().setMBSize(batchSize);\n\t\tthis.srvQ2QLSTM.getCfg().getAlSTMConfigurator().setMBSize(batchSize);\t\t\n\t\treturn tasks;\n\t}", "@Override\n\tpublic void run() {\n\t\tif(intArrsSize.get() >= 0) {\n\t\t\ttry {\n\t\t\t\tlock.lock();\n\t\t\t\tdownLatch.await();\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() +\"|\"+ intArrs[intArrsSize.get()]);\n\t\t\t\tintArrsSize.decrementAndGet();\n\t\t\t\tawait.countDown();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tlock.unlock();\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testTakeBlocksWhenEmpty() throws InterruptedException {\n final int capacity = 10;\n final BoundedBuffer<Integer> bb = new BoundedBuffer<Integer>(capacity);\n\n Runnable task = new Runnable() {\n public void run() {\n try {\n bb.take();\n } catch (InterruptedException e) {\n assertEquals(InterruptedException.class, e.getClass());\n //e.printStackTrace();\n }\n }\n };\n\n Thread thread = new Thread(task);\n thread.start();\n\n\n Thread.sleep(LOCKUP_DETECT_TIMEOUT);\n try{\n thread.interrupt();\n thread.join();\n\n }\n catch(Exception e){\n e.printStackTrace();\n }\n\n\n\n\n\n }", "private void mainLoop() {\n while (!isShutdown()) {\n ForkJoinTask<?> t = pollTask();\n if (t != null || (t = pollSubmission()) != null)\n t.quietlyExec();\n else if (tryInactivate())\n pool.sync(this);\n }\n }", "@Test\r\n public void testIncrementCorrectly() throws InterruptedException {\r\n final int expectedCount=1000;\r\n final AtomicInteger intCounter = new AtomicInteger();\r\n for (int i = 0; i < expectedCount; i++) {\r\n final int threadNumber=i;\r\n final Runnable r = () -> {\r\n Random random = new Random();\r\n try {\r\n Thread.sleep(random.nextInt(25));\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(CountingThreadProblemTest.class.getName()).log(Level.SEVERE, \"Unable to sleep\", ex);\r\n }\r\n intCounter.incrementAndGet();\r\n System.out.println(\"Correct counter thread \" + threadNumber + \" has \" + intCounter.get());\r\n };\r\n executor.submit(r);\r\n }\r\n \r\n System.out.println(\"A little delay for the threads...\");\r\n Thread.sleep(10000);\r\n\r\n assertEquals(expectedCount, intCounter.get());\r\n }", "final Runnable peekTask() {\n Runnable[] q = queue;\n if (q == null)\n return null;\n int mask = q.length - 1;\n int i = base;\n return q[i & mask];\n }", "private void advanceAllDrones(Set<Drone> droneSet, float deltaTime, int nbIterations) throws InterruptedException {\n\t\t//first set the time interval for all the drones\n\t\tfor(Drone drone: droneSet){\n\t\t drone.setNbIterations(nbIterations);\n\t\t\tdrone.setDeltaTime(deltaTime);\n\t\t}\n\t\t//get the execution pool\n\t\tExecutorService droneThreads = this.getDroneThreads();\n\t\t//System.out.println(\"used ThreadPool: \" + this.getDroneThreads());\n\t\t//first invoke all the next states\n\t\tList<Future<Void>> unfinishedThreads = droneThreads.invokeAll(droneSet);\n\t\tList<Future<Void>> finishedThreads = new ArrayList<>();\n\t\t//then wait for all the futures to finish\n\t\tboolean allFinished = false;\n\t\t//keeps looping until all drones are advanced to the next state\n\t\twhile(!allFinished){\n\t\t\t//first get the first thread\n\t\t\tFuture<Void> droneFuture = unfinishedThreads.get(0);\n\n\t\t\t//wait until the first thread finishes\n\t\t\ttry {\n\t\t\t\tdroneFuture.get();\n\t\t\t\t//check if there was an exception\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\tif(e.getCause() instanceof AngleOfAttackException){\n\t\t\t\t\tSystem.out.println(\"angle of attack exception\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"An error occurred: \" + e.getCause().toString());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//get all the finished elements\n\t\t\tfinishedThreads = unfinishedThreads.stream()\n\t\t\t\t\t.filter(future -> future.isDone())\n\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t//check if any of the finished threads got into trouble\n\t\t\tfor(Future<Void> finishedFuture: finishedThreads){\n\t\t\t\ttry {\n\t\t\t\t\tfinishedFuture.get();\n\t\t\t\t\t//check if there occurred an error\n\t\t\t\t} catch (ExecutionException e) {\n\t\t\t\t\tif(e.getCause() instanceof AngleOfAttackException){\n\t\t\t\t\t\tthrow (AngleOfAttackException) e.getCause(); //rethrow, info for the main loop\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//filter out all the elements that are finished\n\t\t\tunfinishedThreads = unfinishedThreads.stream()\n\t\t\t\t\t.filter(future -> !future.isDone())\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t//check if drone futures is empty ot not\n\t\t\tif(unfinishedThreads.size() == 0){\n\t\t\t\tallFinished = true;\n\t\t\t}\n\t\t}\n\t\t//we may exit, all the drones have been set to state k+1\n\t}", "public T take() throws InterruptedException, IOException {\n lock.lock();\n try {\n T wrapper = this.dequeue();\n if (wrapper == null) {\n while ((wrapper = this.dequeue()) == null) {\n logger.debug(\"Waiting for take condition\");\n await();\n }\n }\n return wrapper;\n } finally {\n lock.unlock();\n }\n }", "private void forkQueueProcessor() {\n if (lifecycle.started() == false) {\n drainQueueOnRejection(new FailedToCommitClusterStateException(\"node closed\", getRejectionException()));\n return;\n }\n\n assert totalQueueSize.get() > 0;\n final var threadContext = threadPool.getThreadContext();\n try (var ignored = threadContext.stashContext()) {\n threadContext.markAsSystemContext();\n threadPoolExecutor.execute(queuesProcessor);\n }\n }", "@Test\n public void heavierTest() throws InterruptedException, ExecutionException {\n Stage stage1 = createStage();\n Stage stage2 = createStage();\n StatelessThing actor1 = Actor.getReference(StatelessThing.class, \"1000\");\n StatelessThing actor2 = Actor.getReference(StatelessThing.class, \"1000\");\n final Set<UUID> set = new HashSet<>();\n set.clear();\n List<Future<UUID>> futures = new ArrayList<>();\n for (int i = 0; i < 50; i++) {\n // this will force the creation of concurrent activations in each node\n stage1.bind();\n futures.add(actor1.getUniqueActivationId());\n stage2.bind();\n futures.add(actor2.getUniqueActivationId());\n }\n futures.forEach(( f) -> {\n try {\n set.add(f.get(10, TimeUnit.SECONDS));\n } catch (Exception e) {\n throw new UncheckedException(e);\n }\n });\n // it is very likely that there will be more than one activation per stage host.\n Assert.assertTrue(((set.size()) > 1));\n // only 25*5 calls => there should not be more than 125 activations\n Assert.assertTrue(((set.size()) <= 100));\n }", "public abstract void task() throws InterruptedException;", "public synchronized void take(Object object) throws InterruptedException {\n while (pool.size() >= POOL_SIZE) {\n wait();\n }\n pool.add(object);\n notifyAll();\n }", "public void testNewFixedThreadPool1() {\n final ExecutorService e = Executors.newFixedThreadPool(2);\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }", "public void run() {\n Set<Philosopher> disabledPhils = new HashSet<Philosopher>();\r\n // True if last philosopher who tried to eat succeed\r\n boolean wasAttemptSuccessful = false;\r\n final long startTime = System.currentTimeMillis();\r\n while (System.currentTimeMillis() - startTime < runningTime) {\r\n if (wasAttemptSuccessful || hungryPhils.isEmpty()) {\r\n hungryPhils.addAll(disabledPhils);\r\n disabledPhils.clear();\r\n }\r\n Philosopher philBeingServed = null;\r\n try {\r\n philBeingServed = hungryPhils.take(); // get phil with the highest priority\r\n disabledPhils.add(philBeingServed);\r\n if (forks.get(philBeingServed.id).attempt(1)) { // Could use tryLock instead\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] took left fork\");\r\n }\r\n if (forks.get(philBeingServed.id + 1).attempt(Math.round(Math.random() *\r\n (MAX_ATTEMPT_TIME + 1)))) {\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] took right fork\");\r\n }\r\n philBeingServed.giveMeal();\r\n disabledPhils.remove(philBeingServed);\r\n wasAttemptSuccessful = true;\r\n } else {\r\n wasAttemptSuccessful = false;\r\n forks.get(philBeingServed.id).release();\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] put left fork\");\r\n }\r\n }\r\n } else {\r\n wasAttemptSuccessful = false;\r\n }\r\n } catch (InterruptedException e) {\r\n if (philBeingServed != null) {\r\n forks.get(philBeingServed.id).release();\r\n forks.get(philBeingServed.id + 1).release();\r\n }\r\n e.printStackTrace();\r\n }\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.printf(\"\\n\\n\"); // Kinda delimiter\r\n FireStarter.isDebugEnabled = false; // Stop producing messages from philosophers\r\n }\r\n }\r\n }", "public void run(){\n\t\ttry {\n\t\t\tint i = 0;\n\t\t\twhile (rn_array[i] != 0) i++;\n\t\t\trn_array[i] = r.nextInt(100)+1;\n\t\t\t\n\t\t\t/*switch (index){\n\t\t\tcase 0:\n\t\t\t\trn1 = r.nextInt(100)+1;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\trn2 = r.nextInt(100)+1;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\trn3 = r.nextInt(100)+1;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\trn4 = r.nextInt(100)+1;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\trn5 = r.nextInt(100)+1;\n\t\t\t\tbreak;\n\t\t\t}*/\n\t\t\tThread.sleep(100);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void testDrainToN() {\n final SynchronousQueue q = new SynchronousQueue();\n Thread t1 = new Thread(new Runnable() {\n public void run() {\n try {\n q.put(one);\n } catch (InterruptedException ie){\n threadUnexpectedException();\n }\n }\n });\n Thread t2 = new Thread(new Runnable() {\n public void run() {\n try {\n q.put(two);\n } catch (InterruptedException ie){\n threadUnexpectedException();\n }\n }\n });\n\n try {\n t1.start();\n t2.start();\n ArrayList l = new ArrayList();\n Thread.sleep(SHORT_DELAY_MS);\n q.drainTo(l, 1);\n assertTrue(l.size() == 1);\n q.drainTo(l, 1);\n assertTrue(l.size() == 2);\n assertTrue(l.contains(one));\n assertTrue(l.contains(two));\n t1.join();\n t2.join();\n } catch(Exception e){\n unexpectedException();\n }\n }", "@Override\n public SyncObjectState call() {\n\n SyncObjectState callState = SyncObjectState.STARTED;\n \n \n long remainingSleep = task.getSleepUntil() - System.currentTimeMillis();\n if (remainingSleep > 0) {\n try {\n Thread.sleep(remainingSleep);\n } catch (InterruptedException ex) {\n logger.warn(buildStandardLogMessage(null, \" Interrupted task-remaining-sleep\"));\n }\n }\n\n // TODO: consider replacing Lock with with IMap, for the automatic GC\n // see https://groups.google.com/forum/#!topic/hzProcessingClient/9YFGh3xwe8I\n Lock hzPidLock = hzProcessingClient.getLock(task.getPid());\n \n // this section must be thread-safe otherwise, we may skip unlocking a lock.\n // see http://docs.hazelcast.org/docs/3.5/manual/html/lock.html\n try {\n logger.info(buildStandardLogMessage(null, \" Locking task, attempt \" + task.getLockAttempt()));\n \n if (hzPidLock.tryLock(1, TimeUnit.SECONDS)) {\n // got lock\n try {\n logger.info(buildStandardLogMessage(null, \" Processing SyncObject\"));\n SystemMetadata mnSystemMetadata = retrieveMNSystemMetadata();\n logger.debug(task.taskLabel() + \" MN system metadata retrieved...\");\n\n processTask(mnSystemMetadata);\n callState = SyncObjectState.SUCCESS;\n \n } catch (RetryableException ex) {\n if (task.getAttempt() < 20) {\n callState = SyncObjectState.RETRY;\n \n logger.warn(buildStandardLogMessage(ex, \" RetryableException raised on attempt \"\n + task.getAttempt() + \" of 20. Sleeping and requeueing.\"));\n\n task.setAttempt(task.getAttempt() + 1);\n task.setSleepUntil(System.currentTimeMillis() + 5000L);\n\n hzProcessingClient.getQueue(synchronizationObjectQueue).put(task);\n \n } else {\n logger.error(buildStandardLogMessage(ex,\" Exceeded retry limit.\"\n + \" Unable to process the SyncObject. Converting to UnrecoverableException\"),ex);\n throw new UnrecoverableException(task.getPid() + \": retry limits reached without success.\",\n ex.getCause());\n }\n } finally {\n hzPidLock.unlock();\n logger.info(buildStandardLogMessage(null, \" Unlocked Pid.\"));\n }\n } else {\n // lock-retry handling\n if (task.getLockAttempt() < 100) {\n callState = SyncObjectState.RETRY;\n \n logger.warn(buildStandardLogMessage(null,\n \" Cannot lock Pid! Requeueing the task. Attempt \" + task.getLockAttempt()));\n\n task.setLockAttempt(task.getLockAttempt() + 1);\n task.setSleepUntil(System.currentTimeMillis() + 1000L);\n hzProcessingClient.getQueue(synchronizationObjectQueue).put(task);\n \n } else {\n callState = SyncObjectState.FAILED;\n \n String message = \"Cannot lock Pid! Reached Max attempts (100), abandoning processing of this pid.\";\n logger.error(buildStandardLogMessage(null, message));\n throw new SynchronizationFailed(\"5000\",message);\n }\n }\n } catch (SynchronizationFailed e) {\n callState = SyncObjectState.FAILED;\n \n logger.error(buildStandardLogMessage(e.getCause(),\"SynchronizationFailed: \" + e.getMessage()),e);\n SyncFailedTask syncFailedTask = new SyncFailedTask(nodeCommunications, task);\n syncFailedTask.submitSynchronizationFailed(e);\n\n } catch (UnrecoverableException e) {\n callState = SyncObjectState.FAILED;\n // this is the proper location to decide whether or not to notify the MemberNode\n // (these are exceptions caused by internal problems)\n \n // in all cases, we need to log\n logger.error(buildStandardLogMessage(e.getCause(),\"UnrecoverableException: \" + e.getMessage()),e);\n \n // report to MN, for now\n\n SyncFailedTask syncFailedTask = new SyncFailedTask(nodeCommunications, task);\n if (e.getCause() instanceof BaseException)\n syncFailedTask.submitSynchronizationFailed(task.getPid(), null,(BaseException) e.getCause());\n \n else \n syncFailedTask.submitSynchronizationFailed(task.getPid(), null,\n new ServiceFailure(\"5000\", this.buildStandardLogMessage(e.getCause(), null)));\n\n\n \n } catch (InterruptedException e) {\n callState = SyncObjectState.FAILED;\n // was handled as Exception before I split this out\n // don't know if we need to handle it any differently,\n logger.error(buildStandardLogMessage(e, \"Interrupted: \" + e.getMessage()), e);\n\n } catch (Exception e) {\n callState = SyncObjectState.FAILED;\n logger.error(this.buildStandardLogMessage(e,e.getMessage()),e);\n\n } finally {\n logger.info(buildStandardLogMessage(null, \" exiting with callState: \" + callState));\n// XXX: Hold until 2.4, because it depends on an update to d1_cn_common\n// MetricLogEntry metricLogEntry = new MetricLogEntry(MetricEvent.SYNCHRONIZATION_TASK_EXECUTION);\n// metricLogEntry.setNodeId(TypeFactory.buildNodeReference(task.getNodeId()));\n// metricLogEntry.setPid(TypeFactory.buildIdentifier(task.getPid()));\n// metricLogEntry.setMessage(\"status=\" + callState);\n// MetricLogClientFactory.getMetricLogClient().logMetricEvent(metricLogEntry);\n }\n return callState;\n }", "public void testIncrementIncorrectly() throws InterruptedException {\r\n final int expectedCount=1000;\r\n for (int i = 0; i < expectedCount; i++) {\r\n final int threadNumber=i;\r\n final Runnable r = () -> {\r\n Random random = new Random();\r\n try {\r\n Thread.sleep(random.nextInt(25));\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(CountingThreadProblemTest.class.getName()).log(Level.SEVERE, \"Unable to sleep\", ex);\r\n }\r\n counter++;\r\n System.out.println(\"Incorrect counter thread \" + threadNumber + \" has \" + counter);\r\n };\r\n executor.submit(r);\r\n }\r\n \r\n System.out.println(\"A little delay for the threads...\");\r\n Thread.sleep(10000);\r\n\r\n assertEquals(expectedCount, counter);\r\n }", "private ExecutorService getDroneThreads() {\n\t\treturn droneThreads;\n\t}", "private void incWaiters()\r\n/* 443: */ {\r\n/* 444:530 */ if (this.waiters == 32767) {\r\n/* 445:531 */ throw new IllegalStateException(\"too many waiters: \" + this);\r\n/* 446: */ }\r\n/* 447:533 */ this.waiters = ((short)(this.waiters + 1));\r\n/* 448: */ }", "@Test\n\tpublic void sameThreadPoolDueToAffinity() throws Exception {\n\t\tString previousCore = null;\n\t\tfor (int i = 0; i < 100; i++) {\n\n\t\t\t// GET entry\n\t\t\tMockHttpResponse response = this.server.send(MockHttpServer.mockRequest(\"/\"));\n\t\t\tString html = response.getEntity(null);\n\t\t\tassertEquals(200, response.getStatus().getStatusCode(), \"Should be successful: \" + html);\n\n\t\t\t// Parse out the core\n\t\t\tPattern pattern = Pattern.compile(\".*CORE-(\\\\d+)-.*\", Pattern.DOTALL);\n\t\t\tMatcher matcher = pattern.matcher(html);\n\t\t\tassertTrue(matcher.matches(), \"Should be able to obtain thread affinity core\");\n\t\t\tString core = matcher.group(1);\n\n\t\t\t// Ensure same as previous core (ignoring first call)\n\t\t\tif (previousCore != null) {\n\t\t\t\tassertEquals(previousCore, core, \"Should be locked to same core\");\n\t\t\t}\n\n\t\t\t// Set up for next call\n\t\t\tpreviousCore = core;\n\t\t}\n\t}", "public static void main(String[] args){\n\t\tint increment=1;\n\t\tfor(int m=0;m<=5000;m+=increment){\n\t\t\tif(m==10)\n\t\t\t\tincrement=5;\n\t\t\tif(m==100)\n\t\t\t\tincrement=100;\n\t\t\tif(m==500)\n\t\t\t\tincrement=500;\n\n\t\t\tfor(int l=0;l<30;++l){\n\t\t\t\tdouble[][][] AFFINITY3=new double[Task.TYPES_OF_TASK_NUMBER][Task.TYPES_OF_TASK_NUMBER][Task.TYPES_OF_TASK_NUMBER];\n\t\t\t\tRandom r=new Random(l);\n\t\t\t\tdouble affinity;\n\t\t\t\tfor(int i=0;i<Task.TYPES_OF_TASK_NUMBER;++i){\n\t\t\t\t\tfor(int j=0;j<Task.TYPES_OF_TASK_NUMBER;++j){\n\t\t\t\t\t\tfor(int k=0;k<Task.TYPES_OF_TASK_NUMBER;++k){\n\t\t\t\t\t\t\tdo{\n\t\t\t\t\t\t\t\taffinity=r.nextDouble();\n\t\t\t\t\t\t\t}while(affinity==0);\n\t\t\t\t\t\t\tAFFINITY3[i][j][k]=AFFINITY3[i][k][j]=AFFINITY3[k][i][j]=AFFINITY3[j][i][k]=AFFINITY3[k][j][i]=AFFINITY3[j][k][i]=affinity;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tList<Node> infrastructure=new ArrayList<>();\n\t\t\t\tfor(int i=0; i<TEST_NUMBER_OF_NODES;++i)\n\t\t\t\t\tinfrastructure.add(new Node(TEST_NUMBER_OF_CORES, TEST_RAM_SIZE));\n\t\t\t\tList<Task> tasks=new ArrayList<>();\n\t\t\t\tTaskType[] types=TaskType.values();\n\t\t\t\tfor(int i=0;i<TEST_NUMBER_OF_PROCESS;++i){\n\t\t\t\t\tTaskType type=types[r.nextInt(Task.TYPES_OF_TASK_NUMBER)];\n\t\t\t\t\tint instanceNumber=r.nextInt(101)+10;//from 10 to 100 instances\n\t\t\t\t\tint coresPerInstance=r.nextInt(12)+1;//from 1 to 12\n\t\t\t\t\tint ramPerinstance=r.nextInt(12*1024+101)+100;//from 100MB to 12GB\n\t\t\t\t\tdouble baseTime=r.nextInt(10001)+1000;//from 100 cycles to 1000\n\t\t\t\t\ttasks.add(new Task(type,instanceNumber,coresPerInstance,ramPerinstance,baseTime));\n\t\t\t\t}\n\t\t\t\tList<Integer> arrivalOrder=new ArrayList<>();\n\t\t\t\tint tasksSoFar=0;\n\t\t\t\tdo{\n\t\t\t\t\ttasksSoFar+=r.nextInt(11);\n\t\t\t\t\tarrivalOrder.add((tasksSoFar<tasks.size())?tasksSoFar:tasks.size());\n\t\t\t\t}while(tasksSoFar<tasks.size());\n\t\t\t\tfinal Scheduler scheduler=new AffinityAwareFifoScheduler(tasks, arrivalOrder, infrastructure,AFFINITY3,AffinityType.NORMAL,m);\n\t\t\t\tThread t=new Thread(new Runnable() {\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tscheduler.runScheduler();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tt.start();\n\t\t\t\ttry {\n\t\t\t\t\tt.join();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Finished running.\");\n\t\t\t}\n\t\t}\n\t}", "private void awaitItems() throws IgniteInterruptedCheckedException {\n U.await(takeLatch);\n }", "public void _runExecute(WorkerThread thread)\n/* */ throws NotPausable\n/* */ {\n/* 426 */ Fiber f = this.fiber;\n/* 427 */ boolean isDone = false;\n/* */ try {\n/* 429 */ this.currentThread = Thread.currentThread();\n/* 430 */ assert ((this.preferredResumeThread == null) || (this.preferredResumeThread == thread)) : (\"Resumed \" + this.id + \" in incorrect thread. \");\n/* */ \n/* 432 */ execute(f.begin());\n/* */ \n/* */ \n/* 435 */ isDone = (f.end()) || ((this.pauseReason instanceof TaskDoneReason));\n/* 436 */ if ((!$assertionsDisabled) && ((this.pauseReason != null) || (!isDone)) && ((this.pauseReason == null) || (isDone))) throw new AssertionError(\"pauseReason:\" + this.pauseReason + \",isDone =\" + isDone);\n/* */ } catch (Throwable th) {\n/* 438 */ th.printStackTrace();\n/* */ \n/* 440 */ setPauseReason(new TaskDoneReason(th));\n/* 441 */ isDone = true;\n/* */ }\n/* */ \n/* 444 */ if (isDone) {\n/* 445 */ this.done = true;\n/* */ \n/* 447 */ if (this.numActivePins > 0)\n/* 448 */ throw new AssertionError(\"Task ended but has active locks\");\n/* */ ExitMsg msg;\n/* 450 */ if (this.exitMBs != null) {\n/* 451 */ if ((this.pauseReason instanceof TaskDoneReason)) {\n/* 452 */ this.exitResult = ((TaskDoneReason)this.pauseReason).exitObj;\n/* */ }\n/* 454 */ msg = new ExitMsg(this, this.exitResult);\n/* 455 */ for (Mailbox<ExitMsg> exitMB : this.exitMBs) {\n/* 456 */ exitMB.putnb(msg);\n/* */ }\n/* */ }\n/* 459 */ this.preferredResumeThread = null;\n/* */ } else {\n/* 461 */ if (thread != null) {\n/* 462 */ if (this.numActivePins > 0) {\n/* 463 */ this.preferredResumeThread = thread;\n/* */ } else {\n/* 465 */ assert (this.numActivePins == 0) : (\"numActivePins == \" + this.numActivePins);\n/* 466 */ this.preferredResumeThread = null;\n/* */ }\n/* */ }\n/* */ \n/* 470 */ PauseReason pr = this.pauseReason;\n/* 471 */ synchronized (this) {\n/* 472 */ this.running = false;\n/* 473 */ this.currentThread = null;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 480 */ if (!pr.isValid(this)) {\n/* 481 */ resume();\n/* */ }\n/* */ }\n/* */ }", "@Test\n public void testTaskAddedAfterShutdownNotAbandoned() throws Exception {\n LinkedBlockingQueue<Runnable> taskQueue = new LinkedBlockingQueue<Runnable>() {\n @Override\n public boolean remove(Object o) {\n throw new UnsupportedOperationException();\n }\n };\n\n final Runnable dummyTask = new Runnable() {\n @Override\n public void run() {\n }\n };\n\n final LinkedBlockingQueue<Future<?>> submittedTasks = new LinkedBlockingQueue<Future<?>>();\n final AtomicInteger attempts = new AtomicInteger();\n final AtomicInteger rejects = new AtomicInteger();\n\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n final SingleThreadEventExecutor executor = new SingleThreadEventExecutor(null, executorService, false,\n taskQueue, RejectedExecutionHandlers.reject()) {\n @Override\n protected void run() {\n while (!confirmShutdown()) {\n Runnable task = takeTask();\n if (task != null) {\n task.run();\n }\n }\n }\n\n @Override\n protected boolean confirmShutdown() {\n boolean result = super.confirmShutdown();\n // After shutdown is confirmed, scheduled one more task and record it\n if (result) {\n attempts.incrementAndGet();\n try {\n submittedTasks.add(submit(dummyTask));\n } catch (RejectedExecutionException e) {\n // ignore, tasks are either accepted or rejected\n rejects.incrementAndGet();\n }\n }\n return result;\n }\n };\n\n // Start the loop\n executor.submit(dummyTask).sync();\n\n // Shutdown without any quiet period\n executor.shutdownGracefully(0, 100, TimeUnit.MILLISECONDS).sync();\n\n // Ensure there are no user-tasks left.\n assertEquals(0, executor.drainTasks());\n\n // Verify that queue is empty and all attempts either succeeded or were rejected\n assertTrue(taskQueue.isEmpty());\n assertTrue(attempts.get() > 0);\n assertEquals(attempts.get(), submittedTasks.size() + rejects.get());\n for (Future<?> f : submittedTasks) {\n assertTrue(f.isSuccess());\n }\n }", "public Move startThreads() throws Exception {\n ThreadPoolExecutor executor = (ThreadPoolExecutor) Executors.newFixedThreadPool(4);\n ArrayList<Thread> threadBots = new ArrayList<>();\n\n for (Move move : moves) {\n board.doMove(move);\n Thread threadBot = new Thread(new Runnable() {\n @Override\n public void run() {\n return;\n }\n });\n board.undoMove();\n threadBots.add(threadBot);\n executor.execute(threadBot);\n }\n executor.shutdown();\n executor.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);\n\n //int return_index = maxMinIndex(threadBots, board.getSideToMove());\n if (executor.isTerminated()) {\n for (int i = 0; i < moves.size(); i++) {\n //evaluations.add(threadBots.get(i).return_value);\n }\n }\n\n double ret;\n if (board.getSideToMove() == Side.BLACK) {\n ret = Collections.min(evaluations); // min/max -> bot is black/white\n } else {\n ret = Collections.max(evaluations);\n }\n //System.out.println(ret);\n\n //System.out.println(threadBots.get(return_index).return_value);\n //double after = System.currentTimeMillis();\n //double durationMS = (after - before);\n //System.out.println(\"Time: \" + durationMS + \" ms\");\n //System.out.println(\"Bots possible moves: \" + moves);\n //return moves.get(return_index);\n\n //System.out.println(evaluations);\n //System.out.println(moves.get(evaluations.indexOf(ret)));\n return (moves.get(evaluations.indexOf(ret)));\n }", "public void startPopulateWorkers(){\r\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\r\n\t\t\r\n\t\t//Create threads\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\tthreads.add(new Thread(pts[i]));\r\n\t\t\tthreads.get(i).start();\r\n\t\t}\r\n\t\t\r\n\t\t//Wait for threads to finish\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\ttry {\r\n\t\t\t\tthreads.get(i).join();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n public void randomLockstep() {\n PriorityBlockingQueue pbq = new PriorityBlockingQueue();\n PriorityQueue pq = new PriorityQueue();\n List<Consumer<Queue>> frobbers = List.of(\n q -> q.add(42),\n q -> assertTrue(q.offer(86)),\n q -> q.poll(),\n q -> q.peek(),\n q -> {\n Iterator it = q.iterator();\n if (it.hasNext()) {\n it.next();\n it.remove();\n }});\n for (int i = 0; i < 100; i++) {\n Consumer<Queue> frobber = frobbers.get(rnd.nextInt(frobbers.size()));\n frobber.accept(pq);\n frobber.accept(pbq);\n assertInvariants(pbq);\n assertInvariants(pq);\n assertTrue(Arrays.equals(pq.toArray(), pbq.toArray()));\n }\n }", "public static void main(String[] args) {\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(2, 2, 0, TimeUnit.NANOSECONDS, new ArrayBlockingQueue<>(10));\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task A over!\");\n semaphore.release();\n });\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task A over!\");\n semaphore.release();\n });\n\n try {\n semaphore.acquire(2);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task B over!\");\n semaphore.release();\n });\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task B over!\");\n semaphore.release();\n });\n\n try {\n semaphore.acquire(2);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(\"all task over!\");\n threadPoolExecutor.shutdown();\n }", "public void initialize() {\n\n\t\t// Initialize taskList\n\t\tthis.taskList = new LinkedList<Task>();\n\n\t\t// create a new thread for total size of pool\n\t\tfor (int i = 0; i < this.poolSize; ++i) {\n\t\t\tthreadPool.add(new WorkerThread(this));\n\t\t}\n\n\t\t// Start each thread in thread pool\n\t\tfor (WorkerThread t : threadPool) {\n\t\t\tnew Thread(t).start();\n\t\t}\n\n\t}", "private void initThreadPool(int numOfThreadsInPool, int[][] resultMat, Observer listener) {\n for(int i=0;i<numOfThreadsInPool; i++){\r\n PoolThread newPoolThread = new PoolThread(m_TaskQueue, resultMat);\r\n newPoolThread.AddResultMatListener(listener);\r\n m_Threads.add(newPoolThread);\r\n }\r\n // Start all Threads:\r\n for(PoolThread currThread: m_Threads){\r\n currThread.start();\r\n }\r\n }", "public static void banker(){\n while(terminatedCount < taskList.size()){\n releaseArr = new int [numResources];\n\n // first address any blocked tasks\n addressWaitingBanker();\n // address any unblocked tasks\n addressNonWaitingBanker();\n // update released resources\n updateResources();\n time += 1;\n\n for(Instruction i : removeSet){\n waitingList.remove(i);\n }\n Collections.sort(waitingList);\n }\n\n }", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tTask t = bq.take();\n\n\t\t\t\t\n\t\t\t\tThread.sleep(t.getProcessTime() * 1000);\n\t\t\t\twaitingTime.addAndGet((-1) * t.getProcessTime());\n\t\t\t\tSimulator.getFrame().displayData(\"Client \"+t.getNr()+\" left. \\n\");\n\t\t\t\tsize--;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n for (int i = 0; i < 5; i++) {\n Thread thread = new Thread(threadGroup, searchTask);\n thread.start();\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n // CHECK THREAD GROUP INFO\n log.info(\"Active count: \" + threadGroup.activeCount());\n log.info(\"Active Group Count: \" + threadGroup.activeGroupCount());\n threadGroup.list();\n\n // THREAD ENUMERATE\n Thread[] threads = new Thread[threadGroup.activeCount()];\n threadGroup.enumerate(threads);\n for (Thread thread : threads) {\n log.info(thread.getName() + \" present state: \" + thread.getState());\n }\n String name = \"€\";\n\n // INTERRUPT THREADS\n //threadGroup.interrupt();\n\n // CHECK RESULT WHEN FINISH\n if(waitFinish(threadGroup)) {\n log.error(\"Result is: \" + result.getName()); //last thread name\n }\n\n }", "public static void main(String... args) {\n ReentrantLock lock = new ManagedReentrantLock();\n Condition condition = lock.newCondition();\n int upto = Runtime.getRuntime().availableProcessors() * 10;\n IntStream.range(0, upto).parallel().forEach(\n i -> {\n lock.lock();\n try {\n System.out.println(i + \": Got lock, now waiting - \" +\n Thread.currentThread().getName());\n condition.awaitUninterruptibly();\n } finally {\n lock.unlock();\n }\n }\n );\n }", "@Test\n public void iterateTests() throws Exception {\n final int nThreads = 100;\n ExecutorService executor = Executors.newFixedThreadPool(nThreads);\n final AtomicReference<Throwable> ex = new AtomicReference<>(null);\n final int nTasks = 10_000;\n final CountDownLatch latch = new CountDownLatch(nTasks);\n final ConcurrentHashMap<Integer, Future<?>> map = new ConcurrentHashMap<>();\n for (int i = 0; i < nTasks; i++) {\n final int j = i;\n map.put(j, executor.submit(new Runnable() {\n public void run() {\n try {\n testSubmitSilentWithParamMutation();\n testSubmitSilentWithParamMutationUncacheable();\n } catch (Throwable t) {\n ex.compareAndSet(null, t);\n } finally {\n latch.countDown();\n map.remove(j);\n }\n }}));\n }\n System.out.println(\"Waiting on latch\");\n while (!latch.await(30, TimeUnit.SECONDS)) {\n System.out.println(\"Waiting, \" + latch.getCount() + \" outstanding\");\n System.out.println(\"Waiting keys \" + map.keySet());\n }\n executor.shutdown();\n System.out.println(\"Waiting, on executor\");\n executor.awaitTermination(30, TimeUnit.SECONDS);\n executor.shutdownNow();\n if (ex.get() != null) {\n Assert.assertNull(ex.get());\n }\n }", "@Override\n protected void schedule() throws Exception {\n try {\n List<Slave> slaves = getSlaves();\n for (Slave slave : slaves) {\n int tc = tasksNode.getNumAssignedTasks(slave.getId());\n if (tc < 10) {\n for (int i = tc; i < 10; i++) {\n int k = counter.incrementAndGet();\n final String j = \"task-\" + k;\n Task t = new Task() {\n @Override\n public String getId() {\n return j;\n }\n\n @Override\n public byte[] getData() throws Exception {\n return new byte[0];\n }\n };\n\n tasksNode.addTask(t, slave.getId());\n if (k >= TOTAL_RECORDS){\n System.out.println(\"Stopping server [\" + getServerId() + \"]\");\n break;\n }\n }\n }\n }\n } catch (Exception e) {\n\n }\n tasksNode.watch(monitor);\n synchronized (monitor) {\n monitor.wait(PAUSE_BETWEEN_TASK_SCHEDULE);\n }\n }", "public List<CaptureTask> loadTaskToTaskPool(int poolSize) {\n\t\treturn null;\r\n\t}", "@Override\n\t\t\tprotected void beforeExecute(Thread t, Runnable r) {\n\t\t\t\tint qsize = getQueue().size();\n\t\t\t\tif(initCorePoolSize>0&&getCorePoolSize()<getMaximumPoolSize()\n\t\t\t\t\t&& qsize > 0 && (qsize%divisor) == 0){\n\t\t\t\t\tsetCorePoolSize(getCorePoolSize()+1); // 进行动态增加\n\t\t\t\t}\n\t\t\t}", "@Test\n public void testIsEmptyAfterTakesAll() throws InterruptedException {\n final int capacity = 10;\n final BoundedBuffer<Integer> bb = new BoundedBuffer<Integer>(capacity);\n\n for(int i = 0; i < capacity; i++){\n bb.put((new Random()).nextInt());\n }\n assertTrue(bb.isFull());\n\n Runnable task = new Runnable() {\n public void run() {\n try {\n bb.take();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n };\n\n Thread[] threads = new Thread[capacity];\n\n for (int i = 0; i < capacity; i++) {\n threads[i] = new Thread(task);\n threads[i].start();\n }\n\n for (int i = 0; i < capacity; i++) {\n threads[i].join();\n }\n\n //postcondition: buffer is empty\n assertTrue(bb.isEmpty());\n assertFalse(bb.isFull());\n\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tRunnable taskTemp=new Runnable() {\n\t\t\tprivate int count;//使用volatile貌似还是没什么用\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfor(int i=0;i<10;i++) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tSystem.out.println(System.nanoTime()+\"模拟发请求\"+Thread.currentThread().getName()+\"count:\"+count);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t};\n\t\t\n\t\tLatchTest latchTest=new LatchTest();\n\t\tlatchTest.startTaskAllInOnce(5,taskTemp);\n\t}", "public static void resetGlobals(int numTasks){\n time = 0;\n terminatedCount = 0;\n removeSet.clear();\n resourceArr = maxResourceArr.clone();\n releaseArr = new int [numResources];\n taskPointers = new int [numTasks];\n taskList = bankersTaskList;\n waitingList.clear();\n\n }", "@Test\n public void testIfThreadsGetsTheItemsFromQueueInOrder() throws InterruptedException {\n\t\t\n\t\tfinal UserRequest req1 = createUserRequest(1, 5, ElevatorDirection.UP);\n\t\tfinal UserRequest req2 = createUserRequest(1, 8, ElevatorDirection.UP);\n \n final Thread t1 = startTestThread( new TestRunnable() {\n\t\t\t@Override\n\t\t\tprotected void runTestThread() throws Throwable {\n\t\t\t\tfinal UserRequest req = queue.pickRequest(1, ElevatorDirection.UP);\n\t\t\t\tAssert.assertNotNull(req);\n\t\t\t\tAssert.assertEquals(req1, req);\n\t\t\t}\n\t\t});\n \n final Thread t2 = startTestThread( new TestRunnable() {\n\t\t\t@Override\n\t\t\tprotected void runTestThread() throws Throwable {\n\t\t\t\tfinal UserRequest req = queue.pickRequest(1, ElevatorDirection.UP);\n\t\t\t\tAssert.assertNotNull(req);\n\t\t\t\tAssert.assertEquals(req2, req);\n\t\t\t}\n\t\t});\n t1.start();\n t2.start();\n queue.addUserRequest(req1);\n queue.addUserRequest(req2);\n \n }" ]
[ "0.6498692", "0.5862286", "0.56886214", "0.54969954", "0.54650277", "0.5448238", "0.5406004", "0.5358623", "0.5214689", "0.5204298", "0.5179708", "0.5175445", "0.50995356", "0.50656015", "0.5049186", "0.5038726", "0.50297385", "0.50103945", "0.49169043", "0.49115056", "0.49098185", "0.4907909", "0.49026686", "0.48947433", "0.48691842", "0.4846419", "0.48405817", "0.483883", "0.48351434", "0.4816738", "0.48095888", "0.4806999", "0.4806799", "0.48063245", "0.47758046", "0.4773086", "0.4768488", "0.4765329", "0.476156", "0.4757563", "0.4740331", "0.47362643", "0.47302917", "0.47220656", "0.47203073", "0.472006", "0.4716422", "0.47161147", "0.4714302", "0.47035468", "0.47034714", "0.47034281", "0.46985838", "0.4691803", "0.4689841", "0.4670877", "0.46645838", "0.46613702", "0.46591648", "0.4648808", "0.4645343", "0.46379712", "0.46339297", "0.46325967", "0.463114", "0.46243644", "0.4618059", "0.46127328", "0.46106777", "0.46105522", "0.4610268", "0.46008378", "0.45974725", "0.45971018", "0.4594029", "0.45842627", "0.45840603", "0.45832738", "0.45808822", "0.45786455", "0.45776933", "0.4576905", "0.4568673", "0.45670146", "0.4561454", "0.455359", "0.4550789", "0.45415553", "0.45406154", "0.45382947", "0.45342338", "0.45312923", "0.45288482", "0.45284104", "0.4528405", "0.45281768", "0.45248792", "0.45185214", "0.45157912", "0.45123953" ]
0.6981469
0
Gets and removes a local or stolen task.
final Runnable pollTask() { Runnable t = locallyDeqTask(); if (t == null && (t = scan()) != null) ++stealCount; return t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized Task taskGet() {\n\t\treturn this.taskList.remove();\n\t}", "void remove(final Task task);", "final Runnable pollLocalTask() {\n return locallyDeqTask();\n }", "void deleteUndoneTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;", "private Runnable getTask() {\r\n if (mType== Type.FIFO){\r\n return mTaskQueue.removeFirst();\r\n }else if (mType== Type.LIFO){\r\n return mTaskQueue.removeLast();\r\n }\r\n return null;\r\n }", "public Task getTask(Integer tid);", "public void removeTask(Task task) {\n tasks.remove(task);\n }", "public void deleteTask(Integer tid);", "void deleteTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;", "private static Task take(String serial) {\n int len = TASKS.size();\n for (int i = 0; i < len; i++) {\n if (serial.equals(TASKS.get(i).serial)) {\n return TASKS.remove(i);\n }\n }\n return null;\n }", "boolean deleteTask(Task task);", "public void removeTask(ToDoTask t) {\n database.removeTask(t);\n Toast.makeText(this, String.format(getResources().getString(R.string.list_remove_toast),\n t.getTask()), Toast.LENGTH_LONG).show();\n }", "public void removeTask(String removeTask) {\n \t\n \tSystem.out.println(\"Removing an existing Task\");\n \tint count = 0;\n \tTask deleteTask = null;\n \tfor(Task t : toDoList) {\n \t\tif(t.getTaskName().equals(removeTask)) {\n \t\t\t\n \t\t\tbreak;\n \t\t}\n \t\t\n \t\tcount++;\n \t}\n \tdeleteTask = toDoList.remove(count);\n \t\n \tif(deleteTask != null) {\n \t\tSystem.out.println(\"Task deleted successfully\");\n \t}\n \telse {\n \t\tSystem.out.println(\"Task not found\");\n \t}\n \tdisplay();\n }", "void deleteDoneTask(ReadOnlyTask floatingTask) throws TaskNotFoundException;", "public void deleteTask(Task task)\n {\n tasks.remove(task);\n }", "@Override\n protected Void doInBackground(Void... v) {\n try {\n repeating = ServerCom.removeTask(mAptID, tempTask.getDescription(), tempTask.getAssignee());\n } catch (Exception e) {\n this.exception = e;\n }\n\n return null;\n }", "void removeSubTask(AuctionTask task);", "protected File getFreeTask() {\n for (File task : tasks) {\n boolean isFree = true;\n for (EvaluatorHandle handle : evaluations) {\n if (handle.getTask() == task) {\n isFree = false;\n break;\n }\n }\n if (isFree) {\n return task;\n }\n }\n return null;\n }", "void deleteTask(int id);", "public void get(final Task task) {\n }", "public void deleteTask(Task task) {\n tasks.remove(task);\n }", "public Task delete(String num) throws DukeException {\n try {\n if (num.equals(\"all\")) {\n deleteAll();\n return null;\n } else {\n int intNum = Integer.parseInt(num);\n Task temp = tasks.get(intNum - 1);\n tasks.remove(intNum - 1);\n return temp;\n }\n } catch (NumberFormatException e) {\n throw new DukeException(\"Please key in an index!\");\n } catch (IndexOutOfBoundsException r) {\n throw new DukeException(\"The task does not exist\");\n }\n }", "public void removeFromTaskList(Task task) {\n if (task != null)\n task.removeSafely();\n taskList.removeValue(task, true);\n }", "public static Task remove(long taskId)\n\t\tthrows serviceBuilder.exception.NoSuchTaskException {\n\t\treturn getPersistence().remove(taskId);\n\t}", "public void removeTasks() {\n\t\t\r\n\t}", "public void removeElement(DemoTask task) {\n\t\tdata.remove(task);\n\t}", "WorkingTask getWorkingTask();", "public boolean deleteTask(Task t) {\n return this.tasks.remove(t);\n }", "final Runnable popTask() {\n int s = sp;\n while (s != base) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int i = (s - 1) & mask;\n Runnable t = q[i];\n if (t == null || !casSlotNull(q, i, t))\n break;\n storeSp(s - 1);\n return t;\n }\n }\n return null;\n }", "public abstract SystemTask getTask(Project project);", "net.zyuiop.ovhapi.api.objects.license.Task getServiceNameTasksTaskId(java.lang.String serviceName, long taskId) throws java.io.IOException;", "public void deleteTask() throws NumberFormatException, NullPointerException, IndexOutOfBoundsException {\n System.out.println(LINEBAR);\n\n try {\n int taskNumber = Integer.parseInt(userIn.split(\" \")[TASK_NUMBER]);\n\n int taskIndex = taskNumber - 1;\n\n Task toBeDeleted = tasks.get(taskIndex);\n tasks.remove(taskIndex);\n storage.updateFile(tasks.TaskList);\n System.out.println(\n \"The following task has been deleted!\\n\" + toBeDeleted + \"\\n\");\n } catch (NumberFormatException e) {\n ui.printNumberFormatException();\n } catch (NullPointerException e) {\n ui.printNullPtrException();\n } catch (IndexOutOfBoundsException e) {\n ui.printIndexOOBException();\n }\n\n System.out.println(LINEBAR);\n\n }", "public Task getTask() {\n Long __key = this.TaskId;\n if (task__resolvedKey == null || !task__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n TaskDao targetDao = daoSession.getTaskDao();\n Task taskNew = targetDao.load(__key);\n synchronized (this) {\n task = taskNew;\n \ttask__resolvedKey = __key;\n }\n }\n return task;\n }", "private void doRemoveTask() {\n System.out.println(\n \"Select the task you would like to remove by entering the appropriate index number.\");\n int index = input.nextInt();\n todoList.removeTask(index);\n System.out.println(\"The selected task has been successfully removed.\");\n }", "@Override\n public Optional<Task> getTaskById(UUID id)\n {\n return null;\n }", "public Task remove(int index) {\r\n return tasks.remove(index);\r\n }", "private String deleteTask(int location, TaskList tasks, Storage storage) throws DukeException {\n String response;\n int index = location - 1;\n if (index >= 0 && index < tasks.getLength()) {\n Task task = tasks.deleteTask(index);\n storage.updateFile(tasks);\n response = task + \"\\n\";\n } else {\n throw new DukeException(\"☹ OOPS!!! Input a valid index\");\n }\n return response;\n }", "public TaskProvider getTaskProvider();", "@Override\n\tpublic Object remove(String name) {\n\t\tMap<String, Object> scope = threadLocal.get();\n\t\treturn scope.remove(name);\n\t}", "@Override\n public Task markUndone() {\n ReadOnlyTask oldTask = this;\n \n TaskName newName = oldTask.getName();\n TaskTime newStartTime = oldTask.getStartTime();\n TaskTime newEndTime = oldTask.getEndTime();\n TaskTime newDeadline = oldTask.getDeadline();\n Tag newTag = oldTask.getTag();\n\n Task newTask = null;\n try {\n newTask = new Task(newName, newStartTime, newEndTime, newDeadline, newTag, false);\n } catch (IllegalValueException e) {\n assert false;\n }\n return newTask;\n }", "public static RestTask obtainDeleteTask(String url)\n throws IOException {\n HttpURLConnection connection = createDefaultConnection(url);\n attachAuthentication(connection);\n connection.setRequestMethod(\"DELETE\");\n connection.setDoInput(true);\n\n return new RestTask(connection);\n }", "public String removeTask(int numOfTaskToRemove) {\n String taskListing = recordedTask.get(numOfTaskToRemove - 1).returnTaskListing();\n recordedTask.remove(recordedTask.get(numOfTaskToRemove - 1));\n for (int i = 0; i < Parser.getOrderAdded(); i++) {\n recordedTask.get(i).setTaskNum(i + 1);\n }\n updateTaskToFile();\n return taskListing;\n }", "@Transactional( WorkflowPlugin.BEAN_TRANSACTION_MANAGER )\n void removeByIdTask( int nIdTask );", "TaskProtobufWrapper.DeleteTaskPack getDeleteTaskPack();", "private com.tvos.downloadmanager.download.IDownloadTask getTaskById(int r6) {\n /*\n r5 = this;\n r4 = r5.tasksLock;\n monitor-enter(r4);\n r3 = r5.tasks;\t Catch:{ all -> 0x0027 }\n if (r3 == 0) goto L_0x0010;\n L_0x0007:\n r0 = 0;\n L_0x0008:\n r3 = r5.tasks;\t Catch:{ all -> 0x0027 }\n r3 = r3.size();\t Catch:{ all -> 0x0027 }\n if (r0 < r3) goto L_0x0013;\n L_0x0010:\n monitor-exit(r4);\t Catch:{ all -> 0x0027 }\n r2 = 0;\n L_0x0012:\n return r2;\n L_0x0013:\n r3 = r5.tasks;\t Catch:{ all -> 0x0027 }\n r2 = r3.get(r0);\t Catch:{ all -> 0x0027 }\n r2 = (com.tvos.downloadmanager.download.IDownloadTask) r2;\t Catch:{ all -> 0x0027 }\n r1 = r2.getCurrentDownloadParam();\t Catch:{ all -> 0x0027 }\n r3 = r1.getId();\t Catch:{ all -> 0x0027 }\n if (r3 != r6) goto L_0x002a;\n L_0x0025:\n monitor-exit(r4);\t Catch:{ all -> 0x0027 }\n goto L_0x0012;\n L_0x0027:\n r3 = move-exception;\n monitor-exit(r4);\t Catch:{ all -> 0x0027 }\n throw r3;\n L_0x002a:\n r0 = r0 + 1;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tvos.downloadmanager.download.Download.getTaskById(int):com.tvos.downloadmanager.download.IDownloadTask\");\n }", "public void cancelTask(){\n\t\tif(main.teleporting.containsKey(teleporter.getName())){\n\t\t\tmain.teleporting.remove(teleporter.getName());\n\t\t}\n\t\tthis.cancel();\n\t}", "public static ITask findTaskById(final long taskId) {\r\n try {\r\n return SecurityManagerFactory.getSecurityManager().executeAsSystem(new Callable<ITask>() {\r\n public ITask call() throws Exception {\r\n ITask t = null;\r\n try {\r\n TaskQuery query = TaskQuery.create().where().taskId().isEqual(taskId);\r\n t = Ivy.wf().getGlobalContext().getTaskQueryExecutor().getResults(query).get(0);\r\n } catch (Exception e) {\r\n Ivy.log().error(e);\r\n }\r\n return t;\r\n }\r\n });\r\n } catch (Exception e) {\r\n Ivy.log().error(e);\r\n return null;\r\n }\r\n }", "public void deleteTask(Task task){\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_NAME, KEY_ID + \" = ?\",\n new String[] { String.valueOf(task.getId()) });\n taskIndexReset();\n db.close();\n }", "private void rereadNameSpaceEntry(final PinTask task)\n throws CacheException\n {\n refreshTimeout(task, getExpirationTimeForNameSpaceLookup());\n \n /* We allow the set of provided attributes to be incomplete\n * and thus add attributes required by pool manager.\n */\n Set<FileAttribute> attributes = EnumSet.noneOf(FileAttribute.class);\n attributes.addAll(task.getFileAttributes().getDefinedAttributes());\n attributes.addAll(PoolMgrSelectReadPoolMsg.getRequiredAttributes());\n \n _pnfsStub.send(new PnfsGetFileAttributes(task.getPnfsId(), attributes),\n PnfsGetFileAttributes.class,\n new AbstractMessageCallback<PnfsGetFileAttributes>()\n {\n @Override\n public void success(PnfsGetFileAttributes msg) {\n try {\n task.setFileAttributes(msg.getFileAttributes());\n \n /* Ensure that task is still valid\n * and stays valid for the duration\n * of the pool selection.\n */\n refreshTimeout(task, getExpirationTimeForPoolSelection());\n selectReadPool(task);\n } catch (CacheException e) {\n fail(task, e.getRc(), e.getMessage());\n } catch (RuntimeException e) {\n fail(task, CacheException.UNEXPECTED_SYSTEM_EXCEPTION, e.toString());\n }\n }\n \n @Override\n public void failure(int rc, Object error) {\n fail(task, rc, error.toString());\n }\n \n @Override\n public void noroute(CellPath path) {\n /* PnfsManager is unreachable. We\n * expect this to be a transient\n * problem and retry in a moment.\n */\n retry(task, RETRY_DELAY);\n }\n \n @Override\n public void timeout(CellPath path) {\n /* PnfsManager did not respond. We\n * expect this to be a transient\n * problem and retry in a moment.\n */\n retry(task, SMALL_DELAY);\n }\n });\n }", "public void delete(int taskNumber) {\n Task currentTask = storage.get(taskNumber);\n line();\n System.out.println(\"Deleted task:\");\n System.out.println(currentTask);\n storage.remove(taskNumber);\n System.out.println(\"There are now \" + storage.size() + \" task(s) remaining.\");\n line();\n }", "public boolean deleteTask(long userId, String taskId);", "final Runnable locallyDeqTask() {\n Runnable work = dispatchQueue.poll();\n if( work!=null ) {\n return work;\n }\n int b;\n while (sp != (b = base)) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int i = (q.length - 1) & b;\n Runnable t = q[i];\n if (t != null && casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n }\n }\n return dispatchQueue.getSourceQueue().poll();\n }", "@SuppressWarnings(\"unchecked\")\r\n public UserPlanTask UserPlanTaskDelete(Long taskId) {\r\n session = sf.openSession();\r\n Transaction t = session.beginTransaction();\r\n\r\n UserPlanTask deleteList = (UserPlanTask) session.load(UserPlanTask.class, taskId);\r\n if (null != deleteList) {\r\n session.delete(deleteList);\r\n }\r\n t.commit();\r\n session.close();\r\n sf.close();\r\n return deleteList;\r\n }", "public Task getTask() { return task; }", "private synchronized Task takeTask() {\n while (true) {\n Task task = null;\n if (runningActions < maxConcurrentActions) {\n task = runnableActions.poll();\n }\n if (task == null) {\n task = runnableTasks.poll();\n }\n\n if (task != null) {\n runningTasks++;\n if (task.isAction()) {\n runningActions++;\n }\n return task;\n }\n\n if (isExhausted()) {\n return null;\n }\n\n try {\n wait();\n } catch (InterruptedException e) {\n throw new AssertionError();\n }\n }\n }", "public void uncheckTask() {\n isDone = false;\n }", "private Task getTask(Integer identifier) {\n Iterator<Task> iterator = tasks.iterator();\n while (iterator.hasNext()) {\n Task nextTask = iterator.next();\n if (nextTask.getIdentifier().equals(identifier)) {\n return nextTask;\n }\n }\n\n return null;\n }", "public CachedTask getLastCachedTask() {\n return cachedTasks.pop();\n }", "public Optional<PickingRequest> getTask() {\n return Optional.ofNullable(task);\n }", "public Task getTask(final int id) {\n return tasks.get(id);\n }", "protected abstract Version executeTaskLocal(Version theTask);", "TaskNode getNode(Task task);", "public static void execute(String inputTask, ArrayList<Task> list) {\n String deleteIndex = inputTask.substring(DELETE_REMOVAL);\n TaskList.printDelete(list.get((Integer.parseInt(deleteIndex)-1)), list.size()-1);\n list.remove((Integer.parseInt(deleteIndex)-1));\n }", "protected Task getTaskNamed(String name) throws InvalidKeyException {\n return task.getTaskNamed(name);\n }", "public String removeTask(int index) {\n String res = USER_TASKS.get(index).toString();\n USER_TASKS.remove(index);\n return \" \" + res;\n }", "public Task getTaskToAdd() {\n return taskToAdd;\n }", "void releaseTask(String userId, Long taskId);", "public Task deleteTask(int taskNumber) {\n int idx = taskNumber - 1;\n Task deletedTask = this.tasks.get(idx);\n this.tasks.remove(idx);\n return deletedTask;\n }", "public void removeTask(Task task) {\n if (hasScheme(task)) {\n for (Role role : this.roles) {\n if (role.hasResponsibility(task)) {\n this.roles.remove(role);\n task.removeWorker(role);\n return;\n }\n }\n }\n }", "public static int removeTask( String Tasks[], int lastTask ){\n\n System.out.println(\"Enter the number (index) of the task to be removed:\");\n java.util.Scanner scanner = new java.util.Scanner(System.in);\n String numberAsString = scanner.nextLine();\n int taskIndex = Integer.parseInt(numberAsString); // Convert string to a integer\n if ( taskIndex > lastTask ) { // Check to see if the index is valid\n System.out.println(\"There is not a task at that index\");\n return lastTask; // no change in the number of tasks\n }\n else if ( (lastTask == 0) || ( taskIndex == lastTask ) ) { // If removing the last task in the list set it to \"\"\n Tasks[lastTask] = \"\";\n }\n else {\n for (int i = taskIndex; i < lastTask; i++) {\n Tasks[i] = Tasks[i + 1];\n }\n }\n lastTask -= 1;\n return lastTask; // decrement the number of tasks by one\n }", "Object removeTemp(String name);", "public String execute(TaskList task, Ui ui, Storage storage) throws NullPointerException, IOException {\n try {\n Task toRemove = task.getList().remove(Integer.parseInt(temp[1]) - 1);\n storage.arrayToFile(task.getList());\n return ui.printRemove(task.getList(), toRemove);\n } catch (NullPointerException e) {\n return ui.printError(\"Please input a valid task number to delete.\");\n } catch (IndexOutOfBoundsException e) {\n return ui.printError(\"Please input a valid task number to delete.\");\n }\n }", "Object getTaskId();", "final Runnable deqTask() {\n Runnable t;\n Runnable[] q;\n int i;\n int b;\n if (sp != (b = base) &&\n (q = queue) != null && // must read q after b\n (t = q[i = (q.length - 1) & b]) != null &&\n casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n return null;\n }", "public String addTask(Task t) {\n tasks.add(t);\n return tasks.get(tasks.size() - 1).toString();\n }", "public static void delTask(ArrayList<Task> taskList) {\n // String response; // String variable for the user's input\n String prompt = \"delete\"; // initializing the type of prompt to the user\n int index = promptIndex(taskList, prompt); // prompting, receiving, and error checking the user's input\n if (index != -1) { // if there was not an invalid index value\n taskList.remove(index); // remove the element at this index\n }\n System.out.print(\"\\n\"); // printing a newline for formatting \n pause(); // pausing the screen\n }", "public void deleteTask(Task task) {\n database.delete(SQLiteHelper.TABLE_TASKS,\n SQLiteHelper.COLUMN_ID + \" = \" + task.get_id(), null);\n }", "protected Pin loadPinBelongingTo(PinTask task)\n throws CacheException\n {\n Pin pin = _dao.getPin(task.getPinId(), task.getSticky(), PINNING);\n if (pin == null) {\n throw new CacheException(\"Operation was aborted\");\n }\n return pin;\n }", "public void deleteTask() {\r\n int selected = list.getSelectedIndex();\r\n if (selected >= 0) {\r\n Task task = myTodo.getTaskByIndex(selected + 1);\r\n myTodo.getTodo().remove(task.getHashKey());\r\n playSound(\"click.wav\");\r\n }\r\n todoListGui();\r\n }", "public Task getTask(String taskId) throws DaoException, DataObjectNotFoundException\r\n {\n dao = (TaskManagerDao) getDao();\r\n Task task = dao.selectTask(taskId);\r\n ResourceManager rm = (ResourceManager)Application.getInstance().getModule(ResourceManager.class);\r\n if(task!=null) {\r\n //Task task = (Task)col.iterator().next();\r\n //task.setLastModifiedBy(UserUtil.getUser(task.getLastModifiedBy()).getName());\r\n task.setAttendees(getAssignees(taskId));\r\n task.setReassignments(dao.selectReassignments(taskId));\r\n task.setResources(rm.getBookedResources(task.getId(),CalendarModule.DEFAULT_INSTANCE_ID));\r\n return task;\r\n }\r\n return null;\r\n }", "public final void removeUnCompletedDoanload() {\n if (mUpdateInfo != null && mUpdateInfo.downId != -1) {\n if (mUpdateInfo.downId != -1) {\n Cursor c = null;\n try {\n c = mJDownloadManager.queryTask(mUpdateInfo.downId);\n if (c != null && c.moveToFirst()) {\n int status = c.getInt(JDownloadTaskColumnIndex.STATUS);\n if (TvApplication.DEBUG_LOG) {\n JLog.d(TAG, \"check delete task or not status=\" + status);\n }\n if (status != JDownloadManager.STATUS_SUCCESSFUL) {\n if (TvApplication.DEBUG_LOG) {\n JLog.d(TAG, \"removeDoanload \" + mUpdateInfo.downId);\n }\n mJDownloadManager.remove(mUpdateInfo.downId);\n }\n }\n } finally {\n if (c != null) {\n c.close();\n }\n }\n }\n }\n }", "public ITask getTask() {\n \t\treturn task;\n \t}", "synchronized public void unregisterTask(final Addon addon, final BukkitTask task){\n\t\ttry {\n\t\t\tfinal ReloadableAddon reloadable = this.getByAddon(addon);\n\t\t\tif(reloadable == null)\n\t\t\t\tthrow new InvalidAddonException(\"No corresponding ReloadableAddon found for \"+addon.getName());\n\t\t\treloadable.removeTask(task);\n\t\t} catch (final InvalidAddonException e) {\n\t\t\tthis.getLogger().severe(\"Failed to unregister task for addon \"+addon.getName()+\". Addon may not unload properly.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void removeByTaskInstanceId(Integer taskInstanceId) {\n taskInstanceCache.remove(taskInstanceId);\n }", "public Task poll() \n\t{\n\t\tif(this.isEmpty())\n\t\t{\n\t\t\tSystem.out.println(\"Cannot remove from an empty list.\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tint parent = 1;\n\t\tint child = 2;\n\t\tTask newTask = heap[1];\n\t\tTask temp = heap[size--];\n\t\t\n\t\twhile(child <= size)\n\t\t{\n\t\t\tif(child < size && heap[child].getPriority() > heap[child + 1].getPriority())\n\t\t\t{\n\t\t\t\tchild++;\n\t\t\t}\n\t\t\tif(temp.getPriority() <= heap[child].getPriority())\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\theap[parent] = heap[child];\n\t\t\tparent = child;\n\t\t\tchild *= 2;\n\t\t\t\n\t\t}\n\t\t\n\t\theap[parent] = temp;\n\t\treturn newTask;\n\t}", "public void remove(Task var) {\n\t\tfor (int i = 0; i < tasks.size(); i++) {\n\t\t\tif (tasks.get(i).getAnalysis().equals(var.getAnalysis())) {\n\t\t\t\ttasks.remove(i);\n\t\t\t}\n\t\t}\n\t}", "String getTaskId();", "public Task task()\n {\n return _link.first;\n }", "protected void teardownTask(Task task) {\n }", "@Override\r\n\tpublic Optional<Task> findTask(Integer taskId) {\n\t\treturn taskRepository.findById(taskId);\r\n\t}", "public Boolean delete(int id) {\n \t\t//get the task for its user id\n \t\tString string = jedisConn.get(PENDING_TASK(String.valueOf(id)));\n \t\tGson gson = new Gson();\n \t\tScheduledTask task = gson.fromJson(string, ScheduledTask.class);\n \t\t// remove the task from the db\n \t\tLong del = jedisConn.del(PENDING_TASK(String.valueOf(id)));\n \t\t//remove the task from alltasks\n \t\tjedisConn.srem(ALL_TASKS, String.valueOf(id));\n \t\t//remove the task from users tasks\n\t\tjedisConn.srem(USER_TASKS(String.valueOf(task.getUserId())), String.valueOf(id));\n \t\tif (del == 1) {\n \t\t\treturn true;\n \t\t}\n \t\telse {\n \t\t\treturn false;\n \t\t}\n \t}", "public Task getTask() {\n return task;\n }", "public Task getTask(String stateName) throws ProcessManagerException {\r\n Task[] tasks = getTasks();\r\n for (int i = 0; i < tasks.length; i++) {\r\n if (tasks[i].getState().getName().equals(stateName)) {\r\n return tasks[i];\r\n }\r\n }\r\n return null;\r\n }", "final boolean unpushTask(Runnable t) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int s = sp - 1;\n if (casSlotNull(q, s & mask, t)) {\n storeSp(s);\n return true;\n }\n return false;\n }", "@RequestMapping(value = \"/get-task/{taskName}\", method = RequestMethod.GET)\r\n\tpublic Task getTask(@PathVariable(\"taskName\") String taskName) {\r\n\t\tTask dumyTask = new Task();\r\n\t\tdumyTask.setTaskName(taskName);\r\n\t\treturn dumyTask;\r\n\t}", "@Override\n\tpublic int exec_task (PendingTask task) {\n\t\treturn exec_cleanup_pdl_stop (task);\n\t}", "void deleteTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<Void> callback );", "public Asset findAsset(Task t){\n Asset found = getAssetFromTask (t);\n return found;\n }", "public void resetTask() {}", "public Task getTaskToRun(String taskTrackerName) throws RemoteException, NotBoundException {\n TaskAttemptID attemptID = new TaskAttemptID(taskID, nextAttemptID++);\n Task newTask = null;\n if (isMapTask()) {\n newTask = new MapTask(attemptID, partition, locatedBlock);\n } else {\n HashSet<String> locations = job.getAllMapTaskLocations();\n newTask = new ReduceTask(attemptID, partition, locatedBlock, locations);\n }\n\n activeTasks.put(attemptID, taskTrackerName);\n allTaskAttempts.add(attemptID);\n\n jobTracker.createTaskEntry(attemptID, taskTrackerName, this);\n\n return newTask;\n }" ]
[ "0.71177006", "0.6701039", "0.6352949", "0.60544163", "0.60505635", "0.5994652", "0.5993774", "0.5974299", "0.59614366", "0.59466344", "0.59456676", "0.58914185", "0.5886463", "0.5882998", "0.5881675", "0.5881406", "0.5855063", "0.5853592", "0.5764616", "0.57563496", "0.5747466", "0.5736147", "0.5729609", "0.5728787", "0.56623656", "0.56568044", "0.5653003", "0.5618859", "0.5568014", "0.5521087", "0.5481937", "0.54710066", "0.5452848", "0.5421959", "0.5404965", "0.5401719", "0.53958565", "0.53793406", "0.53756475", "0.5375285", "0.53498155", "0.5347459", "0.5341609", "0.5336588", "0.52982163", "0.5289407", "0.528209", "0.5244467", "0.5244112", "0.5234268", "0.5222678", "0.5179114", "0.517143", "0.5167984", "0.516367", "0.5148589", "0.5145193", "0.51307404", "0.5130283", "0.5126478", "0.5124619", "0.5117938", "0.51177114", "0.5110741", "0.51101255", "0.5108702", "0.50863934", "0.50842196", "0.50775576", "0.50447965", "0.5042994", "0.5039586", "0.5035135", "0.5032609", "0.50317484", "0.50260556", "0.5025169", "0.5021373", "0.501718", "0.5015901", "0.5012344", "0.5010771", "0.49974206", "0.49900162", "0.49898145", "0.4974738", "0.49669725", "0.49624497", "0.4961789", "0.49611196", "0.49609768", "0.4954569", "0.4939504", "0.4938245", "0.49350616", "0.49343076", "0.49337214", "0.49117595", "0.49033308", "0.49030185" ]
0.54590774
32
Gets a local task.
final Runnable pollLocalTask() { return locallyDeqTask(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Task getTask(Integer tid);", "public Task getTask() {\n Long __key = this.TaskId;\n if (task__resolvedKey == null || !task__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n TaskDao targetDao = daoSession.getTaskDao();\n Task taskNew = targetDao.load(__key);\n synchronized (this) {\n task = taskNew;\n \ttask__resolvedKey = __key;\n }\n }\n return task;\n }", "public abstract SystemTask getTask(Project project);", "WorkingTask getWorkingTask();", "public Task task()\n {\n return _link.first;\n }", "public ITask getTask() {\n \t\treturn task;\n \t}", "public Optional<PickingRequest> getTask() {\n return Optional.ofNullable(task);\n }", "public static Task getCurrentTask(Fiber paramFiber)\n/* 194 */ throws Pausable { return null; }", "public Task getTask() {\n return task;\n }", "public Task getTask() { return task; }", "public TaskProvider getTaskProvider();", "Callable<E> getTask();", "public Task getTask(final int id) {\n return tasks.get(id);\n }", "@RequestMapping(value = \"/get-task/{taskName}\", method = RequestMethod.GET)\r\n\tpublic Task getTask(@PathVariable(\"taskName\") String taskName) {\r\n\t\tTask dumyTask = new Task();\r\n\t\tdumyTask.setTaskName(taskName);\r\n\t\treturn dumyTask;\r\n\t}", "public static RestTask obtainGetTask(String url)\n throws IOException {\n HttpURLConnection connection = createDefaultConnection(url);\n attachAuthentication(connection);\n connection.setDoInput(true);\n\n return new RestTask(connection);\n }", "@VisibleForTesting(otherwise = VisibleForTesting.NONE)\r\n LiveData<Task> getActiveTask();", "public Optional<Task> getATask() {\n HttpHeaders headers = new HttpHeaders();\n headers.setAccept(List.of(MediaType.APPLICATION_JSON));\n\n ResponseEntity<Task> responseEntity = restTemplate.exchange(\n queueUrl + \"/getATask\",\n HttpMethod.GET,\n new HttpEntity<>(headers),\n Task.class);\n\n return Optional.ofNullable(responseEntity.getBody());\n }", "@Override\n\tpublic V get() {\n\t\tV result = null;\n\t\ttry {\n\t\t\tresult = fTask.get();\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public void get(final Task task) {\n }", "@Override\n public GetWirelessGatewayTaskResult getWirelessGatewayTask(GetWirelessGatewayTaskRequest request) {\n request = beforeClientExecution(request);\n return executeGetWirelessGatewayTask(request);\n }", "public String getTask() {\n return task;\n }", "public String getTask() {\n return task;\n }", "public static ITask findTaskById(final long taskId) {\r\n try {\r\n return SecurityManagerFactory.getSecurityManager().executeAsSystem(new Callable<ITask>() {\r\n public ITask call() throws Exception {\r\n ITask t = null;\r\n try {\r\n TaskQuery query = TaskQuery.create().where().taskId().isEqual(taskId);\r\n t = Ivy.wf().getGlobalContext().getTaskQueryExecutor().getResults(query).get(0);\r\n } catch (Exception e) {\r\n Ivy.log().error(e);\r\n }\r\n return t;\r\n }\r\n });\r\n } catch (Exception e) {\r\n Ivy.log().error(e);\r\n return null;\r\n }\r\n }", "private Task getTask(Integer identifier) {\n Iterator<Task> iterator = tasks.iterator();\n while (iterator.hasNext()) {\n Task nextTask = iterator.next();\n if (nextTask.getIdentifier().equals(identifier)) {\n return nextTask;\n }\n }\n\n return null;\n }", "private synchronized Task taskGet() {\n\t\treturn this.taskList.remove();\n\t}", "@Override\n public GetFuotaTaskResult getFuotaTask(GetFuotaTaskRequest request) {\n request = beforeClientExecution(request);\n return executeGetFuotaTask(request);\n }", "DispatchTask getTask()\n {\n synchronized (m_lock)\n {\n return m_runnable;\n }\n }", "TaskFactory getTaskFactory();", "public Task getTaskInstance() {\n\t\treturn taskInstance;\n\t}", "public Task getTaskById(Long id ) {\n\t\treturn taskRepo.getOne(id);\n\t}", "private Runnable getTask() {\r\n if (mType== Type.FIFO){\r\n return mTaskQueue.removeFirst();\r\n }else if (mType== Type.LIFO){\r\n return mTaskQueue.removeLast();\r\n }\r\n return null;\r\n }", "@Override\n public Optional<Task> getTaskById(UUID id)\n {\n return null;\n }", "@Override\n public GetWirelessDeviceImportTaskResult getWirelessDeviceImportTask(GetWirelessDeviceImportTaskRequest request) {\n request = beforeClientExecution(request);\n return executeGetWirelessDeviceImportTask(request);\n }", "public Task getTask(String taskId) throws DaoException, DataObjectNotFoundException\r\n {\n dao = (TaskManagerDao) getDao();\r\n Task task = dao.selectTask(taskId);\r\n ResourceManager rm = (ResourceManager)Application.getInstance().getModule(ResourceManager.class);\r\n if(task!=null) {\r\n //Task task = (Task)col.iterator().next();\r\n //task.setLastModifiedBy(UserUtil.getUser(task.getLastModifiedBy()).getName());\r\n task.setAttendees(getAssignees(taskId));\r\n task.setReassignments(dao.selectReassignments(taskId));\r\n task.setResources(rm.getBookedResources(task.getId(),CalendarModule.DEFAULT_INSTANCE_ID));\r\n return task;\r\n }\r\n return null;\r\n }", "public Task getTask(String stateName) throws ProcessManagerException {\r\n Task[] tasks = getTasks();\r\n for (int i = 0; i < tasks.length; i++) {\r\n if (tasks[i].getState().getName().equals(stateName)) {\r\n return tasks[i];\r\n }\r\n }\r\n return null;\r\n }", "@Nullable\n public Task getTask(int id) {\n Task output = null;\n\n // get a readable instance of the database\n SQLiteDatabase db = getReadableDatabase();\n if (db == null) return null;\n\n // run the query to get the matching task\n Cursor rawTask = db.rawQuery(\"SELECT * FROM Tasks WHERE id = ? ORDER BY due_date ASC;\", new String[]{String.valueOf(id)});\n\n // move the cursor to the first result, if one exists\n if (rawTask.moveToFirst()) {\n // convert the cursor to a task and assign it to our output\n output = new Task(rawTask);\n }\n\n // we're done with the cursor and database, so we can close them here\n rawTask.close();\n db.close();\n\n // return the (possibly null) output\n return output;\n }", "public Task getTaskToRun(String taskTrackerName) throws RemoteException, NotBoundException {\n TaskAttemptID attemptID = new TaskAttemptID(taskID, nextAttemptID++);\n Task newTask = null;\n if (isMapTask()) {\n newTask = new MapTask(attemptID, partition, locatedBlock);\n } else {\n HashSet<String> locations = job.getAllMapTaskLocations();\n newTask = new ReduceTask(attemptID, partition, locatedBlock, locations);\n }\n\n activeTasks.put(attemptID, taskTrackerName);\n allTaskAttempts.add(attemptID);\n\n jobTracker.createTaskEntry(attemptID, taskTrackerName, this);\n\n return newTask;\n }", "Task createTask();", "Task createTask();", "Task createTask();", "public DispatchTask getTask(Thread thread, DispatchTask defaultTask)\n {\n synchronized (m_lock)\n {\n if (thread instanceof PooledThread)\n {\n return ((PooledThread) thread).getTask();\n }\n\n return defaultTask;\n }\n }", "public Task get(int taskIndex) {\n return tasks.get(taskIndex);\n }", "public Task get(int taskIndex) {\n return tasks.get(taskIndex);\n }", "private Object getTask(Runnable runnable)\r\n {\r\n Object innerTask = \r\n ObservableExecutors.getInnerTask(runnable, Object.class);\r\n if (innerTask != null)\r\n {\r\n return innerTask;\r\n }\r\n return runnable;\r\n }", "Object getTaskId();", "@Transactional(Transactional.TxType.REQUIRES_NEW)\n public TaskDef retrieve(Long task_id) {\n return TaskDefIntegrationService.find(task_id);\n }", "String getTaskId();", "private TimerTask getTask() {\n\t\tfinal TimedTask tt = this;\n\t\treturn new TimerTask() {\n\t\t\tpublic void run() {\n\t\t\t\ttask();\n\t\t\t\ttt._nextTaskHasRan = true;\n\t\t\t}\n\t\t};\n\t}", "@Override\n\tpublic V get(long timeout, TimeUnit unit) {\n\t\tV result = null;\n\t\ttry {\n\t\t\tresult = fTask.get(timeout, unit);\n\t\t} catch (InterruptedException | ExecutionException | TimeoutException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "int getTask() {\n return task;\n }", "public Task getTask(int i) {\n return this.tasks.get(i);\n }", "public static ITask findWorkOnTaskById(long taskId) {\r\n Ivy ivy = Ivy.getInstance();\r\n IPropertyFilter<TaskProperty> taskFilter =\r\n ivy.session.getWorkflowContext().createTaskPropertyFilter(TaskProperty.ID, RelationalOperator.EQUAL, taskId);\r\n IQueryResult<ITask> queryResult =\r\n ivy.session.findWorkTasks(taskFilter, null, 0, 1, true,\r\n EnumSet.of(TaskState.SUSPENDED, TaskState.RESUMED, TaskState.PARKED));\r\n List<ITask> tasks = queryResult.getResultList();\r\n if (tasks != null && tasks.size() > 0) {\r\n return tasks.get(0);\r\n }\r\n return null;\r\n }", "String getTaskName();", "String getTaskName();", "public String getTaskName();", "protected Task getTaskNamed(String name) throws InvalidKeyException {\n return task.getTaskNamed(name);\n }", "public int getCustTask()\n\t{\n\t\treturn task;\n\t}", "public static Task fetchByPrimaryKey(long taskId) {\n\t\treturn getPersistence().fetchByPrimaryKey(taskId);\n\t}", "protected File getFreeTask() {\n for (File task : tasks) {\n boolean isFree = true;\n for (EvaluatorHandle handle : evaluations) {\n if (handle.getTask() == task) {\n isFree = false;\n break;\n }\n }\n if (isFree) {\n return task;\n }\n }\n return null;\n }", "public Task getTask(int index)\n {\n return tasks.get(index);\n }", "public String getTask(){\n\treturn task;\n}", "private Task getFirstTestTask() {\n Task task = new Task();\n task.setName(\"Buy Milk\");\n task.setCalendarDateTime(TODAY);\n task.addTag(\"personal\");\n task.setCompleted();\n return task;\n }", "public static Object createTaskObject(){\n try {\n\n return taskModel.make()\n .load(ClassLoader.getSystemClassLoader(), ClassLoadingStrategy.Default.WRAPPER)\n .getLoaded()\n .newInstance();\n\n\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "ITaskView getTaskView();", "public Task getTask(){\n return punchTask;\n }", "public Task getTask(String analysis) {\n\t\tfor (int i = 0; i < tasks.size(); i++) {\n\t\t\tif (tasks.get(i).getAnalysis().toString().equals(analysis))\n\t\t\t\treturn tasks.get(i);\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Optional<Task> findTask(Integer taskId) {\n\t\treturn taskRepository.findById(taskId);\r\n\t}", "public Task get(int index){\n return tasks.get(index);\n }", "public Task getTaskToAdd() {\n return taskToAdd;\n }", "public Task gatherTaskInfo() {\n \t\n \tString title;\n \t\n \tEditText getTitle = (EditText)findViewById(R.id.titleTextBox);\n \t//EditText itemNum = (EditText)findViewById(R.id.showCurrentItemNum);\n \t \t\n \t//gathering the task information\n \ttitle = getTitle.getText().toString();\n\n \t//validate input \n \tboolean valid = validateInput(title);\n \t\n \t//if valid input and we have the properties create a task and return it\n \tif(valid && propertiesGrabbed) {\n \t\t\n\t \t//creating a task\n\t \tTask t = new TfTask();\n\t \tt.setTitle(title);\n\t \t\n\t \t//setting the visibility enum\n\t \tif(taskVisibility.equals(\"Public\")) { \t\t\n\t \t\tt.setVisibility(Visibility.PUBLIC); \t\t\n\t \t}else{\n\t \t\tt.setVisibility(Visibility.PRIVATE); \t\t\n\t \t}\n\t \t\n\t \t//creating each individual item\n\t \taddItemsToTask(t);\n\t \t\t \t\n\t \t//set the description\n\t \tt.setDescription(taskDescription);\n\n\t \t//set the email to respond to\n\t \tt.setEmail(taskResponseString);\n\t \t\n\t \t//return the task\t \t\n\t \treturn t;\n\t \t\n \t}else{\n \t\t//task not correct\n \t\treturn null;\n \t}\n }", "public ArrayList<Task> retrieveTaskList() {\r\n\r\n\r\n return taskList;\r\n }", "public Task getClickedTask(int position) {\r\n\t\treturn taskList.get(position);\r\n\t}", "public Task getTask(Long row_num) {\n List<Task> taskList = new ArrayList<Task>();\n Task result = new Task();\n Integer r = row_num.intValue();\n taskList = getAllTasks();\n result = taskList.get(r);\n return result;\n }", "public TaskDetails getSpecificTask (int position){\n return taskList.get(position);\n }", "public String getTaskName() {\n return taskName;\n }", "public String getTaskName() {\n return taskName;\n }", "public String getTaskName() {\n return taskName;\n }", "public String getTaskName() {\n return taskName;\n }", "public Task getNext()\n {\n\treturn new Task(toDo.get(0));\n }", "public Task getTask(int index) {\n return taskList.get(index - 1);\n }", "TaskNode getNode(Task task);", "public String taskName() {\n return this.taskName;\n }", "public List<Taskdef> getLocalTaskdefs()\n {\n return localTaskdefs;\n }", "public TaskList taskListInstance()\r\n\t{\n\t\treturn null;\r\n\t}", "public Task getTask(int taskNumber) {\n assert taskNumber <= getNumTasks() && taskNumber > 0 : \"Task number should be valid\";\n return tasks.get(taskNumber - 1);\n }", "@Override\n\tpublic Teatask getById(int taskid)\n\t{\n\t\treturn teataskMapper.getById(taskid);\n\t}", "protected abstract Version executeTaskLocal(Version theTask);", "public TaskName getTaskName() {\n return this.taskName;\n }", "public String getTaskName(){\r\n\t\treturn this.taskName;\r\n\t}", "public Task getTask(int index) {\n return records.get(index);\n }", "public Task getTask(String taskId, String userId) throws DaoException, DataObjectNotFoundException, SecurityException\r\n {\n dao = (TaskManagerDao) getDao();\r\n Task task = dao.selectTask(taskId,userId);\r\n if(task!=null) {\r\n // Task task = (Task)col.iterator().next();\r\n task.setAttendees(getAssignees(taskId));\r\n task.setReassignments(getReassignments(taskId));\r\n ResourceManager rm = (ResourceManager)Application.getInstance().getModule(ResourceManager.class);\r\n task.setResources(rm.getBookedResources(task.getId(),CalendarModule.DEFAULT_INSTANCE_ID)); return task;\r\n }else throw new DataObjectNotFoundException(); \r\n }", "final Runnable pollTask() {\n Runnable t = locallyDeqTask();\n if (t == null && (t = scan()) != null)\n ++stealCount;\n return t;\n }", "net.zyuiop.ovhapi.api.objects.license.Task getServiceNameTasksTaskId(java.lang.String serviceName, long taskId) throws java.io.IOException;", "public static Task fetchByUUID_G(String uuid, long groupId,\n\t\tboolean retrieveFromCache) {\n\t\treturn getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);\n\t}", "public Task build() {\n return new Task(moduleName, taskId, taskName, taskDeadline, isComplete);\n }", "public Task getCreationTask() throws ProcessManagerException {\r\n try {\r\n Task creationTask = Workflow.getTaskManager().getCreationTask(\r\n currentUser, currentRole, processModel);\r\n \r\n return creationTask;\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.CREATION_TASK_UNAVAILABLE\", e);\r\n }\r\n }", "public Asset findAsset(Task t){\n Asset found = getAssetFromTask (t);\n return found;\n }", "public static TaskManager getInstance()\n {\n return gInstance;\n }", "public TaskSummary getTask(Long taskId){\n TaskServiceSession taskSession = null;\n try {\n taskSession = jtaTaskService.createSession();\n Task taskObj = taskSession.getTask(taskId);\n TaskSummary tSummary = new TaskSummary();\n tSummary.setActivationTime(taskObj.getTaskData().getExpirationTime());\n tSummary.setActualOwner(taskObj.getTaskData().getActualOwner());\n tSummary.setCreatedBy(taskObj.getTaskData().getCreatedBy());\n tSummary.setCreatedOn(taskObj.getTaskData().getCreatedOn());\n tSummary.setDescription(taskObj.getDescriptions().get(0).getText());\n tSummary.setExpirationTime(taskObj.getTaskData().getExpirationTime());\n tSummary.setId(taskObj.getId());\n tSummary.setName(taskObj.getNames().get(0).getText());\n tSummary.setPriority(taskObj.getPriority());\n tSummary.setProcessId(taskObj.getTaskData().getProcessId());\n tSummary.setProcessInstanceId(taskObj.getTaskData().getProcessInstanceId());\n tSummary.setStatus(taskObj.getTaskData().getStatus());\n tSummary.setSubject(taskObj.getSubjects().get(0).getText());\n return tSummary;\n }catch(RuntimeException x) {\n throw x;\n }finally {\n if(taskSession != null)\n taskSession.dispose();\n }\n }", "TrackerTasks getTrackerTasks(final Integer id);" ]
[ "0.6787822", "0.6634537", "0.6474386", "0.64492327", "0.64438176", "0.6433638", "0.6389419", "0.6388647", "0.6340159", "0.6334106", "0.6302721", "0.6298386", "0.62844646", "0.61890775", "0.61803657", "0.61643505", "0.6115649", "0.6104673", "0.6096366", "0.6092701", "0.6085253", "0.6085253", "0.6066455", "0.60251606", "0.6013268", "0.6011045", "0.5984427", "0.5978232", "0.59596956", "0.5948229", "0.5934009", "0.5929491", "0.59096366", "0.5890259", "0.5854936", "0.58373994", "0.5836164", "0.5812946", "0.5812946", "0.5812946", "0.5802066", "0.5796547", "0.5796547", "0.5784275", "0.57800466", "0.5778805", "0.57728815", "0.5744034", "0.5737953", "0.5736448", "0.57351553", "0.5733404", "0.5710787", "0.5710787", "0.570521", "0.56944895", "0.56818396", "0.5662548", "0.56593525", "0.5657895", "0.56465465", "0.5605746", "0.55942017", "0.558922", "0.5582321", "0.5581064", "0.5572023", "0.5556262", "0.5553279", "0.55525523", "0.55329084", "0.55296683", "0.54868674", "0.54820883", "0.547025", "0.547025", "0.547025", "0.547025", "0.54699725", "0.5462606", "0.5460861", "0.5449452", "0.54427564", "0.5439813", "0.5390668", "0.53862745", "0.53762454", "0.5368731", "0.5357407", "0.5356496", "0.5333001", "0.53019685", "0.5286891", "0.5277311", "0.5277163", "0.52766323", "0.52663076", "0.52394867", "0.5230892", "0.5230268" ]
0.71400386
0
Returns a pool submission, if one exists, activating first.
private Runnable pollSubmission() { StealingPool p = pool; while (p.hasQueuedSubmissions()) { Runnable t; if (tryActivate() && (t = p.pollSubmission()) != null) return t; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ThreadPool getPool()\r\n {\r\n return threadPool_;\r\n }", "int getPoolNumber();", "public boolean getPool() {\n\t\treturn this.pool;\n\t}", "public BoneCP getPool() {\n return pool;\n }", "private synchronized WorkerThread getThread() {\n\t\tfor (int i = 0; i < this.threadPool.size(); ++i) {\n\t\t\tif (this.threadPool.get(i).available()) {\n\t\t\t\tthis.threadPool.get(i).setAvailable(false);\n\t\t\t\treturn this.threadPool.get(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "default T submitted() {\n\t\treturn null;\n\t}", "@Override\n @Transactional(readOnly = true)\n public Optional<PerSubmit> findOne(Long id) {\n log.debug(\"Request to get PerSubmit : {}\", id);\n return perSchedulerRepository.findById(id);\n }", "OMMPool getPool();", "public ThreadPool getThreadPool(int numericIdForThreadpool) throws NoSuchThreadPoolException;", "public ThreadPool getThreadPool(String threadpoolId) throws NoSuchThreadPoolException;", "public boolean hasPool() {\r\n return mPool;\r\n }", "public StealingPool getPool() {\n return pool;\n }", "public ThreadCapsuleInt getThreadCapsule(){\n\n\tif(poolLocked)return null;\n\telse{\n\n\t tempThreadCapsule=(ThreadCapsuleInt)passivePool.pop();\n\n\t if(tempThreadCapsule == null) return tempThreadCapsule;\n\t else{\n\n\t\tactivePool.add(tempThreadCapsule);\n\t\tactivePoolSize=activePool.getPresentSize();\n\t\tpassivePoolSize=passivePool.getPresentSize();\n\n\t\treturn tempThreadCapsule;\n\n\t }//else closing\n\n\t}//else closing\n\n }", "final Runnable popTask() {\n int s = sp;\n while (s != base) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int i = (s - 1) & mask;\n Runnable t = q[i];\n if (t == null || !casSlotNull(q, i, t))\n break;\n storeSp(s - 1);\n return t;\n }\n }\n return null;\n }", "public process get_first() {\n\t\treturn queue.getFirst();\n\t}", "public Optional<PickingRequest> getTask() {\n return Optional.ofNullable(task);\n }", "Executor getWorkerpool() {\n\t return pool.getWorkerpool();\n\t}", "protected ThreadState pickNextThread() //Returns the ThreadState of the head of the PriorityQueue or null if the queue is empty\n\t\t{\n\t\t\tLib.assertTrue(Machine.interrupt().disabled());\n KThread thread = waitQueue.peek();\n if(thread == null)\n\t\t\t{\n return null;\n }\n else\n\t\t\t{\n return getThreadState(thread);\n }\n\t\t}", "protected Job getNextJobInReadyQueue(long tick) {\n Job targetJob = null;\n int highestActivePriority = 0;\n\n for (Job job : nextJobOfATask.values()) {\n if (job.releaseTime > tick)\n continue;\n if (job.task.getPriority() > highestActivePriority) {\n highestActivePriority = job.task.getPriority();\n targetJob = job;\n }\n }\n return targetJob;\n }", "MaximaProcess getProcess() {\r\n \t\trequestTimeHistory.add(System.currentTimeMillis());\r\n \r\n \t\t// Start a new one as we are going to take one...\r\n \t\tif (startupThrotle.availablePermits() > 0) {\r\n \t\t\tstartProcess();\r\n \t\t}\r\n \r\n \t\tMaximaProcess mp = null;\r\n \t\twhile (mp == null) {\r\n \t\t\ttry {\r\n \t\t\t\tmp = pool.take();\r\n \t\t\t} catch (InterruptedException e) {\r\n \t\t\t\t// If we failed to get one, wait a bit.\r\n \t\t\t\te.printStackTrace();\r\n \t\t\t\ttry {\r\n \t\t\t\t\tThread.sleep(3);\r\n \t\t\t\t} catch (InterruptedException ee) {\r\n \t\t\t\t\tee.printStackTrace();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\tusedPool.add(mp);\r\n \t\tmp.activate();\r\n \r\n \t\treturn mp;\r\n \t}", "public abstract int getFromPool(int x);", "public DisplayPoolItem poll() {\r\n\t\t\tmFragLock.lock();\r\n\t\t\t/*\r\n\t\t\t * Query contentPool for more Fragments, if current dPool's fragment\r\n\t\t\t * number is below threshold.\r\n\t\t\t */\r\n\t\t\t// if (mDispItems.size() <= threshold) {\r\n\t\t\t/*\r\n\t\t\t * WTF? JDK does not support constant time concatenation of linked\r\n\t\t\t * list???\r\n\t\t\t */\r\n\t\t\t// LinkedList<DisplayPoolItem> newList = cPool.getFragList();\r\n\t\t\t// for (DisplayPoolItem f2 : newList) {\r\n\t\t\t// mDispItems.add(f2);\r\n\t\t\t// }\r\n\t\t\t// }\r\n\r\n\t\t\tif (mDispItems.peek() == null) {\r\n\t\t\t\tmFragLock.unlock();\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\tDisplayPoolItem dItem = mDispItems.pollFirst(); // pop and remove\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the first element\r\n\r\n\t\t\tmFragLock.unlock();\r\n\r\n\t\t\treturn dItem;\r\n\t\t}", "final Runnable locallyDeqTask() {\n Runnable work = dispatchQueue.poll();\n if( work!=null ) {\n return work;\n }\n int b;\n while (sp != (b = base)) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int i = (q.length - 1) & b;\n Runnable t = q[i];\n if (t != null && casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n }\n }\n return dispatchQueue.getSourceQueue().poll();\n }", "@NotNull\n protected ReusablePool<AbstractReadablePacket> getPool() {\n return requireNonNull(ClassUtils.unsafeCast(getPacketType().getPool()));\n }", "public ForkJoinPool getPool() {\n return pool;\n }", "java.lang.String getPoolName();", "public boolean isPoolingEnabled();", "boolean isSetPoolNumber();", "public boolean isPoolLocked(){return poolLocked;}", "public DispatchTask getTask(Thread thread, DispatchTask defaultTask)\n {\n synchronized (m_lock)\n {\n if (thread instanceof PooledThread)\n {\n return ((PooledThread) thread).getTask();\n }\n\n return defaultTask;\n }\n }", "public static SubmissionRepository current() {\n return theRepository;\n }", "java.lang.String getPoolId();", "protected Job getPreemptingJob(Job runJob, long tick) {\n long earliestPreemptingJobReleaseTime = Long.MAX_VALUE;\n Job earliestPreemptingJob = null;\n long runJobFinishTime = tick + runJob.remainingExecTime;\n for (Job job: nextJobOfATask.values()) {\n if (job == runJob)\n continue;\n\n if (job.releaseTime < runJobFinishTime) {\n if (job.task.getPriority() > runJob.task.getPriority()) {\n if (job.releaseTime < earliestPreemptingJobReleaseTime) {\n earliestPreemptingJobReleaseTime = job.releaseTime;\n earliestPreemptingJob = job;\n }\n }\n }\n }\n return earliestPreemptingJob;\n }", "public Long getPoolId();", "public Object getObject(Object parameters) {\n if (objects == null)\n throw new IllegalStateException(\"Tried to use pool before it was Initialized or after it was ShutDown!\");\n\n Object result = factory.isUniqueRequest();\n if (result != null) // If this is identical to a previous request,\n return result; // return the same result. This is the 2.4 total hack to\n // share local connections within a managed tx.\n\n try {\n if (permits.attempt(blockingTimeout)) {\n ObjectRecord rec = null;\n synchronized (objects) {\n for (Iterator it = objects.values().iterator(); it.hasNext();) {\n rec = (ObjectRecord) it.next();\n if (null != rec && !rec.isInUse() && factory.checkValidObject(rec.getObject(), parameters)) {\n log.info(\"Handing out from pool object: \" + rec.getObject());\n try {\n rec.setInUse(true);\n } catch (ConcurrentModificationException e) {\n log.info(\"Conflict trying to set rec. in use flag:\" + rec.getObject());\n // That's OK, just go on and try another object\n continue;//shouldn't happen now.\n }\n break;\n }\n rec = null;//not found\n }\n }//synch on objects\n\n if (rec == null) {\n try {\n rec = createNewObject(parameters);\n } catch (Exception e) {\n log.error(\"Exception in creating new object for pool\", e);\n permits.release();\n throw e;\n }\n } // end of if ()\n if (rec == null) {\n permits.release();\n String message = \"Pool is broken, did not find or create an object\";\n log.error(message);\n throw new RuntimeException(message);\n } // end of if ()\n Object ob = rec.getObject();\n\n result = factory.prepareObject(ob);\n if (result != ob) rec.setClientObject(result);\n if (result instanceof PooledObject)\n ((PooledObject) result).addPoolEventListener(this);\n\n log.debug(\"Pool \" + this + \" gave out object: \" + result);\n return result;\n }//end of permits\n else {\n //we timed out\n throw new RuntimeException(\"No ManagedConnections Available!\");\n } // end of else\n }//try\n catch (RuntimeException e) {\n throw e;\n } // end of catch\n catch (InterruptedException ie) {\n log.info(\"Interrupted while requesting permit!\", new Exception(\"stacktrace\"));\n throw new RuntimeException(\"Interrupted while requesting permit!\");\n } // end of try-catch\n catch (Exception e) {\n log.info(\"problem getting connection from pool\", e);\n throw new RuntimeException(\"problem getting connection from pool \" + e.getMessage());\n } // end of catch\n }", "public Bid getLowestBid() {\n return jobBids.get(jobBids.size() - 1);\n }", "private Process findClosestProcess(){\n\n //Ensure that the process queue is sorted by process ID for traversal.\n Collections.sort(this.unfinishedJobs,new PIDComparator());\n\n //If there was no process currently executing on the CPU,\n //the next process is simply the process queue's first item.\n if(this.activeJob == null){\n if(this.unfinishedJobs.size() > 0){\n return this.unfinishedJobs.get(0);\n } \n } else {\n\n //Find the first process with a higher process ID than the currently executing\n //process and set it as the new process to execute next.\n for(int i = 0; i < this.unfinishedJobs.size(); i++){\n Process temp = this.unfinishedJobs.get(i);\n if(temp.getPID() > this.activeJob.getPID()){\n return temp;\n }\n }\n\n //If there are no processes with a higher process ID than the current process, use the \n //process queue's first item as a default.\n if(this.unfinishedJobs.size() > 0){\n return this.unfinishedJobs.get(0);\n }\n }\n return null;\n }", "private JButton getLaunchButton() {\r\n\t\tif (launchButton == null) {\r\n\t\t\tlaunchButton = new JButton();\r\n\t\t\tlaunchButton.setText(Message.getMessage(\"reportmaker.process.label\"));\r\n\t\t\tlaunchButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tReportMakerController.instance.process();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn launchButton;\r\n\t}", "public static PriorityExecutorSupplier getInstance() {\n return SingletonHolder.INSTANCE;\n }", "boolean belongsToPool(int x);", "public ThreadPool getDefaultThreadPool();", "ActorThreadPool getThreadPool();", "private Task getTask(Integer identifier) {\n Iterator<Task> iterator = tasks.iterator();\n while (iterator.hasNext()) {\n Task nextTask = iterator.next();\n if (nextTask.getIdentifier().equals(identifier)) {\n return nextTask;\n }\n }\n\n return null;\n }", "public SingleWorkerPoolExecutor() {\n this.worker = new Worker(taskQueue);\n\n // Nothing bad as worker is blocked by an emptiness of a task\n // queue. Adding to this task queue will be possible after worker pool\n // finishes construction\n worker.start();\n }", "public synchronized Object get() throws InterruptedException {\n while (pool.isEmpty()) {\n wait();\n }\n Object result = pool.remove(0);\n notifyAll();\n return result;\n }", "public int getPoolIndex() {\n return poolIndex;\n }", "public int getPoolIndex() {\n return poolIndex;\n }", "public PCB_block getJob(int i) {\n return jobQueue.get(i);\n }", "public String poolName();", "protected File getFreeTask() {\n for (File task : tasks) {\n boolean isFree = true;\n for (EvaluatorHandle handle : evaluations) {\n if (handle.getTask() == task) {\n isFree = false;\n break;\n }\n }\n if (isFree) {\n return task;\n }\n }\n return null;\n }", "public Process getProcessToRun() {\n if (readyQueue.isEmpty()) {\n return null;\n }\n if (readyQueue.get(0).remainingTime() == 0) {\n readyQueue.remove(0);\n }\n\n //now we need to age all the processes that don't get to run\n for(int i=0; i<readyQueue.size(); i++) {\n Process p = readyQueue.get(i);\n p.agingCounter++;\n if(p.agingCounter == TIME_TO_WAIT_BEFORE_AGING) {\n p.ageProcess(AMOUNT_TO_AGE);\n p.agingCounter = 0;\n }\n }\n Collections.sort(readyQueue, this);\n\n //return the process to run\n if(readyQueue.isEmpty()) {\n return null;\n }\n return readyQueue.get(0);\n }", "public Task task()\n {\n return _link.first;\n }", "public static Message obtain() {\n// synchronized (sPoolSync) {\n// if (sPool != null) {\n// Message m = sPool;\n// sPool = m.next;\n// m.next = null;\n// sPoolSize--;\n// return m;\n// }\n// }\n return new Message();\n }", "public Driver getFirstDriver()\n\t{\n\t\tif(unitSpaceAvailable == MAX_QUEUE){return null;}\n\t\treturn queue.get(0);\n\t}", "private DbBillingProjectBufferEntry consumeBufferEntryForAssignment() {\n while (true) {\n if (billingProjectBufferEntryDao.acquireAssigningLock() == 1) {\n break;\n }\n }\n\n DbBillingProjectBufferEntry entry;\n try {\n entry =\n billingProjectBufferEntryDao.findFirstByStatusOrderByCreationTimeAsc(\n DbStorageEnums.billingProjectBufferEntryStatusToStorage(BufferEntryStatus.AVAILABLE));\n\n if (entry == null) {\n log.log(Level.SEVERE, \"Consume Buffer call made while Billing Project Buffer was empty\");\n throw new EmptyBufferException();\n }\n\n entry.setStatusEnum(BufferEntryStatus.ASSIGNING, this::getCurrentTimestamp);\n return billingProjectBufferEntryDao.save(entry);\n } finally {\n billingProjectBufferEntryDao.releaseAssigningLock();\n }\n }", "private synchronized Task takeTask() {\n while (true) {\n Task task = null;\n if (runningActions < maxConcurrentActions) {\n task = runnableActions.poll();\n }\n if (task == null) {\n task = runnableTasks.poll();\n }\n\n if (task != null) {\n runningTasks++;\n if (task.isAction()) {\n runningActions++;\n }\n return task;\n }\n\n if (isExhausted()) {\n return null;\n }\n\n try {\n wait();\n } catch (InterruptedException e) {\n throw new AssertionError();\n }\n }\n }", "public synchronized HttpThread getThread() {\n \t\tadjustThreadCount();\n \n \t\twhile (upper > 0) {\n \t\t\tint count = idleThreads.size();\n \t\t\tif (count > 0) {\n \t\t\t\tint i = count - 1;\n \n \t\t\t\tHttpThread thread = (HttpThread) idleThreads.elementAt(i);\n \t\t\t\tidleThreads.removeElementAt(i);\n \t\t\t\tif (thread.getPriority() != priority) {\n \t\t\t\t\tthread.setPriority(priority);\n \t\t\t\t}\n \t\t\t\tactiveThreads.addElement(thread);\n \t\t\t\t//new Exception((size-i)+\" Threads are at work!\").printStackTrace();\n \t\t\t\tif (Http.DEBUG) {\n \t\t\t\t\thttp.logDebug(thread.getName() + \": becoming active\"); //$NON-NLS-1$\n \t\t\t\t}\n \n \t\t\t\treturn thread;\n \t\t\t}\n \t\t\ttry {\n \t\t\t\twait();\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\t// ignore and check exit condition\n \t\t\t}\n \t\t}\n \n \t\treturn null;\n \t}", "public Poolable get() throws Exception\n {\n // To make this class backwards compatible, it has to auto initialize if necessary\n if( !m_initialized )\n {\n initialize();\n }\n\n if( null == m_pool && null != m_controller )\n {\n final int increase = m_controller.grow();\n if( increase > 0 )\n {\n grow( increase );\n }\n }\n\n if( 0 > m_count )\n {\n m_count = -1;\n return (Poolable)m_factory.newInstance();\n }\n else if( 0 == m_count )\n {\n m_count--;\n return m_pool[ 0 ];\n }\n\n final Poolable poolable = m_pool[ m_count ];\n m_pool[ m_count ] = null;\n m_count--;\n return poolable;\n }", "@Override\n\tpublic String getSubmitId() {\n\t\treturn model.getSubmitId();\n\t}", "private JedisPool getPool() {\n if (pool == null) {\n JedisPoolConfig config = new JedisPoolConfig();\n config.setMinIdle(poolMinIdle);\n config.setMaxIdle(poolMaxIdle);\n config.setMaxTotal(poolMaxTotal);\n pool = new JedisPool(config, host, port, (int) timeout);\n logger.debug(\"Creando jedisPool@ \" + host + \":\" + port + \". MinIdle/MaxIdle/MaxTotal: \" + poolMinIdle + \"/\" + poolMaxIdle + \"/\" + poolMaxTotal + \". Timeout: \" + timeout);\n }\n return pool;\n }", "public String getName() {\n return poolName;\n }", "public synchronized T pop() throws PoolException {\n try {\n\n T item = getStack().poll();\n if (item == null || !isValid(item)) {\n trace(\"pop: creating new item\");\n return doCreate();\n }\n inUse++;\n trace(\"pop: in use = \" + inUse + \", created = \" + totalCreated);\n return item;\n } catch (IndexOutOfBoundsException x) { // pool is empty\n return doCreate();\n } catch (NoSuchElementException x) { // pool is empty\n return doCreate();\n }\n }", "public SubResource backendAddressPool() {\n return this.backendAddressPool;\n }", "boolean isSetPoolName();", "@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}", "protected GuiTestObject nextsubmit() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"nextsubmit\"));\n\t}", "String fetchSubmitTarget() {\n return PageFlowContext.getOperationParameters().getProperty(\"submitTarget\");\n }", "public synchronized PartialSolution getWork() {\n\t\tif (tasks.size() == 0) { // workpool gol\n\t\t\tnWaiting++;\n\t\t\t/* condtitie de terminare:\n\t\t\t * nu mai exista nici un task in workpool si nici un worker nu e activ \n\t\t\t */\n\t\t\tif (nWaiting == nThreads) {\n\t\t\t\tready = true;\n\t\t\t\t/* problema s-a terminat, anunt toti ceilalti workeri */\n\t\t\t\tnotifyAll();\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\twhile (!ready && tasks.size() == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.wait();\n\t\t\t\t\t} catch(Exception e) {e.printStackTrace();}\n\t\t\t\t}\n\n\t\t\t\tif (ready){\n\t\t\t\t\t/* s-a terminat prelucrarea */\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tnWaiting--;\t\t\n\t\t\t}\n\t\t}\n\t\treturn tasks.remove();\n\n\t}", "protected abstract String getJobSubmitId();", "protected ThreadState pickNextThread() {\n Lib.assertTrue(Machine.interrupt().disabled());\n if (threadStates.isEmpty())\n return null;\n\n return threadStates.last();\n }", "@Override\r\n\r\n\tpublic E pollFirst() {\n\t\treturn poll();\r\n\t}", "public Workload getNewInstanceOfThisWorkload() {\n\t\t\n\t\tWorkload workload = new Workload(numOfSlotsNeededToSendPacket);\n Random rand = new Random(randomSeed);\n\t\t\n List<Vertex> vertices = topology.getVerticesWithOneNeighbor();\n Vertex gateway = topology.getGateway();\n \tfor(Vertex vertex : vertices) {\n \t\tif(vertex != gateway) {\n \t\t\tif(flowClasses.length == 1) {\n \t\t\tif(randomFlowPhase) {\n \t\t\t\tworkload.newPeriodicFlow(vertex, gateway, rand.nextInt(flowClasses[0]), flowClasses[0], flowClasses[0]);\n \t\t\t} else {\n \t\t\t\tworkload.newPeriodicFlow(vertex, gateway, 0, flowClasses[0], flowClasses[0]);\n \t\t\t}\n \t\t} else {\n \t\t\tint pickedFlowClass = rand.nextInt(flowClasses.length);\n \t\t\tif(randomFlowPhase) {\n \t\t\t\tworkload.newPeriodicFlow(vertex, gateway, rand.nextInt(flowClasses[pickedFlowClass]), flowClasses[pickedFlowClass], flowClasses[pickedFlowClass]);\n \t\t\t} else {\n \t\t\t\tworkload.newPeriodicFlow(vertex, gateway, 0, flowClasses[pickedFlowClass], flowClasses[pickedFlowClass]);\n \t\t\t}\n \t\t}\n \t\t}\n \t}\n \tworkload.assignPriorities();\n \t\n \treturn workload;\n\t}", "protected ClassPool getClassPool() {\r\n return pool;\r\n }", "private WorkflowPlan choosePlan(Set<WorkflowPlan> evaluatedPlans) {\n WorkflowPlan plan = evaluatedPlans.iterator().next();\n return plan;\n }", "@SideOnly(Side.CLIENT)\n\t public AxisAlignedBB getSelectedBoundingBoxFromPool(World world, int x, int y, int z)\n\t {\n\t this.setBlockBoundsBasedOnState(world, x, y, z);\n\t return super.getSelectedBoundingBoxFromPool(world, x, y, z);\n\t }", "private Task pickupTaskOrNull(AltoClef mod, Item itemToGrab, double maxRange) {\n Optional<ItemEntity> nearestDrop = Optional.empty();\n if (mod.getEntityTracker().itemDropped(itemToGrab)) {\n nearestDrop = mod.getEntityTracker().getClosestItemDrop(mod.getPlayer().getPos(), itemToGrab);\n }\n if (nearestDrop.isPresent()) {\n if (nearestDrop.get().isInRange(mod.getPlayer(), maxRange)) {\n return new PickupDroppedItemTask(new ItemTarget(itemToGrab), true);\n }\n //return new GetToBlockTask(nearestDrop.getBlockPos(), false);\n }\n return null;\n }", "private Runnable getTask() {\r\n if (mType== Type.FIFO){\r\n return mTaskQueue.removeFirst();\r\n }else if (mType== Type.LIFO){\r\n return mTaskQueue.removeLast();\r\n }\r\n return null;\r\n }", "public ActivityIdentifier submit(Activity activity) throws NoSuitableExecutorException;", "@Override\r\n\tpublic E pollFirst() {\n\t\treturn null;\r\n\t}", "public BagSubject getDecision(PBFTBag bag){\n /* If the preprepare is null then do nothing.*/\n boolean completed = false;\n if(bag == null) return null;\n\n /* Get composite key of the prepare. */\n Long entryKey = bag.getSequenceNumber();\n Object lServerID = getLocalServerID();\n\n /* If the entry key is not null then it'll update state. */\n if(entryKey != null) {\n SoftQuorum q = (SoftQuorum)getStateLog().getQuorum(BAGQUORUMSTORE, entryKey.toString());\n if(q == null){\n int f = getServiceBFTResilience();\n q = new SoftQuorum(2 * f + 1);\n getStateLog().getQuorumTable(BAGQUORUMSTORE).put(entryKey.toString(), q);\n }\n\n /*TODO: evaluate if \"q.getCurrentDecision()\" is a better implementation */\n BagSubject decision = (BagSubject) q.decide();\n\n if(decision != null){\n completed = true;\n }\n\n q.add(new Vote(bag.getReplicaID(), new BagSubject(bag)));\n\n if(decision == null){\n decision = (BagSubject) q.decide();\n }\n\n JDSUtility.debug(\"[PBFTServer:getDecision(bag)] s\" + lServerID +\", at time \" + getClockValue() + \", updated a entry in its log for \" + bag);\n\n if(!completed && decision != null){\n long seqn = (Long) decision.getInfo(BagSubject.SEQUENCENUMBER);\n JDSUtility.debug(\"[PBFTServer:getDecision(bag] s\" + lServerID + \", at time \" + getClockValue() + \", completed quorum for bag with EXEC-SEQ (\" + seqn + \")\");\n return decision;\n }\n }\n return null;\n }", "private DispatchTask next()\n {\n synchronized (m_lock)\n {\n while (null == m_runnable)\n {\n if (m_released)\n {\n return null;\n }\n\n try\n {\n m_lock.wait();\n } catch (InterruptedException e)\n {\n // Not needed\n }\n }\n\n return m_runnable;\n }\n }", "public E pollFirst();", "public int getThreadPoolNumericId(String threadpoolId);", "private Job findLaunchClientJob() {\n Job[] jobs = Job.getJobManager().find(null);\n for (Job job : jobs) {\n if (job instanceof LaunchClientJob) {\n if (((LaunchClientJob) job).getServer().getId().equals(environment.getServer().getId())) {\n trace(\"Identified LaunchClientJob: \" + job);\n return job;\n }\n }\n }\n\n trace(\"Unable to find LaunchClientJob!\");\n return null;\n }", "Question getQuestionInPick(String questionId);", "public BlockConsistencyGroup findExistingBlockConsistencyGroup(String psetLabel, NamedURI projectNamedUri, NamedURI tenantOrg) {\n for (VolumeIngestionContext volumeContext : getRootIngestionRequestContext().getProcessedUnManagedVolumeMap().values()) {\n if (volumeContext instanceof RecoverPointVolumeIngestionContext) {\n RecoverPointVolumeIngestionContext rpContext = (RecoverPointVolumeIngestionContext) volumeContext;\n BlockConsistencyGroup bcg = rpContext.getManagedBlockConsistencyGroup();\n if (bcg != null) {\n if ((bcg.getLabel().equals(psetLabel)) \n && (bcg.getProject().equals(projectNamedUri))\n && (bcg.getTenant().equals(tenantOrg))) {\n _logger.info(\"found already-instantiated BlockConsistencyGroup {} (hash {})\", bcg.getLabel(), bcg.hashCode());\n return bcg;\n }\n }\n }\n }\n\n _logger.info(\"did not find an already-instantiated BlockConsistencyGroup for \", psetLabel);\n return null;\n }", "int getMinPoolSize();", "public int getActivePoolSize(){return activePoolSize;}", "public DataRecord getAssignRecord() {\r\n String[] activeStates = currentProcessInstance.getActiveStates();\r\n Actor[] actors = null;\r\n \r\n try {\r\n DataRecord data = getAssignTemplate().getEmptyRecord();\r\n \r\n for (int i = 0; activeStates != null && i < activeStates.length; i++) {\r\n actors = currentProcessInstance.getWorkingUsers(activeStates[i]);\r\n \r\n for (int j = 0; actors != null && j < actors.length; j++) {\r\n Field field = data.getField(activeStates[i] + \"_\"\r\n + actors[j].getUserRoleName() + \"_\" + j);\r\n String value = actors[j].getUser().getUserId();\r\n \r\n if (value != null) {\r\n field.setStringValue(value);\r\n }\r\n }\r\n }\r\n \r\n return data;\r\n } catch (WorkflowException e) {\r\n SilverTrace.warn(\"processManager\", \"SessionController.getAssignRecord\",\r\n \"processManager.EX_ERR_GET_DATARECORD\", e);\r\n return null;\r\n } catch (ProcessManagerException e) {\r\n SilverTrace.warn(\"processManager\", \"SessionController.getAssignRecord\",\r\n \"processManager.EX_ERR_GET_DATARECORD\", e);\r\n return null;\r\n } catch (FormException e) {\r\n SilverTrace.warn(\"processManager\", \"SessionController.getAssignRecord\",\r\n \"processManager.EX_ERR_GET_FIELD\");\r\n return null;\r\n }\r\n }", "private Student getNextWaitingStudent() {\n if (waitingStudents.size() < 1) return null;\n System.out.println(\"TA: TA asking a sitting student to come in.\");\n Student s = waitingStudents.remove(0);\n // Notify the student that he/she can come in\n s.notifyWaitingDone();\n return s;\n }", "private boolean tryActivate() {\n if (!active) {\n if (!pool.tryIncrementActiveCount())\n return false;\n active = true;\n }\n return true;\n }", "private boolean tryActivate() {\n if (!active) {\n if (!pool.tryIncrementActiveCount())\n return false;\n active = true;\n }\n return true;\n }", "public Task getTaskToRun(String taskTrackerName) throws RemoteException, NotBoundException {\n TaskAttemptID attemptID = new TaskAttemptID(taskID, nextAttemptID++);\n Task newTask = null;\n if (isMapTask()) {\n newTask = new MapTask(attemptID, partition, locatedBlock);\n } else {\n HashSet<String> locations = job.getAllMapTaskLocations();\n newTask = new ReduceTask(attemptID, partition, locatedBlock, locations);\n }\n\n activeTasks.put(attemptID, taskTrackerName);\n allTaskAttempts.add(attemptID);\n\n jobTracker.createTaskEntry(attemptID, taskTrackerName, this);\n\n return newTask;\n }", "public int bestSubmissionNumber(String name) {\n // checks if student exists - stores index in student list if exists\n int exists = this.studentExists(name);\n\n // return -1 if student does not exist\n if (this.studentExists(name) == -1) {\n return -1;\n } else {\n // student exists, so return submission number for the highest score\n return (studentList.get(exists)).getBestSubmitNumber();\n }\n }", "public ThreadPoolChooser getThreadPoolChooser(int componentIndex);", "public Person peek() throws EmptyQueueException{\n if (holdingQueue.isEmpty()){\n throw new EmptyQueueException(\"This queue is empty.\");\n }else{\n return holdingQueue.get(0);\n }\n }", "public static ThreadPool getInstance()\r\n {\r\n if(instance == null)\r\n {\r\n instance = new ThreadPool();\r\n }\r\n return instance;\r\n }", "public synchronized Request getNextRequestToExecute() throws InterruptedException\n {\n do\n {\n if (requests.size() == 0)\n wait();\n\n needsReorder |= removeMissedRequests();\n\n if (needsReorder)\n {\n reorderRequests();\n needsReorder = false;\n }\n\n } while (requests.size() == 0);\n\n Request result = requests.get(0);\n requests.remove(0);\n return result;\n }", "public int askPrimary();", "private static void threadPoolWithSubmit() throws InterruptedException, ExecutionException {\n Executor executor = Executors.newFixedThreadPool(1);\n Callable<String> callable=()->{\n try{\n Thread.sleep(4000);\n System.out.println(\"In callable\");\n Thread.sleep(4000);\n System.out.println(\"In runnable for task id 1\");\n }catch(Exception e){\n e.printStackTrace();\n }\n return \"success\";\n };\n Future<String> future =((ExecutorService) executor).submit(callable);\n System.out.println(\"Future result - \"+future.get()+\" Future is blocking as it blocks until result is obtained\");\n System.out.println(\"End of method \");\n ((ExecutorService) executor).shutdown();\n /*Output\n In callable\n In runnable for task id 1\n Future result - success Future is blocking as it blocks until result is obtained\n End of method\n */\n }" ]
[ "0.5491513", "0.5417761", "0.5374111", "0.53294617", "0.52691466", "0.52635974", "0.51664543", "0.51658887", "0.5103968", "0.508581", "0.50795865", "0.50649977", "0.5025931", "0.5009858", "0.49947262", "0.4985646", "0.4948235", "0.49458817", "0.49221396", "0.49159774", "0.49098566", "0.490205", "0.4892353", "0.48513705", "0.48442164", "0.4837196", "0.48110196", "0.48078665", "0.47872818", "0.47658166", "0.47656623", "0.4763677", "0.4737844", "0.47253975", "0.47165394", "0.47057", "0.46997175", "0.46981174", "0.46939546", "0.46922675", "0.46873486", "0.4676045", "0.46698353", "0.46614847", "0.4652829", "0.4652202", "0.4652202", "0.46470517", "0.46428525", "0.46411327", "0.46363994", "0.46173367", "0.46142402", "0.46129334", "0.4598512", "0.45937523", "0.4592525", "0.45916978", "0.4567507", "0.45660976", "0.45657274", "0.45650545", "0.45514363", "0.45490998", "0.45460534", "0.45410693", "0.45376223", "0.45337096", "0.45328805", "0.45276558", "0.45258775", "0.45213464", "0.4517535", "0.45113295", "0.4494123", "0.44850042", "0.44842836", "0.4473836", "0.44697842", "0.446222", "0.44483", "0.4441194", "0.4433499", "0.44290727", "0.44275686", "0.44253382", "0.44214135", "0.44183466", "0.44095218", "0.4409003", "0.44078687", "0.44078687", "0.44012916", "0.43902752", "0.43823954", "0.43807286", "0.4377607", "0.43702745", "0.43701214", "0.43670323" ]
0.7228079
0
Drains tasks to given collection c.
final int drainTasksTo(Collection<? super Runnable> c) { int n = 0; Runnable t; while (base != sp && (t = deqTask()) != null) { c.add(t); ++n; } return n; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "B withTasks(Collection<T> tasks);", "@Override\n\tpublic int drainTo(Collection<? super E> c) {\n\t\treturn 0;\n\t}", "private CollectTaskPool() {\n\t\tsuper();\n\t}", "private void submitCollectAppsTrafficTask() {\n\t\tL.i(this.getClass(), \"CollectAppsTrafficTask()...\");\n\t\taddTask(new CollectAppsTrafficTask());\n\t}", "@Override\n public void run($ collection) {\n\n CleanupRunnable.run();\n }", "public void addAllSuccesses(Collection<T> c) {\n successes.addAll(c);\n }", "@Override\n public void flushFlows() {\n LOG.info(\"flushFlows: creating flowWriter task, writing [{}] flows.\",\n setOfFlowsToAdd.size());\n\n FlowSetWriterTask writerThread = new FlowSetWriterTask(setOfFlowsToAdd);\n\n try {\n threadPoolExecutorService.execute(writerThread);\n } catch (Exception ex) {\n LOG.error(LOGSTR_THREAD_EXCEPTION, ex.toString());\n }\n\n // Clear the entries\n setOfFlowsToAdd.clear();\n }", "void addDoneTasks(List<Task> task);", "public void submitCollectAllTrafficTask() {\n\t\tL.i(this.getClass(), \"CollectSysTrafficTask()...\");\n\t\tsubmitCollectAppsTrafficTask();\n\t\taddTask(new CollectSysTrafficTask());\n\t\tsubmitMonitorDeviceTrafficTask();\n\t\tthis.runTask();\n\t}", "void schedule(Collection<ExportedTaskNode> taskNodes);", "@Override\n\tvoid collect() {\n\t\t\n\t}", "public DisjointSet(Collection<E> c) {\n c.forEach(e -> {\n Node<E> n = new Node<>(e);\n theMap.put(e, n);\n theSet.add(n);\n });\n }", "private void submitCollectSysTrafficTask() {\n\t\tL.i(this.getClass(), \"CollectSysTrafficTask()...\");\n\t\taddTask(new CollectSysTrafficTask());\n\t}", "void addTasks(List<Task> tasks);", "public void removeTasks() {\n\t\t\r\n\t}", "@Override\n public void addTasksToRun() {\n //gets the tasks that are ready for execution from the list with new tasks\n List<Task> collect = tasks.stream().filter((task) -> (task.getDate() == TIME))\n .collect(Collectors.toList());\n //sort the tasks inserted. The sort is based in \"priority\" value for all the tasks.\n collect.sort(new Comparator<Task>() {\n @Override\n public int compare(Task o1, Task o2) {\n return o1.getPriority() - o2.getPriority();\n }\n });\n //Change the status of tasks for READY\n collect.stream().forEach((task) -> {\n task.setStatus(Task.STATUS_READY);\n });\n //Adds the tasks to the queue of execution\n tasksScheduler.addAll(collect);\n\n //Removes it from list of new tasks\n tasks.removeAll(collect);\n }", "public void generateNewTasks(List<CaptureTask> tasks) {\n\t\t\r\n\t}", "public void drain(MessagePassingQueue.Consumer<E> c, MessagePassingQueue.WaitStrategy w, MessagePassingQueue.ExitCondition exit)\r\n/* 371: */ {\r\n/* 372:664 */ int idleCounter = 0;\r\n/* 373:665 */ while (exit.keepRunning())\r\n/* 374: */ {\r\n/* 375:667 */ E e = relaxedPoll();\r\n/* 376:668 */ if (e == null)\r\n/* 377: */ {\r\n/* 378:670 */ idleCounter = w.idle(idleCounter);\r\n/* 379: */ }\r\n/* 380: */ else\r\n/* 381: */ {\r\n/* 382:673 */ idleCounter = 0;\r\n/* 383:674 */ c.accept(e);\r\n/* 384: */ }\r\n/* 385: */ }\r\n/* 386: */ }", "void add(Cluster c){\n Set<Cluster> tempC = new TreeSet<Cluster>();\n for(Cluster i: C)\n tempC.add(i);\n tempC.add(c);\n C = tempC;\n }", "private int collect(XQueue in, int oid) {\n long tm;\n int id = -1, k, n;\n n = 0;\n while ((id = pool.collect(-1L)) >= 0) {\n tm = System.currentTimeMillis();\n k = collect(tm, id, in, oid);\n if (k >= 0)\n n ++;\n else\n new Event(Event.ERR, name+\" failed to collect from \"+id).send();\n }\n if (n > 0 && (debug & DEBUG_COLL) > 0)\n new Event(Event.DEBUG, name + \" collected \" + n + \" tasks\").send();\n return n;\n }", "public CollectingConsumer(List<T> collected) {\n this.collected = collected;\n }", "void refreshContainersToRun(Set<NodeAgentContext> nodeAgentContexts);", "void addSeeds(TaskList tasks);", "AbstractConcurrencyLoadBalancer(Collection<T> tasks, List<CompletableTask.Listener<T>> listeners, Ticker ticker) {\n this.listeners = listeners;\n this.ticker = ticker;\n this.metrics = new MetricsImpl(tasks, ticker);\n }", "protected void done( Callback c ){\n //done with the partitioning\n c.cbDone();\n }", "public void mo83569b(Collection<File> collection) {\n this.f60298e.lock();\n if (collection != null) {\n try {\n this.f60299f.removeAll(collection);\n for (File file : collection) {\n String name = file.getName();\n mo83568b(new File(file.getParentFile(), name.substring(0, name.lastIndexOf(\".\"))));\n mo83565a(file);\n }\n } catch (Throwable th) {\n this.f60298e.unlock();\n throw th;\n }\n }\n this.f60298e.unlock();\n }", "public void run() {\n\t\tfor (ConConsumer consumer : _consumers) {\n\t\t\tconsumer.register();\n\t\t}\n\t\t// commit the channels <\n\t\t// wait for the tasks finish >\n\t\t_monitor.checkFinish();\n\t\t// wait for the tasks finish <\n\t\t_threadPool.shutdown();\n\t}", "private void clearTasks(){\n ArrayList<Item> iteratorList = new ArrayList<Item>(items);\n Iterator<Item> it = iteratorList.iterator();\n while(it.hasNext()){\n Item i = it.next();\n if (!i.isCategory()){\n Task t = (Task) i;\n if(t.finished){\n \tDirectIO.RemoveItem(t);\n adapter.remove(i);\n }\n }\n }\n }", "private TaskSeriesCollection createCollection3() {\n Task sub1 = new Task(\"Sub1\", new Date(11), new Date(111));\n Task sub2 = new Task(\"Sub2\", new Date(22), new Date(222));\n Task sub3 = new Task(\"Sub3\", new Date(33), new Date(333));\n Task sub4 = new Task(\"Sub4\", new Date(44), new Date(444));\n Task sub5 = new Task(\"Sub5\", new Date(55), new Date(555));\n Task sub6 = new Task(\"Sub6\", new Date(66), new Date(666));\n sub1.setPercentComplete(0.111);\n sub2.setPercentComplete(0.222);\n sub3.setPercentComplete(0.333);\n sub4.setPercentComplete(0.444);\n sub5.setPercentComplete(0.555);\n sub6.setPercentComplete(0.666);\n TaskSeries seriesA = new TaskSeries(\"Series A\");\n Task taskA1 = new Task(\"Task 1\", new SimpleTimePeriod(new Date(100), new Date(200)));\n taskA1.setPercentComplete(0.1);\n taskA1.addSubtask(sub1);\n Task taskA2 = new Task(\"Task 2\", new SimpleTimePeriod(new Date(220), new Date(350)));\n taskA2.setPercentComplete(0.2);\n taskA2.addSubtask(sub2);\n taskA2.addSubtask(sub3);\n seriesA.add(taskA1);\n seriesA.add(taskA2);\n TaskSeries seriesB = new TaskSeries(\"Series B\");\n Task taskB2 = new Task(\"Task 2\", new SimpleTimePeriod(new Date(2220), new Date(3350)));\n taskB2.setPercentComplete(0.3);\n taskB2.addSubtask(sub4);\n taskB2.addSubtask(sub5);\n taskB2.addSubtask(sub6);\n seriesB.add(taskB2);\n TaskSeriesCollection tsc = new TaskSeriesCollection();\n tsc.add(seriesA);\n tsc.add(seriesB);\n return tsc;\n }", "private void refreshLists(ContestantContestListView cclv) {\n\t\tList<Contest> allSubmittedTo = new ArrayList<>();\n\t\tList<Contest> allNotSubmittedTo = new ArrayList<>();\n\t\tdistributeContests(allSubmittedTo, allNotSubmittedTo);\t\n\t\tcclv.setNoSubmissionMadeList(allNotSubmittedTo.toArray(new Contest[allNotSubmittedTo.size()]));\n\t\tcclv.setSubmissionMadeList(allSubmittedTo.toArray(new Contest[allSubmittedTo.size()]));\n\t}", "private void createTargetCollection() throws Exception {\n List<String> nodeNames = this.startServers(shardCount * replicationFactor);\n this.collectionToNodeNames.put(TARGET_COLLECTION, nodeNames);\n this.createCollection(TARGET_COLLECTION);\n this.waitForRecoveriesToFinish(TARGET_COLLECTION, true);\n this.updateMappingsFromZk(TARGET_COLLECTION);\n }", "public void doCollectMeeting() {\n\t}", "Collect getColl();", "public void serializeExecutionOfTasks(Collection<Task> tasks, Class<? extends Task> taskClass) {\n int tasksRun = 1;\n while (tasksRun > 0) {\n tasksRun = 0;\n for (Iterator<Task> it = tasks.iterator(); it.hasNext(); ) {\n int attempts = 0;\n Task t = it.next();\n while (true) {\n try {\n if (taskClass.isAssignableFrom(t.getClass())) {\n tasksRun++;\n run(t);\n it.remove();\n }\n break;\n } catch (RuntimeException e) {\n if (attempts++ >= retries) {\n throw e;\n }\n log.error(e.toString(), e);\n log.info(\"Retrying \" + attempts + \" of \" + retries);\n }\n }\n }\n }\n }", "public void enqueueAll(Collection<Task> tasks) {\n this.tasks.addAll(tasks);\n }", "public void mo83566a(Collection<File> collection) {\n this.f60298e.lock();\n if (collection != null) {\n try {\n this.f60299f.removeAll(collection);\n } catch (Throwable th) {\n this.f60298e.unlock();\n throw th;\n }\n }\n this.f60298e.unlock();\n }", "public Collection<FixupTask> getFixupTaskByCustomer(final Customer c) {\n\t\tfinal Collection<FixupTask> res = c.getFixupTasks();\n\t\treturn res;\n\t}", "private void schedule( TaskKey aWorkPackage, boolean aCollectionReqBool ) throws Exception {\n ScheduleInternalTO lTO = new ScheduleInternalTO();\n lTO.setSchedDates( new Date(), new Date() );\n lTO.setWorkOrderNo( WORK_ORDER_NO, \"\" );\n lTO.setCollectionRequired( aCollectionReqBool );\n\n STaskBean staskBean = new STaskBean();\n staskBean.setSessionContext( new SessionContextFake() );\n staskBean.schedule( aWorkPackage, lTO, AUTHORIZING_HR );\n\n }", "public void AddCollection(View view) {\n Intent intent = new Intent(this, AddCollectionActivity.class);\n this.startActivity(intent);\n }", "public static void doExpand_collection(RunData data) throws IdUnusedException, TypeException, PermissionException\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\t\tSortedSet expandedItems = (SortedSet) state.getAttribute(STATE_EXPANDED_COLLECTIONS);\n\t\tif(expandedItems == null)\n\t\t{\n\t\t\texpandedItems = new TreeSet();\n\t\t}\n\n\t\t//get the ParameterParser from RunData\n\t\tParameterParser params = data.getParameters ();\n\n\t\t// save the current selections\n\t\tSet selectedSet = new TreeSet();\n\t\tString[] selectedItems = params.getStrings (\"selectedMembers\");\n\t\tif(selectedItems != null)\n\t\t{\n\t\t\tselectedSet.addAll(Arrays.asList(selectedItems));\n\t\t}\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, selectedSet);\n\n\t\tString id = params.getString(\"collectionId\");\n\t\texpandedItems.add(id);\n\n\t\tstate.setAttribute(STATE_EXPANDED_COLLECTIONS, expandedItems);\n\n\t\t// add this folder id into the set to be event-observed\n\t\taddObservingPattern(id, state);\n\n\t}", "void setDependentTasks(Set<Task> dependentTasks);", "@Override // androidx.work.impl.utils.CancelWorkRunnable\n @WorkerThread\n public void c() {\n WorkDatabase workDatabase = this.b.getWorkDatabase();\n workDatabase.beginTransaction();\n try {\n for (String str : workDatabase.workSpecDao().getUnfinishedWorkWithName(this.c)) {\n a(this.b, str);\n }\n workDatabase.setTransactionSuccessful();\n workDatabase.endTransaction();\n if (this.d) {\n b(this.b);\n }\n } catch (Throwable th) {\n workDatabase.endTransaction();\n throw th;\n }\n }", "public void startCollection() {\n if (recordHandler != null)\n recordHandler.startCollection();\n }", "@Test\n public void collectionTaskInTheWorkScopeOfCommittedWPEnabled() throws Exception {\n\n // Given a work package with Collection Required boolean set to TRUE\n final TaskKey lWorkPackage = createWorkPackage();\n\n schedule( lWorkPackage, true );\n\n SchedStaskTable lStaskTable = InjectorContainer.get().getInstance( SchedStaskDao.class )\n .findByPrimaryKey( lWorkPackage );\n\n // Then Collection Required param of work package set to TRUE\n assertTrue( lStaskTable.isCollectionRequiredBool() );\n }", "public void processTasks (List tasks) {\n // Should only ever have one task in here\n while (!tasks.isEmpty()) {\n Task t = (Task)tasks.remove(0);\n \n Asset a = findAsset(t);\n PlanElement alloc = createAllocation(t, a);\n publishAddingOfAllocation(alloc);\n } \n }", "protected void addContest(Contest cs) {\n\t\tthis.contests.put(cs.getId(), cs);\n\t}", "public Collection<FixupTask> getFixupTaskByCustomer(final Customer c) {\r\n\t\tfinal Collection<FixupTask> res = this.fixupTaskService.findByCustomer(c);\r\n\t\treturn res;\r\n\t}", "public void processTasks (List tasks) {\n if (!allNecessaryAssetsReported()) { // if need subordinates aren't there yet, way 10 seconds\n getAllAssets ();\n delayedTasks.addAll (tasks);\n\n if (logger.isInfoEnabled()) {\n\tlogger.info (getName() + \" - necessary subords have not reported, so waiting \" + waitTime + \n\t\t \" millis to process \" + delayedTasks.size () + \n\t\t \" tasks.\");\n\treportMissingAssets ();\n }\n\n examineBufferAgainIn (waitTime); // wait 10 seconds and check again\n }\n else { // ok, all subords are here, lets go!\n if (logger.isInfoEnabled()) {\n\tlogger.info (getName() + \" - all necessary subords have reported, so processing \" + tasks.size() + \n\t\t \" tasks.\");\n }\n\n tasks.addAll (delayedTasks);\n delayedTasks.clear();\n super.processTasks (tasks);\n }\n }", "public void testExecuteInParallel_Collection_ThreadPoolExecutor() throws Exception\n {\n System.out.println( \"executeInParallel\" );\n Collection<Callable<Double>> tasks = createTasks( 10 );\n Collection<Double> result = ParallelUtil.executeInParallel( tasks, ParallelUtil.createThreadPool( 1 ) );\n assertEquals( result.size(), tasks.size() );\n }", "WorkoutBatch copy();", "static public void doCollapse_collection(RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\t\tSortedSet expandedItems = (SortedSet) state.getAttribute(STATE_EXPANDED_COLLECTIONS);\n\t\tif(expandedItems == null)\n\t\t{\n\t\t\texpandedItems = new TreeSet();\n\t\t}\n\t\tMap folderSortMap = (Map) state.getAttribute(STATE_EXPANDED_FOLDER_SORT_MAP);\n\t\tif(folderSortMap == null)\n\t\t{\n\t\t\tfolderSortMap = new Hashtable();\n\t\t\tstate.setAttribute(STATE_EXPANDED_FOLDER_SORT_MAP, folderSortMap);\n\t\t}\n\n\t\t//get the ParameterParser from RunData\n\t\tParameterParser params = data.getParameters ();\n\t\tString collectionId = params.getString(\"collectionId\");\n\n\t\t// save the current selections\n\t\tSet selectedSet = new TreeSet();\n\t\tString[] selectedItems = data.getParameters ().getStrings (\"selectedMembers\");\n\t\tif(selectedItems != null)\n\t\t{\n\t\t\tselectedSet.addAll(Arrays.asList(selectedItems));\n\t\t}\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, selectedSet);\n\n\t\tSortedSet newSet = new TreeSet();\n\t\tIterator l = expandedItems.iterator();\n\t\twhile (l.hasNext ())\n\t\t{\n\t\t\t// remove the collection id and all of the subcollections\n//\t\t Resource collection = (Resource) l.next();\n//\t\t\tString id = (String) collection.getId();\n\t\t String id = (String) l.next();\n\n\t\t\tif (id.indexOf (collectionId)==-1)\n\t\t\t{\n\t//\t\t\tnewSet.put(id,collection);\n\t\t\t\tnewSet.add(id);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfolderSortMap.remove(id);\n\t\t\t}\n\t\t}\n\n\t\tstate.setAttribute(STATE_EXPANDED_COLLECTIONS, newSet);\n\n\t\t// remove this folder id into the set to be event-observed\n\t\tremoveObservingPattern(collectionId, state);\n\n\t}", "protected abstract void createTasks();", "@Override\n\tpublic int drainTo(Collection<? super E> c, int maxElements) {\n\t\treturn 0;\n\t}", "public void add(Conseiller c) {\n\t\t\r\n\t}", "public void add(Task task){ this.tasks.add(task);}", "public void testExecuteInParallel_Collection() throws Exception\n {\n System.out.println( \"executeInParallel\" );\n Collection<Callable<Double>> tasks = createTasks( 10 );\n Collection<Double> result = ParallelUtil.executeInParallel( tasks );\n assertEquals( result.size(), tasks.size() );\n }", "public void performOtherTasks() {\n\t\t\tSystem.out.println(\"performing tasks other than servicing\");\n\t\t\t// do whatever you want to do in the servicing package\n\t\t}", "protected void deliverData(ContentObject co) {\n _stats.increment(StatsEnum.DeliverContent);\n synchronized (_myInterests) {\n for (InterestRegistration ireg : _myInterests.getValues(co)) {\n if (ireg.add(co)) {\n _stats.increment(StatsEnum.DeliverContentMatchingInterests);\n try {\n _threadpool.execute(ireg);\n } catch (RejectedExecutionException ree) {\n Log.severe(Log.FAC_NETMANAGER, formatMessage(\"Dispatch thread overflow!!\"));\n }\n }\n }\n }\n }", "void registerTasks(Object taskClassObject);", "public final void collect(Collection<? super T> output) {\n Node n = getHead();\n while (true) {\n Node next = (Node) n.get();\n if (next != null) {\n Object v = leaveTransform(next.value);\n if (!NotificationLite.isComplete(v) && !NotificationLite.isError(v)) {\n output.add(NotificationLite.getValue(v));\n n = next;\n } else {\n return;\n }\n } else {\n return;\n }\n }\n }", "public AbstractHashSet(Collection c) {\n\t\tmap = new DelegateAbstractHashMap(Math.max((int) (c.size() / .75f) + 1,\n\t\t\t\t16), this);\n\t\taddAll(c);\n\t}", "List<OperationDTO> scheduleCopyOperations();", "@Override // androidx.work.impl.utils.CancelWorkRunnable\n @WorkerThread\n public void c() {\n WorkDatabase workDatabase = this.b.getWorkDatabase();\n workDatabase.beginTransaction();\n try {\n for (String str : workDatabase.workSpecDao().getUnfinishedWorkWithTag(this.c)) {\n a(this.b, str);\n }\n workDatabase.setTransactionSuccessful();\n workDatabase.endTransaction();\n b(this.b);\n } catch (Throwable th) {\n workDatabase.endTransaction();\n throw th;\n }\n }", "public void step(int c, Collection<State> dest) {\n for (int i=0;i<numTransitions;i++) {\n final Transition t = transitionsArray[i];\n if (t.min <= c && c <= t.max) dest.add(t.to);\n }\n }", "void reschedule(Collection<Group> groupInfos);", "private void distributeContests(List<Contest> allSubmittedTo, List<Contest> allNotSubmittedTo) {\n \tallSubmittedTo.clear();\n\t\tallNotSubmittedTo.clear();\n \t\n \t// store ref to all contests\n \tMap<Integer,Contest> allContests = myContestDBManager.getMap();\n\n\t\t// get all of User's entries\n \tList<Entry> testUsersEntries = myUser.getEntries();\n \t\n \t// Put all contests into contestsNotSubmtitedTo\n \tallNotSubmittedTo.addAll(myContestDBManager.getMap().values());\n \t\n \t// add all contests whose key matches that in the User's entries to list, removing\n \t// from not submitted to list.\n \tfor (Entry e : testUsersEntries) {\n \t\tContest submittedTo = allContests.get(e.getContest());\n \t\tif (submittedTo != null) {\n \t\t\tallSubmittedTo.add(submittedTo);\n \t\t\tallNotSubmittedTo.remove(submittedTo);\n \t\t}\n \t}\n\t}", "private TaskSeriesCollection createCollection2() {\n TaskSeriesCollection result = new TaskSeriesCollection();\n TaskSeries s1 = new TaskSeries(\"S1\");\n Task t1 = new Task(\"Task 1\", new Date(10), new Date(20));\n t1.addSubtask(new Task(\"Task 1A\", new Date(10), new Date(15)));\n t1.addSubtask(new Task(\"Task 1B\", new Date(16), new Date(20)));\n t1.setPercentComplete(0.10);\n s1.add(t1);\n Task t2 = new Task(\"Task 2\", new Date(30), new Date(40));\n t2.addSubtask(new Task(\"Task 2A\", new Date(30), new Date(35)));\n t2.addSubtask(new Task(\"Task 2B\", new Date(36), new Date(40)));\n t2.setPercentComplete(0.20);\n s1.add(t2);\n result.add(s1);\n TaskSeries s2 = new TaskSeries(\"S2\");\n Task t3 = new Task(\"Task 3\", new Date(50), new Date(60));\n t3.addSubtask(new Task(\"Task 3A\", new Date(50), new Date(55)));\n t3.addSubtask(new Task(\"Task 3B\", new Date(56), new Date(60)));\n t3.setPercentComplete(0.30);\n s2.add(t3);\n result.add(s2);\n return result;\n }", "public void processTasks (List tasks) {\n for (Iterator iter = tasks.iterator(); iter.hasNext(); ) {\n Task t = (Task) iter.next();\n if (t.getPlanElement () == null) {\n\tAsset a = findAsset(t);\n\tPlanElement alloc = createAllocation(t, a);\n\tpublishAddingOfAllocation(alloc);\n }\n else {\n\tObject uid = ((Allocation)t.getPlanElement()).getAsset().getUID();\n\n\t// this will happen when we become aware of changed tasks\n\tif (isInfoEnabled()) {\n\t info (getName () + \" task \" + t.getUID () + \" was already allocated to \" + uid);\n\t}\n\n\tif (!uid.equals(findAsset(t).getUID ())) {\n\t if (isWarnEnabled()) {\n\t warn (getName () + \" task \" + t.getUID () + \" was already allocated to \" + uid + \n\t\t \" but trying to allocate to different asset \" + findAsset(t).getUID());\n\t }\n\t}\n }\n } \n\n tasks.clear();\n }", "private void safeWaitTasks(Set<Future<?>> activeTasks, CompletionService<?> completionService)\n throws IOException {\n // Wait until backup tasks are completed.\n while (activeTasks.size() > 0) {\n try {\n Future<?> resultFuture = completionService.take();\n activeTasks.remove(resultFuture);\n resultFuture.get();\n } catch (InterruptedException ie) {\n // Cancel pending tasks.\n activeTasks.forEach((future) -> future.cancel(true));\n // Continue interrupt chain.\n Thread.currentThread().interrupt();\n throw new RuntimeException(\"Thread interrupted while waiting for backup threads.\", ie);\n } catch (ExecutionException ee) {\n // Cancel pending tasks.\n activeTasks.forEach((future) -> future.cancel(true));\n // Throw.\n Throwable cause = ee.getCause();\n if (cause instanceof IOException) {\n throw (IOException) cause;\n } else {\n throw new IOException(cause);\n }\n }\n }\n }", "public void deleteAll() {\n tasks = new ArrayList<>();\n }", "void submitAndWaitForAll(Iterable<Runnable> tasks);", "public void addAllFailures(Collection<Failure<T>> c) {\n failures.addAll(c);\n }", "public void process(CrawlTask crawlTask) {\n\n if (level == 0) {\n try {\n String boardLink = crawlTask.getUrl();\n MongoDatabase db = crawlTask.getDb();\n MongoCollection threadsCollection = db.getCollection(\"threads\");\n ForumConfig forumConfig = crawlTask.getForumConfig();\n\n List<ForumThread> threadList = new ArrayList<>();\n processBoard(forumConfig, boardLink, threadList, threadsCollection);\n System.out.println(\"***********************************************************TOTAL THREADS TO CRAWL IS: \" + threadList.size());\n for (ForumThread thread :\n threadList) {\n try {\n String link = thread.getThreadUrl();\n CrawlTask newTask = new CrawlTask(link, db, forumConfig);\n queue.push(newTask, level + 1);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n // process of this object has failed, but we just ignore it here\n }\n } else if (level == 1) {\n try {\n String threadLink = crawlTask.getUrl();\n MongoDatabase db = crawlTask.getDb();\n ForumConfig forumConfig = crawlTask.getForumConfig();\n\n\t\t\t\t/*List<ForumPost> postList = new ArrayList<>();*/\n processThread(forumConfig, threadLink, db);\n\n } catch (Exception e) {\n e.printStackTrace();\n // process of this object has failed, but we just ignore it here\n }\n }\n\n\n }", "private void upsertTasks(UpsertTasksEvent upsertTasksEvent, UpsertTaskInputTopic inputTopic) {\n LocalDateTime startTime = LocalDateTime.now();\n\n try {\n upsertTasksInternal(upsertTasksEvent, inputTopic);\n } catch ( ResourceNotFoundException e) {\n LOGGER.error(\"Upserting tasks for lane {} failed with exception. \" +\n \"Won't be retried as failure is unrecoverable for event: {}\", inputTopic, upsertTasksEvent, e);\n publishIncrementMetric(DD_ASPECT_UPSERT_TASKS_BY_KAFKA_EVENTS + inputTopic + \".EventCountUnrecoverable\");\n }\n\n publishHistogramMetric(DD_ASPECT_UPSERT_TASKS_BY_KAFKA_EVENTS + inputTopic + \".EventUpsertDuration\",\n Duration.between(startTime, LocalDateTime.now()).toMillis());\n }", "public void startCollectAppsTraffic() {\n\t\tsubmitCollectAppsTrafficTask();\n\t}", "@SuppressWarnings(\"unchecked\")\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tCollection<Customer> customers;\n\t\t\t\tsynchronized (model.customers) {\n\t\t\t\t\t// Convert collection of values to set so serialisable\n\t\t\t\t\tfinal Set<Customer> modelCustomers = new HashSet<>(model.customers.values());\n\t\t\t\t\t// Cast safe due to known functionality of deep clone\n\t\t\t\t\tcustomers = (Collection<Customer>) SerializationUtils.deepClone(modelCustomers);\n\t\t\t\t}\n\t\t\t\t// Refresh using local copy\n\t\t\t\trefreshTable(new ArrayList<>(customers));\n\t\t\t}", "@Override\n public void execute() {\n pickUp.collect();\n \n }", "@Override\n public void runCracker() {\n }", "public static void AddToCollection(Collection<? extends Person> c)\r\n\t{\r\n\t\t//c.add(new Person(\"abc\"));\r\n\t\t//c.add(new Worker(\"a\", \"b\"));\r\n\t\t//c.add(new Object());\r\n\t\t//Collection<? extends Object> c1 = new ArrayList<Person>();\r\n\t\t//c1.add(new Object());\r\n\t}", "public void start() {\r\n\t\tLOGGER.info(\"Create result collection queue customers, customer count : [ \" + customerCount + \" ].\");\r\n\t\tthreadPool = Executors.newFixedThreadPool(customerCount);\r\n\t\tfor (int i = 0; i < customerCount; i++) {\r\n\t\t\tRunnable resultCollectorRunner = new ResultCollectorThread(ResultQueue.getInstance().getResultQueue(), \r\n\t\t\t\t\tnew ResultCollector(), new TaskReloader());\r\n\t\t\tthreadPool.submit(new Thread(resultCollectorRunner, \"ResultCollector-\" + i));\r\n\t\t}\r\n\t\tthreadPool.shutdown();\r\n\t}", "public static <E, C extends Collection<E>> SynchronizedMutableCollection<E> of(C collection)\n {\n return new SynchronizedMutableCollection<E>(CollectionAdapter.adapt(collection));\n }", "private void exportCollection(\n final EntityManager em, final String collectionName ) throws Exception {\n\n logger.debug(\"\\n\\nExporting {} collection from application {}\\n\",\n collectionName, em.getApplication().getName() );\n setup.getEntityIndex().refresh(em.getApplicationId());\n\n\n ExportService exportService = setup.getExportService();\n UUID exportUUID = exportService.schedule( new HashMap<String, Object>() {{\n put( \"path\", organization.getName() + em.getApplication().getName());\n put( \"organizationId\", organization.getUuid());\n put( \"applicationId\", em.getApplication().getUuid() );\n put( \"collectionName\", collectionName);\n put( \"properties\", new HashMap<String, Object>() {{\n put( \"storage_provider\", \"s3\" );\n put( \"storage_info\", new HashMap<String, Object>() {{\n put( \"s3_access_id\",\n System.getProperty( SDKGlobalConfiguration.ACCESS_KEY_ENV_VAR) );\n put(\"s3_key\",\n System.getProperty(SDKGlobalConfiguration.SECRET_KEY_ENV_VAR));\n put( \"bucket_location\", bucketName );\n }});\n }});\n }});\n\n int maxRetries = 30;\n int retries = 0;\n while ( !exportService.getState( exportUUID ).equals( \"FINISHED\" ) && retries++ < maxRetries ) {\n logger.debug(\"Waiting for export...\");\n Thread.sleep(1000);\n }\n\n if ( retries >= maxRetries ) {\n throw new RuntimeException(\"Max retries reached\");\n }\n }", "public CortexCollection(List<CortexGraph> graphCollection) {\n loadCollection(graphCollection);\n }", "public void runPendingTasks() {\n/* */ try {\n/* 578 */ this.loop.runTasks();\n/* 579 */ } catch (Exception e) {\n/* 580 */ recordException(e);\n/* */ } \n/* */ \n/* */ try {\n/* 584 */ this.loop.runScheduledTasks();\n/* 585 */ } catch (Exception e) {\n/* 586 */ recordException(e);\n/* */ } \n/* */ }", "synchronized void putWork(PartialSolution sp) {\n\t\ttasks.add(sp);\n\t\t/* anuntam unul dintre workerii care asteptau */\n\t\tthis.notify();\n\n\t}", "boolean addAll(Collection<? extends E> c);", "public abstract boolean push(BindingSet bs) throws InterruptedException;", "private void updateCollection(Resource subject, Property property,\r\n\t\t\tCollection<?> c) {\r\n\t\tif (supportsDelete(c))\r\n\t\t\tsubject.removeAll(property);\r\n\t\tAddSaver saver = new AddSaver(subject, property);\r\n\t\tfor (Object o : c)\r\n\t\t\tif (isPrimitive(o))\r\n\t\t\t\tsaver.write(o); // leaf\r\n\t\t\telse\r\n\t\t\t\tsubject.addProperty(property, _write(o, true)); // recursive\r\n\t}", "public void calculate() {\n taskC();\n }", "private void createSourceCollection() throws Exception {\n List<String> nodeNames = this.startServers(shardCount * replicationFactor);\n this.collectionToNodeNames.put(SOURCE_COLLECTION, nodeNames);\n this.createCollection(SOURCE_COLLECTION);\n this.waitForRecoveriesToFinish(SOURCE_COLLECTION, true);\n this.updateMappingsFromZk(SOURCE_COLLECTION);\n }", "private void addCrusherDaciteRecipes(Consumer<IFinishedRecipe> consumer, String basePath) {\n crushing(consumer, BYGBlocks.DACITE, BYGBlocks.DACITE_COBBLESTONE, basePath + \"to_cobblestone\");\n crushing(consumer, BYGBlocks.DACITE_SLAB, BYGBlocks.DACITE_COBBLESTONE_SLAB, basePath + \"slabs_to_cobblestone_slabs\");\n crushing(consumer, BYGBlocks.DACITE_STAIRS, BYGBlocks.DACITE_COBBLESTONE_STAIRS, basePath + \"stairs_to_cobblestone_stairs\");\n crushing(consumer, BYGBlocks.DACITE_WALL, BYGBlocks.DACITE_COBBLESTONE_WALL, basePath + \"walls_to_cobblestone_walls\");\n //Dacite Tile -> Dacite Bricks\n crushing(consumer, BYGBlocks.DACITE_TILE, BYGBlocks.DACITE_BRICKS, basePath + \"tile_to_brick\");\n crushing(consumer, BYGBlocks.DACITE_TILE_SLAB, BYGBlocks.DACITE_BRICK_SLAB, basePath + \"tile_slabs_to_brick_slabs\");\n crushing(consumer, BYGBlocks.DACITE_TILE_STAIRS, BYGBlocks.DACITE_BRICK_STAIRS, basePath + \"tile_stairs_to_brick_stairs\");\n crushing(consumer, BYGBlocks.DACITE_TILE_WALL, BYGBlocks.DACITE_BRICK_WALL, basePath + \"tile_walls_to_brick_walls\");\n //Dacite Bricks -> Dacite\n crushing(consumer, BYGBlocks.DACITE_BRICKS, BYGBlocks.DACITE, basePath + \"from_brick\");\n crushing(consumer, BYGBlocks.DACITE_BRICK_SLAB, BYGBlocks.DACITE_SLAB, basePath + \"brick_slabs_to_slabs\");\n crushing(consumer, BYGBlocks.DACITE_BRICK_STAIRS, BYGBlocks.DACITE_STAIRS, basePath + \"brick_stairs_to_stairs\");\n crushing(consumer, BYGBlocks.DACITE_BRICK_WALL, BYGBlocks.DACITE_WALL, basePath + \"brick_walls_to_walls\");\n //Dacite Pillar -> Dacite\n ItemStackToItemStackRecipeBuilder.crushing(\n ItemStackIngredient.from(BYGBlocks.DACITE_PILLAR),\n new ItemStack(BYGBlocks.DACITE, 2)\n ).addCondition(modLoaded)\n .build(consumer, Mekanism.rl(basePath + \"from_pillar\"));\n }", "void claimTask(String userId, List<TaskSummary> taskList);", "protected void clearTargetCollection() throws Exception {\n this.deleteCollection(TARGET_COLLECTION);\n this.waitForCollectionToDisappear(TARGET_COLLECTION);\n this.createCollection(TARGET_COLLECTION);\n this.waitForRecoveriesToFinish(TARGET_COLLECTION, true);\n this.updateMappingsFromZk(TARGET_COLLECTION);\n }", "private TaskSeriesCollection createCollection1() {\n TaskSeriesCollection result = new TaskSeriesCollection();\n TaskSeries s1 = new TaskSeries(\"S1\");\n s1.add(new Task(\"Task 1\", new Date(1), new Date(2)));\n s1.add(new Task(\"Task 2\", new Date(3), new Date(4)));\n result.add(s1);\n TaskSeries s2 = new TaskSeries(\"S2\");\n s2.add(new Task(\"Task 3\", new Date(5), new Date(6)));\n result.add(s2);\n return result;\n }", "public OCRSet(Collection<? extends E> c) {\r\n this.map =\r\n new HashMap<Integer, E>(Math.max((int) (c.size() / .75f) + 1,\r\n 16));\r\n this.addAll(c);\r\n }", "void addDoneTask(Task task);", "public int drain(MessagePassingQueue.Consumer<E> c)\r\n/* 357: */ {\r\n/* 358:644 */ return drain(c, capacity());\r\n/* 359: */ }", "@Override\r\n\tpublic boolean addAll(Collection<? extends GIS_layer> c) {\n\t\treturn set.addAll(c);\r\n\t}", "public abstract void collectLocks(HashMap threadList);", "@PostConstruct\n public void setUpTasks() {\n final Iterable<Task> findAll = taskService.findAll();\n if (findAll != null) {\n findAll.forEach(task -> {\n\n final RunnableTask runnableTask = new RunnableTask(task.getId(), runTaskService);\n\n if (task.getCronExpression() != null) {\n log.info(\"Adding cron schedule for {} : {}\", task.getId(), task.getCronExpression());\n threadPoolTaskScheduler.schedule(runnableTask, new CronTrigger(task.getCronExpression()));\n }\n else if (task.getDelayPeriod() > 0) {\n log.info(\"Adding periodic schedule for {} : {}\", task.getId(), task.getDelayPeriod());\n threadPoolTaskScheduler.schedule(runnableTask, new PeriodicTrigger(task.getDelayPeriod()));\n }\n else {\n log.error(\"Invalid task {}\", task.getId());\n }\n\n });\n }\n }" ]
[ "0.59449565", "0.56670237", "0.51470053", "0.5082046", "0.4997476", "0.49601382", "0.49599868", "0.49047998", "0.4893829", "0.48687288", "0.48264974", "0.4820997", "0.4820777", "0.48130643", "0.4804836", "0.47464466", "0.46650624", "0.46608603", "0.464584", "0.46438006", "0.46396416", "0.46365038", "0.46141842", "0.4611368", "0.46086803", "0.46078324", "0.4600821", "0.45864424", "0.45517132", "0.45286134", "0.4524381", "0.4521749", "0.4499049", "0.44975695", "0.44889578", "0.44787958", "0.44741878", "0.44734728", "0.44719312", "0.4470669", "0.4466308", "0.44531268", "0.44530696", "0.44518915", "0.44510254", "0.44500023", "0.44460624", "0.44412813", "0.44382584", "0.44375774", "0.44351286", "0.441902", "0.44148877", "0.44103727", "0.4399061", "0.43918034", "0.43875408", "0.43848902", "0.43834886", "0.4373384", "0.43708265", "0.43684205", "0.4367396", "0.43645707", "0.43614015", "0.43581113", "0.43580014", "0.4357568", "0.43545514", "0.43464044", "0.4343672", "0.43335286", "0.43289828", "0.4323927", "0.43238315", "0.43227187", "0.43190435", "0.43137348", "0.4312481", "0.43112516", "0.43080977", "0.43074083", "0.43047136", "0.43024373", "0.43010074", "0.42938662", "0.42875853", "0.42851543", "0.42776352", "0.42766204", "0.427512", "0.42706373", "0.42669296", "0.42629153", "0.42531016", "0.42529225", "0.42519766", "0.4251066", "0.42486453", "0.42457157" ]
0.70494515
0
Gets and clears steal count for accumulation by pool. Called only when known to be idle (in pool.sync and termination).
final int getAndClearStealCount() { int sc = stealCount; stealCount = 0; return sc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getNumIdle() {\n return _pool.size();\n }", "public long count() { return count.get(); }", "public void resetActiveStats() {\n if (!valid)\n return;\n\n\n Handler handler = new Handler(getLooper());\n handler.post(() -> {\n recentStats.activeRequests = toLoad.size() + loading.size();\n recentStats.maxActiveRequests = recentStats.activeRequests;\n });\n }", "public int countActive() {\n int result = 0;\n \n synchronized (m_reservableListMutex) {\n final Iterator iterator = m_reservables.iterator();\n \n while (iterator.hasNext()) {\n final Reservable reservable = (Reservable)iterator.next();\n \n if (!reservable.isClosed() && !reservable.isSentinel()) {\n ++result;\n }\n }\n }\n \n return result;\n }", "final int getEstimatedSurplusTaskCount() {\n // The halving approximates weighting idle vs non-idle threads\n return (sp - base) - (pool.getIdleThreadCount() >>> 1);\n }", "public synchronized int getCount () {\n int c = count;\n count = 0;\n return c;\n }", "Long getRunningCount();", "long getSpinCount();", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tcounter.accumulate(1);\n\t\t\t\t}", "public Long used() {\n return this.used;\n }", "public Long getUsed() {\r\n return used;\r\n }", "public void resetCount() {\n count = 0;\n }", "public int getCount() {\n lock.lock();\n try {\n System.out.println(Thread.currentThread().getName() + \" gets Count: \" + count.incrementAndGet());\n return count.intValue();\n } finally {\n lock.unlock();\n }\n }", "public int getNumIdle();", "@Override\n\tpublic void count(float time) {\n\t\tfinal ICounter counter = currnet();\n\t\tcounter.count(time);\n\t\tif(counter.isDead()){\n\t\t\tthis.mCounters.removeFirst();\n\t\t\tcounter.reset();\n\t\t\tthis.mCounters.addLast(counter);\n\t\t\tmRemainedCounters--;\n\t\t}\n\t}", "public int currentCount () {\n return count;\n }", "public long getCount() {\n return counter.get();\n }", "public void resetCount() {\n\t\tcount = 0;\n\t}", "public int getCollected() {\n return macguffinsCollected;\n }", "public void drain() {\n\t\tsynchronized (list) {\n\t\t\tfor (int i = 0; i < list.size(); ++i) {\n\t\t\t\tPooled<T> pt = list.remove();\n\t\t\t\tcreator.destroy(pt.content);\n\t\t\t\tpt.logTarget.log(\"Pool drained \", creator.toString());\n\t\t\t}\n\t\t\tcount = spares = 0;\n\t\t}\n\n\t}", "public StealingPool getPool() {\n return pool;\n }", "public long count() {\n\t\treturn 0;\n\t}", "public long count() {\n\t\treturn 0;\n\t}", "public java.lang.Integer getUsedCounter() {\n\t\treturn this.usedCounter;\n\t}", "public static void resetCount() {\n count = 1;\n }", "public final int getCapacity()\n {\n return m_pool.length;\n }", "int getUncommittedEventCount();", "public void honourFreeBufferCount() {\n // Check if there are enough free launchers\n int freeCount = getFreeLaunchers().size();\n\n while (freeCount < freeBufferCount) {\n if (getTotalLaunchers().size() > maxCount) {\n log.warn(\"Specified Maximum Concurrency has been exceeded, but scaling up will be permitted. If this \" +\n \"message appears often increase maximum concurrency.\");\n }\n\n log.info(\"Scaling UP: REASON -> [Free Count] \" + freeCount + \" < [Free Gap] \" + freeBufferCount);\n scaleUp(\"honourFreeBufferCount\");\n freeCount = getFreeLaunchers().size();\n }\n }", "public void counterAddup(){\n\t\tfor (int i=0; i<window.size(); i++){\n\t\t\tif ( window.get(i).acked == false ){\n\t\t\t\twindow.get(i).counter = window.get(i).counter+1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn ;\n\t}", "private void reactMain_region_digitalwatch_Time_counting_Counting() {\n\t\tif (timeEvents[0]) {\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.$NullState$;\n\n\t\t\ttimer.unsetTimer(this, 0);\n\n\t\t\ttimer.setTimer(this, 0, 1 * 1000, false);\n\n\t\t\tsCILogicUnit.operationCallback.increaseTimeByOne();\n\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.main_region_digitalwatch_Time_counting_Counting;\n\t\t}\n\t}", "public int getUseCount() {\n\t\tint useCount=0;\n\t\tsynchronized(connStatus) {\n\t\t\tfor(int i=0; i < currConnections; i++) {\n\t\t\t\tif(connStatus[i] > 0) { // In use\n\t\t\t\t\tuseCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn useCount;\n\t}", "public int getNewNumber() {\r\n int num;\r\n num=unusedLockers.get(0);\r\n unusedLockers.remove(0);\r\n return num;\r\n }", "public void objectUsed(PoolEvent evt) {\n if (!trackLastUsed) return;\n setLastUsed(evt.getSource());\n }", "public static int getNumberCreated() {\n return numberOfPools;\n }", "protected long getLiveSetSize() {\n\t\t// Sum of bytes removed from the containers.\n\t\tlong removed = 0;\n\n\t\tfor (int i = 0; i < sets.length; i++)\n\t\t\tremoved += sets[i].getContainer().getBytesRemoved();\n\n\t\t/*\n\t\t * The total number of butes still alive is the throughput minus the number of\n\t\t * bytes either removed from the container or never added in the first place.\n\t\t */\n\t\tlong size = getThroughput() - removed - producerThreadPool.getBytesNeverAdded();\n\n\t\treturn (size > 0) ? size : 0;\n\t}", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public synchronized void receive() {\n inCountStat.received();\n inCount++;\n }", "public int getLockCount() {\n return this.l.getHoldCount();\n }", "@Override\n\tpublic int getUses() {\n\t\treturn heldObj.getUses();\n\t}", "public void resetRegisterCount() {\n currentNumberOfRegisterPushed = 0;\n maxNumberOfRegisterPushed = 0;\n }", "synchronized int getCount() throws InterruptedException {\n while(!control){\n wait();\n }\n System.out.println(\"Get : \" + count);\n control = false;\n notify();\n return count;\n }", "public int getRemaining(){\n\t\treturn count+1;\n\t}", "public int UnassignedCount() {\n \t\treturn jobqueue.size();\n \t}", "public final int getRefCount() { return refCount.get(); }", "public int getRemainingUses() {\n return remainingUses;\n }", "@Override\r\n\tpublic long count() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic Long getTotalCount() {\n\t\treturn null;\r\n\t}", "public long getCount() {\n return count.get();\n }", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "public int getCurrentSize() {\n return count;\n }", "private int collect(XQueue in, int oid) {\n long tm;\n int id = -1, k, n;\n n = 0;\n while ((id = pool.collect(-1L)) >= 0) {\n tm = System.currentTimeMillis();\n k = collect(tm, id, in, oid);\n if (k >= 0)\n n ++;\n else\n new Event(Event.ERR, name+\" failed to collect from \"+id).send();\n }\n if (n > 0 && (debug & DEBUG_COLL) > 0)\n new Event(Event.DEBUG, name + \" collected \" + n + \" tasks\").send();\n return n;\n }", "@Override\n public int getJobCount () {\n return pool.getJobCount();\n }", "public synchronized void filtered() {\n filteredCountStat.received();\n filteredCount++;\n }", "void reset() {\n count = 0;\n\n }", "public long getAmount() {\n\t\tsynchronized (this.onlineObjects) {\n\t\t\treturn this.onlineObjects.size();\n\t\t}\n\t}", "private void decrConnectionCount() {\n connectionCount.dec();\n }", "public long getLastUse() {\n\t\treturn _lastused;\n\t}", "public int loadBalance() {\r\n\t\tserverCount++;\r\n\t\tserverCount = (serverCount) % (servers.size());\r\n\t\treturn serverCount;\r\n\t}", "public long getTotalCount() {\n return _totalCount;\n }", "public void clear() {\n pool.clear();\n }", "public void clearCount() {\n this.bitField0_ &= -3;\n this.count_ = 0;\n }", "public long count() {\n/* 154 */ return this.count;\n/* */ }", "long getEvictions();", "public long getIdle() { return idle; }", "public int getTotalWorkerCount() {\n return this.workerCount;\n }", "public Flowable<Integer> counts() {\n return createFlowable(b.updateBuilder, db) //\n .flatMap(Tx.flattenToValuesOnly());\n }", "int getReaultCount();", "public static void performanceCountReset() { }", "static final long getTotalStartedCount()\n {\n synchronized (threadStartLock)\n {\n return totalStartedCnt;\n }\n }", "public int getPoolSize() {\n return poolSize;\n }", "public int lockedNodeCount() {\n\treturn lockedNodes;\n }", "public int getActiveCount() {\n return activeCount;\n }", "private synchronized static void upCount() {\r\n\t\t++count;\r\n\t}", "private synchronized void incrementCount()\n\t{\n\t\tcount++;\n\t}", "public int getTotalWait() {\n return totalWait;\n }", "public static int totalSupply() {\n return totalSupplyGet();\n }", "public void clearState() {\n synchronized (mutex) {\n statisticsAccumulator.clearState();\n }\n }", "long getOwnedEntryCount();", "public static int performanceCountGet() { return 0; }", "int getCachedCount();", "public int getUnderflowCounter() \n\t{\n\treturn fUnderflowCounter;\n\t}", "public int getRingCount() {\r\n\t\treturn mRingCount;\r\n\t}", "public void crunch(){\n cpuBurstTime--;\n rem--;\n }", "public int getCurrBlockCount() {\r\n\t\tint count = 0;\r\n\t\tTapeBlock curr = this.headLimit.getNext();\r\n\t\twhile(curr != this.tailLimit) {\r\n\t\t\tcount++;\r\n\t\t\tcurr = curr.getNext();\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public synchronized int getCount(){\n return count;\n }", "public void reset() {\n\t\tthis.count = 0;\n\t}", "public int getTransSize(){\n return TxPool_new.size(); \n }", "public int getTotalCount() {\n return totalCount;\n }", "public HitCounterReadWriteLock() {\r\n hits = new int[300];\r\n times = new int[300];\r\n }", "public int getTotal_rain_global(){\n\t\treturn total_rain_global;\n\t}", "public void unReset () {\n count = lastSave;\n }", "public void resetPingCount() {\n\t\tpingCount = 0;\n\t}", "public static synchronized long getConnectionAttemptsGlobalCounter() {\n return connectionAttemptsGlobalCounter;\n }" ]
[ "0.6456608", "0.5903016", "0.56408554", "0.55841213", "0.5581176", "0.5574038", "0.5563867", "0.554128", "0.55086905", "0.54806125", "0.5480178", "0.5463153", "0.543706", "0.54353243", "0.5433913", "0.5415896", "0.5413784", "0.54058164", "0.53643054", "0.534869", "0.53309405", "0.5314843", "0.5314843", "0.5310995", "0.5290442", "0.5281814", "0.5265275", "0.52513874", "0.5247144", "0.5245302", "0.52362895", "0.52283585", "0.5215413", "0.5211663", "0.52097756", "0.5199164", "0.5197595", "0.5184699", "0.51808065", "0.5178291", "0.51595664", "0.51537293", "0.5152316", "0.5151748", "0.51389366", "0.51296735", "0.5121468", "0.51210827", "0.50992393", "0.50992393", "0.50992393", "0.50992393", "0.50992393", "0.50992393", "0.50992393", "0.50992393", "0.5093661", "0.5088255", "0.50805074", "0.5080367", "0.5078665", "0.5072707", "0.50712097", "0.5068042", "0.5061453", "0.5049818", "0.50477725", "0.5044001", "0.5043346", "0.5035611", "0.5033534", "0.5033045", "0.5032439", "0.50310254", "0.5026569", "0.502338", "0.50233793", "0.50232506", "0.5021584", "0.5013806", "0.4998025", "0.49976513", "0.49975815", "0.49932593", "0.4990838", "0.4986641", "0.4984378", "0.49777666", "0.49758014", "0.4973642", "0.49640796", "0.4960903", "0.49526724", "0.49522647", "0.4950214", "0.49460328", "0.49420726", "0.49362195", "0.49349642", "0.493446" ]
0.73062634
0
Support methods for Work Returns an estimate of the number of tasks in the queue.
final int getQueueSize() { // suppress momentarily negative values return Math.max(0, sp - base); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getExcutorTasksInWorkQueueCount();", "public Integer getWorkSize(){\r\n\t\treturn work.size();\t\t\r\n\t}", "public int getSize() {\n return tasks.size();\n }", "long getExecutorTaskCount();", "int numberOfWorkingWorkers();", "public int getSize() {\n return this.tasks.size();\n }", "int getJobsCount();", "int getJobsCount();", "int getJobsCount();", "int getQueueSize();", "public int getTasksSize() {\n return tasks.size();\n }", "public int size()\n {\n return tasks.size();\n }", "int numberOfWorkers();", "public int getNumTasks() {\n return tasks.size();\n }", "long getConsumedWorkUnits();", "public int numberOfPendingTasks() {\n return allBatchesStream().mapToInt(Batch::getPendingCount).sum();\n }", "public int getTotalWorkerCount() {\n return this.workerCount;\n }", "public int getNumberOfTasks() {\n\t\treturn tasks.size();\n\t}", "public int getRunnableCount() {\n return queue.size();\n }", "long countJobs();", "protected abstract int getTaskLength();", "public long getTaskCount() {\r\n\t\treturn taskCount;\r\n\t}", "public int countList() {\n return tasks.size();\n }", "public long getQueueSize(){\n return queue.size();\n }", "public int sizeOfList(){\n return tasks.size();\n }", "final int getEstimatedSurplusTaskCount() {\n // The halving approximates weighting idle vs non-idle threads\n return (sp - base) - (pool.getIdleThreadCount() >>> 1);\n }", "public int queueSize() {\n\t\treturn queue.size();\t\n\t}", "public int queueSize() {\n return executor.getQueue().size();\n }", "public int asyncTaskCount();", "public int getCachedTasksSize() {\n return cachedTasks.size();\n }", "long getExecutorCompletedTaskCount();", "public java.lang.Integer getTaskCount() {\n return taskCount;\n }", "int getTaskIdCount();", "public abstract int getQueueLength();", "public int size() \r\n {\r\n if(measurementQueue==null) return 0;\r\n \r\n return measurementQueue.size();\r\n }", "@Override\n public int queueLength() {\n return this.job_queue.size();\n }", "public int size() {\n return _queue.size();\n }", "public int size() {\n processQueue();\n return weakCache.size();\n }", "Long getRunningCount();", "@Override\n public int getJobCount () {\n return pool.getJobCount();\n }", "public int size() {\n return this.queue.size();\n }", "public int getQueueSize() {\r\n\t\treturn this.queue.size();\r\n\t}", "int getTaskDetailsCount();", "public int getQueueSize() {\n return queue.getQueueSize();\n }", "@Assessor\n public long estimateSize() {\n \treturn getSizeByMembers() \n .values().stream()\n .mapToLong(this::getFutureValue)\n .sum();\n }", "int sizeOfTaskAbstractArray();", "int getProgressCount();", "int getProgressCount();", "int getProgressCount();", "public int size(){\r\n\t\treturn queue.size();\r\n\t}", "public int getCount() {\n return queue.size();\n }", "public int inputQueueSize() {\n\t\tsynchronized (inputQueue) {\n\t\t\treturn inputQueue.size();\n\t\t}\n\t}", "public static int size() {\n System.out.println();\n System.out.println(\"The size of the queue is: \" + queue.size());\t \n return queue.size();\n }", "public int size() {\n return queue.size();\n }", "Integer backlogCapacity();", "public long getPendingTasks()\n {\n return getTaskCount() - getCompletedTaskCount();\n }", "public int getWorkRequired() {\n return time;\n }", "public int UnassignedCount() {\n \t\treturn jobqueue.size();\n \t}", "public long getRemainingEstimate() {\n return addedFrontWork.size() + addedBackWork.size();\n }", "public int numVehiclesInQueue() {\r\n\t\treturn vehiclesInQueue.size();\r\n\t}", "public int getCount() {\n\t return taskList.size();\n\t }", "int getNumberOfTasksDeterminingBuildDuration();", "public int getCount() {\n return this.tasks.size();\n }", "int getUserQuestJobsCount();", "public int size() {\n\t\treturn queue.size();\n\t}", "public String numTasks() {\n return \"Now you have \" + USER_TASKS.size() + \" tasks in the list.\";\n }", "int getNumEvents() {\n int cnt = eventCount;\n for (Entry entry : queue) {\n cnt += entry.eventCount;\n }\n return cnt;\n }", "private int getTaskEstimation(Class[] pClassTypes, List pNodeList, List pEdgeList) {\n\t\tint taskCount = 0;\n\n\t\tfor (int idx = 0; idx < pClassTypes.length; idx++) {\n\t\t\tif (pClassTypes[idx].equals(Node.class)) {\n\t\t\t\ttaskCount += pNodeList.size();\n\t\t\t} else if (pClassTypes[idx].equals(Edge.class)) {\n\t\t\t\ttaskCount += pEdgeList.size();\n\t\t\t}\n\t\t}\n\n\t\treturn taskCount;\n\t}", "public Long getProgressTotalToDo();", "public int getTotalNumberOfSubtasks() {\n\t\treturn totalNumberOfSubtasks;\n\t}", "int getNumBufferedBytes() {\n ChannelBuffer buf;\n int IOQueued;\n for (IOQueued = 0, buf = inQueueHead;\n buf != null; buf = buf.next) {\n IOQueued += buf.nextAdded - buf.nextRemoved;\n }\n return IOQueued;\n }", "@WorkerThread\n long count();", "public String percentCompleteCountQATasks() {\n\t\tint fixed = closedQATasks().count();\n\t\tint total = qaTasks().count();\n\t\t\n return percentCompleteStringFromDouble(((double)fixed/(double)total) * 100);\n\t}", "public int how_many_work_item () throws BaseException {\n throw new BaseException(\"Not implemented\");\n }", "int getNumberOfTasksOnCriticalPath();", "public static int totalWait(Queue Storage, int m){\n\t\tint wait = 0;\n\t\tfor(int i = 0; i<m; i++){\n\t\t\tJob temp = (Job)Storage.dequeue();\n\t\t\twait += temp.getWaitTime();\n\t\t\tStorage.enqueue(temp);\n\t\t}\n\t\treturn wait;\n\t}", "public int size()\n\t{\n\t\treturn requestQueue != null ? requestQueue.size() : 0;\n\t}", "long getRequestsCount();", "@Override\n protected Long compute() {\n if (dataList.size() <= BATCHSIZE)\n return sum();\n else {\n final List<AggregateWorker> tasks = new ArrayList<>();\n int index = dataList.size();\n while (index > 0) {\n int startIndex = (index - BATCHSIZE >= 0) ? (index - BATCHSIZE) : 0;\n // System.out.println(\"Created task for \" + startIndex + \" to \" + index);\n Collection<Long> subList = dataList.subList(startIndex, index);\n final AggregateWorker task = new AggregateWorker(subList);\n task.fork();\n tasks.add(task);\n index = index - BATCHSIZE;\n }\n long result = 0;\n for (final AggregateWorker task : tasks) {\n result += task.join();\n }\n return result;\n }\n }", "public synchronized int getSize() {\r\n\t\treturn queueManagers.size();\r\n\t}", "public int getThreadCount() throws ResourceConfigurationException {\n return cpeFactory.getProcessingUnitThreadCount();\n }", "private int jobLength(){\n LocalDate completedLocalDate = LocalDate.of(this.dateCompleted.getYear(), \n this.dateCompleted.getMonth(), this.dateCompleted.getDay());\n \n LocalDate startedLocalDate = LocalDate.of(this.dateStarted.getYear(), \n this.dateStarted.getMonth(), this.dateStarted.getDay());\n \n return startedLocalDate.until(completedLocalDate).getDays();\n }", "public int getTaskIdCount() {\n return taskId_.size();\n }", "public int getOutgoingQueueSize();", "public int getNumberOfThreads(){\n return numberOfThreads;\n }", "public int getNumberOfThreads() { return numberOfThreads; }", "public long totalTime() {\n\t\tlong ret = 0;\n\t\tfor (Task l : plan) {\n\t\t\tret += l.getTaskLength();\n\t\t}\n\n\t\treturn ret;\n\t}", "protected long getLiveSetSize() {\n\t\t// Sum of bytes removed from the containers.\n\t\tlong removed = 0;\n\n\t\tfor (int i = 0; i < sets.length; i++)\n\t\t\tremoved += sets[i].getContainer().getBytesRemoved();\n\n\t\t/*\n\t\t * The total number of butes still alive is the throughput minus the number of\n\t\t * bytes either removed from the container or never added in the first place.\n\t\t */\n\t\tlong size = getThroughput() - removed - producerThreadPool.getBytesNeverAdded();\n\n\t\treturn (size > 0) ? size : 0;\n\t}", "public final int size() {\r\n\t\tint SIZE = workoutList.size();\r\n\r\n\t\treturn SIZE;\r\n\t}", "int getRequestsCount();", "int getRequestsCount();", "private int getPoolSize() {\n\t\tint numberOfTasks = SpectralDescriptionType.values().length;\n\t\tint procs = Runtime.getRuntime().availableProcessors();\n\t\treturn numberOfTasks < procs ? numberOfTasks : procs > 1 ? procs - 1\n\t\t\t\t: 1;\n\t}", "public int getJobsCount() {\n return jobs_.size();\n }", "public int getWorkGroupSize() {\r\n\t\treturn workGroupTable.size();\r\n\t}", "public Integer getThreadPoolBlockingQueueSize() {\n String tc = getConfig().getProperty(THREAD_POOL_BLOCKING_QUEUE_SIZE).getValue();\n Integer ret = new Integer(DEFAULT_THREAD_POOL_BLOCKING_QUEUE_SIZE);\n if (tc != null){\n try {\n ret = Integer.valueOf(tc);\n } catch (Exception ex){\n ret = new Integer(DEFAULT_THREAD_POOL_BLOCKING_QUEUE_SIZE);\n }\n }\n return ret;\n }", "int getExecutorActiveCount();", "public int getWorkers() {\r\n return workers;\r\n }", "protected double getPlanCost(Queue<PLANNER_ACTION> actions){\n return actions.size();\n }", "public int CompletedCount() {\n \t\treturn jobcomplete.size();\n \t}", "int getNumberOfTileDownloadThreads();" ]
[ "0.8173041", "0.7650867", "0.7381073", "0.73558265", "0.7291106", "0.72359073", "0.72152", "0.72152", "0.72152", "0.7207672", "0.7175055", "0.7074347", "0.7052481", "0.7048939", "0.7020095", "0.6998547", "0.6986594", "0.6964596", "0.6926932", "0.69164556", "0.69106", "0.6819592", "0.6813622", "0.6810754", "0.6805626", "0.6782645", "0.67625135", "0.6758325", "0.6754892", "0.6696176", "0.66874665", "0.66836005", "0.66455793", "0.66428715", "0.6630748", "0.66187006", "0.661484", "0.6595733", "0.6594232", "0.6594187", "0.6586409", "0.65734637", "0.6568975", "0.65657663", "0.65420765", "0.6542072", "0.65418136", "0.65418136", "0.65418136", "0.6517382", "0.65076613", "0.64884686", "0.6483871", "0.648153", "0.646273", "0.64317036", "0.64221376", "0.64179343", "0.6414682", "0.64091575", "0.6401241", "0.6398445", "0.6391901", "0.6382787", "0.6378431", "0.6370156", "0.63535005", "0.6336483", "0.6285163", "0.62768275", "0.6270797", "0.6243701", "0.62436175", "0.623685", "0.6209231", "0.6208558", "0.62072706", "0.62054014", "0.62026197", "0.61939985", "0.6193941", "0.61841106", "0.6179287", "0.6179212", "0.6177777", "0.6170197", "0.6169541", "0.6164967", "0.6160074", "0.61588883", "0.61588883", "0.6143038", "0.6139848", "0.6139357", "0.6124355", "0.6124029", "0.61207324", "0.61130095", "0.6110018", "0.61049545" ]
0.6762207
27
Returns an estimate of the number of tasks, offset by a function of number of idle threads.
final int getEstimatedSurplusTaskCount() { // The halving approximates weighting idle vs non-idle threads return (sp - base) - (pool.getIdleThreadCount() >>> 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getExecutorTaskCount();", "long getExcutorTasksInWorkQueueCount();", "public int getIdleTime() {\n int[] processorFinishTimes = new int[AlgorithmConfig.getNumOfProcessors()];\n int[] processorWeights = new int[AlgorithmConfig.getNumOfProcessors()];\n int processor;\n // Find the end time and weight of each processor\n for (ScheduledTask task : this) {\n processor = task.getProcessorNum() - 1;\n if (task.getFinishTime() > processorFinishTimes[processor]) {\n processorFinishTimes[processor] = task.getFinishTime();\n }\n processorWeights[processor] += task.getNode().getWeight();\n }\n // Calculate the idle time\n int idleTime = 0;\n for (int i = 0; i < AlgorithmConfig.getNumOfProcessors(); i++) {\n idleTime += processorFinishTimes[i] - processorWeights[i];\n }\n\n return idleTime;\n }", "public int getNumTasks() {\n return tasks.size();\n }", "public int getNumIdle();", "public int numberOfPendingTasks() {\n return allBatchesStream().mapToInt(Batch::getPendingCount).sum();\n }", "public int getNumberOfTasks() {\n\t\treturn tasks.size();\n\t}", "public int getTasksSize() {\n return tasks.size();\n }", "Long getRunningCount();", "int getNumberOfTasksOnCriticalPath();", "int getNumberOfTileDownloadThreads();", "public int getThreadUsed();", "@Override\n public int getNumIdle() {\n return _pool.size();\n }", "public long getTaskCount() {\r\n\t\treturn taskCount;\r\n\t}", "public int getThreadCount() throws ResourceConfigurationException {\n return cpeFactory.getProcessingUnitThreadCount();\n }", "int getNumberOfTasksDeterminingBuildDuration();", "public int getCachedTasksSize() {\n return cachedTasks.size();\n }", "int getExecutorActiveCount();", "public String numTasks() {\n return \"Now you have \" + USER_TASKS.size() + \" tasks in the list.\";\n }", "int numberOfWorkingWorkers();", "public java.lang.Integer getTaskCount() {\n return taskCount;\n }", "int activeTasks();", "int getTaskIdCount();", "public int leastInterval(char[] tasks, int n) {\n \t if(tasks == null || tasks.length == 0) return 0;\n Map<Character, Integer> taskByCountMap = new HashMap<Character, Integer>();\n for(char task : tasks){\n taskByCountMap.merge(task, 1, (a, b) -> a + b );\n }\n \n Comparator<Character> cmp = (a, b) -> ( taskByCountMap.get(b) - taskByCountMap.get(a) );\n PriorityQueue<Character> maxHeap = new PriorityQueue<Character>(cmp);\n maxHeap.addAll(taskByCountMap.keySet());\n int result = 0;\n while(!maxHeap.isEmpty()){\n \t System.out.println(maxHeap.size());\n \t if(maxHeap.size() == 1 && taskByCountMap.get(maxHeap.peek()) == 1) {\n \t\t System.out.println(\"dd\");\n \t\t return result + 1;\n \t }\n \t \n // List<Character> currentTaskList = new ArrayList<Character>();\n for(int i = 0; i <= n; i++){\n \t int cnt = 0;\n \t \n if(!maxHeap.isEmpty()) {\n\t char c = maxHeap.poll();\n\t taskByCountMap.put(c, taskByCountMap.get(c) - 1);\n\t currentTaskList.add(c);\n }\n result++; \n System.out.println(\"dd dd \" + result);\n }\n \n for(char c : currentTaskList){\n if(taskByCountMap.getOrDefault(c, 0) == 0) continue; \n maxHeap.offer(c);\n }\n \n }\n return result;\n \n }", "private int getTaskEstimation(Class[] pClassTypes, List pNodeList, List pEdgeList) {\n\t\tint taskCount = 0;\n\n\t\tfor (int idx = 0; idx < pClassTypes.length; idx++) {\n\t\t\tif (pClassTypes[idx].equals(Node.class)) {\n\t\t\t\ttaskCount += pNodeList.size();\n\t\t\t} else if (pClassTypes[idx].equals(Edge.class)) {\n\t\t\t\ttaskCount += pEdgeList.size();\n\t\t\t}\n\t\t}\n\n\t\treturn taskCount;\n\t}", "public int getSize() {\n return tasks.size();\n }", "static final long getTotalStartedCount()\n {\n synchronized (threadStartLock)\n {\n return totalStartedCnt;\n }\n }", "int numberOfWorkers();", "int getTaskDetailsCount();", "public int getNumOfThreads() {\n return numOfThreads;\n }", "protected abstract int getTaskLength();", "public static int getPeakThreadCount() {\r\n\t\treturn THREAD_MX_BEAN.getPeakThreadCount();\r\n\t}", "public int countList() {\n return tasks.size();\n }", "float getTasksLeft();", "public long getPendingTasks()\n {\n return getTaskCount() - getCompletedTaskCount();\n }", "private int getPoolSize() {\n\t\tint numberOfTasks = SpectralDescriptionType.values().length;\n\t\tint procs = Runtime.getRuntime().availableProcessors();\n\t\treturn numberOfTasks < procs ? numberOfTasks : procs > 1 ? procs - 1\n\t\t\t\t: 1;\n\t}", "long getExecutorCompletedTaskCount();", "private void adjustThreadCount() {\n \t\tif (adjusting > 0) {\n \t\t\tadjusting--;\n \t\t\treturn;\n \t\t}\n \t\tint active = activeThreads.size();\n \t\tint idle = idleThreads.size();\n \t\tint count = idle + active;\n \n \t\tif (Http.DEBUG) {\n \t\t\thttp.logDebug(\"Current thread count: \" + idle + \" idle, \" + active + \" active\"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n \t\t}\n \n \t\tif (idle < 2) {\n \t\t\tcount += 5;\n \t\t} else {\n \t\t\tif (idle > 10) {\n \t\t\t\tcount -= 5;\n \t\t\t}\n \t\t}\n \n \t\tif (count > upper) {\n \t\t\tcount = upper;\n \t\t}\n \n \t\tif (count < lower) {\n \t\t\tcount = lower;\n \t\t}\n \n \t\tint delta = count - (idle + active);\n \t\tif (Http.DEBUG) {\n \t\t\thttp.logDebug(\"New thread count: \" + count + \", delta: \" + delta); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t}\n \n \t\tif (delta < 0) /* remove threads */\n \t\t{\n \t\t\tdelta = -delta; /* invert sign */\n \t\t\tif (delta < idle) {\n \t\t\t\tfor (int i = idle - 1; delta > 0; i--, delta--) {\n \t\t\t\t\tHttpThread thread = (HttpThread) idleThreads.elementAt(i);\n \t\t\t\t\tidleThreads.removeElementAt(i);\n \t\t\t\t\tthread.close();\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\thitCount += delta - idle;\n \t\t\t\tfor (int i = 0; i < idle; i++) {\n \t\t\t\t\tHttpThread thread = (HttpThread) idleThreads.elementAt(i);\n \t\t\t\t\tthread.close();\n \t\t\t\t}\n \t\t\t\tidleThreads.removeAllElements();\n \t\t\t}\n \t\t} else {\n \t\t\tif (delta > 0) /* add threads */\n \t\t\t{\n \t\t\t\tadjusting = delta; /* new threads will call this method */\n \t\t\t\tif (delta > hitCount) {\n \t\t\t\t\tdelta -= hitCount;\n \t\t\t\t\thitCount = 0;\n \t\t\t\t\tidleThreads.ensureCapacity(count);\n \t\t\t\t\tfor (int i = 0; i < delta; i++) {\n \t\t\t\t\t\tnumber++;\n\t\t\t\t\t\tfinal String threadName = \"HttpThread_\" + number; //$NON-NLS-1$\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tAccessController.doPrivileged(new PrivilegedAction() {\n \t\t\t\t\t\t\t\tpublic Object run() {\n \t\t\t\t\t\t\t\t\tHttpThread thread = new HttpThread(http, HttpThreadPool.this, threadName);\n \t\t\t\t\t\t\t\t\tthread.start(); /* thread will add itself to the pool */\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t});\n \t\t\t\t\t\t} catch (RuntimeException e) {\n \t\t\t\t\t\t\t/* No resources to create another thread */\n \t\t\t\t\t\t\thttp.logError(NLS.bind(HttpMsg.HTTP_THREAD_POOL_CREATE_NUMBER_ERROR, new Integer(number)), e);\n \n \t\t\t\t\t\t\tnumber--;\n \n \t\t\t\t\t\t\t/* Readjust the upper bound of the thread pool */\n \t\t\t\t\t\t\tupper -= delta - i;\n \n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t} else {\n \t\t\t\t\thitCount -= delta;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "public int getMaxTasksPerNode() {\n return maxTasksPerNode;\n }", "static final int getPeakThreadCount(boolean reset)\n {\n int count = maxLiveThreadCnt;\n if (reset)\n synchronized (nonDaemonLock)\n {\n maxLiveThreadCnt = liveThreadCnt;\n }\n return count + 1;\n }", "private int indexUntilCheckpointCount() {\n int total = 0;\n for (int i = 0; i < MAX_CHECKPOINTS_BEHIND; i++) {\n final int numDocs = randomIntBetween(1, 5);\n for (int j = 0; j < numDocs; ++j) {\n indexDoc();\n }\n total += numDocs;\n refresh(INDEX_NAME);\n }\n return total;\n }", "public long totalTime() {\n\t\tlong ret = 0;\n\t\tfor (Task l : plan) {\n\t\t\tret += l.getTaskLength();\n\t\t}\n\n\t\treturn ret;\n\t}", "public int pageCount()\n {\n return (int)Math.ceil((double)getTaskVector().size() /\n (double)getRecordsPerPage());\n }", "public int numberOfTires() {\n int tires = 4;\n return tires;\n }", "public static int getNumberOfCpuThreads() {\n\t\treturn Runtime.getRuntime().availableProcessors();\n\t}", "public int getNumberOfThreads() { return numberOfThreads; }", "public int recNumMapTasks(int mis)\r\n\t{\r\n\t long splitSize = mis*1024*1024;\r\n\t return (int)(inputSize/splitSize)+1;\r\n\t}", "int getProcessorCount();", "public int size()\n {\n return tasks.size();\n }", "int getTotalFree();", "public static int getThreadCount() {\r\n\t\treturn THREAD_MX_BEAN.getThreadCount();\r\n\t}", "public static @Range(from = 2, to = Integer.MAX_VALUE) int threadAmount(@NonNull DriverEnvironment environment) {\n return environment.equals(DriverEnvironment.NODE) ? Math.max(8, Runtime.getRuntime().availableProcessors() * 2) : 4;\n }", "long getConsumedWorkUnits();", "public int getNumberOfNodesEvaluated();", "private int getStartStopThreadsInternal() {\n\t\tint result = getStartStopThreads();\n\n\t\t// Positive values are unchanged\n\t\tif (result > 0) {\n\t\t\treturn result;\n\t\t}\n\n\t\t// Zero == Runtime.getRuntime().availableProcessors()\n\t\t// -ve == Runtime.getRuntime().availableProcessors() + value\n\t\t// These two are the same\n\t\tresult = Runtime.getRuntime().availableProcessors() + result;\n\t\tif (result < 1) {\n\t\t\tresult = 1;\n\t\t}\n\t\treturn result;\n\t}", "public int getNumThreads() {\n return numThreads;\n }", "Integer getTotalStepCount();", "int getIterations();", "public int getSize() {\n return this.tasks.size();\n }", "long getRequestsCount();", "public int getNumberOfThreads(){\n return numberOfThreads;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getNumberOfThreads() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(NUMBEROFTHREADS_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getNumberOfThreads() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(NUMBEROFTHREADS_PROP.get());\n }", "public int getRunnableCount() {\n return queue.size();\n }", "int getMaxConcurrent();", "public int sizeOfList(){\n return tasks.size();\n }", "public int asyncTaskCount();", "int getJobsCount();", "int getJobsCount();", "int getJobsCount();", "public RangeStatistic getSpareThreadCount() {\n return null;\n }", "int getMinimalIterationCount();", "public final int getNbThread() {\n return nbThread;\n }", "protected long getLiveSetSize() {\n\t\t// Sum of bytes removed from the containers.\n\t\tlong removed = 0;\n\n\t\tfor (int i = 0; i < sets.length; i++)\n\t\t\tremoved += sets[i].getContainer().getBytesRemoved();\n\n\t\t/*\n\t\t * The total number of butes still alive is the throughput minus the number of\n\t\t * bytes either removed from the container or never added in the first place.\n\t\t */\n\t\tlong size = getThroughput() - removed - producerThreadPool.getBytesNeverAdded();\n\n\t\treturn (size > 0) ? size : 0;\n\t}", "long getSpinCount();", "int getRequestsCount();", "int getRequestsCount();", "int getNumEvents() {\n int cnt = eventCount;\n for (Entry entry : queue) {\n cnt += entry.eventCount;\n }\n return cnt;\n }", "public int getTodayCount(){\n\t\tint count = 0;\n\t\tfor ( Task task : m_Tasks ){\n\t\t\tif( task.folder.equals(\"Today\") && !task.done) count++;\n\t\t}\n\t\treturn count;\n\t}", "public int getTasks() {\r\n return tasks;\r\n }", "public int leastInterval(char[] tasks, int n) {\n int[] map = new int[26];\n for (char t : tasks) map[t - 'A']++;\n \n Queue<Integer> pq = new PriorityQueue<>((a, b) -> (b - a));\n for (int i : map) {\n if (i != 0) pq.offer(i);\n }\n \n int cycles = 0;\n while (!pq.isEmpty()) {\n List<Integer> temp = new ArrayList<>(); // tasks processed in current iteration\n \n for (int i = 0; i <= n && !pq.isEmpty(); i++) {\n temp.add(pq.poll());\n }\n\n for (int i : temp) {\n if (--i > 0) pq.offer(i); // reduce freq and offer to pq\n }\n \n // if all tasks are processed, increment cycle with # of tasks last processed\n // otherwise, n + 1\n cycles += pq.isEmpty() ? temp.size() : n + 1; \n }\n\n return cycles;\n }", "public long getTotalThreadKernelTime(long[] tids) {\n\t\tThreadMXBean bean = ManagementFactory.getThreadMXBean();\t\t\n\t\tif(!bean.isThreadCpuTimeSupported()) \t\t\t\t\t\t\t\n\t\t\treturn -1L;\n\t\t\n\t\tfor(long i : tids) {\n\t\t\tlong currentCpuTime = bean.getThreadCpuTime(i);\n\t\t\tlong currentUserTime = bean.getThreadUserTime(i);\n\t\t\tif(currentCpuTime != -1 && currentUserTime != -1) {\t\t\t\t\t\t\t\t\t\t\n\t\t\t\ttotalTime += (currentCpuTime - currentUserTime);\n\t\t\t}\n\t\t}\n\t\treturn totalTime;\n\t}", "public int getNumTrials() \n {\n return cumulativeTrials; \n }", "public int getCostUnderestimate() {\n int bottomLoad = 0;\n int bottomLevel = 0;\n int loadBalance = ((AlgorithmConfig.getTotalNodeWeight() + getIdleTime()) / AlgorithmConfig.getNumOfProcessors());\n for (ScheduledTask scheduledTask : this) {\n bottomLevel = Math.max(bottomLevel, scheduledTask.getStartTime() + scheduledTask.getNode().getBottomLevel());\n bottomLoad = Math.max(bottomLoad, scheduledTask.getNode().getBottomLoad()/AlgorithmConfig.getNumOfProcessors() + scheduledTask.getFinishTime());\n }\n return Math.max(bottomLevel, Math.max(loadBalance, bottomLoad));\n }", "public int getNumberOfNodesEvaluated() {\r\n\t\treturn this.evaluatedNodes;\r\n\t}", "public long getThreads() { return threads; }", "public int getTotalWait() {\n return totalWait;\n }", "public static int availableProcessors() {\n/* 98 */ return holder.availableProcessors();\n/* */ }", "public Integer getWorkSize(){\r\n\t\treturn work.size();\t\t\r\n\t}", "public int getTaskIdCount() {\n return taskId_.size();\n }", "public int getTotalWorkerCount() {\n return this.workerCount;\n }", "public int getThreadCount() {\n\t\treturn this.threadCalls.size();\n\t}", "@Override\n public int getNumberOfNodesEvaluated() {\n int result = evaluatedNodes;\n evaluatedNodes = 0;\n return result;\n }", "public long getTotalThreadCpuTime(long[] tids) {\t\t\t\t//get multiple threads cpu time usage to prevent overhead for multiple \n\t\tThreadMXBean bean = ManagementFactory.getThreadMXBean();\t\t//method invocations of getThreadCpuTime(long tid)\n\t\tif(!bean.isThreadCpuTimeSupported()) \t\t\t\t\t\t\t//If JVM supports for CPU time measurement for any thread, it returns true\n\t\t\treturn -1L;\n\t\tfor(long i : tids) {\n\t\t\tlong currentTime = bean.getThreadCpuTime(i);\n\t\t\tif(currentTime != -1) {\t\t\t\t\t\t\t\t\t\t//Check if the thread CPU measurement is enableed.\n\t\t\t\ttotalTime += currentTime;\n\t\t\t}\n\t\t}\n\t\treturn totalTime;\n\t}", "public static int parallelFreq(int x, int[] A, int numThreads){\n if (A == null || numThreads < 1) return -1;\n\n //initialize multiple callables\n executorService = Executors.newFixedThreadPool(numThreads);\n\n //convert array to list\n List<Integer> totalList = new ArrayList<>();\n for (int a : A) {\n totalList.add(a);\n }\n\n //split list into several pieces\n ArrayList<ArrayList<Integer>> subLists = new ArrayList<ArrayList<Integer>>();\n\n if (A.length <= numThreads) {\n for (int i = 0; i < numThreads; ++i) {\n if (i < A.length) {\n ArrayList<Integer> cur = new ArrayList<>();\n cur.add(A[i]);\n subLists.add(cur);\n }\n }\n } else {\n int listSize = A.length / numThreads;\n int remain = A.length % numThreads;\n int begin = 0;\n int end = 0;\n for (int i = 0; i < numThreads; ++i ) {\n if (i < remain) {\n end = begin + listSize + 1;\n } else {\n end = begin + listSize;\n }\n List<Integer> cur = totalList.subList(begin, end);\n subLists.add(new ArrayList<Integer>(cur));\n begin = end;\n }\n\n }\n\n ArrayList<Future<Integer>> futures = new ArrayList<>();\n for (ArrayList<Integer> list : subLists) {\n Future<Integer> aList = executorService.submit(new Freq(x, list));\n futures.add(aList);\n }\n\n int result = 0;\n for (Future<Integer> future : futures) {\n try {\n result += future.get();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n }\n executorService.shutdown();\n\n return result;\n }", "@Nullable\n Integer getVcpuCount();", "public int totalNumNodes () { throw new RuntimeException(); }", "private int[] getTaskCountByStatus() {\n int[] counts = new int[2];\n int doneCount = 0;\n int toDoCount = 0;\n for (Task t : taskStore) {\n if (t.getIsDone()) {\n doneCount++;\n } else {\n toDoCount++;\n }\n }\n counts[0] = toDoCount;\n counts[1] = doneCount;\n return counts;\n }", "public int UnassignedCount() {\n \t\treturn jobqueue.size();\n \t}", "@ApiModelProperty(value = \"The number of active threads in the NiFi.\")\r\n public Integer getActiveThreadCount() {\r\n return activeThreadCount;\r\n }" ]
[ "0.682766", "0.6825394", "0.6740721", "0.6662004", "0.65559584", "0.6525104", "0.65174997", "0.64971715", "0.64872867", "0.64735717", "0.6417591", "0.63995993", "0.6351618", "0.63341355", "0.6279105", "0.62490153", "0.6243914", "0.6240258", "0.6239697", "0.6227032", "0.61934984", "0.614375", "0.6106466", "0.6051126", "0.60465884", "0.60435694", "0.60306317", "0.6010375", "0.60073847", "0.599866", "0.5991784", "0.59801847", "0.5946584", "0.5940782", "0.5911886", "0.5906484", "0.5890604", "0.5887837", "0.58780456", "0.58771104", "0.58725464", "0.58655196", "0.5850526", "0.58503705", "0.5836515", "0.583596", "0.5831334", "0.5826976", "0.5806765", "0.57978976", "0.57976437", "0.57965976", "0.57926357", "0.5784055", "0.57805264", "0.57702917", "0.5766806", "0.57633567", "0.576082", "0.5736142", "0.5729436", "0.57186514", "0.57169634", "0.5708119", "0.5707043", "0.57035714", "0.5701793", "0.56898403", "0.56898403", "0.56898403", "0.5665454", "0.56558156", "0.5647887", "0.5634154", "0.5633182", "0.56255066", "0.56255066", "0.56202394", "0.5612882", "0.56112903", "0.56093544", "0.5574947", "0.55626744", "0.55615795", "0.5559082", "0.5539894", "0.5526134", "0.5524312", "0.55177927", "0.55169284", "0.5508433", "0.55013084", "0.5488291", "0.54837745", "0.5481089", "0.5477465", "0.5475732", "0.54682297", "0.5465803", "0.54514146" ]
0.7518449
0
Returns a sun.misc.Unsafe. Suitable for use in a 3rd party package. Replace with a simple call to Unsafe.getUnsafe when integrating into a jdk.
private static sun.misc.Unsafe getUnsafe() { try { return sun.misc.Unsafe.getUnsafe(); } catch (SecurityException se) { try { return java.security.AccessController.doPrivileged (new java.security .PrivilegedExceptionAction<sun.misc.Unsafe>() { public sun.misc.Unsafe run() throws Exception { java.lang.reflect.Field f = sun.misc .Unsafe.class.getDeclaredField("theUnsafe"); f.setAccessible(true); return (sun.misc.Unsafe) f.get(null); }}); } catch (java.security.PrivilegedActionException e) { throw new RuntimeException("Could not initialize intrinsics", e.getCause()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Object getUnsafe() {\n\t\tObject unsafe;\n\t\ttry {\n\t\t\tunsafe = ReflectionUtils.get(Class.forName(\"sun.misc.Unsafe\"), \"theUnsafe\");\n\t\t} catch (ClassNotFoundException ex) {\n\t\t\tthrow new RuntimeException(ex);\n\t\t}\n\t\treturn unsafe;\n\t}", "private static Unsafe getUnsafe() {\n try {\n Field singleOneInstanceField = Unsafe.class.getDeclaredField(\"theUnsafe\");\n singleOneInstanceField.setAccessible(true);\n return (Unsafe) singleOneInstanceField.get(null);\n\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public static Unsafe getUnsafe() {\n return THE_UNSAFE;\n }", "public interface IUnsafe {\n\n byte getByte(long address);\n\n void putByte(long address, byte x);\n\n short getShort(long address);\n\n void putShort(long address, short x);\n\n char getChar(long address);\n\n void putChar(long address, char x);\n\n int getInt(long address);\n\n void putInt(long address, int x);\n\n long getLong(long address);\n\n void putLong(long address, long x);\n\n float getFloat(long address);\n\n void putFloat(long address, float x);\n\n double getDouble(long address);\n\n void putDouble(long address, double x);\n\n int getInt(Object o, long address);\n\n void putInt(Object o, long address, int x);\n\n Object getObject(Object o, long address);\n\n void putObject(Object o, long address, Object x);\n\n boolean getBoolean(Object o, long address);\n\n void putBoolean(Object o, long address, boolean x);\n\n byte getByte(Object o, long address);\n\n void putByte(Object o, long address, byte x);\n\n short getShort(Object o, long address);\n\n void putShort(Object o, long address, short x);\n\n char getChar(Object o, long address);\n\n void putChar(Object o, long address, char x);\n\n long getLong(Object o, long address);\n\n void putLong(Object o, long address, long x);\n\n float getFloat(Object o, long address);\n\n void putFloat(Object o, long address, float x);\n\n double getDouble(Object o, long address);\n\n void putDouble(Object o, long address, double x);\n\n\n\n long getAddress(long address);\n\n void putAddress(long address, long x);\n\n long allocateMemory(long bytes);\n\n long reallocateMemory(long address, long bytes);\n\n void setMemory(Object o, long offset, long bytes, byte value);\n\n default void setMemory(long address, long bytes, byte value) {\n setMemory(null, address, bytes, value);\n }\n\n void copyMemory(Object srcBase, long srcOffset, Object destBase, long destOffset, long bytes);\n\n default void copyMemory(long srcAddress, long destAddress, long bytes) {\n copyMemory(null, srcAddress, null, destAddress, bytes);\n }\n\n void freeMemory(long address);\n \n}", "protected AbstractChannel.AbstractUnsafe newUnsafe() {\n/* 713 */ return new EmbeddedUnsafe();\n/* */ }", "public Unsafe method_4123() {\n return null;\n }", "public static void disableWarning() {\n try {\n Field theUnsafe = Unsafe.class.getDeclaredField(\"theUnsafe\");\n theUnsafe.setAccessible(true);\n Unsafe u = (Unsafe) theUnsafe.get(null);\n\n Class<?> c = Class.forName(\"jdk.internal.module.IllegalAccessLogger\");\n Field logger = c.getDeclaredField(\"logger\");\n u.putObjectVolatile(c, u.staticFieldOffset(logger), null);\n } catch (ClassNotFoundException e) {\n // do nothing\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static C10067G m32839a() {\n String str = \"newInstance\";\n try {\n Class<?> unsafeClass = Class.forName(\"sun.misc.Unsafe\");\n Field f = unsafeClass.getDeclaredField(\"theUnsafe\");\n f.setAccessible(true);\n return new C10063C(unsafeClass.getMethod(\"allocateInstance\", new Class[]{Class.class}), f.get(null));\n } catch (Exception e) {\n try {\n Method getConstructorId = ObjectStreamClass.class.getDeclaredMethod(\"getConstructorId\", new Class[]{Class.class});\n getConstructorId.setAccessible(true);\n int constructorId = ((Integer) getConstructorId.invoke(null, new Object[]{Object.class})).intValue();\n Method newInstance = ObjectStreamClass.class.getDeclaredMethod(str, new Class[]{Class.class, Integer.TYPE});\n newInstance.setAccessible(true);\n return new C10064D(newInstance, constructorId);\n } catch (Exception e2) {\n try {\n Method newInstance2 = ObjectInputStream.class.getDeclaredMethod(str, new Class[]{Class.class, Class.class});\n newInstance2.setAccessible(true);\n return new C10065E(newInstance2);\n } catch (Exception e3) {\n return new C10066F();\n }\n }\n }\n }", "public T pollUnsafe();", "@SuppressWarnings(\"unchecked\")\n\tpublic static <T> T instantiateUnsafe(Class<T> cls) throws RuntimeException {\n\t\treturn (T) ReflectionUtils.invokeMethod(getUnsafe(), \"allocateInstance\", cls);\n\t}", "public abstract long getNativePtr();", "Object getNative();", "private static native long create_0();", "public native int getFreeMemory();", "private static native long init();", "public long memoryAddress()\r\n/* 143: */ {\r\n/* 144:172 */ throw new UnsupportedOperationException();\r\n/* 145: */ }", "public interface DirectByteBufferAccess {\n\n /**\n * Returns the native memory address of the given direct byte buffer, or 0\n * if the buffer is not direct or if obtaining the address is not supported.\n * \n * @param buffer the direct byte buffer for which to obtain the address\n * @return the native memory address or 0\n */\n long getAddress(ByteBuffer buffer);\n}", "public static final byte[] getSystemEntropy() {\n\n\t\tfinal MessageDigest md;\n\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"SHA\");\n\t\t} catch (NoSuchAlgorithmException nsae) {\n\t\t\tthrow new InternalError(\"internal error: SHA-1 not available.\");\n\t\t}\n\n\t\t// The current time in millis\n\t\tbyte b = (byte) System.currentTimeMillis();\n\t\tmd.update(b);\n\n\t\tjava.security.AccessController\n\t\t\t\t.doPrivileged(new java.security.PrivilegedAction<Void>() {\n\t\t\t\t\tpublic Void run() {\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t// System properties can change from machine to\n\t\t\t\t\t\t\t// machine\n\t\t\t\t\t\t\tString s;\n\t\t\t\t\t\t\tProperties p = System.getProperties();\n\t\t\t\t\t\t\tEnumeration<?> e = p.propertyNames();\n\t\t\t\t\t\t\twhile (e.hasMoreElements()) {\n\t\t\t\t\t\t\t\ts = (String) e.nextElement();\n\t\t\t\t\t\t\t\tmd.update(s.getBytes());\n\t\t\t\t\t\t\t\tmd.update(p.getProperty(s).getBytes());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tmd.update(InetAddress.getLocalHost().toString()\n\t\t\t\t\t\t\t\t\t.getBytes());\n\n\t\t\t\t\t\t\t// The temporary dir\n\t\t\t\t\t\t\tFile f = new File(p.getProperty(\"java.io.tmpdir\"));\n\t\t\t\t\t\t\tString[] sa = f.list();\n\t\t\t\t\t\t\tfor (int i = 0; i < sa.length; i++)\n\t\t\t\t\t\t\t\tmd.update(sa[i].getBytes());\n\n\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\tmd.update((byte) ex.hashCode());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// get Runtime memory stats\n\t\t\t\t\t\tRuntime rt = Runtime.getRuntime();\n\t\t\t\t\t\tbyte[] memBytes = longToByteArray(rt.totalMemory());\n\t\t\t\t\t\tmd.update(memBytes, 0, memBytes.length);\n\t\t\t\t\t\tmemBytes = longToByteArray(rt.freeMemory());\n\t\t\t\t\t\tmd.update(memBytes, 0, memBytes.length);\n\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\treturn md.digest();\n\n\t}", "public static RawNativeLibraries newInstance(MethodHandles.Lookup trustedCaller) {\n if (!trustedCaller.hasFullPrivilegeAccess() ||\n !VM.isSystemDomainLoader(trustedCaller.lookupClass().getClassLoader())) {\n throw new InternalError(trustedCaller + \" does not have access to raw native library loading\");\n }\n return new RawNativeLibraries(trustedCaller);\n }", "private ByteBuffer internalNioBuffer()\r\n/* 532: */ {\r\n/* 533:545 */ ByteBuffer tmpNioBuf = this.tmpNioBuf;\r\n/* 534:546 */ if (tmpNioBuf == null) {\r\n/* 535:547 */ this.tmpNioBuf = (tmpNioBuf = ByteBuffer.wrap(this.array));\r\n/* 536: */ }\r\n/* 537:549 */ return tmpNioBuf;\r\n/* 538: */ }", "public native T get();", "static native void free(long buffer);", "private OSUtil()\n {\n throw new UnsupportedOperationException(\"Instantiation of utility classes is not permitted.\");\n }", "private native static int getLibMajorVersion();", "public byte[] getTBSCertificate() throws java.security.cert.CertificateEncodingException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getTBSCertificate():byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getTBSCertificate():byte[]\");\n }", "public native long getRemoteAddress() throws IOException,IllegalArgumentException;", "private native static void free(long instance);", "public static ThreadSafe getInstaceDoubleChecking(){\n if(instance==null){\n synchronized (ThreadSafe.class) {\n if (instance==null) {\n instance = new ThreadSafe();\n }\n }\n }\n return instance;\n }", "public native static long getConvertBytes();", "private static Object m24226b() {\n try {\n return f18405b.newInstance(new Object[0]);\n } catch (Throwable e) {\n throw new RuntimeException(e);\n }\n }", "public static System getInstance() {\n\t\ttry {\n\t\t\treturn instance == null ? new System(null, null, null) : instance;\n\t\t} catch (Exception e) {\n\t\t\tlogger.fatal(\"System Initialization Failed\", e);\n\t\t\treturn null;\n\t\t}\n\t}", "static native int jniToBuf(Buf out, long patch);", "@C_FUNCTION\n public static native void core_dump();", "public static SSLSocketFactory getUnsafeSSLSocketFactory(\n KeyManager[] keyManagers, X509TrustManager trustManager)\n throws NoSuchAlgorithmException, KeyManagementException {\n final TrustManager[] trustAllCerts = new TrustManager[] {trustManager};\n\n // Install the all-trusting trust manager\n final SSLContext sslContext = SSLContext.getInstance(\"TLSv1.2\");\n sslContext.init(keyManagers, trustAllCerts, new java.security.SecureRandom());\n // Create an ssl socket factory with our all-trusting manager\n final SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n // System.out.println(\"supported ciphers: \" +\n // java.util.Arrays.asList(sslSocketFactory.getSupportedCipherSuites()));\n // System.out.println(\"supported SSL parameters ciphers: \" +\n // java.util.Arrays.asList(sslContext.getSupportedSSLParameters().getCipherSuites()));\n // System.out.println(\"supported SSL parameters protocols: \" +\n // java.util.Arrays.asList(sslContext.getSupportedSSLParameters().getProtocols()));\n return sslSocketFactory;\n }", "final long internalLongLock() {\n return byteBase.longLockPointer();\n }", "public static void checkRequiredMethods(Class<Unsafe> clazz) throws NoSuchMethodException, SecurityException {\n clazz.getMethod(\"arrayBaseOffset\", Class.class);\n clazz.getMethod(\"getByte\", Object.class, Long.TYPE);\n clazz.getMethod(\"putByte\", Object.class, Long.TYPE, Byte.TYPE);\n clazz.getMethod(\"getLong\", Object.class, Long.TYPE);\n clazz.getMethod(\"objectFieldOffset\", Field.class);\n clazz.getMethod(\"getByte\", Long.TYPE);\n clazz.getMethod(\"getLong\", Object.class, Long.TYPE);\n clazz.getMethod(\"putByte\", Long.TYPE, Byte.TYPE);\n clazz.getMethod(\"getLong\", Long.TYPE);\n }", "private Checksum getCheckSun() {\n if (transientChecksum == null) {\n transientChecksum = new Adler32();\n }\n return transientChecksum;\n }", "public static native int OpenMM_AmoebaVdwForce_getSoftcorePower(PointerByReference target);", "private static native long create_0(int mode);", "private static void loadSoFromInternalStorage(String fileName) throws UnsatisfiedLinkError {\n String path = System.getProperties().get(\"java.io.tmpdir\").toString().replace(\"/cache\", \"/files/\" + fileName);\n File file = new File(path);\n SecurityManager security = System.getSecurityManager();\n if (security != null) {\n security.checkLink(file.getAbsolutePath());\n }\n System.load(file.getAbsolutePath());\n }", "BSTR SysAllocString(String sz);", "final long internalShortLock() {\n return byteBase.shortLockPointer();\n }", "public ByteBuffer nioBuffer()\r\n/* 703: */ {\r\n/* 704:712 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 705:713 */ return super.nioBuffer();\r\n/* 706: */ }", "public static native int OpenMM_AmoebaVdwForce_getNonbondedMethod(PointerByReference target);", "@Nullable\n @NativeType(\"bgfx_memory_t const *\")\n public static BGFXMemory bgfx_copy(@NativeType(\"void const *\") ByteBuffer _data) {\n long __result = nbgfx_copy(memAddress(_data), _data.remaining());\n return BGFXMemory.createSafe(__result);\n }", "SecurityManager getSecurityManager();", "SecurityManager getSecurityManager();", "@Test\n\tpublic void testUnsafe()\n\t{\n\t\tString[] code = {\n\t\t\t\"var a\\n = 'Here is a unsafe character';\"\n\t\t};\n\t\t\n\t\tth.test(code, new LinterOptions().set(\"es3\", true));\n\t}", "public synchronized native static int open();", "private static ByteBuffer createNativeByteBuffer(int length) {\n ByteBuffer bb = ByteBuffer.allocateDirect(length);\n // use the device hardware's native byte order\n bb.order(ByteOrder.nativeOrder());\n return bb;\n }", "SystemData systemData();", "SystemData systemData();", "SystemData systemData();", "SystemData systemData();", "SystemData systemData();", "public long getNativePtr() {\n return mNativePtr;\n }", "public final T get()\r\n/* 120: */ {\r\n/* 121:147 */ if (this.maxCapacityPerThread == 0) {\r\n/* 122:148 */ return newObject(NOOP_HANDLE);\r\n/* 123: */ }\r\n/* 124:150 */ Stack<T> stack = (Stack)this.threadLocal.get();\r\n/* 125:151 */ DefaultHandle<T> handle = stack.pop();\r\n/* 126:152 */ if (handle == null)\r\n/* 127: */ {\r\n/* 128:153 */ handle = stack.newHandle();\r\n/* 129:154 */ handle.value = newObject(handle);\r\n/* 130: */ }\r\n/* 131:156 */ return handle.value;\r\n/* 132: */ }", "private Point getUnsafeTeleportPosition() {\n\t\tRandom number \t= new Random();\n\t\tPoint p \t\t= new Point();\n\t\t\n\t\twhile(true) {\n\t\t\tint x\t\t= number.nextInt(rows-1);\t\n\t\t\tint y\t\t= number.nextInt(cols-1);\n\t\t\tp.x\t\t\t= x;\n\t\t\tp.y\t\t\t= y;\n\t\t\t\n\t\t\t// position isn't occupied\n\t\t\tif(!occupiedPositions.contains(p))\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn p;\n\t}", "public long getLeastSignificantBits() { throw new RuntimeException(\"Stub!\"); }", "private byte[] getSystemKey() throws InternalSkiException {\n return sysKey(SYSTEM_KEY);\n }", "public static native int GetType(long lpjFbxDataType);", "public static native void free(long handle);", "byte[] get_secure_random_bytes();", "public static synchronized HotspotMemoryMBean getHotspotMemoryMBean()\n/* */ {\n/* 312 */ if (hsMemoryMBean == null) {\n/* 313 */ hsMemoryMBean = new HotspotMemory(jvm);\n/* */ }\n/* 315 */ return hsMemoryMBean;\n/* */ }", "public static final native int getCurrent();", "public native int getNetworkIO();", "public native int getUsedMemory();", "private native void unrefMsgCPtr ();", "public T safeNewInstance() {\n try {\n return newInstance();\n } catch (NoSuchMethodException e) {\n throw new IllegalArgumentException(e);\n } catch (IllegalAccessException e) {\n throw new IllegalArgumentException(e);\n } catch (InvocationTargetException e) {\n throw new IllegalArgumentException(e);\n } catch (InstantiationException e) {\n throw new IllegalArgumentException(e);\n }\n }", "public byte getSystem() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readByte(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readByte(__io__address + 4);\n\t\t}\n\t}", "private Socket getSocketWithOnlySafeProtocolsEnabled(Socket socket) {\n if (!(socket instanceof SSLSocket)) {\n throw new IllegalArgumentException(\"The socket is not an instance of the SSL socket\");\n }\n SSLSocket sslSocket = (SSLSocket) socket;\n Set<String> allSupportedProtocols = new HashSet<>(Arrays.asList(sslSocket.getSupportedProtocols()));\n List<String> safeSupportedProtocols = new ArrayList<>();\n for (String safeProtocol : SAFE_PROTOCOLS) {\n if (allSupportedProtocols.contains(safeProtocol)) {\n safeSupportedProtocols.add(safeProtocol);\n }\n }\n if (safeSupportedProtocols.isEmpty()) {\n throw new SecurityException(\"No safe protocol version is supported for this SSL socket\");\n }\n sslSocket.setEnabledProtocols(safeSupportedProtocols.toArray(new String[0]));\n return sslSocket;\n }", "private native String native_init();", "private static native long parkSensorSpi4Bytes(int pSpiFileHandler);", "public static synchronized HotspotThreadMBean getHotspotThreadMBean()\n/* */ {\n/* 302 */ if (hsThreadMBean == null) {\n/* 303 */ hsThreadMBean = new HotspotThread(jvm);\n/* */ }\n/* 305 */ return hsThreadMBean;\n/* */ }", "private CryptoSunJCE() {\n\t}", "public static CryptoSunJCE getInstance() {\n\t\t// return instance;\n\t\treturn new CryptoSunJCE();\n\t}", "static native ByteBuffer loadJni(long[] nativeData, byte[] buffer, int offset, int len);", "public static synchronized Util getInstance(Context context) {\n if (_instance == null) {\n _instance = new Util(context);\n }\n return _instance;\n }", "public ByteBuffer getByteBuffer();", "private OperatingSystemInfo( ) {\r\n\t\tfinal String system_osname = System.getProperty(\"os.name\");\r\n\t\tfinal String system_osarch = System.getProperty(\"os.arch\");\r\n\t\tb64bit = system_osarch.endsWith(\"64\");\r\n\t\tboolean bWindows = system_osname.contains(\"Windows\");\r\n\t\tboolean bMac = system_osname.contains(\"Mac\");\r\n\t\tboolean bLinux = system_osname.contains(\"Linux\");\r\n\t\tif (bWindows) {\r\n\t\t\tosType = OsType.WINDOWS;\r\n\t\t\tosnamePrefix = \"win\";\r\n\t\t\texeSuffix = \".exe\";\r\n\t\t\tsharedLibraryPattern = Pattern.compile(\".dll$\");\r\n\t\t} else if (bMac) {\r\n\t\t\tosType = OsType.MAC;\r\n\t\t\tosnamePrefix = \"mac\";\r\n\t\t\texeSuffix = \"\";\r\n\t\t\tsharedLibraryPattern = Pattern.compile(\".*[dylib|jnilib]$\");\r\n\t\t} else if (bLinux) {\r\n\t\t\tosType = OsType.LINUX;\r\n\t\t\tosnamePrefix = \"linux\";\r\n\t\t\texeSuffix = \"\";\r\n\t\t\tsharedLibraryPattern = Pattern.compile(\".+\\\\.so[.\\\\d]*$\"); //libc.so, libc.so.1, libc.so.1.4\r\n\t\t} else {\r\n\t\t\tthrow new RuntimeException(system_osname + \" is not supported by the Virtual Cell.\");\r\n\t\t}\r\n\t\tdescription = osnamePrefix;\r\n\t\tString BIT_SUFFIX = \"\";\r\n\t\tif (b64bit) {\r\n\t\t\tBIT_SUFFIX =\"_x64\";\r\n\t\t\tdescription += \"64\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdescription += \"32\";\r\n\t\t}\r\n\t\texeBitSuffix = BIT_SUFFIX + exeSuffix;\r\n\t\tnativeLibDirectory = osnamePrefix + (b64bit ? \"64/\" : \"32/\");\r\n\t\tnativelibSuffix = BIT_SUFFIX;\r\n\t}", "public final java.security.Provider getProvider() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.AlgorithmParameterGenerator.getProvider():java.security.Provider, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.AlgorithmParameterGenerator.getProvider():java.security.Provider\");\n }", "public static native long meCreate2( Long pV);", "public static native long GetAt(long lpjFbxArrayVector2, int pIndex);", "public static long freeMemory() {\n return Native.freeMemory(false);\n }", "com.google.protobuf.ByteString\n getOsBytes();", "private StdDSAEncoder() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.<init>():void\");\n }", "private static native boolean nativeClassInit();", "public /* bridge */ /* synthetic */ java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Object\");\n }", "private static boolean isInSafeMode(DistributedFileSystem dfs) throws IOException {\n return dfs.setSafeMode(SAFEMODE_GET, true);\n }", "HRESULT SafeArrayAccessData(SAFEARRAY psa, PointerByReference ppvData);", "public int available() throws java.io.IOException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.conscrypt.OpenSSLBIOSource.ByteBufferInputStream.available():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.conscrypt.OpenSSLBIOSource.ByteBufferInputStream.available():int\");\n }", "public long getMostSignificantBits() { throw new RuntimeException(\"Stub!\"); }", "public java.security.PrivateKey getPrivateKey() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.Signer.getPrivateKey():java.security.PrivateKey, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.getPrivateKey():java.security.PrivateKey\");\n }", "public ByteBuffer[] nioBuffers()\r\n/* 715: */ {\r\n/* 716:724 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 717:725 */ return super.nioBuffers();\r\n/* 718: */ }", "public static String weakIntern(String sample) {\n if (sample == null) {\n return null;\n }\n return weakInterner.intern(sample);\n }", "DirectMemoryBackingStore( final long aMaxMapSize )\n\t{\n\t\tmapSize = aMaxMapSize;\n\t\tstartingAddress = UnsafeAccess.UNSAFE.allocateMemory(aMaxMapSize);\n\t\tbuffer = new LongUnsafeBuffer(startingAddress, mapSize);\n\t}", "public native int getProcess();", "public final SSLSocketFactory getSocketFactory() {\n return spiImpl.engineGetSocketFactory();\n }", "public static synchronized HotspotRuntimeMBean getHotspotRuntimeMBean()\n/* */ {\n/* 282 */ if (hsRuntimeMBean == null) {\n/* 283 */ hsRuntimeMBean = new HotspotRuntime(jvm);\n/* */ }\n/* 285 */ return hsRuntimeMBean;\n/* */ }", "public byte[] getEncoded() throws java.security.cert.CertificateEncodingException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getEncoded():byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getEncoded():byte[]\");\n }" ]
[ "0.8256631", "0.80546427", "0.7794637", "0.62495816", "0.6191947", "0.5203709", "0.518009", "0.5026107", "0.5015443", "0.48406473", "0.46957764", "0.46249703", "0.45189542", "0.4488463", "0.44600987", "0.4452357", "0.4422349", "0.44206408", "0.43866056", "0.43824142", "0.43618572", "0.43611243", "0.43110502", "0.42990652", "0.42865974", "0.4284961", "0.4281213", "0.425982", "0.41986695", "0.41958222", "0.41891178", "0.418111", "0.41775566", "0.41651323", "0.41630518", "0.41418615", "0.41329247", "0.41312334", "0.41287804", "0.41269743", "0.41165012", "0.4109704", "0.410477", "0.40988567", "0.4095676", "0.4092419", "0.4092419", "0.4081239", "0.407469", "0.4067995", "0.40657184", "0.40657184", "0.40657184", "0.40657184", "0.40657184", "0.40444827", "0.4040337", "0.40396824", "0.4030524", "0.402555", "0.402464", "0.40236843", "0.40094823", "0.40053993", "0.4002126", "0.40017116", "0.4001508", "0.399555", "0.3994473", "0.39941612", "0.39851066", "0.39760533", "0.39728442", "0.3971782", "0.3967593", "0.39654112", "0.3959384", "0.39499778", "0.39435622", "0.39408278", "0.3935827", "0.39231226", "0.3922896", "0.39204758", "0.39192384", "0.39142156", "0.391101", "0.39082652", "0.38983446", "0.38854516", "0.3884773", "0.3883974", "0.3879866", "0.3878176", "0.38683906", "0.3865938", "0.38656056", "0.38642827", "0.38641044", "0.38637054" ]
0.8532757
0
Constructor to extract the form parameters
public FinishPaymentCommand(String parameter) { apPaymentIds = parameter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String toFORMParam();", "private Params()\n {\n }", "public ProposalSpecialReviewForm() {\r\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"name\", name);\n params.put(\"email\", email);\n params.put(\"password\", password);\n params.put(\"mobile\", mobile);\n params.put(\"spinner\",spinner);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"user_id\", userIdInput);\n params.put(\"date\", selectedDate);\n params.put(\"type\", typeInput);\n\n return params;\n }", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "public sub_Form(HashMap<String, ReturnedValue> entry, int index){\n this.form_ID = entry.get(\"formID\").to_string();\n this.repID = entry.get(\"repID\").to_string();\n this.plantRegistry = entry.get(\"plantRegistry\").to_string();\n this.domesticOrImported = entry.get(\"domesticOrImported\").to_string();\n this.serialNumber = entry.get(\"serialNumber\").to_string();\n this.beverageType = entry.get(\"beverageType\").to_string();\n this.brandName = entry.get(\"brandName\").to_string();\n this.fancifulName = entry.get(\"fancifulName\").to_string();\n this.vintage = entry.get(\"vintage\").to_string();\n this.grapeVarietals = entry.get(\"grapeVarietals\").to_string();\n this.pHValue = entry.get(\"pHValue\").to_string();\n this.wineAppellation = entry.get(\"wineAppellation\").to_string();\n this.alcoholContent = entry.get(\"alcoholContent\").to_string();\n this.phoneNumber = entry.get(\"phoneNumber\").to_string();\n this.email = entry.get(\"email\").to_string();\n this.index = index;\n }", "private Request() {\n initFields();\n }", "@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n\r\n // Adding All values to Params.\r\n params.put(\"name\", Name);\r\n params.put(\"age\", Age);\r\n params.put(\"phone_no\", Phoneno);\r\n params.put(\"h_lic_no\", Hospitallic);\r\n params.put(\"appoinment_date\", Appointment1);\r\n params.put(\"address\", Address);\r\n params.put(\"permision\", Permission);\r\n\r\n return params;\r\n }", "@Override\n protected Map<String, String> getParams() {\n int noofstudent = 2*Integer.parseInt(noOfStudents);\n String creatre = \"jbscjas\";//send anything part\n String uid = AppController.getString(WingForm.this,\"Student_id\");\n Map<String, String> params = new LinkedHashMap<String, String>();\n //using LinkedHashmap because backend does not check key value and sees order of variables\n params.put(\"createsubmittedform\", creatre);\n params.put(\"uid\",uid);\n params.put(\"noofstudent\", String.valueOf(noofstudent));\n for(int m=1;m<3;m++){\n String z= String.valueOf(m);\n params.put(\"pfid[\"+m+\"]\",z);\n params.put(\"hostelid[\"+m+\"]\",hostelid[m-1]);\n params.put(\"floorno[\"+m+\"]\",floorno[m-1]);\n }\n for (int k = 0; k < noofstudent; k++) {\n int m = k/2 +1;\n String z= String.valueOf(m);\n params.put(\"sid[\"+k+\"]\", sid[k]);\n params.put(\"roominwing[\"+k+\"]\",z );\n }\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"title\", name);\n params.put(\"ean\", ean);\n params.put(\"supplier\", supplier);\n params.put(\"offer\", offer);\n params.put(\"price\", price);\n\n return params;\n }", "public Parameters() {\n\t}", "public FormFieldsReport() {}", "@Override\r\n protected Map<String, String> getParams() {\n\r\n Map<String, String> params = new HashMap<String, String>();\r\n params.put(\"name\", name);\r\n params.put(\"product\", product);\r\n params.put(\"email\", email);\r\n params.put(\"phone\", phone);\r\n params.put(\"quantity\", quantity);\r\n params.put(\"price\", price);\r\n params.put(\"address\", address);\r\n\r\n return params;\r\n }", "public AttributeForm() \n {\n initComponents();\n mJerseyNumberUpDown.setModel(new SpinnerNumberModel(0,0,99,1));\n \n m_Parser = new InputParser();\n m_Attributes = new JComboBox[8];\n m_Attributes[0] = m_RSBox;\n m_Attributes[1] = m_RPBox;\n m_Attributes[2] = m_MSBox;\n m_Attributes[3] = m_HPBox;\n m_Attributes[4] = m_PS_BC_PI_KABox;\n m_Attributes[5] = m_PC_REC_QU_KABox;\n m_Attributes[6] = m_ACCBox;\n m_Attributes[7] = m_APBBox;\n\n m_SimAttrs = new JSpinner[4];\n m_SimAttrs[0] = m_Sim1UpDown;\n m_SimAttrs[1] = m_Sim2UpDown;\n m_SimAttrs[2] = m_Sim3UpDown;\n m_SimAttrs[3] = m_Sim4UpDown;\n \n m_DoneInit = true;\n setCurrentState(StateEnum.QB);\n \n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"gender\", gender);\n params.put(\"category\", category);\n params.put(\"subcategory\", subcategory);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n int noofstudent = 2*Integer.parseInt(noOfStudents);\n String creatre = \"jbscjas\";//send anything part\n String uid = AppController.getString(WingForm.this,\"Student_id\");\n Map<String, String> params = new LinkedHashMap<String, String>();\n //using LinkedHashmap because backend does not check key value and sees order of variables\n params.put(\"createsavedform\", creatre);\n params.put(\"uid\",uid);\n params.put(\"noofstudent\", String.valueOf(noofstudent));\n for(int m=1;m<3;m++){\n String z= String.valueOf(m);\n params.put(\"pfid[\"+m+\"]\",z);\n params.put(\"hostelid[\"+m+\"]\",hostelid[m-1]);\n params.put(\"floorno[\"+m+\"]\",floorno[m-1]);\n }\n for (int k = 0; k < noofstudent; k++) {\n int m = k/2 +1;\n String z= String.valueOf(m);\n params.put(\"sid[\"+k+\"]\", sid[k]);\n params.put(\"sname[\"+k+\"]\", sname[k]);\n params.put(\"roominwing[\"+k+\"]\",z );\n }\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"preemail\",preemail);\n params.put(\"name\", name);\n params.put(\"email\", email);\n params.put(\"mobile\", mobile);\n return params;\n }", "public ModuleParams()\n\t{\n\t}", "public BaseParameters(){\r\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", em);\n params.put(\"password\", pw);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"username\", inputUsername.getText().toString());\n params.put(\"password\", inputPassword.getText().toString());\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Dname\", DegreeName);\n params.put(\"iName\", InsName);\n params.put(\"UserId\", uId);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n return params;\n }", "public ModuleParams() {\n }", "private LocalParameters() {\n\n\t}", "public FormDataManagement() {\n initComponents();\n }", "DataFormDefinitionParser() {\n super();\n }", "private void buildOtherParams() {\n\t\tmClient.putRequestParam(\"attrType\", \"1\");\r\n\t}", "protected void initialize() throws AspException\n {\n super.initialize();\n\n try {\n /* Check if this is a POST */\n if (!request.getMethod().equalsIgnoreCase(\"POST\"))\n {\n return;\n }\n /* Check if this is an understood content type */\n if (!request.getContentType().\n equalsIgnoreCase(\"application/x-www-form-urlencoded\")) {\n return;\n }\n int len = request.getContentLength();\n Reader in;\n Map htValues;\n try {\n in = request.getReader();\n htValues = ParseQueryString.parse(in, len);\n } catch (IOException ex) {\n throw new AspException(\"Input error: \" + ex);\n }\n Tools.convertToMultiValue(this, htValues, false);\n \n emptyValue = new Tools.MultiValue();\n } finally {\n setReadOnly();\n }\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n// params.put(\"ead_tokan\", AppConfig.EAD_TOKEN);\n// params.put(\"ead_email\", email);\n params.put(\"npl_token\", \"a\");\n params.put(\"npl_aid\", mediaId);\n params.put(\"npl_id\", userId);\n return params;\n }", "public Form(){ \n\t\tsuper(tag(Form.class)); \n\t}", "@Override\n protected Map<String, String> getParams()\n {\n Map<String, String> params = new HashMap<>();\n params.put(\"email\", email);\n params.put(\"password\", password);\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"email\", email);\n params.put(\"password\", password);\n\n return params;\n }", "public NewsParamPanel() {\n initComponents();\n titleAnalyzer.setFieldName(\"TITLE\");\n dateAnalyzer.setFieldName(\"DATE\");\n sourceExtractor.setFieldName(\"SOURCENAME\");\n authorExtractor.setFieldName(\"AUTHOR\");\n commentsExtractor.setFieldName(\"COMMENT_COUNT\");\n clicksExtractor.setFieldName(\"CLICK_COUNT\");\n transmitExtractor.setFieldName(\"TRANSMIT_COUNT\");\n summaryExtractor.setFieldName(\"SUMMARY\");\n chnlExtractor.setFieldName(\"CHANNEL\");\n contentExtractor.setFieldName(\"CONTENT\");\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", email);\n params.put(\"password\", password);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", email);\n params.put(\"password\", password);\n\n return params;\n }", "private WebRequest() {\n initFields();\n }", "public TransferOfFundsForm() {\n super();\n }", "public abstract FullResponse onServeFormParams(Map<String, List<String>> formParams);", "public void fillFromHttpRequest(HttpServletRequest req) {\n\t\tthis.id = prepareString(req.getParameter(\"id\"));\n\t\tthis.firstName = prepareString(req.getParameter(\"firstName\"));\n\t\tthis.lastName = prepareString(req.getParameter(\"lastName\"));\n\t\tthis.nick = prepareString(req.getParameter(\"nick\"));\n\t\tthis.email = prepareString(req.getParameter(\"email\"));\n\t\tthis.password = prepareString(req.getParameter(\"password\"));\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"fecha\", fecha);\n params.put(\"hInicio\", inicio);\n params.put(\"hFin\", fin);\n params.put(\"cantCompas\", cantidad);\n params.put(\"id\", id);\n params.put(\"correo\", correo);\n params.put(\"min\",m);\n return params;\n }", "public AuditFunctionForm() {\n initComponents();\n init();\n }", "@Override\n\tprotected void initParams() {\n\t\t\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"pasien\", pasien);\n\n return params;\n }", "private ValidatorForm(){}", "public IMRSelectForm() {\n }", "public void extractParameters() {\n\t\tString[] parameters = body.split(\"&\");\n\n\n\n\t\t//If there is a value given for every parameter, we extract them\n\t\tString[] huh = parameters[0].split(\"=\");\n\t\tif(huh.length>1) {\n\t\t\tusername = huh[1];\n\t\t}else{allParametersGiven=false;}\t\n\n\t\tString[] hoh = parameters[1].split(\"=\");\n\t\tif(hoh.length>1) {\n\t\t\tpassword = hoh[1];\n\t\t}else{allParametersGiven=false;}\n\n\t}", "public HttpPost() {\n super();\n parameters = new HashMap<>();\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"huruf\", huruf);\n params.put(\"derajat_lengan_x\", drajatX);\n params.put(\"derajat lengan_y\", drajatY);\n params.put(\"gambar\", gambar);\n\n return params;\n }", "public ExtractionParameters(){\n\t\tif (!subset){\n\t\t\tstartFrame = 1;\n\t\t}\n\t}", "public DISPPARAMS() {\n\t\t\tsuper();\n\t\t}", "@Override\n public ParameterDefinition newInstance(StaplerRequest req, JSONObject formData) throws hudson.model.Descriptor.FormException {\n if (req != null) {\n List<Ancestor> ancestors = req.getAncestors();\n AbstractProject<?, ?> project = null;\n for (Ancestor ancestor : ancestors) {\n Object object = ancestor.getObject();\n if (object instanceof AbstractProject<?, ?>) {\n project = (AbstractProject<?, ?>) object;\n break;\n }\n }\n this.project = project;\n }\n return super.newInstance(req, formData);\n }", "public BtxDetailsKcFormDefinition() {\n super();\n }", "public MechanicForm() {\n initComponents();\n }", "public FormProduct() {\n initComponents();\n getData();\n }", "@Override\n protected Map<String,String> getParams(){\n return postParameters;\n }", "Map<String, Object> getParameters();", "Map<String, Object> getParameters();", "public DisciplinaForm() {\n initComponents();\n }", "private void readForm() {\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"lapangan\", lapangan);\n params.put(\"jam\", jam);\n params.put(\"durasi\", durasi);\n\n return params;\n }", "public void initIstance(HttpServletRequest request) {\n \tname = request.getParameter(\"name\");\n priceMin = request.getParameter(\"priceMin\");\n priceMax = request.getParameter(\"priceMax\");\n code = request.getParameter(\"code\");\n description = request.getParameter(\"description\");\n String hiddenStr = request.getParameter(\"hidden\");\n hidden = hiddenStr != null;\n typeIdes = request.getParameterValues(\"type\");\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", email);\n params.put(\"token\", token);\n return params;\n }", "private FunctionParametersValidator() {}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"role\", String.valueOf(0));\n params.put(\"mobile\", input_user_mobile.getText().toString());\n params.put(\"password\", input_user_password.getText().toString());\n return params;\n }", "public CustomEntitiesTaskParameters() {}", "public FormReader(Logger logger, String query) {\r\n this.decode = false;\r\n this.logger = logger;\r\n this.stream = new ByteArrayInputStream(query.getBytes());\r\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"name\", cityNameInput.getText().toString());\n // volley will escape this for you\n playerName = playerNameInput.getText().toString();\n //params.put(\"randomFieldFilledWithAwkwardCharacters\", \"{{%stuffToBe Escaped/\");\n params.put(\"playerName\", playerNameInput.getText().toString());\n params.put(\"civilAmount\", civilAmountInput.getText().toString());\n params.put(\"mafiaAmount\", mafiaAmountInput.getText().toString());\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"reg_No\", regNo);\n params.put(\"manufacturer\", manufacture);\n params.put(\"model_Variant\", modelVar);\n params.put(\"PrevPolicyNo\", prevPolicyNo);\n params.put(\"mobile\", mobile);\n params.put(\"inspection_id\", pref.getInspectioID());\n\n Log.e(TAG, \"Posting params: \" + params.toString());\n\n return params;\n }", "protected void initialize() throws AspException\n {\n try {\n super.initialize();\n /* Parse out all of the param/value pairs */\n Map paramValues = Tools.parseQueryString(wholeString);\n Tools.convertToMultiValue(this, paramValues, true);\n } finally {\n setReadOnly();\n }\n }", "@Override\n protected Map<String, String> getParams() {\n\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"usercredentials\", usertext);\n params.put(\"userpassword\", password);\n\n return params;\n }", "public ValidFrequencyForm() {\r\n initComponents();\r\n }", "@Override\n protected Map<String, String> getParams() {\n return requestParams;\n }", "@Override\n protected Map<String, String> getParams() {\n return requestParams;\n }", "public ProfilsFIForm() {\r\n\t\tsuper();\r\n\t}", "public InquiryGrupomuscularRequest()\r\n\t{\r\n\r\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(AppConfig.USER_NAME, name);\n params.put(AppConfig.USER_LAST_NAME, lastname);\n params.put(AppConfig.USER_EMAIL, email);\n params.put(AppConfig.USER_PASSWORD, password);\n params.put(AppConfig.USER_TYPE, typeofuser);\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n int noofstudent = 2*Integer.parseInt(noofconflicts);\n String checkconflicts = \"jbscjas\";//send anything part\n String uid = AppController.getString(WingForm.this,\"Student_id\");\n Map<String, String> params = new LinkedHashMap<String, String>();\n //using LinkedHashmap because backend does not check key value and sees order of variables\n params.put(\"checkconflicts\", checkconflicts);\n params.put(\"noofstudent\", String.valueOf(noofstudent));\n for(int m=0;m<noofstudent;m++){\n params.put(\"sid[\"+m+\"]\",sid[m]);\n }\n\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"username\", username);\n params.put(\"password\", password);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams()\n {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"fullname\", fullName);\n\n\n\n\n return params;\n }", "protected ParameterList(){\n //title = t;\n //cellWorld = cw;\n }", "public Field(String watermark,\n String showfieldname,\n String saveRequired,\n String jfunction,\n String onChange,\n String onKeyDown,\n String defaultValue,\n String type,\n String sqlValue,\n String field_name,\n String relation,\n String states,\n String relationField,\n String onClickVList,\n String jIdList,\n String name,\n String searchRequired,\n String id,\n String placeholder,\n String value,\n String fieldType,\n String onclicksummary,\n String newRecord,\n List<Field> dListArray,\n List<OptionModel> mOptionsArrayList,\n String onclickrightbutton,\n String webSaveRequired,\n String field_type) {\n\n this.watermark = watermark;\n this.showfieldname = showfieldname;\n this.saveRequired = saveRequired;\n this.jfunction = jfunction;\n this.onChange = onChange;\n this.onKeyDown = onKeyDown;\n this.defaultValue = defaultValue;\n this.type = type;\n this.sqlValue = sqlValue;\n this.field_name = field_name;\n this.relation = relation;\n this.states = states;\n this.relationField = relationField;\n this.onClickVList = onClickVList;\n this.jIdList = jIdList;\n this.name = name;\n this.searchRequired = searchRequired;\n this.id = id;\n this.placeholder = placeholder;\n this.value = value;\n this.fieldType = fieldType;\n this.onclicksummary = onclicksummary;\n this.newRecord = newRecord;\n this.dListArray = dListArray;\n this.optionsArrayList = mOptionsArrayList;\n this.onclickrightbutton = onclickrightbutton;\n this.webSaveRequired = webSaveRequired;\n this.field_type = field_type;\n\n// this( watermark, showfieldname, saveRequired, jfunction,\n// onChange, onKeyDown, defaultValue, type, sqlValue,\n// field_name, relation, states, relationField,\n// onClickVList, jIdList, name, \"\",\n// searchRequired, id, placeholder, value,\n// fieldType, onclicksummary, newRecord, \"\",\n// dListArray,mOptionsArrayList,onclickrightbutton);\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Brand_Id\", Brand_Id);\n params.put(\"Brand_Name\", Brand_Name);\n params.put(\"description\", description);\n params.put(\"brand_status\",brand_status);\n params.put(\"reason\", reason);\n params.put(\"Creation_Date\", Creation_Date);\n params.put(\"Updated_Date\", Updated_Date);\n params.put(\"Admin_Id\", Admin_Id);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"usercredentials\", usertext);\n params.put(\"userpassword\", userphone);\n params.put(\"userudid\", \"asdfasdf3asdf32sadf3\");\n\n return params;\n }", "public StorageForm() {\n}", "Map<String, String> getParameters();", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", _phoneNo);\n params.put(\"token\", token);\n params.put(\"role\", String.valueOf(pref.getResposibility()));\n return params;\n }", "public AddItemViewParameters() {\n\t}", "public ParamJson() {\n\t\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", idb);\n params.put(\"correo\", correob);\n return params;\n }", "public TboFlightSearchRequest() {\n}", "public FormField(String variable) {\n this.variable = variable;\n }", "@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> parameters = new HashMap<String, String>();\n return parameters;\n }", "public Map getParameters();", "public void construct(){\n\t\tbuilder.buildPart1();\n\t\tbuilder.buildPart2();\n\t\tbuilder.retrieveResult();\n\t}", "public UserForm(){ }", "@Override\n protected Map<String, String> getParams() {\n\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"usercredentials\", usertext);\n\n return params;\n }", "public ListParameter()\r\n\t{\r\n\t}", "public RequestValues() {\n //mUserId = userId;\n }" ]
[ "0.6670237", "0.6440971", "0.6212806", "0.61834186", "0.61822504", "0.61556965", "0.61471456", "0.6128763", "0.6125471", "0.6119559", "0.6058502", "0.60465133", "0.59990203", "0.5976967", "0.59240973", "0.5919078", "0.5917714", "0.59126806", "0.59113353", "0.59071165", "0.58864087", "0.58436555", "0.58268297", "0.58140266", "0.5802667", "0.5802402", "0.5800848", "0.57918227", "0.5785502", "0.57771873", "0.5775026", "0.57705337", "0.5760301", "0.5742908", "0.57366574", "0.57337946", "0.57319283", "0.57319283", "0.57274896", "0.57270724", "0.57166433", "0.5703393", "0.5701102", "0.56848496", "0.5684339", "0.568113", "0.5675297", "0.5667859", "0.5661702", "0.56554526", "0.5655423", "0.56534994", "0.56523055", "0.56364703", "0.56204283", "0.5606285", "0.5602926", "0.5602233", "0.5585157", "0.5585157", "0.55817795", "0.5568916", "0.5568621", "0.5568546", "0.5568531", "0.55678463", "0.5566549", "0.556399", "0.5560851", "0.5560725", "0.5558533", "0.555557", "0.55540895", "0.55493647", "0.5545292", "0.5545292", "0.5543587", "0.55433816", "0.5542277", "0.5538471", "0.5535327", "0.5532866", "0.5529607", "0.55271584", "0.5516974", "0.5515953", "0.55155337", "0.55001956", "0.54993546", "0.54958844", "0.54935825", "0.54884714", "0.5486632", "0.54813135", "0.548082", "0.5480277", "0.54795736", "0.547859", "0.5470172", "0.54688555", "0.5467268" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws InterruptedException { WebDriver driver=new ChromeDriver(); driver.get("https://www.bluestone.com/"); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); driver.manage().window().maximize(); Actions action=new Actions(driver); WebElement alljew = driver.findElement(By.xpath("//nav[@class='wh-navbar']/ul//a[contains(text(),'All Jewellery ')]")); action.moveToElement(alljew).perform(); driver.findElement(By.xpath("//div[@class='wh-submenu-header']/following-sibling::ul//a[contains(text(),'Kadas')]")).click(); driver.findElement(By.xpath("//div[@class='inner pd-gray-bg']/div/div/a/img[@alt='The Udith Kada For Him']")).click(); String bang_size = driver.findElement(By.xpath("//select[@id='ringselect']/option[@value='04']")).getText(); System.out.println(bang_size); driver.findElement(By.xpath("//select[@id='ringselect']/option[@value='04']")).click(); driver.findElement(By.xpath("//input[@value='Buy Now']")).click(); Thread.sleep(1000); String bang_cartsize=driver.findElement(By.xpath("//div[@class='row line-separator']/div[2]")).getText(); String bang_cartsize1=bang_cartsize.replaceAll(":", ""); System.out.println(bang_cartsize1); if(bang_size.equals(bang_cartsize1)) { System.out.println("size are equal"); } else { System.out.println("size are not equal"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
This method displays the given quantity value on the screen.
private void displayQuantity(int number) { TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view); quantityTextView.setText("" + number); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayQuantity(int quantity) {\n final TextView quantityTextView = findViewById(R.id.quantity_text_view);\n quantityTextView.setText(String.valueOf(quantity));\n }", "private void displayQuantity() {\n Log.d(\"Method\", \"displayQuantity()\");\n TextView quantityTextView = (TextView) findViewById(\n R.id.quantity_text_view);\n\n quantityTextView.setText(String.format(Locale.getDefault(), \"%d\", coffeeCount));\n displayTotal();\n }", "private void displayQuantity(int quantityNumber) {\n TextView quantityTextView = findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + quantityNumber);\n }", "private void displayQuantity(int number) {\n TextView ob = findViewById(R.id.quantity_text_view);\n ob.setText(\"\"+number);\n }", "private void displayQuantity(int number) {\n TextView quantityTextView = findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void displayQuantity(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(String.valueOf(number));\n //quantityTextView.setText(new Integer(number).toString());\n }", "private void displayQuantity(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(number);\n }", "private void displayQuantity(int number) {\n TextView quantityTextView = (TextView) findViewById(\n R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void displayQuantity(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\"+ number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(String.format(\"%d\", number));\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(\n R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number)\n {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView)\n findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n\n }", "void printTotalQuantity();", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n\n }", "private void display(int number) {\r\n TextView quantity_txt = (TextView) findViewById(R.id.quantity_textview);\r\n quantity_txt.setText(\"\" + number);\r\n }", "void printQuantity(Quantity iQuantity)\n {\n System.out.println(iQuantity.getElementValue());\n }", "private void display(int number) {\n TextView quantityText = findViewById(R.id.textCups);\n quantityText.setText(\"\" + number);\n }", "private void displayQuantity(int numOfCoffeee) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + numOfCoffeee);\n }", "BigDecimal getDisplayQuantity();", "public void display() {\n \t\tSystem.out.printf(\"|%6s \", String.valueOf(idNumber));\n\t\tSystem.out.printf(\"|%13s |\", name);\n\t\tSystem.out.printf(\"%10s |\", quantity);\n\t\tSystem.out.printf(\"%8.2f |\", price);\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.println();\n }", "private void display(int number){\n TextView quantTV = (TextView) findViewById(R.id.quant_tv);\n quantTV.setText(\"\"+ number);\n }", "void setQuantity(int quantity) {\n mQuantityTextView.setText(String.valueOf(quantity));\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "private void displayquintity(int numberOFCoffee){\n TextView quintityText= findViewById(R.id.quantity_text_view);\n quintityText.setText(\"\"+numberOFCoffee);\n\n }", "public void setQuantity(float value) {\n this.quantity = value;\n }", "@Override\n public String toString() {\n String output = quantity + \" x \" + product;\n\n return output;\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.minute_text_view);\n quantityTextView.setText(\"\" + number);\n\n }", "String getQuantity() {\n return Integer.toString(quantity);\n }", "private void displayQuantity(int numberOfCoffees) {\n TextView quantityTextView = (TextView) findViewById(\n R.id.quantity_text_view);\n quantityTextView.setText(\"\" + numberOfCoffees);\n }", "public void setQuantity(int quantity) {\r\n this.quantity = quantity;\r\n }", "void setDisplayQuantity(BigDecimal inDisplayQuantity);", "public void setQuantity(int quantity) {\n this.quantity = quantity;\n }", "public void setQuantity(int quantity) {\n this.quantity = quantity;\n }", "public void printOrderItem(){\r\n\t\tSystem.out.print(this.quantity+\" x \"+this.menuItem.getName()+\" ---- \");\r\n\t\tSystem.out.printf(\"$%.2f\\n\",this.calculatePrice());\r\n\t}", "public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }", "public void setQuantity(String quantity) {\n this.quantity = quantity;\n }", "public void setQuantity(Integer quantity) {\r\n this.quantity = quantity;\r\n }", "public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }", "public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }", "public String getQuantity() {\n return quantity;\n }", "public void setQuantity(int quantity) {\r\n\t\tthis.quantity = quantity;\r\n\t}", "public void setQuantity(Float quantity) {\n this.quantity = quantity;\n }", "public void setQuantity(int quantity)\n\t{\n\t\tthis.quantity = quantity;\n\t}", "public void submitOrder(int quantity) {\n display(quantity);\n displayPrice(quantity * pintPrice);\n }", "public static String formatQuantity(int quantity) {\n return formatQuantity((double) quantity);\n }", "private void displayPrice(int number) {\n }", "public void setQuantity(int quantity) {\n\t\tthis.quantity = quantity;\n\t}", "public String asText() {\n String quantityStr;\n\n // we don't want to display decimal digits for int values (6.0 TBSP)\n // so check if quantity is int (check rounded-down value of quantity is the same as quantity)\n if (Math.floor(quantity) == quantity) {\n // quantity can be display as int\n quantityStr = String.valueOf(Math.round(quantity));\n } else {\n // quantity should be double\n quantityStr = String.valueOf(quantity);\n }\n\n return name + \" (\" + quantityStr + \" \" + measureUnit + \")\";\n }", "private void printCheckItemQuantityMenu(Shop shop) {\n System.out.println(\"What is the ID of the tool you would like to look up?\");\n int itemId = receiveNumberInput();\n if (shop.searchInventory(itemId)) {\n System.out.println(\"Quantity: \" + shop.checkToolStock(itemId));\n } else {\n System.out.println(\"Tool does not exist or invalid input, please check spelling and try again.\");\n }\n }", "public void submitOrder() {\n int price = quantity*5;\n displayPrice(price);\n }", "public void incQty() {\n b.qty.setText(\"\" + ++qty);\n\n }", "public void addQuantity()\n {\n int quantity = Integer.parseInt(quantityTextField.getText());\n quantity++;\n quantityTextField.setText(\"\" + quantity);\n\n changeSubtotalTextField();\n }", "public void display()\r\n\t{\r\n\t\tSystem.out.println(\"Dollar: $\"+getAmount());\r\n\t\tSystem.out.println(\"Rupiah: Rp.\"+dollarTorp());\r\n\t}", "public void increaseQuantity (View view){\n if(quantity == 100){\n Toast.makeText(this, \"You cannot order more than 100 coffee\", Toast.LENGTH_SHORT).show();\n return;\n }\n quantity = quantity + 1;\n displayQuantity(quantity);\n }", "public float getQuantity() {\n return quantity;\n }", "@Override\n public String toString() {\n return product.toString() + \", Quantity: \" + quantity;\n }", "@Override\r\n public void ItemQuantity(int quantity) {\n this.quantity = quantity;\r\n }", "public void setQuantity(int qty) {\r\n\t\tthis.quantity = qty;\r\n\t}", "public void printCost() {\r\n double cost;\r\n cost = quantity * price;\r\n System.out.printf(\"Total cost = $%.2f\", cost);\r\n }", "public void showProducts() {\n\t\t\tfor(int i = 0; i < products.size(); i++) {\n\t\t\t\tif(products.get(i).quantity > 0) {\n\t\t\t\t\tSystem.out.println(alphabet.substring(i, i+1).toUpperCase() + \") \" + products.get(i).toString());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tproducts.remove(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tquantity++;\r\n\t\t\tquantityText.setText(\"\" + quantity);\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (quantity > 0) {\r\n\t\t\t\t\tquantity--;\r\n\t\t\t\t\tquantityText.setText(\"\" + quantity);\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "public void display() {\r\n System.out.println(\" Cart Information \" + System.lineSeparator() +\r\n \"=========================\" + System.lineSeparator() +\r\n \"Customer ID: \" + getCustID() + System.lineSeparator() + \r\n \"Cart Total: \" + getTotal()+ System.lineSeparator());\r\n items.display();\r\n }", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n total = total * amount3;\n String.valueOf(total);\n //displaying what user chose\n JOptionPane.showMessageDialog(null, total + \" seconds \" + nameItem +\" \"+ amount3 );\n }", "public static String formatQuantity(Integer quantity) {\n if (quantity == null)\n return \"\";\n else\n return formatQuantity(quantity.doubleValue());\n }", "public void setQuantity(int quantity) {\r\n if (quantity >= 0) {\r\n this.quantity = quantity;\r\n }\r\n else {\r\n System.out.print(\"Sorry no negative quantities -- setting to 1\");\r\n this.quantity = 1;\r\n }\r\n }", "@Override\n\tpublic String toString()\n\t{\n\t\tint qty = quantity;\n\n\t\tif ( qty > 999 )\n\t\t\tqty = 999;\n\n\t\treturn Utility.pad(title, TITLE_LENGTH) + ' ' + Utility.pad(qty, QUANTITY_LENGTH) + ' ' + status.getCode() + ' ' + Utility.pad(price, PRICE_LENGTH);\n\t}", "public void increment(View view) {\n quantity = quantity + 1;\n display(quantity);\n\n }", "public void increment(View view) {\n quantity = quantity + 1;\n display(quantity);\n\n }", "public int getQuantity() {\r\n return quantity;\r\n }", "public double getQuantity() {\n return quantity;\n }", "public void increament(View view) {\n if(!(quantity>=100)) {\n quantity++;\n display(quantity);\n }\n }", "public Float getQuantity() {\n return quantity;\n }", "public void show() {\n super.show(color, value.toString());\n }", "private void quantityActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public int getQuantity() {\r\n return quantity;\r\n }", "public void setQuantity(int quantity) {\n this.quantity = quantity;\n this.updateTotalPrice();\n }", "@Override\r\n\tpublic void display() {\n\t\tSystem.out.println(\"Discount Code: \" + discode);\r\n\t\tSystem.out.println(\"Group Size: \" + groupsize);\r\n\t\t\r\n\t}", "public void setQuantity(Long quantity) {\r\n this.quantity = quantity;\r\n }", "public void showValor() {\n String out = new String();\n this.setText(Integer.toString(valor));\n }", "public int getQuantity()\n {\n return quantity;\n }", "public int getQuantity() {\r\n return quantity;\r\n }", "public void setQuantity(Long quantity) {\n this.quantity = quantity;\n }", "public Integer getQuantity() {\n return this.quantity;\n }", "public Integer getQuantity() {\n return quantity;\n }", "public Integer getQuantity() {\n return quantity;\n }", "public void submitOrder(View view){\n int price = quant*5;\n String priceMsg = \"Total: $\" + price +\"\\nThank you!\";\n displayMessage(priceMsg);\n }", "protected void increment(View view){\r\n\r\n if (quantity==99){\r\n return;\r\n }\r\n quantity++;\r\n display(quantity);\r\n }", "private void display(int key, String value)\n {\n System.out.println(\"Value for id \" + key + \": \" + value);\n }", "public int getQuantity() {\n return quantity;\n }" ]
[ "0.8213166", "0.77711684", "0.76877743", "0.7662449", "0.76077026", "0.75838345", "0.75393534", "0.7531525", "0.74963754", "0.73660475", "0.73062533", "0.730518", "0.730518", "0.730518", "0.730518", "0.730518", "0.730518", "0.730518", "0.72967106", "0.72941256", "0.72941005", "0.7285573", "0.7280236", "0.72365487", "0.71914005", "0.71198004", "0.6994267", "0.6964959", "0.6940356", "0.6913364", "0.6900461", "0.6900461", "0.6900461", "0.68776", "0.6803052", "0.6776666", "0.6770069", "0.6751116", "0.66636825", "0.66288346", "0.66266364", "0.6593947", "0.6593947", "0.65885377", "0.65845084", "0.6577237", "0.65548205", "0.654062", "0.654062", "0.65260404", "0.65236574", "0.6517852", "0.6502968", "0.6492926", "0.64799434", "0.6442976", "0.64194083", "0.64132017", "0.63776505", "0.6376244", "0.63532203", "0.6329494", "0.63237375", "0.63159907", "0.62881327", "0.6274794", "0.6273292", "0.62716436", "0.6259078", "0.6252833", "0.6252445", "0.62384564", "0.6211893", "0.61871225", "0.61860365", "0.61714715", "0.616654", "0.6143621", "0.6143621", "0.6136463", "0.6123222", "0.61214507", "0.6117343", "0.6108407", "0.61006755", "0.6093419", "0.6075175", "0.6068499", "0.6067223", "0.6063247", "0.60616606", "0.6060377", "0.6056178", "0.60553265", "0.60542536", "0.60542536", "0.6052427", "0.6047752", "0.60392255", "0.6025482" ]
0.75173247
8
TextView priceTextView = (TextView) findViewById(R.id.order_summary_text_view); priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));
private void displayPrice(int number) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayPrice(int number) {\n TextView priceTextView = findViewById(R.id.textPrice);\n// priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n priceTextView.setText(\"KES \" + number);\n }", "private void displayPrice(int number) {\n TextView priceTextView = (TextView) findViewById(R.id.order_summary_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n }", "private void displayPrice(int number){\n TextView priceTV = (TextView) findViewById(R.id.price_tv);\n priceTV.setText(NumberFormat.getCurrencyInstance().format(number));\n }", "private void displayPrice(double number) {\n TextView priceTextView = (TextView) findViewById(R.id.price_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n\n }", "private void displayPrice(int number) {\n TextView priceTextView = (TextView) findViewById(R.id.price_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance(Locale.getDefault()).format(number));\n\n }", "private void displayPrice(int number) {\n TextView priceTextView = (TextView) findViewById(R.id.price_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n }", "@TargetApi(Build.VERSION_CODES.N)\n private void displayPrice(int number) {\n TextView priceTextView = (TextView)\n findViewById(R.id.price_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n\n }", "private void displayTotal() {\n Log.d(\"Method\", \"displayTotal()\");\n\n TextView priceTextView = (TextView) findViewById(\n R.id.price_text_view);\n\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(calculateTotal()));\n }", "private String displayOrder(int number) {\n TextView priceTextView = (TextView) findViewById(R.id.order_summary_text_view);\n EditText myNameText = (EditText) findViewById(R.id.enter_name_view);\n myName = myNameText.getText().toString();\n\n String message = \"Name: \" + myName + \"\\n\" +\n \"Add whipped cream? \" + myCheckedStateWhipped + \"\\n\"+\n \"Add chocolate? \" + myCheckedStateChocolate + \"\\n\"+\n \"Quantity: \" + myQuantity + \"\\n\" +\n \"Total: \" + NumberFormat.getCurrencyInstance().format(number) +\"\\n\";\n priceTextView.setText(message);\n\n return message;\n }", "private void display(int number){\n TextView quantTV = (TextView) findViewById(R.id.quant_tv);\n quantTV.setText(\"\"+ number);\n }", "private void displayQuantity(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(String.valueOf(number));\n //quantityTextView.setText(new Integer(number).toString());\n }", "@Override\n\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == Activity.RESULT_OK && requestCode == 0) {\n Bundle extras = data.getExtras();\n value = extras.getString(\"value\");\n cost_btn.setText(DecimalFormat.getCurrencyInstance().format(Double.parseDouble(value)));\n }\n }", "private void displayQuantity(int number) {\n TextView ob = findViewById(R.id.quantity_text_view);\n ob.setText(\"\"+number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n\n }", "private void display(int number)\n {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(String.format(\"%d\", number));\n }", "private void display(int number) {\r\n TextView quantity_txt = (TextView) findViewById(R.id.quantity_textview);\r\n quantity_txt.setText(\"\" + number);\r\n }", "private void onBasketTotalChanged(String total){\n binding.textViewTotalValue.setText(String.format(\"$%s\", total));\n }", "private void displayQuantity(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\"+ number);\n }", "private void displayquintity(int numberOFCoffee){\n TextView quintityText= findViewById(R.id.quantity_text_view);\n quintityText.setText(\"\"+numberOFCoffee);\n\n }", "private void displayQuantity() {\n Log.d(\"Method\", \"displayQuantity()\");\n TextView quantityTextView = (TextView) findViewById(\n R.id.quantity_text_view);\n\n quantityTextView.setText(String.format(Locale.getDefault(), \"%d\", coffeeCount));\n displayTotal();\n }", "private void displayQuantity(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityText = findViewById(R.id.textCups);\n quantityText.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView)\n findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n\n }", "private void displayQuantity(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void displayQuantity(int number) {\n TextView quantityTextView = findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private View createCurrency() {\r\n\t\tTextView t = new TextView(getContext());\r\n\t\tLayoutParams blp = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT);\r\n\t\tblp.leftMargin = 5;\r\n\t\tt.setLayoutParams(blp);\r\n\r\n\t\tif (account.getCurrency().length() > 3) {\r\n\t\t\tt.setText(account.getCurrency().substring(3));\r\n\t\t} else {\r\n\t\t\tt.setText(account.getCurrency());\r\n\t\t}\r\n\t\tt.setTextSize(16);\r\n\t\tTypeface font = CurrencyUtil.currencyFace;\r\n\t\tt.setTypeface(font);\r\n\t\tif (account.getBalance() < 0) {\r\n\t\t\tt.setTextColor(getContext().getResources().getColor(R.color.negative));\r\n\t\t} else {\r\n\t\t\tt.setTextColor(getContext().getResources().getColor(R.color.positive));\r\n\t\t}\r\n\t\treturn t;\r\n\t}", "private void displayQuantity(int number) {\n TextView quantityTextView = (TextView) findViewById(\n R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(\n R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }", "public void calculateAmount() {\n totalAmount = kurv.calculateTotalAmount() + \" DKK\";\n headerPrice.setText(totalAmount);\n }", "private String formatUsNumber(Editable text) {\n\t\tStringBuilder cashAmountBuilder = null;\n\t\tString USCurrencyFormat = text.toString();\n//\t\tif (!text.toString().matches(\"^\\\\$(\\\\d{1,3}(\\\\,\\\\d{3})*|(\\\\d+))(\\\\.\\\\d{2})?$\")) { \n\t\t\tString userInput = \"\" + text.toString().replaceAll(\"[^\\\\d]\", \"\");\n\t\t\tcashAmountBuilder = new StringBuilder(userInput);\n\n\t\t\twhile (cashAmountBuilder.length() > 3 && cashAmountBuilder.charAt(0) == '0') {\n\t\t\t\tcashAmountBuilder.deleteCharAt(0);\n\t\t\t}\n\t\t\twhile (cashAmountBuilder.length() < 3) {\n\t\t\t\tcashAmountBuilder.insert(0, '0');\n\t\t\t}\n\t\t\tcashAmountBuilder.insert(cashAmountBuilder.length() - 2, '.');\n\t\t\tUSCurrencyFormat = cashAmountBuilder.toString();\n\t\t\tUSCurrencyFormat = Util.getdoubleUSPriceFormat(Double.parseDouble(USCurrencyFormat));\n\n//\t\t}\n\t\tif(\"0.00\".equals(USCurrencyFormat)){\n\t\t\treturn \"\";\n\t\t}\n\t\tif(!USCurrencyFormat.contains(\"$\"))\n\t\t\treturn \"$\"+USCurrencyFormat;\n\t\treturn USCurrencyFormat;\n\t}", "private void displayMessage(String message) {\n TextView priceTextView = (TextView) findViewById(R.id.price_tv);\n priceTextView.setText(message);\n }", "private void displayQuantity(int numOfCoffeee) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + numOfCoffeee);\n }", "public void addCart(View view) {\n TextView textView = findViewById(R.id.price_total2);\n double price = Double.parseDouble(textView.getText().toString().replace(\"$\", \"\"));\n String text = \"$\" + String.valueOf(++price);\n textView.setText(text);\n Log.i(TAG, \"Value Successfully Increased! :\" /**+ ++i**/);\n }", "private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.minute_text_view);\n quantityTextView.setText(\"\" + number);\n\n }", "public void tvqTax() {\n TextView tvqView = findViewById(R.id.checkoutPage_TVQtaxValue);\n tvqTaxTotal = beforeTaxTotal * 0.09975;\n tvqView.setText(String.format(\"$%.2f\", tvqTaxTotal));\n }", "public void calculate(View v) {\n EditText inputBill = findViewById(R.id.inputBill);\n EditText inputTipPercent = findViewById(R.id.inputTipPercent);\n String num1Str = inputBill.getText().toString();\n String num2Str = inputTipPercent.getText().toString();\n\n // multiply Bill by Tip to get Tip in dollars\n double num1 = Double.parseDouble(num1Str);\n double num2 = Double.parseDouble(num2Str);\n double tipInDollar = num1 * (num2 / 100);\n double total = num1 + tipInDollar;\n\n // show tip in dollars\n TextView lblTipAmount = findViewById(R.id.lblTipAmount);\n lblTipAmount.setText(String.valueOf(tipInDollar));\n\n // show total price with tip included\n TextView lblTotalAmount = findViewById(R.id.lblTotalAmount);\n lblTotalAmount.setText(String.valueOf(total));\n }", "public void onButtonClick(View v) {\n total += value;\n TextView myTextView = (TextView) //displays total\n findViewById(R.id.textView);\n myTextView.setText(Double.toString(round(total,2)));\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tEditText getAmount = (EditText) findViewById(com.prageeth.con.R.id.editText3);\n\t\t\t\tgetAmount.setTypeface(tf);\n\t\t\t\tString aa = getAmount.getText().toString();\n\t\t\t\tif (getAmount.getText().toString().length() < 1) {\n\t\t\t\t\tToast.makeText(main, \"ドル量を入力してください\", Toast.LENGTH_LONG)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t} else {\n\n\t\t\t\t\tTextView tsetRae = (TextView) findViewById(com.prageeth.con.R.id.textView3);\n\t\t\t\t\tString ss = tsetRae.getText().toString();\n\n\t\t\t\t\tTextView tsetRaed = (TextView) findViewById(com.prageeth.con.R.id.textView2);\n\t\t\t\t\tString sss = tsetRaed.getText().toString();\n\n\t\t\t\t\tdouble i = Double.parseDouble(aa);\n\t\t\t\t\tdouble rate = Double.parseDouble(ss);\n\t\t\t\t\tdouble totals = i * rate;\n\t\t\t\t\tDecimalFormat df = new DecimalFormat(\"#\");\n\t\t\t\t\tdf.setMaximumFractionDigits(2);\n\n\t\t\t\t\t// TextView c = (TextView)\n\t\t\t\t\t// findViewById(com.prageeth.con.R.id.textView5);\n\t\t\t\t\t// c.setText(String.valueOf(df.format(totals))+\" \"+sss);\n\t\t\t\t\t// c.setTypeface(tf);\n\n\t\t\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(main)\n\t\t\t\t\t\t\t.create(); // Read Update\n\t\t\t\t\talertDialog.setTitle(\"USD:\" + aa + \"=\");\n\t\t\t\t\talertDialog.setMessage(df.format(totals) + \" \" + sss);\n\n\t\t\t\t\talertDialog.setButton(\"OK\",\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t// here you can add functions\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\talertDialog.show();\n\n\t\t\t\t}\n\t\t\t}", "public void getTip(View v)\n {\n EditText billEditText = (EditText) findViewById(R.id.billEditText);\n EditText percentEditText = (EditText) findViewById(R.id.percentEditText);\n TextView tipTextView = (TextView) findViewById(R.id.tipTextView);\n TextView totalTextView = (TextView) findViewById(R.id.totalTextView);\n\n //get the values from the EditText boxes and convert them to double data types\n double bill = Double.parseDouble(billEditText.getText().toString());\n double percent = Double.parseDouble(percentEditText.getText().toString());\n //double total = Double.parseDouble(totalTextView.getText().toString());\n\n //calculate tip\n percent = percent/100;\n double tip = bill*percent;\n double total = bill + tip;\n\n tipTextView.setText(\"Tip: \" + tip);\n totalTextView.setText(\"Total: \" + total);\n\n\n\n\n }", "public void calculateTip(View view) {\n\t\tTextView txtErrorMsg = (TextView) findViewById(R.id.txtErrorMsg);\n\t\ttxtErrorMsg.setVisibility(View.GONE);\n\t\tEditText edtBillAmount = (EditText) findViewById(R.id.edtBillAmount);\n\t\ttry{\n\t\t\tdouble amount = Double.parseDouble(edtBillAmount.getText().toString());\n\t\t\tCheckBox chkRound = (CheckBox) findViewById(R.id.chkRound);\n\t\t\tboolean round = chkRound.isChecked();\n\t\t\tTextView txtTipResult = (TextView) findViewById(R.id.txtTipResult);\n\t\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\t\tString tipResult = round? Integer.toString((int)Math.round(amount*0.12)): df.format(amount*0.12);\n\t\t\ttxtTipResult.setText(\"Tip: \" + tipResult+\"$\");\n\t\t}\n\t\tcatch (Exception e){\n\t\t\ttxtErrorMsg.setVisibility(View.VISIBLE);\n\t\t\t}\n\t}", "@Override\n public void onClick(View v) {\n int soluong = 0;\n try {\n soluong = Integer.parseInt(edittext.getText().toString()\n .replace(\",\", StringConst.EMPTY));\n } catch (Exception e) {\n // TODO: handle exception\n }\n if (tradeplace != null) {\n switch (tradeplace) {\n case StockItem.HOSE:\n soluong -= 10;\n if (soluong >= 0) {\n edittext.setText(String.valueOf(soluong));\n }\n break;\n case StockItem.HNX:\n soluong -= 100;\n if (soluong >= 0) {\n edittext.setText(String.valueOf(soluong));\n }\n break;\n case StockItem.UPCOM:\n soluong -= 100;\n if (soluong >= 0) {\n edittext.setText(String.valueOf(soluong));\n }\n break;\n\n default:\n break;\n }\n }\n\n }", "public void tpsTax() {\n TextView tpsView = findViewById(R.id.checkoutPage_TPStaxValue);\n tpsTaxTotal = beforeTaxTotal * 0.05;\n tpsView.setText(String.format(\"$%.2f\", tpsTaxTotal));\n }", "private void displayQuantity(int quantityNumber) {\n TextView quantityTextView = findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + quantityNumber);\n }", "private static String convertToFormat(int number) {\n int cents = number%100;\n number /= 100;\n return \"$\" + String.valueOf(number) + \".\" + String.valueOf(cents);\n }", "public void convert(View v){\n EditText etUSD = findViewById(R.id.etUSD);\n EditText etLKR = findViewById(R.id.etLKR);\n\n //Get text From usd TextField\n String text= etUSD.getText().toString();\n //Convert Text To Double\n double usd = Double.parseDouble(text);\n\n // Convert to LKR\n double lkr = usd*195;\n //convert double to string\n String lkrText = String.valueOf(lkr);\n\n //Set lkrTest Value to Test Field\n etLKR.setText(lkrText);\n\n\n\n }", "@Override\n public void onBindViewHolder(final View_Holder holder, final int position) {\n String cleanString = list.get(position).viewAll.replaceAll(\"[£,.]\", \"\");\n\n //format price\n double parsed = Double.parseDouble(cleanString);\n String formatted = NumberFormat.getCurrencyInstance().format((parsed/1000));\n\n //Use the provided View Holder on the onCreateViewHolder method to populate the current row on the RecyclerView\n holder.day.setText(list.get(position).day);\n holder.viewAll.setText(formatted);\n }", "public void calcular(View view) {\n int quilos = Integer.valueOf(editTextQuantidade.getText().toString());\n int total = (quilos *1000)/500;\n \n String message = \"Com \" + quilos + \"kg de chocolate da para fazer \" + total + \" ovos de 500g.\";\n textViewTotal.setText(message);\n }", "public String getPriceString() {\n\t\treturn Utils.formatCurrencyNumber(price);//Double.toString(price.doubleValue()); //price.toString();\n\t}", "public void submitOrder(View view){\n int price = quant*5;\n String priceMsg = \"Total: $\" + price +\"\\nThank you!\";\n displayMessage(priceMsg);\n }", "public void updatePrice(){\n\t\tprice = 0;\n\t\tfor (ParseObject selectedItem : selectedItems){\n\t\t\tprice += selectedItem.getInt(\"price\");\n\t\t}\n\n\t\tTextView orderTotal = (TextView) findViewById(R.id.orderTotal);\n\t\torderTotal.setText(\"$\" + price + \".00\");\n\t}", "@Override\n\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n\t\t\ttry{\n\t\t\t\tbillAmount = Double.parseDouble(s.toString()) / 100.0;\n\t\t\t}\n\t\t\tcatch(NumberFormatException e)\n\t\t\t{\n\t\t\t\tbillAmount = 0.0;\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tamountDisplayTextView.setText(currencyFormat.format(billAmount));\n\t\t\tupdateStandard();\n\t\t\tupdateCustom();\n\t\t}", "private void display() {\n TextView textview = (TextView) findViewById(R.id.textView);\n EditText editText = (EditText) findViewById(R.id.editNumber) ;\n textview.setText(\"TEXT\");\n editText.setText(\"\");\n\n }", "public void totalPrice(){\n int total = 0;\n\n if (list_order.isEmpty()) {\n totalHarga.setText(\"Rp. \" + 0);\n }\n else {\n for (int i = 0; i < list_order.size(); i++) {\n total += list_order.get(i).getHarga();\n }\n totalHarga.setText(\"Rp. \" + total);\n }\n }", "public String CurrencyFormatter(double val) {\n\n\n NumberFormat nf = NumberFormat.getCurrencyInstance();\n DecimalFormatSymbols decimalFormatSymbols = ((DecimalFormat) nf).getDecimalFormatSymbols();\n decimalFormatSymbols.setCurrencySymbol(\"\");\n ((DecimalFormat) nf).setDecimalFormatSymbols(decimalFormatSymbols);\n String ft=nf.format(val).trim();\n return ft;\n\n }", "public void button0OnClick(View view){ display.setText(display.getText()+ \"0\");}", "void displayScore(){\n\t\tTextView yourScore = (TextView) findViewById (R.id.yourscore); \n String currentScoreText;\n currentScoreText = Integer.toString(currentScore);\n\t\tyourScore.setText(currentScoreText);\n\t\t\n\t}", "public void getPrice(){\n System.out.println(\"Price: $\" + price); \n }", "private String getFormattedPrice(double unformattedPrice) {\n String formattedData = String.format(\"%.02f\", unformattedPrice);\n return formattedData;\n }", "public String getPriceVal() {\n return price.getText().toString().length() == 0 ? \"0\" : price.getText().toString();\n }", "@Override\n public void onClick(View view) {\n helper.increaseQty(item);\n holder.mQuantity.setText(String.valueOf(String.valueOf(helper.getQuantityFromTable(item))));\n holder.mPrice.setText(\"$\" + getNewPrice(item, holder));\n// holder.mTotal.setText(\"$\"+total);\n\n }", "String getPrice() {\n return Double.toString(price);\n }", "@Override\n\tpublic void modifyView(TipCalcModel tipCalcModel) {\n\t\t\tDecimalFormat dFormat=new DecimalFormat(\"#.##\");\n\t\t\tTipCalcView.getInstance().totalTip.setText(String.valueOf(dFormat.format(tipCalcModel.getTotalTip())));\n\t\t\tTipCalcView.getInstance().totalBill.setText(String.valueOf(dFormat.format(tipCalcModel.getTotalBill())));\n\t\t\t\n\t\t\n\t\t\n\t}", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n double amount= mDataset.get(position).Amount;\n String am=String.format(\"%.2f\",amount);\n\n holder.mAmount.setText(\"\"+am);\n\n double balance= mDataset.get(position).Balance;\n String bal=String.format(\"%.2f\",balance);\n\n holder.mBalance.setText(\"\"+bal);\n\n\n String description=mDataset.get(position).Description;\n if(!description.isEmpty()){\n holder.mDescription.setText(\"\"+description);\n }\n\n\n Date date= mDataset.get(position).Date;\n if(date!=null) {\n holder.mAmount.setText(\"\"+date.toString());\n }\n }", "public void upgradeClick(View v) {\n if((total - value*1.3) >= 0) { //checks if you have enough money for upgrades\n total -= value*1.3;\n value++;\n TextView TextValue = (TextView) //displays value per click\n findViewById(R.id.TextValue);\n TextValue.setText(Integer.toString(value));\n\n\n TextView myTextView = (TextView)\n findViewById(R.id.textView);\n myTextView.setText(Double.toString(round(total,2)));\n }\n }", "public void submitOrder(View view) {\n\n String priceMesage = \"Amount due R\" + price;\n displayMessage(priceMesage);\n }", "private void displayQuantity(int numberOfCoffees) {\n TextView quantityTextView = (TextView) findViewById(\n R.id.quantity_text_view);\n quantityTextView.setText(\"\" + numberOfCoffees);\n }", "private void displayQuantity(int quantity) {\n final TextView quantityTextView = findViewById(R.id.quantity_text_view);\n quantityTextView.setText(String.valueOf(quantity));\n }", "private void updateCardBalanceUI() {\n exactAmount.setText(decimalFormat.format(cardBalance));\n }", "public void displayMessage() {\n TextView priceSummaryTextView = (TextView) findViewById(R.id.price_summary_text_view);\n priceSummaryTextView.setText(\"ORDER SUMMARY\");\n\n int toppingsCost = 0;\n int whippedCreamCost = 1;\n int chocolateToppingsCost = 2;\n String whippedCream = \"No\";\n String chocolate = \"No\";\n\n CheckBox firstToppings = (CheckBox) findViewById(R.id.checkbox1);\n CheckBox secondToppings = (CheckBox) findViewById(R.id.checkbox2);\n EditText name = (EditText) findViewById(R.id.text_field);\n\n if (firstToppings.isChecked()) {\n\n whippedCream = \"Yes\";\n toppingsCost = toppingsCost + whippedCreamCost;\n\n\n }\n\n\n if (secondToppings.isChecked()) {\n\n chocolate = \"Yes\";\n toppingsCost = toppingsCost + chocolateToppingsCost;\n\n\n }\n\n\n TextView priceTextView = (TextView) findViewById(R.id.price_text_view);\n priceTextView.setText(\"Order placed ! Here's your order summary:\" + \"\\n\" + \"\\n\" + \"\\nName: \" + name.getText().toString() + \"\\n\" + \"\\nNumber of Coffees: \" + numOfCoffees + \"\\n\" + \"\\nAdd whipped cream ? \" + whippedCream + \"\\n\" + \"\\nAdd chocolate ? \" + chocolate + \"\\n\" + \"\\nTotal amount: $\" + (numOfCoffees * (5 + toppingsCost)) + \"\\n\" + \"\\n\" +\n \"\\nThank you and enjoy your coffee! :)\");\n\n }", "private void updatePriceView() {\n int subTotal = 0;\n int cartQuantity = 0;\n int calculatedDiscount = 0;\n\n DecimalFormat decimalFormatter = new DecimalFormat(\"₹#,##,###.##\");\n\n for (CartItem cartItem : cartList) {\n cartQuantity += cartItem.getQuantity();\n subTotal += cartItem.getQuantity() * cartItem.getPrice();\n }\n\n switch (discountType) {\n case AMOUNT:\n calculatedDiscount = discount;\n break;\n case PERCENTAGE:\n calculatedDiscount = (subTotal * discount) / 100;\n break;\n }\n\n subTotalView.setText(decimalFormatter.format(subTotal));\n\n String count = \"(\" + cartQuantity;\n\n if (cartQuantity < 2) {\n count += \" Item)\";\n } else {\n count += \" Items)\";\n }\n\n textNumberItems.setText(count);\n discountView.setText(decimalFormatter.format(calculatedDiscount));\n total = subTotal - calculatedDiscount;\n totalView.setText(decimalFormatter.format(total));\n updateCartNotification(cartQuantity);\n }", "@Override\n\tpublic String showPrice() {\n\t\treturn \"煎饼的价格是5元 \";\n\t}", "protected void calculate(View view ){\n EditText input =(EditText) findViewById(R.id.editText );\n TextView output =(TextView) findViewById(R.id.textViewoutput);\n //process data..\n int base=Integer.valueOf(input.getText().toString());\n int result=base*base;\n String formatedResult=String.format(\"%d\",result);\n //output the result\n output.setText(\"Result:\"+ formatedResult);\n\n\n }", "public void updateTotalPrice(){\n\t\tBigDecimal discount = currentOrder.getDiscount();\n\t\tBigDecimal subtotal = currentOrder.getSubtotal();\n\t\tthis.subtotal.text.setText(CURR+subtotal.add(discount).toString());\n\t\tthis.discount.text.setText(CURR + discount.toString());\n\t\tthis.toPay.text.setText(CURR+subtotal.toString());\n\t}", "@Override\r\n public void onClick(View v) {\r\n txtOrder.setText(\"0.00\");\r\n txtTip.setText(\"0.00\");\r\n finalFullCost.setText(\"0.00\");\r\n ServiceRatingBar.setRating(0);\r\n FoodRatingBar.setRating(0);\r\n }", "@Override\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n Log.d(\"MainActivity\", \"inside onTextChanged method: charSequence= \"+charSequence);\n //surround risky calculations with try catch (what if billAmount is 0 ?\n //charSequence is converted to a String and parsed to a double for you\n billAmount = Double.parseDouble(charSequence.toString()) / 100.0;\n\n Log.d(\"MainActivity\", \"Bill Amount = \"+billAmount);\n //setText on the textView\n textViewBillAmount.setText(currencyFormat.format(billAmount));\n //perform tip and total calculation and update UI by calling calculate\n calculate();//uncomment this line\n }", "@Override\n public void onClick(View v) {\n float calculate = Float.valueOf(et_cal.getText().toString().trim());\n Float mutiply = Float.parseFloat(sub);\n\n float x = (float) (calculate * mutiply);\n\n result.setText(calculate+\"\"+\" USD = \"+x+\"\" + \" MMK\");\n date.setText(\"Indicative Rate as on \"+date_time);\n btnOk.setVisibility(View.VISIBLE);\n\n // Toast.makeText(getActivity(),\"work\",Toast.LENGTH_SHORT).show();\n\n\n\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdouble temp;\r\n\t\t\t\tif(chkBonus.isChecked())\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp = Double.parseDouble(entity.getF_Price()) + 150000;\r\n\t\t\t\t\ttxtTotal.setText(Helper.formatNumberExcel(String.valueOf(temp)));\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\ttxtTotal.setText(Helper.formatNumberExcel(entity.getF_Price()));\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.getValue(String.class);\n txtRate.setText(value);\n // Log.d(TAG, \"Value is: \" + value);\n }", "@Override\n public void onClick(View v) {\n if (txu.getText().toString().equals(\"\")){\n txu.setText(\"0\");\n }\n\n TextView txu = (TextView) findViewById(R.id.total);\n TextView txtBolus = (TextView) findViewById(R.id.txtBC);\n TextView txtCarbos = (TextView) findViewById(R.id.txtCH);\n TextView textView = (TextView) findViewById(R.id.numcal);\n TextView bolusCorreccion = (TextView) findViewById(R.id.numBC);\n TextView bolusCarbos = (TextView) findViewById(R.id.numCH);\n TextView glucosa = (TextView) findViewById(R.id.input_nombre);\n TextView carbos = (TextView) findViewById(R.id.input_apellido2);\n TextView ratio = (TextView) findViewById(R.id.edit3);\n TextView sensibilidad = (TextView) findViewById(R.id.edit4);\n TextView rango = (TextView) findViewById(R.id.edit5);\n totalCarb = Float.parseFloat(txu.getText().toString());\n glucosaActual = Integer.parseInt(glucosa.getText().toString());\n carbosCons = Integer.parseInt(carbos.getText().toString());\n ratioS = Integer.parseInt(ratio.getText().toString());\n sensibilidadS = Integer.parseInt(sensibilidad.getText().toString());\n rangoS = Integer.parseInt(rango.getText().toString());\n correcion = ((glucosaActual - rangoS)/sensibilidadS);\n ch = (carbosCons +totalCarb) / ratioS;\n total = correcion + ch;\n bolusCorreccion.setText(String.format(\"%.2f\", correcion));\n bolusCarbos.setText(String.format(\"%.2f\", ch));\n textView.setText(String.format(\"%.2f\", total));\n textView.setVisibility(View.VISIBLE);\n bolusCorreccion.setVisibility(View.VISIBLE);\n bolusCarbos.setVisibility(View.VISIBLE);\n txtBolus.setVisibility(View.VISIBLE);\n txtCarbos.setVisibility(View.VISIBLE);\n\n }", "public void beforeTax() {\n TextView beforeView = findViewById(R.id.checkoutPage_beforeTaxValue);\n beforeView.setText(String.format(\"$%.2f\", beforeTaxTotal));\n }", "@Override\n public void onBindViewHolder(CurrencyRecyclerViewAdapter.ViewHolder viewHolder, int position) {\n Currency currency = this.currencies.get(position);\n if (currency.getConvertedValue() > 0) {\n viewHolder.convertedValueTxt.setVisibility(View.VISIBLE);\n viewHolder.convertedValueTxt.setText(activity.getResources().getString(R.string.converted_value_label) + \" \" + currency.getConvertedValue());\n }\n\n viewHolder.codeTxt.setText(String.valueOf(currency.getCode()));\n viewHolder.rateTxt.setText(String.valueOf(currency.getRate()));\n }", "private void updatePriceLabel(double aPrice) {\n price = aPrice;\n String out = String.format(\"<html><b>Price</b><br>$%.2f</html>\", price);\n priceLabel.setText(out);\n }", "void setPrice(int price) {\n mPriceTextView.setText(StoreUtils.getPriceString(price, mCurrency));\n }", "private String getFormattedAmount(final BigDecimal amount) {\n final java.text.DecimalFormat decFormat = new java.text.DecimalFormat(\"0.00\");\n return \"$\" + decFormat.format(amount);\n }", "public void calcPrecioTotal() {\n try {\n float result = precioUnidad * Float.parseFloat(unidades.getText().toString());\n prTotal.setText(String.valueOf(result) + \"€\");\n }catch (Exception e){\n prTotal.setText(\"0.0€\");\n }\n }", "public void updateDisplay(View view) {\n if(!EditText_isEmpty(total_bill) && !EditText_isEmpty(tip)) {\n float total_bill_value = Float.valueOf(total_bill.getText().toString());\n float tip_value = Float.valueOf(tip.getText().toString());\n float total_to_pay_value = total_bill_value * (1+tip_value/100);\n total_to_pay.setText(\"$\" + String.format(\"%.2f\", total_to_pay_value));\n\n float total_tip_value = total_bill_value * (tip_value/100);\n total_tip.setText(\"$\" + String.format(\"%.2f\", total_tip_value));\n\n if(!EditText_isEmpty(split_bill)) {\n float split_bill_value = Float.valueOf(split_bill.getText().toString());\n float total_per_person_value = total_to_pay_value/split_bill_value;\n total_per_person.setText(\"$\" + String.format(\"%.2f\", total_per_person_value));\n }\n }\n else {\n total_to_pay.setText(\"\");\n total_tip.setText(\"\");\n total_per_person.setText(\"\");\n }\n }", "private void totalPrice() {\n double totalPrice;\n \n String stu = studentSubTotal.getText();\n stu = stu.substring(1);\n double stuTotal = Double.parseDouble(stu);\n\n String adult = adultSubTotal.getText();\n adult = adult.substring(1);\n double adultTotal = Double.parseDouble(adult);\n\n String senior = seniorSubTotal.getText();\n senior = senior.substring(1);\n double seniorTotal = Double.parseDouble(senior);\n\n totalPrice = stuTotal + adultTotal + seniorTotal;\n NumberFormat gbp = NumberFormat.getCurrencyInstance(Locale.UK);\n String totalStr = String.valueOf(gbp.format(totalPrice));\n totalPriceTextField.setText(totalStr);\n\n }", "private CharSequence calculateTotalPrice() {\n float totalPrice = 0.0f;\n totalPrice += UserScreen.fishingRodQuantity * 25.50;\n totalPrice += UserScreen.hockeyStickQuantity * 99.99;\n totalPrice += UserScreen.runningShoesQuantity * 85.99;\n totalPrice += UserScreen.proteinBarQuantity * 5.25;\n totalPrice += UserScreen.skatesQuantity * 50.79;\n return Float.toString(totalPrice);\n }", "@Override\n public void onClick(View v) {\n resultDisplay.setText(String.valueOf(0));\n isDecimal = false;\n }", "@Override\n\tpublic void displayData(TextView view, double value) {\n\t\tdouble mph = value * 2.23694;\n\n\t\tspeedBuilder.replace(0, speedBuilder.length(),\n\t\t\t\tString.format(String.format(\"%.1f\", mph)));\n\t\tSpannableString ss1 = new SpannableString(speedBuilder.toString()\n\t\t\t\t+ unitBuilder.toString());\n\t\tss1.setSpan(new RelativeSizeSpan(0.5f), speedBuilder.length(),\n\t\t\t\tss1.length(), 0); // set size\n\t\tss1.setSpan(new ForegroundColorSpan(Color.RED), speedBuilder.length(),\n\t\t\t\tss1.length(), 0);// set color\n\n\t\tview.setText( ss1 );\n\t}", "public void submitOrder(View view) {\n //int price = calculatePrice();\n String priceMessage = createOrderSummary();\n\n displayMessage(priceMessage);\n\n }", "@Override\n public void onAmountChange(View view, int amount) {\n item.num = amount;\n }" ]
[ "0.84625435", "0.84022766", "0.8349769", "0.8294559", "0.82721883", "0.8192042", "0.8123765", "0.7533431", "0.69175375", "0.68860614", "0.687749", "0.68487966", "0.6817213", "0.6777571", "0.6758087", "0.67525095", "0.67510456", "0.674468", "0.67433214", "0.67363375", "0.66826934", "0.6681466", "0.6675628", "0.66673356", "0.665294", "0.66441774", "0.66441774", "0.66441774", "0.66441774", "0.66441774", "0.66441774", "0.66441774", "0.66301507", "0.65657294", "0.65531003", "0.6536263", "0.6481926", "0.64242566", "0.642399", "0.641987", "0.6399078", "0.637552", "0.6364624", "0.6362897", "0.630603", "0.62993836", "0.6282608", "0.62626415", "0.623058", "0.61627823", "0.6153565", "0.61234975", "0.61202955", "0.61169285", "0.6114684", "0.6114067", "0.6110323", "0.60752195", "0.6071785", "0.60566473", "0.60444796", "0.6022025", "0.60125905", "0.5976849", "0.59667826", "0.5945747", "0.5941348", "0.59190446", "0.5905295", "0.58907276", "0.58896565", "0.5889328", "0.5884645", "0.5873183", "0.58717245", "0.5861259", "0.5846699", "0.5841677", "0.5837967", "0.58370805", "0.58256716", "0.58219296", "0.58187383", "0.58160317", "0.58070385", "0.5804282", "0.58001417", "0.57928854", "0.5792291", "0.57805437", "0.57643366", "0.57515013", "0.5740146", "0.5737924", "0.57141006", "0.56975955", "0.56903744", "0.5684686", "0.56846595", "0.5671577" ]
0.66095734
33
TextView OrderTextView = (TextView) findViewById(R.id.order_summary_text_view); OrderTextView.setText(message);
private void displayMessage(String message) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayMessage(String message) {\n TextView SummaryTextView = (TextView) findViewById(R.id.ordersummary_text_view);\n SummaryTextView.setText(message);\n }", "private void displayMessage(String message) {\n TextView orderSummaryTextView = (TextView) findViewById(R.id.order_summary_text_view);\n orderSummaryTextView.setText(message);\n }", "private void displayMessage(String message) {\n TextView orderSummaryTextView = (TextView) findViewById(R.id.order_summary_text_view);\n orderSummaryTextView.setText(message);\n }", "private void displayMessage(String message) {\n TextView orderSummaryTextView = (TextView) findViewById(R.id.order_summary_text_view);\n orderSummaryTextView.setText(message);\n }", "private void displayMessage(String message) {\n TextView orderSummaryTextView = findViewById(R.id.order_summary_text_view);\n orderSummaryTextView.setText(message);\n }", "public void displayMessage(String message) {\n TextView orderSummaryTextView = (TextView) findViewById(R.id.result_text_view);\n orderSummaryTextView.setText(message);\n }", "private void displayMessage(String message) {\n TextView priceTextView = (TextView) findViewById(R.id.price_tv);\n priceTextView.setText(message);\n }", "public void updateView(String message)\n {\n Log.w(\"MainActivity\",\"In updateview: \" + message);\n\n TextView messageTV = findViewById(R.id.messageTextView);\n\n messageTV.setText(message);\n\n }", "public void displayMessage(String message) {\r\n TextView messageView = (TextView) findViewById(R.id.message);\r\n messageView.setText(String.valueOf(message));\r\n }", "private void displayMessage23(String message) {\n TextView virtualBankReadMore = (TextView) findViewById(R.id.read_more23);\n virtualBankReadMore.setTextColor(Color.BLACK);\n virtualBankReadMore.setText(message);\n virtualBankReadMore.setGravity(Gravity.CENTER);\n }", "private void displayMessage(String message) {\n TextView seeBoxReadMore = (TextView) findViewById(R.id.read_more1);\n seeBoxReadMore.setTextColor(Color.BLACK);\n seeBoxReadMore.setText(message);\n seeBoxReadMore.setGravity(Gravity.CENTER);\n }", "public void updateView(String message) {\n output.setText(message);\n \n }", "private void setMessageText(String pMessage) {\n\n TextView tempText = (TextView) findViewById(R.id.tallyDeviceConnectionStatusMessageTextView);\n\n tempText.setText(pMessage);\n\n }", "private void displayMessage12(String message) {\n TextView jokkoReadMore = (TextView) findViewById(R.id.read_more12);\n jokkoReadMore.setTextColor(Color.BLACK);\n jokkoReadMore.setText(message);\n jokkoReadMore.setGravity(Gravity.CENTER);\n }", "public void Text_Message(View view) {\r\n adb= new AlertDialog.Builder(this);\r\n adb.setCancelable(false);\r\n adb.setTitle(\"Message Input\");\r\n final EditText eT= new EditText(this);\r\n eT.setHint(\"Type Message Here\");\r\n adb.setView(eT);\r\n adb.setPositiveButton(\"Show\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n String str= eT.getText().toString();\r\n Toast.makeText(MainActivity.this,str,Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n adb.setNegativeButton(\"Cancle\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });\r\n AlertDialog ad=adb.create();\r\n ad.show();\r\n }", "private void displayMessage4(String message) {\n TextView vulaMobileReadMore = (TextView) findViewById(R.id.read_more4);\n vulaMobileReadMore.setTextColor(Color.BLACK);\n vulaMobileReadMore.setText(message);\n vulaMobileReadMore.setGravity(Gravity.CENTER);\n }", "private void displayMessage13(String message) {\n TextView greenwashReadMore = (TextView) findViewById(R.id.read_more13);\n greenwashReadMore.setTextColor(Color.BLACK);\n greenwashReadMore.setText(message);\n greenwashReadMore.setGravity(Gravity.CENTER);\n }", "private void displayMessage14(String message) {\n TextView ologaReadMore = (TextView) findViewById(R.id.read_more14);\n ologaReadMore.setTextColor(Color.BLACK);\n ologaReadMore.setText(message);\n ologaReadMore.setGravity(Gravity.CENTER);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n String message = intent.getStringExtra(\"message\");\n Log.d(\"receiver\", \"Got message: \" + message);\n\n textView.setText(message);\n }", "private void displayMessage3(String message) {\n TextView iDropWaterReadMore = (TextView) findViewById(R.id.read_more3);\n iDropWaterReadMore.setTextColor(Color.BLACK);\n iDropWaterReadMore.setText(message);\n iDropWaterReadMore.setGravity(Gravity.CENTER);\n }", "private void displayMessage22(String message) {\n TextView kiliVrReadMore = (TextView) findViewById(R.id.read_more22);\n kiliVrReadMore.setTextColor(Color.BLACK);\n kiliVrReadMore.setText(message);\n kiliVrReadMore.setGravity(Gravity.CENTER);\n }", "private void displayMessage11(String message) {\n TextView setTicReadMore = (TextView) findViewById(R.id.read_more11);\n setTicReadMore.setTextColor(Color.BLACK);\n setTicReadMore.setText(message);\n setTicReadMore.setGravity(Gravity.CENTER);\n }", "private void displayMessage2(String message) {\n TextView boomersReadMore = (TextView) findViewById(R.id.read_more2);\n boomersReadMore.setTextColor(Color.BLACK);\n boomersReadMore.setText(message);\n boomersReadMore.setGravity(Gravity.CENTER);\n }", "private void displayMessage15(String message) {\n TextView gomywayReadMore = (TextView) findViewById(R.id.read_more15);\n gomywayReadMore.setTextColor(Color.BLACK);\n gomywayReadMore.setText(message);\n gomywayReadMore.setGravity(Gravity.CENTER);\n }", "private void displayMessage5(String message) {\n TextView agricycleReadMore = (TextView) findViewById(R.id.read_more5);\n agricycleReadMore.setTextColor(Color.BLACK);\n agricycleReadMore.setText(message);\n agricycleReadMore.setGravity(Gravity.CENTER);\n }", "@Override\n public void onClick(View view) {\n String msg = mSendView.getText().toString();\n currMessage = msg;\n mSendView.setText(\"\");\n sendMessage(msg);\n refresh();\n\n }", "private void displayMessage9(String message) {\n TextView letiArtsReadMore = (TextView) findViewById(R.id.read_more9);\n letiArtsReadMore.setTextColor(Color.BLACK);\n letiArtsReadMore.setText(message);\n letiArtsReadMore.setGravity(Gravity.CENTER);\n }", "@Override\n public void onClick(View v) {\n String inputText = inputEditText.getText().toString();\n\n // Show the user's input text\n messageTextView.setText(inputText);\n\n }", "@Override\n public void onClick(View v) {\n ((TextView) findViewById(R.id.text)).setText(\"Android is AWESOME!!\");\n }", "private void displayMessage6(String message) {\n TextView solarKoboReadMore = (TextView) findViewById(R.id.read_more6);\n solarKoboReadMore.setTextColor(Color.BLACK);\n solarKoboReadMore.setText(message);\n solarKoboReadMore.setGravity(Gravity.CENTER);\n }", "public void sendMessage(View view) {\n\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n\n EditText editText = (EditText) findViewById(R.id.editText);\n\n String message = editText.getText().toString();\n\n intent.putExtra(EXTRA_MESSAGE, message);\n\n\n\n startActivity(intent);\n\n }", "private void displayMessage8(String message) {\n TextView kytabuReadMore = (TextView) findViewById(R.id.read_more8);\n kytabuReadMore.setTextColor(Color.BLACK);\n kytabuReadMore.setText(message);\n kytabuReadMore.setGravity(Gravity.CENTER);\n }", "public void sendMessage(View view) {\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n EditText editText = (EditText) findViewById(R.id.editText);\n String message = editText.getText().toString();\n intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n\n }", "private void displayMessage24(String message) {\n TextView smsghReadMore = (TextView) findViewById(R.id.read_more24);\n smsghReadMore.setTextColor(Color.BLACK);\n smsghReadMore.setText(message);\n smsghReadMore.setGravity(Gravity.CENTER);\n }", "private void displayMessage17(String message) {\n TextView pushCvReadMore = (TextView) findViewById(R.id.read_more17);\n pushCvReadMore.setTextColor(Color.BLACK);\n pushCvReadMore.setText(message);\n pushCvReadMore.setGravity(Gravity.CENTER);\n }", "public void updateText(String s){\n TextView articleText = (TextView) findViewById(R.id.article_text);\n articleText.setText(s);\n }", "private void doToast() {\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\t\r\n\t\t// Create and send toast\r\n\t\tContext context = getApplicationContext();\r\n\t\tint duration = Toast.LENGTH_SHORT;\r\n\t\tToast toast = Toast.makeText(context, message, duration);\r\n\t\ttoast.show();\r\n\t}", "@Override\n public void onClick(View view) {\n\n runOnUiThread(\n new Runnable() {\n @Override\n public void run() {\n MainActivity\n .this\n .connectionManager.getTo().println(\n MainActivity\n .this\n .send_text.getText().toString()\n );\n }\n }\n );\n\n }", "public void onClick(View v)\r\n {\n sendSMS(textView.getText().toString());\r\n }", "private void displayMessage18(String message) {\n TextView wecyclersReadMore = (TextView) findViewById(R.id.read_more18);\n wecyclersReadMore.setTextColor(Color.BLACK);\n wecyclersReadMore.setText(message);\n wecyclersReadMore.setGravity(Gravity.CENTER);\n }", "public void sendMessage(View view) {\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n //EditText editText = (EditText) findViewById(R.id.edit_message);\n //String message = editText.getText().toString();\n //intent.putExtra(EXTRA_MESSAGE, message);\n\n startActivity(intent);\n }", "public void message(String message){\n Toast.makeText(getContext(),message,Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n\n String msg = edit_text.getText().toString();\n edit_text.setText(\"\");\n\n new ClientTask().executeOnExecutor(AsyncTask.SERIAL_EXECUTOR,msg);\n }", "private void displayMessage10(String message) {\n TextView techRepReadMore = (TextView) findViewById(R.id.read_more10);\n techRepReadMore.setTextColor(Color.BLACK);\n techRepReadMore.setText(message);\n techRepReadMore.setGravity(Gravity.CENTER);\n }", "@Override\n public void onClick(View v){\n EditText newMessageView=(EditText) findViewById(R.id.new_message);\n String newMessageView1 = newMessageView.getText().toString();\n newMessageView.setText(\"\");\n com.arunya.aarunya.Message msg = new com.arunya.aarunya.Message();\n msg.setmDate(new Date());\n msg.setmText(\"newMessage\");\n msg.setmSender(\"Raj\");\n\n MessageDataSource.saveMessage(msg,mConvoId); /*fetches message from edit text add to the message object */\n\n\n\n }", "public void displayMessage() {\n TextView priceSummaryTextView = (TextView) findViewById(R.id.price_summary_text_view);\n priceSummaryTextView.setText(\"ORDER SUMMARY\");\n\n int toppingsCost = 0;\n int whippedCreamCost = 1;\n int chocolateToppingsCost = 2;\n String whippedCream = \"No\";\n String chocolate = \"No\";\n\n CheckBox firstToppings = (CheckBox) findViewById(R.id.checkbox1);\n CheckBox secondToppings = (CheckBox) findViewById(R.id.checkbox2);\n EditText name = (EditText) findViewById(R.id.text_field);\n\n if (firstToppings.isChecked()) {\n\n whippedCream = \"Yes\";\n toppingsCost = toppingsCost + whippedCreamCost;\n\n\n }\n\n\n if (secondToppings.isChecked()) {\n\n chocolate = \"Yes\";\n toppingsCost = toppingsCost + chocolateToppingsCost;\n\n\n }\n\n\n TextView priceTextView = (TextView) findViewById(R.id.price_text_view);\n priceTextView.setText(\"Order placed ! Here's your order summary:\" + \"\\n\" + \"\\n\" + \"\\nName: \" + name.getText().toString() + \"\\n\" + \"\\nNumber of Coffees: \" + numOfCoffees + \"\\n\" + \"\\nAdd whipped cream ? \" + whippedCream + \"\\n\" + \"\\nAdd chocolate ? \" + chocolate + \"\\n\" + \"\\nTotal amount: $\" + (numOfCoffees * (5 + toppingsCost)) + \"\\n\" + \"\\n\" +\n \"\\nThank you and enjoy your coffee! :)\");\n\n }", "private void displayMessage(String message) {\n Log.d(\"Method\", \"displayMessage()\");\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "private void displayMessage16(String message) {\n TextView mookhReadMore = (TextView) findViewById(R.id.read_more16);\n mookhReadMore.setTextColor(Color.BLACK);\n mookhReadMore.setText(message);\n mookhReadMore.setGravity(Gravity.CENTER);\n }", "@Override\r\n public void onReceive(Context context, Intent intent) {\n\r\n mOutputTextView.setText(intent.getExtras().getString(Intent.EXTRA_TEXT));\r\n }", "private void displayMessage19(String message) {\n TextView aceReadMore = (TextView) findViewById(R.id.read_more19);\n aceReadMore.setTextColor(Color.BLACK);\n aceReadMore.setText(message);\n aceReadMore.setGravity(Gravity.CENTER);\n }", "public void submitOrder(View view){\n int price = quant*5;\n String priceMsg = \"Total: $\" + price +\"\\nThank you!\";\n displayMessage(priceMsg);\n }", "public void displayMessage(View view) {\n // I got the following line of code from StackOverflow: http://stackoverflow.com/questions/5620772/get-text-from-pressed-button\n String s = (String) ((Button)view).getText();\n CharSequence msg = new StringBuilder().append(\"This button will launch my \").append(s.toString()).append(\" app\").toString();\n Toast.makeText(view.getContext(),msg, Toast.LENGTH_SHORT).show();\n }", "void setText(CharSequence s) {\n if (mNextView == null) {\n throw new RuntimeException(\"This Toast was not created with Toast.makeText()\");\n }\n\n final TextView textView = mNextView.findViewById(R.id.message);\n\n if (textView == null) {\n throw new RuntimeException(\"This Toast was not created with Toast.makeText()\");\n }\n\n textView.setText(s);\n }", "private void displayMessage20(String message) {\n TextView helloDocReadMore = (TextView) findViewById(R.id.read_more20);\n helloDocReadMore.setTextColor(Color.BLACK);\n helloDocReadMore.setText(message);\n helloDocReadMore.setGravity(Gravity.CENTER);\n }", "private void displayMessage21(String message) {\n TextView flyingDocReadMore = (TextView) findViewById(R.id.read_more21);\n flyingDocReadMore.setTextColor(Color.BLACK);\n flyingDocReadMore.setText(message);\n flyingDocReadMore.setGravity(Gravity.CENTER);\n }", "Observable<String> messageBodySenderTextViewText();", "private void displayMessage7(String message) {\n TextView maxReadMore = (TextView) findViewById(R.id.read_more7);\n maxReadMore.setTextColor(Color.BLACK);\n maxReadMore.setText(message);\n maxReadMore.setGravity(Gravity.CENTER);\n }", "void displayMessage(){\r\n Toast toast = Toast.makeText(this, getString(R.string.congratz_message, String.valueOf(playerScore)), Toast.LENGTH_SHORT);\r\n toast.show();\r\n }", "public void sendMessage (View view)\r\n\t{\r\n\t\t// Respond to the button click\r\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\r\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\tintent.putExtra(EXTRA_MESSAGE, message);\r\n\t\tstartActivity(intent);\r\n\t}", "@Override\r\n\t public void onClick(View arg0) {\n\t screenDialog.dismiss();\r\n\t String sms = messageText.getText().toString();\r\n\t \ttry {\r\n\t\t\t\tSmsManager smsManager = SmsManager.getDefault();\r\n\t\t\t\tsmsManager.sendTextMessage(phone, null, sms, null, null);\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"SMS Sent!\",\r\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"SMS faild, please try again later!\",\r\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t }", "private void messageToUser(CharSequence text)\n {\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }", "@Override\n\t \t\tpublic void handleMessage(Message msg) {\n\t \t\treceive();\n\t \t\t\t// myTextView.setText(String.valueOf(cnt));\n\t \t\t}", "@Override\r\n public void onCreate(Bundle savedInstanceState)\r\n {\r\n super.onCreate(savedInstanceState);\r\n // load the layout\r\n setContentView(R.layout.sms_message); \r\n\r\n // make message text field object\r\n msgTextField = (EditText) findViewById(R.id.msgTextField);\r\n msgTextField.setText(\"[email protected]\");\r\n // make send button object\r\n sendButton = (Button) findViewById(R.id.sendButton);\r\n // make phone number field object\r\n phoneTextField = (EditText) findViewById(R.id.phoneTextField);\r\n\r\n }", "public void run() {\n textView.setText(Html.fromHtml(title));\n textView.append(\"\\n\");\n textView.append(\" \" + message + \" \\n\");\n }", "private static void setTextInWidget(String message,Context context){\n RemoteViews remoteViews = new RemoteViews(context.getPackageName(),\n R.layout.widget_layout);\n remoteViews.setTextViewText(R.id.sadness_button, message);\n AppWidgetManager.getInstance(context).updateAppWidget(\n new ComponentName(context, DarknessProvider.class),remoteViews);\n }", "public static void setDialogViewMessage(Context context, AlertDialog.Builder alert, String message1, String message2){\n// Log.e(\"setDialogViewMessage\", \"setDialogViewMessage\");\n LinearLayout ll=new LinearLayout(context);\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n\n layoutParams.setMargins(20, 10, 20, 10);\n\n ll.setOrientation(LinearLayout.VERTICAL);\n ll.setLayoutParams(layoutParams);\n TextView messageView1 = new TextView(context);\n TextView messageView2 = new TextView(context);\n TextView messageView3 = new TextView(context);\n messageView1.setLayoutParams(layoutParams);\n messageView2.setLayoutParams(layoutParams);\n messageView3.setLayoutParams(layoutParams);\n messageView1.setText(message1);\n messageView2.setText(message2);\n PackageInfo pInfo = null;\n String version = \"\";\n try {\n pInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);\n version = pInfo.versionName;\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n }\n\n messageView3.setText(\"Card Safe Version \" + version);\n ll.addView(messageView1);\n ll.addView(messageView2);\n ll.addView(messageView3);\n alert.setView(ll);\n\n }", "public void display(int counterMessage) {\n TextView textView = (TextView) findViewById(R.id.pointsValue);\n textView.setText(\"\" + counterMessage);\n }", "private void displayMessage(String text) {\n toggleProgress();\n userMessage.setVisibility(View.VISIBLE);\n userMessage.setText(text);\n }", "public void sendMessage(View view) {\n EditText editText = findViewById(R.id.user_message);\n String message = editText.getText().toString();\n\n Intent intent = new Intent(this, MessageActivity.class);\n\n intent.putExtra(\"EXTRA_MESSAGE\", message);\n\n startActivity(intent);\n }", "public void updateViews() {\n textView.setText(contactName);\n\n }", "public void onClick(View view){ // that executes the following code.\n // Take the text input to the EditText field...\n String changeText = editV.getText().toString();\n // and set the TextView to that input.\n textV.setText(changeText);\n }", "private void displayquintity(int numberOFCoffee){\n TextView quintityText= findViewById(R.id.quantity_text_view);\n quintityText.setText(\"\"+numberOFCoffee);\n\n }", "public synchronized void displayMessage(String msg) {\n\t\tthis.commonTxtView.setText(msg);\n\n\t}", "private void display() {\n TextView textview = (TextView) findViewById(R.id.textView);\n EditText editText = (EditText) findViewById(R.id.editNumber) ;\n textview.setText(\"TEXT\");\n editText.setText(\"\");\n\n }", "private void updateUI(String msg){\n if(msg != null) {\n textViewStatus.setText(msg);\n }\n }", "protected void onSendMessage(View view){\n et = (EditText)findViewById(R.id.message);\n String message = et.getText().toString();\n Intent intent = new Intent(this, ReceiveMessageActivity.class);\n intent.putExtra(\"message\",message);\n startActivity(intent);\n }", "public void displayMessage(String message) {\n Toast.makeText(_context, message, Toast.LENGTH_SHORT).show();\n }", "public void showMessage(String message){\n Toast.makeText(getContext(), message, Toast.LENGTH_LONG).show();\n }", "private void toastmessage(String message){\n Toast.makeText(Accountinfo.this,message,Toast.LENGTH_SHORT).show();\n }", "private void displayToast(String message) {\n\n //get the LayoutInflater and inflate the custom_toast layout\n LayoutInflater view = getLayoutInflater();\n View layout = view.inflate(R.layout.toast, null);\n\n //get the TextView from the custom_toast layout\n TextView text = layout.findViewById(R.id.txtMessage);\n text.setText(message);\n\n //create the toast object, set display duration,\n //set the view as layout that's inflated above and then call show()\n Toast toast = new Toast(getApplicationContext());\n toast.setDuration(Toast.LENGTH_LONG);\n toast.setView(layout);\n toast.show();\n }", "@Override\n public void run() {\n recieveView.setText(recvInput);\n }", "@Override\n public void displayMessage(String message) {\n Toast.makeText(getActivity(),message,Toast.LENGTH_SHORT).show();\n }", "private String displayOrder(int number) {\n TextView priceTextView = (TextView) findViewById(R.id.order_summary_text_view);\n EditText myNameText = (EditText) findViewById(R.id.enter_name_view);\n myName = myNameText.getText().toString();\n\n String message = \"Name: \" + myName + \"\\n\" +\n \"Add whipped cream? \" + myCheckedStateWhipped + \"\\n\"+\n \"Add chocolate? \" + myCheckedStateChocolate + \"\\n\"+\n \"Quantity: \" + myQuantity + \"\\n\" +\n \"Total: \" + NumberFormat.getCurrencyInstance().format(number) +\"\\n\";\n priceTextView.setText(message);\n\n return message;\n }", "public void onSendMessage(View view) {\n // get the EditText view of the layout with the id: message\n EditText messageView = (EditText) findViewById(R.id.message);\n // get the text added by the user in the EditText\n String messageText = messageView.getText().toString();\n // Create a new Intent with an action of SEND\n Intent intent = new Intent(Intent.ACTION_SEND);\n // set the MIME type for the Intent\n intent.setType(\"text/plain\");\n // Add to the Intent the text from the EditText view\n intent.putExtra(Intent.EXTRA_TEXT, messageText);\n // get the text form a string resource\n String chooserTitle = getString(R.string.chooser);\n // wrap the Intent in a chooser so Android always ask for with app to choose\n Intent chosenIntent = Intent.createChooser(intent, chooserTitle);\n // Start the activity of whatever app is available\n startActivity(chosenIntent);\n }", "@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttextView.setText(text);\n\t\t\t\t\t\t\t}", "private void toastMessage (String message){\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "private void setText(View view, String text) {\n\t\t((TextView) view.findViewById(android.R.id.text1)).setText(text);\n\t}", "public void onClick(View view){\n\n String name = mNameField.getText().toString();\n Toast.makeText(this,\"Hello There\"+name, Toast.LENGTH_LONG).show();\n\n }", "private void setInfo(String info) {\n// TextView textView = (TextView) findViewById(R.id.info);\n// textView.setText(info);\n }", "public TextView getTextView() {\n\n return (TextView) findViewById(R.id.sendToLogin);\n }", "private void showMessage(String message) {\n Toast.makeText(getApplicationContext(),message, Toast.LENGTH_LONG).show();\n }", "public void showText(View view) {\n EditText editText = findViewById(R.id.editText_main);\n TextView textView = findViewById(R.id.text_phonelabel);\n if (editText != null) {\n // Assign to showString both the entered string and mSpinnerLabel.\n String showString = (editText.getText().toString() +\n \" - \" + mSpinnerLabel);\n // Display a Toast message with showString\n Toast.makeText(this, showString, Toast.LENGTH_SHORT).show();\n // Set the TextView to showString.\n textView.setText(showString);\n }\n }", "private void updateCountTV()\n {\n TextView countTextview = (TextView) findViewById(R.id.countTV);\n countTextview.setText(\"Counting Jelly Beans gives me \" + countJB);\n }", "public void receiveMyMessage(String msg) {\n \t\n final String str = msg;\n \n mHandler.post(new Runnable() {\n @Override\n public void run() {\n // This gets executed on the UI thread so it can safely modify Views\n receivedTextView1.setText(str);\n }\n });\n }", "@Override\n public void onClick(View v) {\n String secretPass2 = edt.getText().toString().trim();\n String msg = message;\n // originalMessage = msg.replace(User.CHAT_WITH_NAME + \":-\", \"\").trim();\n\n String decryptMessage = AES.decrypt(msg, secretPass2);\n textView.setText(Html.fromHtml(title));\n textView.append(\"\\n\");\n if (decryptMessage != null && !decryptMessage.isEmpty()) {\n\n try {\n textView.append(\" \" + decryptMessage + \" \\n\");\n\n // delay 10 second\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // Actions to do after 10 seconds\n textView.setText(Html.fromHtml(title));\n textView.append(\"\\n\");\n textView.append(\" \" + message + \" \\n\");\n }\n }, 10000);\n\n // end of delay\n } catch (Exception e) {\n textView.append(\" \" + message + \" \\n\");\n }\n } else {\n textView.append(\" \" + message + \" \\n\");\n Toast.makeText(ChatActivity.this, \"Wrong Key\", Toast.LENGTH_SHORT).show();\n }\n\n b.dismiss();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_myo_control);\n textRcvData = (TextView) findViewById(R.id.textReceiveData);\n isTextRcvData = true;\n }", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.display);\r\n \r\n String defaultMsg=\"\";\r\n\t Bundle extras = getIntent().getExtras();\r\n\t if (extras!=null)\r\n\t {\r\n\t \tdefaultMsg = extras.getString(\"stream\");\r\n\t }\r\n\t TextView tv = (TextView) findViewById(R.id.msg);\r\n\t\t\t\r\n\t\t tv.setText(\"Your Msg is \"+defaultMsg);\t\r\n\t\t \t\t\r\n }", "private void displayQuantity(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\"+ number);\n }", "public void showMessage(String text)\n {\n Toast.makeText(this, text, Toast.LENGTH_SHORT).show();\n }", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }" ]
[ "0.8195403", "0.8138671", "0.8138671", "0.8138671", "0.8059415", "0.7977007", "0.786022", "0.74867666", "0.71908176", "0.69956523", "0.696726", "0.69431245", "0.6923152", "0.6862512", "0.6848145", "0.6821922", "0.68189776", "0.6769313", "0.67506105", "0.6734263", "0.6729357", "0.67143065", "0.67124254", "0.6690832", "0.6685749", "0.6683309", "0.66593236", "0.66554123", "0.6648363", "0.664005", "0.6630716", "0.66159844", "0.6590383", "0.65830445", "0.65742534", "0.6573763", "0.656897", "0.65684557", "0.6551079", "0.6534388", "0.65319693", "0.6497497", "0.6496931", "0.6494126", "0.6493485", "0.64794606", "0.64704555", "0.64580995", "0.6454215", "0.6441781", "0.64236784", "0.64205647", "0.6412007", "0.63969153", "0.63690317", "0.6362074", "0.63593584", "0.6350659", "0.633466", "0.63244164", "0.6310131", "0.6301134", "0.6295631", "0.62753385", "0.6274867", "0.6274802", "0.62652117", "0.6256565", "0.62548596", "0.62547976", "0.62446105", "0.6242376", "0.62393063", "0.6228864", "0.6217482", "0.6195477", "0.6185715", "0.61790365", "0.6178947", "0.6175766", "0.6168287", "0.6167685", "0.6153355", "0.61209923", "0.6118602", "0.61142826", "0.61023676", "0.60993177", "0.60851544", "0.60825115", "0.6072712", "0.6067562", "0.6065908", "0.60659033", "0.60615635", "0.60598594", "0.6057421", "0.6056765", "0.6055553", "0.60495436", "0.60495436" ]
0.0
-1
IMPORTANT: Do not edit. This file is generated. Builds expressions to call functions in the xdmp server library for a row pipeline.
public interface XdmpExpr { /** * Add two 64-bit integer values, discarding overflow. * * <a name="ml-server-type-add64"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:add64" target="mlserverdoc">xdmp:add64</a> server function. * @param x The first value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @param y The second value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type */ public ServerExpression add64(ServerExpression x, ServerExpression y); /** * AND two 64-bit integer values. * * <a name="ml-server-type-and64"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:and64" target="mlserverdoc">xdmp:and64</a> server function. * @param x The first value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @param y The second value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type */ public ServerExpression and64(ServerExpression x, ServerExpression y); /** * Converts base64-encoded string to plaintext. * * <a name="ml-server-type-base64-decode"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:base64-decode" target="mlserverdoc">xdmp:base64-decode</a> server function. * @param encoded Encoded text to be decoded. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression base64Decode(ServerExpression encoded); /** * Converts plaintext into base64-encoded string. * * <a name="ml-server-type-base64-encode"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:base64-encode" target="mlserverdoc">xdmp:base64-encode</a> server function. * @param plaintext Plaintext to be encoded. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression base64Encode(ServerExpression plaintext); /** * Returns true if a value is castable. This is similar to the "castable as" XQuery predicate, except that the type is determined at runtime. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:castable-as" target="mlserverdoc">xdmp:castable-as</a> server function. * @param namespaceUri The namespace URI of the type. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param localName The local-name of the type. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param item The item to be cast. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_boolean.html">xs:boolean</a> server data type */ public ServerExpression castableAs(ServerExpression namespaceUri, String localName, ServerExpression item); /** * Returns true if a value is castable. This is similar to the "castable as" XQuery predicate, except that the type is determined at runtime. * * <a name="ml-server-type-castable-as"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:castable-as" target="mlserverdoc">xdmp:castable-as</a> server function. * @param namespaceUri The namespace URI of the type. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param localName The local-name of the type. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param item The item to be cast. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_boolean.html">xs:boolean</a> server data type */ public ServerExpression castableAs(ServerExpression namespaceUri, ServerExpression localName, ServerExpression item); /** * Calculates the password hash for the given password and salt. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:crypt" target="mlserverdoc">xdmp:crypt</a> server function. * @param password String to be hashed. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param salt Salt to avoid 1:1 mapping from passwords to hashes. Only the first 8 characters of the salt are significant; any characters beyond the eighth are ignored. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression crypt(ServerExpression password, String salt); /** * Calculates the password hash for the given password and salt. * * <a name="ml-server-type-crypt"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:crypt" target="mlserverdoc">xdmp:crypt</a> server function. * @param password String to be hashed. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param salt Salt to avoid 1:1 mapping from passwords to hashes. Only the first 8 characters of the salt are significant; any characters beyond the eighth are ignored. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression crypt(ServerExpression password, ServerExpression salt); /** * Calculates the password hash for the given plain-text password. * * <a name="ml-server-type-crypt2"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:crypt2" target="mlserverdoc">xdmp:crypt2</a> server function. * @param password String to be hashed. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression crypt2(ServerExpression password); /** * Returns a string representing the dayname value in the localized value of arg. * * <a name="ml-server-type-dayname-from-date"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:dayname-from-date" target="mlserverdoc">xdmp:dayname-from-date</a> server function. * @param arg The date whose dayname value will be returned. (of <a href="{@docRoot}/doc-files/types/xs_date.html">xs:date</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression daynameFromDate(ServerExpression arg); /** * Invertible function that decodes characters an NCName produced by xdmp:encode-for-NCName. Given the NCName produced by xdmp:encode-for-NCName this function returns the original string. * * <a name="ml-server-type-decode-from-NCName"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:decode-from-NCName" target="mlserverdoc">xdmp:decode-from-NCName</a> server function. * @param name A string representing an NCName. This string must have been the result of a previous call to xdmp:decode-from-NCName or undefined results will occur. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression decodeFromNCName(ServerExpression name); /** * Returns a string representing the description of a given item sequence. If you take the output of this function and evaluate it as an XQuery program, it returns the item(s) input to the function. * * <a name="ml-server-type-describe"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:describe" target="mlserverdoc">xdmp:describe</a> server function. * @param item The item sequence whose description is returned. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression describe(ServerExpression item); /** * Returns a string representing the description of a given item sequence. If you take the output of this function and evaluate it as an XQuery program, it returns the item(s) input to the function. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:describe" target="mlserverdoc">xdmp:describe</a> server function. * @param item The item sequence whose description is returned. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param maxSequenceLength Represents the maximum number of items per sequence to print. The default is 3. () means no maximum. (of <a href="{@docRoot}/doc-files/types/xs_unsignedInt.html">xs:unsignedInt</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression describe(ServerExpression item, ServerExpression maxSequenceLength); /** * Returns a string representing the description of a given item sequence. If you take the output of this function and evaluate it as an XQuery program, it returns the item(s) input to the function. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:describe" target="mlserverdoc">xdmp:describe</a> server function. * @param item The item sequence whose description is returned. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param maxSequenceLength Represents the maximum number of items per sequence to print. The default is 3. () means no maximum. (of <a href="{@docRoot}/doc-files/types/xs_unsignedInt.html">xs:unsignedInt</a>) * @param maxItemLength Represents the maximum number of characters per item to print. The default is 64. The minimum is 8. () means no limit. (of <a href="{@docRoot}/doc-files/types/xs_unsignedInt.html">xs:unsignedInt</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression describe(ServerExpression item, ServerExpression maxSequenceLength, ServerExpression maxItemLength); /** * Returns the specified string, converting all of the characters with diacritics to characters without diacritics. * * <a name="ml-server-type-diacritic-less"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:diacritic-less" target="mlserverdoc">xdmp:diacritic-less</a> server function. * @param string The string to convert. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression diacriticLess(ServerExpression string); /** * Returns the schema-defined content-type of an element ("empty", "simple", "element-only", or "mixed"). * * <a name="ml-server-type-element-content-type"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:element-content-type" target="mlserverdoc">xdmp:element-content-type</a> server function. * @param element An element node. (of <a href="{@docRoot}/doc-files/types/element-node.html">element-node</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression elementContentType(ServerExpression element); /** * Invertible function that escapes characters required to be part of an NCName. This is useful when translating names from other representations such as JSON to XML. Given any string, the result is always a valid NCName. Providing all names are passed through this function the result is distinct NCNames so the results can be used for searching as well as name generation. The inverse function is xdmp:decode-from-NCName. * * <a name="ml-server-type-encode-for-NCName"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:encode-for-NCName" target="mlserverdoc">xdmp:encode-for-NCName</a> server function. * @param name A string which is used as an NCName (such as the localname for an element or attribute). (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression encodeForNCName(ServerExpression name); /** * Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript. * * <a name="ml-server-type-format-number"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function. * @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression formatNumber(ServerExpression value); /** * Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function. * @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>) * @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression formatNumber(ServerExpression value, String picture); /** * Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function. * @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>) * @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression formatNumber(ServerExpression value, ServerExpression picture); /** * Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function. * @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>) * @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression formatNumber(ServerExpression value, String picture, String language); /** * Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function. * @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>) * @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression formatNumber(ServerExpression value, ServerExpression picture, ServerExpression language); /** * Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function. * @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>) * @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression formatNumber(ServerExpression value, String picture, String language, String letterValue); /** * Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function. * @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>) * @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression formatNumber(ServerExpression value, ServerExpression picture, ServerExpression language, ServerExpression letterValue); /** * Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function. * @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>) * @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param ordchar If $ordchar is "yes" then ordinal numbering is attempted. If this is any other string, including an empty string, then cardinal numbering is generated. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression formatNumber(ServerExpression value, String picture, String language, String letterValue, String ordchar); /** * Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function. * @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>) * @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param ordchar If $ordchar is "yes" then ordinal numbering is attempted. If this is any other string, including an empty string, then cardinal numbering is generated. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression formatNumber(ServerExpression value, ServerExpression picture, ServerExpression language, ServerExpression letterValue, ServerExpression ordchar); /** * Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function. * @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>) * @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param ordchar If $ordchar is "yes" then ordinal numbering is attempted. If this is any other string, including an empty string, then cardinal numbering is generated. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param zeroPadding Value of $zero-padding is used to pad integer part of a number on the left and fractional part on the right, if needed. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression formatNumber(ServerExpression value, String picture, String language, String letterValue, String ordchar, String zeroPadding); /** * Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function. * @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>) * @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param ordchar If $ordchar is "yes" then ordinal numbering is attempted. If this is any other string, including an empty string, then cardinal numbering is generated. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param zeroPadding Value of $zero-padding is used to pad integer part of a number on the left and fractional part on the right, if needed. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression formatNumber(ServerExpression value, ServerExpression picture, ServerExpression language, ServerExpression letterValue, ServerExpression ordchar, ServerExpression zeroPadding); /** * Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function. * @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>) * @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param ordchar If $ordchar is "yes" then ordinal numbering is attempted. If this is any other string, including an empty string, then cardinal numbering is generated. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param zeroPadding Value of $zero-padding is used to pad integer part of a number on the left and fractional part on the right, if needed. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param groupingSeparator Value of $grouping-separator is a character, used to groups of digits, especially useful in making long sequence of digits more readable. For example, 10,000,000- here "," is used as a separator after each group of three digits. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression formatNumber(ServerExpression value, String picture, String language, String letterValue, String ordchar, String zeroPadding, String groupingSeparator); /** * Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function. * @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>) * @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param ordchar If $ordchar is "yes" then ordinal numbering is attempted. If this is any other string, including an empty string, then cardinal numbering is generated. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param zeroPadding Value of $zero-padding is used to pad integer part of a number on the left and fractional part on the right, if needed. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param groupingSeparator Value of $grouping-separator is a character, used to groups of digits, especially useful in making long sequence of digits more readable. For example, 10,000,000- here "," is used as a separator after each group of three digits. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression formatNumber(ServerExpression value, ServerExpression picture, ServerExpression language, ServerExpression letterValue, ServerExpression ordchar, ServerExpression zeroPadding, ServerExpression groupingSeparator); /** * Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function. * @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>) * @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param ordchar If $ordchar is "yes" then ordinal numbering is attempted. If this is any other string, including an empty string, then cardinal numbering is generated. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param zeroPadding Value of $zero-padding is used to pad integer part of a number on the left and fractional part on the right, if needed. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param groupingSeparator Value of $grouping-separator is a character, used to groups of digits, especially useful in making long sequence of digits more readable. For example, 10,000,000- here "," is used as a separator after each group of three digits. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param groupingSize Represents size of the group, i.e. the number of digits before after which grouping separator is inserted. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression formatNumber(ServerExpression value, String picture, String language, String letterValue, String ordchar, String zeroPadding, String groupingSeparator, long groupingSize); /** * Returns a formatted number value based on the picture argument. The difference between this function and the W3C standards fn:format-number function is that this function imitates the XSLT xsl:number instruction, which has richer formatting options than the fn:format-number fn:format-number function. This function can be used for spelled-out and ordinal numbering in many languages. This function is available in XSLT as well as in all dialects of XQuery and Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:format-number" target="mlserverdoc">xdmp:format-number</a> server function. * @param value The given numeric $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_numeric.html">xs:numeric</a>) * @param picture The desired string representation of the given numeric $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. Unlike fn:format-number(), here the picture string allows spelled-out (uppercase, lowercase and Capitalcase) formatting. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The desired language for string representation of the numeric $value. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param letterValue Same as letter-value attribute in xsl:number. This argument is ignored during formatting as of now. It may be used in future. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param ordchar If $ordchar is "yes" then ordinal numbering is attempted. If this is any other string, including an empty string, then cardinal numbering is generated. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param zeroPadding Value of $zero-padding is used to pad integer part of a number on the left and fractional part on the right, if needed. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param groupingSeparator Value of $grouping-separator is a character, used to groups of digits, especially useful in making long sequence of digits more readable. For example, 10,000,000- here "," is used as a separator after each group of three digits. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param groupingSize Represents size of the group, i.e. the number of digits before after which grouping separator is inserted. An empty sequence must be passed in even if a user doesn't want to specify this argument. (of <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression formatNumber(ServerExpression value, ServerExpression picture, ServerExpression language, ServerExpression letterValue, ServerExpression ordchar, ServerExpression zeroPadding, ServerExpression groupingSeparator, ServerExpression groupingSize); /** * Atomizes a JSON node, returning a JSON value. * * <a name="ml-server-type-from-json"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:from-json" target="mlserverdoc">xdmp:from-json</a> server function. * @param arg A node of kind object-node(), array-node(), text(), number-node(), boolean-node(), null-node(), or document-node(). (of <a href="{@docRoot}/doc-files/types/node.html">node</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/item.html">item</a> server data type */ public ServerExpression fromJson(ServerExpression arg); /** * Returns the name of the current user. * * <a name="ml-server-type-get-current-user"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:get-current-user" target="mlserverdoc">xdmp:get-current-user</a> server function. * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression getCurrentUser(); /** * Returns the 32-bit hash of a string. * * <a name="ml-server-type-hash32"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hash32" target="mlserverdoc">xdmp:hash32</a> server function. * @param string The string to be hashed. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedInt.html">xs:unsignedInt</a> server data type */ public ServerExpression hash32(ServerExpression string); /** * Returns the 64-bit hash of a string. * * <a name="ml-server-type-hash64"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hash64" target="mlserverdoc">xdmp:hash64</a> server function. * @param string The string to be hashed. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type */ public ServerExpression hash64(ServerExpression string); /** * Parses a hexadecimal string, returning an integer. * * <a name="ml-server-type-hex-to-integer"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hex-to-integer" target="mlserverdoc">xdmp:hex-to-integer</a> server function. * @param hex The hexadecimal string. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type */ public ServerExpression hexToInteger(ServerExpression hex); /** * Calculates the Hash-based Message Authentication Code (HMAC) using the md5 hash function of the given secret key and message arguments. * * <a name="ml-server-type-hmac-md5"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-md5" target="mlserverdoc">xdmp:hmac-md5</a> server function. * @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression hmacMd5(ServerExpression secretkey, ServerExpression message); /** * Calculates the Hash-based Message Authentication Code (HMAC) using the md5 hash function of the given secret key and message arguments. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-md5" target="mlserverdoc">xdmp:hmac-md5</a> server function. * @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression hmacMd5(ServerExpression secretkey, ServerExpression message, String encoding); /** * Calculates the Hash-based Message Authentication Code (HMAC) using the md5 hash function of the given secret key and message arguments. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-md5" target="mlserverdoc">xdmp:hmac-md5</a> server function. * @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression hmacMd5(ServerExpression secretkey, ServerExpression message, ServerExpression encoding); /** * Calculates the Hash-based Message Authentication Code (HMAC) using the SHA1 hash function of the given secret key and message arguments. * * <a name="ml-server-type-hmac-sha1"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha1" target="mlserverdoc">xdmp:hmac-sha1</a> server function. * @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression hmacSha1(ServerExpression secretkey, ServerExpression message); /** * Calculates the Hash-based Message Authentication Code (HMAC) using the SHA1 hash function of the given secret key and message arguments. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha1" target="mlserverdoc">xdmp:hmac-sha1</a> server function. * @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression hmacSha1(ServerExpression secretkey, ServerExpression message, String encoding); /** * Calculates the Hash-based Message Authentication Code (HMAC) using the SHA1 hash function of the given secret key and message arguments. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha1" target="mlserverdoc">xdmp:hmac-sha1</a> server function. * @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression hmacSha1(ServerExpression secretkey, ServerExpression message, ServerExpression encoding); /** * Calculates the Hash-based Message Authentication Code (HMAC) using the SHA256 hash function of the given secret key and message arguments. * * <a name="ml-server-type-hmac-sha256"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha256" target="mlserverdoc">xdmp:hmac-sha256</a> server function. * @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression hmacSha256(ServerExpression secretkey, ServerExpression message); /** * Calculates the Hash-based Message Authentication Code (HMAC) using the SHA256 hash function of the given secret key and message arguments. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha256" target="mlserverdoc">xdmp:hmac-sha256</a> server function. * @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression hmacSha256(ServerExpression secretkey, ServerExpression message, String encoding); /** * Calculates the Hash-based Message Authentication Code (HMAC) using the SHA256 hash function of the given secret key and message arguments. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha256" target="mlserverdoc">xdmp:hmac-sha256</a> server function. * @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression hmacSha256(ServerExpression secretkey, ServerExpression message, ServerExpression encoding); /** * Calculates the Hash-based Message Authentication Code (HMAC) using the SHA512 hash function of the given secret key and message arguments. * * <a name="ml-server-type-hmac-sha512"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha512" target="mlserverdoc">xdmp:hmac-sha512</a> server function. * @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression hmacSha512(ServerExpression secretkey, ServerExpression message); /** * Calculates the Hash-based Message Authentication Code (HMAC) using the SHA512 hash function of the given secret key and message arguments. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha512" target="mlserverdoc">xdmp:hmac-sha512</a> server function. * @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression hmacSha512(ServerExpression secretkey, ServerExpression message, String encoding); /** * Calculates the Hash-based Message Authentication Code (HMAC) using the SHA512 hash function of the given secret key and message arguments. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:hmac-sha512" target="mlserverdoc">xdmp:hmac-sha512</a> server function. * @param secretkey The secret key. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param message Message to be authenticated. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression hmacSha512(ServerExpression secretkey, ServerExpression message, ServerExpression encoding); /** * Returns the string where the first letter of each token has been uppercased. * * <a name="ml-server-type-initcap"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:initcap" target="mlserverdoc">xdmp:initcap</a> server function. * @param string The string to modify. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression initcap(ServerExpression string); /** * Returns a hexadecimal representation of an integer. * * <a name="ml-server-type-integer-to-hex"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:integer-to-hex" target="mlserverdoc">xdmp:integer-to-hex</a> server function. * @param val The integer value. (of <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression integerToHex(ServerExpression val); /** * Returns an octal representation of an integer. * * <a name="ml-server-type-integer-to-octal"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:integer-to-octal" target="mlserverdoc">xdmp:integer-to-octal</a> server function. * @param val The integer value. (of <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression integerToOctal(ServerExpression val); /** * Construct a context-independent string from a QName. This string is of the form "{namespaceURI}localname" and is suitable for use as a map key. * * <a name="ml-server-type-key-from-QName"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:key-from-QName" target="mlserverdoc">xdmp:key-from-QName</a> server function. * @param name The QName to compute a key for. (of <a href="{@docRoot}/doc-files/types/xs_QName.html">xs:QName</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression keyFromQName(ServerExpression name); /** * Left-shift a 64-bit integer value. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:lshift64" target="mlserverdoc">xdmp:lshift64</a> server function. * @param x The value to shift. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @param y The left shift to perform. This value may be negative. (of <a href="{@docRoot}/doc-files/types/xs_long.html">xs:long</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type */ public ServerExpression lshift64(ServerExpression x, long y); /** * Left-shift a 64-bit integer value. * * <a name="ml-server-type-lshift64"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:lshift64" target="mlserverdoc">xdmp:lshift64</a> server function. * @param x The value to shift. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @param y The left shift to perform. This value may be negative. (of <a href="{@docRoot}/doc-files/types/xs_long.html">xs:long</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type */ public ServerExpression lshift64(ServerExpression x, ServerExpression y); /** * Calculates the md5 hash of the given argument. * * <a name="ml-server-type-md5"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:md5" target="mlserverdoc">xdmp:md5</a> server function. * @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression md5(ServerExpression data); /** * Calculates the md5 hash of the given argument. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:md5" target="mlserverdoc">xdmp:md5</a> server function. * @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression md5(ServerExpression data, String encoding); /** * Calculates the md5 hash of the given argument. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:md5" target="mlserverdoc">xdmp:md5</a> server function. * @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression md5(ServerExpression data, ServerExpression encoding); /** * Returns month name, calculated from the localized value of arg. * * <a name="ml-server-type-month-name-from-date"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:month-name-from-date" target="mlserverdoc">xdmp:month-name-from-date</a> server function. * @param arg The date whose month-name will be returned. (of <a href="{@docRoot}/doc-files/types/xs_date.html">xs:date</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression monthNameFromDate(ServerExpression arg); /** * Multiply two 64-bit integer values, discarding overflow. * * <a name="ml-server-type-mul64"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:mul64" target="mlserverdoc">xdmp:mul64</a> server function. * @param x The first value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @param y The second value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type */ public ServerExpression mul64(ServerExpression x, ServerExpression y); /** * Returns any collections for the node's document in the database. If the specified node does not come from a document in a database, then xdmp:node-collections returns an empty sequence. * * <a name="ml-server-type-node-collections"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-collections" target="mlserverdoc">xdmp:node-collections</a> server function. * @param node The node whose collections are to be returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression nodeCollections(ServerExpression node); /** * Returns an xs:string representing the node's kind: either "document", "element", "attribute", "text", "namespace", "processing-instruction", "binary", or "comment". * * <a name="ml-server-type-node-kind"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-kind" target="mlserverdoc">xdmp:node-kind</a> server function. * @param node The node whose kind is to be returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression nodeKind(ServerExpression node); /** * Returns the metadata value of a given node. * * <a name="ml-server-type-node-metadata"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-metadata" target="mlserverdoc">xdmp:node-metadata</a> server function. * @param node The node whose metadata are to be returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/map_map.html">map:map</a> server data type */ public ServerExpression nodeMetadata(ServerExpression node); /** * Returns the metadata value of a node for a particular key. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-metadata-value" target="mlserverdoc">xdmp:node-metadata-value</a> server function. * @param node The node whose metadata are to be returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>) * @param keyName Name of the key for the metadata. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression nodeMetadataValue(ServerExpression node, String keyName); /** * Returns the metadata value of a node for a particular key. * * <a name="ml-server-type-node-metadata-value"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-metadata-value" target="mlserverdoc">xdmp:node-metadata-value</a> server function. * @param node The node whose metadata are to be returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>) * @param keyName Name of the key for the metadata. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression nodeMetadataValue(ServerExpression node, ServerExpression keyName); /** * Returns the permissions to a node's document. * * <a name="ml-server-type-node-permissions"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-permissions" target="mlserverdoc">xdmp:node-permissions</a> server function. * @param node The node. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/item.html">item</a> server data type */ public ServerExpression nodePermissions(ServerExpression node); /** * Returns the permissions to a node's document. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-permissions" target="mlserverdoc">xdmp:node-permissions</a> server function. * @param node The node. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>) * @param outputKind The output kind. It can be either "elements" or "objects". With "elements", the built-in returns a sequence of XML elements. With "objects", the built-in returns a sequence of map:map. The default is "elements". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/item.html">item</a> server data type */ public ServerExpression nodePermissions(ServerExpression node, String outputKind); /** * Returns the permissions to a node's document. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-permissions" target="mlserverdoc">xdmp:node-permissions</a> server function. * @param node The node. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>) * @param outputKind The output kind. It can be either "elements" or "objects". With "elements", the built-in returns a sequence of XML elements. With "objects", the built-in returns a sequence of map:map. The default is "elements". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/item.html">item</a> server data type */ public ServerExpression nodePermissions(ServerExpression node, ServerExpression outputKind); /** * Returns the document-uri property of the parameter or its ancestor. * * <a name="ml-server-type-node-uri"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:node-uri" target="mlserverdoc">xdmp:node-uri</a> server function. * @param node The node whose URI is returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression nodeUri(ServerExpression node); /** * NOT a 64-bit integer value. * * <a name="ml-server-type-not64"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:not64" target="mlserverdoc">xdmp:not64</a> server function. * @param x The input value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type */ public ServerExpression not64(ServerExpression x); /** * Parses an octal string, returning an integer. * * <a name="ml-server-type-octal-to-integer"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:octal-to-integer" target="mlserverdoc">xdmp:octal-to-integer</a> server function. * @param octal The octal string. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type */ public ServerExpression octalToInteger(ServerExpression octal); /** * OR two 64-bit integer values. * * <a name="ml-server-type-or64"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:or64" target="mlserverdoc">xdmp:or64</a> server function. * @param x The first value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @param y The second value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type */ public ServerExpression or64(ServerExpression x, ServerExpression y); /** * Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-dateTime" target="mlserverdoc">xdmp:parse-dateTime</a> server function. * @param picture The desired string representation of the given $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. This follows the specification of picture string in the W3C XSLT 2.0 specification for the fn:format-dateTime function. Symbol Description ----------------------------------- 'Y' year(absolute value) 'M' month in year 'D' day in month 'd' day in year 'F' day of week 'W' week in year 'w' week in month 'H' hour in day 'h' hour in half-day 'P' am/pm marker 'm' minute in hour 's' second in minute 'f' fractional seconds 'Z' timezone as a time offset from UTC for example PST 'z' timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The given string $value representing the dateTime value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression parseDateTime(ServerExpression picture, String value); /** * Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript. * * <a name="ml-server-type-parse-dateTime"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-dateTime" target="mlserverdoc">xdmp:parse-dateTime</a> server function. * @param picture The desired string representation of the given $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. This follows the specification of picture string in the W3C XSLT 2.0 specification for the fn:format-dateTime function. Symbol Description ----------------------------------- 'Y' year(absolute value) 'M' month in year 'D' day in month 'd' day in year 'F' day of week 'W' week in year 'w' week in month 'H' hour in day 'h' hour in half-day 'P' am/pm marker 'm' minute in hour 's' second in minute 'f' fractional seconds 'Z' timezone as a time offset from UTC for example PST 'z' timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The given string $value representing the dateTime value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression parseDateTime(ServerExpression picture, ServerExpression value); /** * Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-dateTime" target="mlserverdoc">xdmp:parse-dateTime</a> server function. * @param picture The desired string representation of the given $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. This follows the specification of picture string in the W3C XSLT 2.0 specification for the fn:format-dateTime function. Symbol Description ----------------------------------- 'Y' year(absolute value) 'M' month in year 'D' day in month 'd' day in year 'F' day of week 'W' week in year 'w' week in month 'H' hour in day 'h' hour in half-day 'P' am/pm marker 'm' minute in hour 's' second in minute 'f' fractional seconds 'Z' timezone as a time offset from UTC for example PST 'z' timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The given string $value representing the dateTime value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression parseDateTime(ServerExpression picture, String value, String language); /** * Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-dateTime" target="mlserverdoc">xdmp:parse-dateTime</a> server function. * @param picture The desired string representation of the given $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. This follows the specification of picture string in the W3C XSLT 2.0 specification for the fn:format-dateTime function. Symbol Description ----------------------------------- 'Y' year(absolute value) 'M' month in year 'D' day in month 'd' day in year 'F' day of week 'W' week in year 'w' week in month 'H' hour in day 'h' hour in half-day 'P' am/pm marker 'm' minute in hour 's' second in minute 'f' fractional seconds 'Z' timezone as a time offset from UTC for example PST 'z' timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The given string $value representing the dateTime value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression parseDateTime(ServerExpression picture, ServerExpression value, ServerExpression language); /** * Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-dateTime" target="mlserverdoc">xdmp:parse-dateTime</a> server function. * @param picture The desired string representation of the given $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. This follows the specification of picture string in the W3C XSLT 2.0 specification for the fn:format-dateTime function. Symbol Description ----------------------------------- 'Y' year(absolute value) 'M' month in year 'D' day in month 'd' day in year 'F' day of week 'W' week in year 'w' week in month 'H' hour in day 'h' hour in half-day 'P' am/pm marker 'm' minute in hour 's' second in minute 'f' fractional seconds 'Z' timezone as a time offset from UTC for example PST 'z' timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The given string $value representing the dateTime value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param calendar This argument is reserved for future use. The only calendar supported at this point is "Gregorian" or "AD". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression parseDateTime(ServerExpression picture, String value, String language, String calendar); /** * Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-dateTime" target="mlserverdoc">xdmp:parse-dateTime</a> server function. * @param picture The desired string representation of the given $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. This follows the specification of picture string in the W3C XSLT 2.0 specification for the fn:format-dateTime function. Symbol Description ----------------------------------- 'Y' year(absolute value) 'M' month in year 'D' day in month 'd' day in year 'F' day of week 'W' week in year 'w' week in month 'H' hour in day 'h' hour in half-day 'P' am/pm marker 'm' minute in hour 's' second in minute 'f' fractional seconds 'Z' timezone as a time offset from UTC for example PST 'z' timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The given string $value representing the dateTime value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param calendar This argument is reserved for future use. The only calendar supported at this point is "Gregorian" or "AD". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression parseDateTime(ServerExpression picture, ServerExpression value, ServerExpression language, ServerExpression calendar); /** * Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-dateTime" target="mlserverdoc">xdmp:parse-dateTime</a> server function. * @param picture The desired string representation of the given $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. This follows the specification of picture string in the W3C XSLT 2.0 specification for the fn:format-dateTime function. Symbol Description ----------------------------------- 'Y' year(absolute value) 'M' month in year 'D' day in month 'd' day in year 'F' day of week 'W' week in year 'w' week in month 'H' hour in day 'h' hour in half-day 'P' am/pm marker 'm' minute in hour 's' second in minute 'f' fractional seconds 'Z' timezone as a time offset from UTC for example PST 'z' timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The given string $value representing the dateTime value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param calendar This argument is reserved for future use. The only calendar supported at this point is "Gregorian" or "AD". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param country $country is used to take into account if there any country specific interpretation of the string while converting it into dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression parseDateTime(ServerExpression picture, String value, String language, String calendar, String country); /** * Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-dateTime" target="mlserverdoc">xdmp:parse-dateTime</a> server function. * @param picture The desired string representation of the given $value. The picture string is a sequence of characters, in which the characters represent variables such as, decimal-separator-sign, grouping-sign, zero-digit-sign, digit-sign, pattern-separator, percent sign and per-mille-sign. For details on the picture string, see http://www.w3.org/TR/xslt20/#date-picture-string. This follows the specification of picture string in the W3C XSLT 2.0 specification for the fn:format-dateTime function. Symbol Description ----------------------------------- 'Y' year(absolute value) 'M' month in year 'D' day in month 'd' day in year 'F' day of week 'W' week in year 'w' week in month 'H' hour in day 'h' hour in half-day 'P' am/pm marker 'm' minute in hour 's' second in minute 'f' fractional seconds 'Z' timezone as a time offset from UTC for example PST 'z' timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The given string $value representing the dateTime value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param calendar This argument is reserved for future use. The only calendar supported at this point is "Gregorian" or "AD". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param country $country is used to take into account if there any country specific interpretation of the string while converting it into dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression parseDateTime(ServerExpression picture, ServerExpression value, ServerExpression language, ServerExpression calendar, ServerExpression country); /** * Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-yymmdd" target="mlserverdoc">xdmp:parse-yymmdd</a> server function. * @param picture The desired string representation of the given $value. This follows the specification of picture string which is compatible to the format specification in icu. See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html for more details. The following is the summary of the formatting symbols: Symbol Description ---------------------------- "y" year(absolute value) "M" month in year "d" day in month "D" day in year "E" day of week "w" week in year "W" week in month "H" hour in day "K" hour in half-day "a" am/pm marker "s" second in minute "S" fractional seconds "Z" timezone as a time offset from UTC for example PST "ZZZZ" timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The given string $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression parseYymmdd(ServerExpression picture, String value); /** * Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript. * * <a name="ml-server-type-parse-yymmdd"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-yymmdd" target="mlserverdoc">xdmp:parse-yymmdd</a> server function. * @param picture The desired string representation of the given $value. This follows the specification of picture string which is compatible to the format specification in icu. See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html for more details. The following is the summary of the formatting symbols: Symbol Description ---------------------------- "y" year(absolute value) "M" month in year "d" day in month "D" day in year "E" day of week "w" week in year "W" week in month "H" hour in day "K" hour in half-day "a" am/pm marker "s" second in minute "S" fractional seconds "Z" timezone as a time offset from UTC for example PST "ZZZZ" timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The given string $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression parseYymmdd(ServerExpression picture, ServerExpression value); /** * Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-yymmdd" target="mlserverdoc">xdmp:parse-yymmdd</a> server function. * @param picture The desired string representation of the given $value. This follows the specification of picture string which is compatible to the format specification in icu. See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html for more details. The following is the summary of the formatting symbols: Symbol Description ---------------------------- "y" year(absolute value) "M" month in year "d" day in month "D" day in year "E" day of week "w" week in year "W" week in month "H" hour in day "K" hour in half-day "a" am/pm marker "s" second in minute "S" fractional seconds "Z" timezone as a time offset from UTC for example PST "ZZZZ" timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The given string $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression parseYymmdd(ServerExpression picture, String value, String language); /** * Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-yymmdd" target="mlserverdoc">xdmp:parse-yymmdd</a> server function. * @param picture The desired string representation of the given $value. This follows the specification of picture string which is compatible to the format specification in icu. See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html for more details. The following is the summary of the formatting symbols: Symbol Description ---------------------------- "y" year(absolute value) "M" month in year "d" day in month "D" day in year "E" day of week "w" week in year "W" week in month "H" hour in day "K" hour in half-day "a" am/pm marker "s" second in minute "S" fractional seconds "Z" timezone as a time offset from UTC for example PST "ZZZZ" timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The given string $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression parseYymmdd(ServerExpression picture, ServerExpression value, ServerExpression language); /** * Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-yymmdd" target="mlserverdoc">xdmp:parse-yymmdd</a> server function. * @param picture The desired string representation of the given $value. This follows the specification of picture string which is compatible to the format specification in icu. See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html for more details. The following is the summary of the formatting symbols: Symbol Description ---------------------------- "y" year(absolute value) "M" month in year "d" day in month "D" day in year "E" day of week "w" week in year "W" week in month "H" hour in day "K" hour in half-day "a" am/pm marker "s" second in minute "S" fractional seconds "Z" timezone as a time offset from UTC for example PST "ZZZZ" timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The given string $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param calendar This argument is reserved for future use. The only calendar supported at this point is "Gregorian" or "AD". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression parseYymmdd(ServerExpression picture, String value, String language, String calendar); /** * Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-yymmdd" target="mlserverdoc">xdmp:parse-yymmdd</a> server function. * @param picture The desired string representation of the given $value. This follows the specification of picture string which is compatible to the format specification in icu. See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html for more details. The following is the summary of the formatting symbols: Symbol Description ---------------------------- "y" year(absolute value) "M" month in year "d" day in month "D" day in year "E" day of week "w" week in year "W" week in month "H" hour in day "K" hour in half-day "a" am/pm marker "s" second in minute "S" fractional seconds "Z" timezone as a time offset from UTC for example PST "ZZZZ" timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The given string $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param calendar This argument is reserved for future use. The only calendar supported at this point is "Gregorian" or "AD". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression parseYymmdd(ServerExpression picture, ServerExpression value, ServerExpression language, ServerExpression calendar); /** * Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-yymmdd" target="mlserverdoc">xdmp:parse-yymmdd</a> server function. * @param picture The desired string representation of the given $value. This follows the specification of picture string which is compatible to the format specification in icu. See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html for more details. The following is the summary of the formatting symbols: Symbol Description ---------------------------- "y" year(absolute value) "M" month in year "d" day in month "D" day in year "E" day of week "w" week in year "W" week in month "H" hour in day "K" hour in half-day "a" am/pm marker "s" second in minute "S" fractional seconds "Z" timezone as a time offset from UTC for example PST "ZZZZ" timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The given string $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param calendar This argument is reserved for future use. The only calendar supported at this point is "Gregorian" or "AD". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param country $country is used to take into account if there any country specific interpretation of the string while converting it into dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression parseYymmdd(ServerExpression picture, String value, String language, String calendar, String country); /** * Parses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value. While this function is closely related to other XSLT functions, it is available in XSLT as well as in all XQuery dialects and in Server-Side JavaScript. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:parse-yymmdd" target="mlserverdoc">xdmp:parse-yymmdd</a> server function. * @param picture The desired string representation of the given $value. This follows the specification of picture string which is compatible to the format specification in icu. See http://icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html for more details. The following is the summary of the formatting symbols: Symbol Description ---------------------------- "y" year(absolute value) "M" month in year "d" day in month "D" day in year "E" day of week "w" week in year "W" week in month "H" hour in day "K" hour in half-day "a" am/pm marker "s" second in minute "S" fractional seconds "Z" timezone as a time offset from UTC for example PST "ZZZZ" timezone as an offset using GMT, for example GMT+1 (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The given string $value that needs to be formatted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param language The language used in string representation of the date, time or dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param calendar This argument is reserved for future use. The only calendar supported at this point is "Gregorian" or "AD". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param country $country is used to take into account if there any country specific interpretation of the string while converting it into dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression parseYymmdd(ServerExpression picture, ServerExpression value, ServerExpression language, ServerExpression calendar, ServerExpression country); /** * Returns a string whose value corresponds to the path of the node. * * <a name="ml-server-type-path"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:path" target="mlserverdoc">xdmp:path</a> server function. * @param node The node whose path is returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression path(ServerExpression node); /** * Returns a string whose value corresponds to the path of the node. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:path" target="mlserverdoc">xdmp:path</a> server function. * @param node The node whose path is returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>) * @param includeDocument If true, then the path is presented with a leading doc(..)/.., otherwise the path is presented as /... (of <a href="{@docRoot}/doc-files/types/xs_boolean.html">xs:boolean</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression path(ServerExpression node, boolean includeDocument); /** * Returns a string whose value corresponds to the path of the node. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:path" target="mlserverdoc">xdmp:path</a> server function. * @param node The node whose path is returned. (of <a href="{@docRoot}/doc-files/types/node.html">node</a>) * @param includeDocument If true, then the path is presented with a leading doc(..)/.., otherwise the path is presented as /... (of <a href="{@docRoot}/doc-files/types/xs_boolean.html">xs:boolean</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression path(ServerExpression node, ServerExpression includeDocument); /** * Returns an integer value representing the starting position of a string within the search string. Note, the string starting position is 1. If the first parameter is empty, the result is the empty sequence. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:position" target="mlserverdoc">xdmp:position</a> server function. * @param test The string to test for existence in the second parameter. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param target The string from which to test. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type */ public ServerExpression position(ServerExpression test, String target); /** * Returns an integer value representing the starting position of a string within the search string. Note, the string starting position is 1. If the first parameter is empty, the result is the empty sequence. * * <a name="ml-server-type-position"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:position" target="mlserverdoc">xdmp:position</a> server function. * @param test The string to test for existence in the second parameter. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param target The string from which to test. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type */ public ServerExpression position(ServerExpression test, ServerExpression target); /** * Returns an integer value representing the starting position of a string within the search string. Note, the string starting position is 1. If the first parameter is empty, the result is the empty sequence. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:position" target="mlserverdoc">xdmp:position</a> server function. * @param test The string to test for existence in the second parameter. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param target The string from which to test. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param collation The optional name of a valid collation URI. For information on the collation URI syntax, see the Search Developer's Guide. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type */ public ServerExpression position(ServerExpression test, String target, String collation); /** * Returns an integer value representing the starting position of a string within the search string. Note, the string starting position is 1. If the first parameter is empty, the result is the empty sequence. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:position" target="mlserverdoc">xdmp:position</a> server function. * @param test The string to test for existence in the second parameter. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param target The string from which to test. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param collation The optional name of a valid collation URI. For information on the collation URI syntax, see the Search Developer's Guide. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type */ public ServerExpression position(ServerExpression test, ServerExpression target, ServerExpression collation); /** * Construct a QName from a string of the form "{namespaceURI}localname". This function is useful for constructing Clark notation parameters for the xdmp:xslt-eval and xdmp:xslt-invoke functions. * * <a name="ml-server-type-QName-from-key"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:QName-from-key" target="mlserverdoc">xdmp:QName-from-key</a> server function. * @param key The string from which to construct a QName. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_QName.html">xs:QName</a> server data type */ public ServerExpression QNameFromKey(ServerExpression key); /** * Returns an integer between 1 and 4, both inclusive, calculating the quarter component in the localized value of arg. * * <a name="ml-server-type-quarter-from-date"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:quarter-from-date" target="mlserverdoc">xdmp:quarter-from-date</a> server function. * @param arg The date whose quarter component will be returned. (of <a href="{@docRoot}/doc-files/types/xs_date.html">xs:date</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type */ public ServerExpression quarterFromDate(ServerExpression arg); /** * Returns a random unsigned integer between 0 and a number up to 64 bits long. * * <a name="ml-server-type-random"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:random" target="mlserverdoc">xdmp:random</a> server function. * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type */ public ServerExpression random(); /** * Returns a random unsigned integer between 0 and a number up to 64 bits long. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:random" target="mlserverdoc">xdmp:random</a> server function. * @param max The optional maximum value (inclusive). (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type */ public ServerExpression random(ServerExpression max); /** * Resolves a relative URI against an absolute URI. If base is specified, the URI is resolved relative to that base. If base is not specified, the base is set to the base-uri property from the static context, if the property exists; if it does not exist, an error is thrown. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:resolve-uri" target="mlserverdoc">xdmp:resolve-uri</a> server function. * @param relative A URI reference to resolve against the base. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param base An absolute URI to use as the base of the resolution. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_anyURI.html">xs:anyURI</a> server data type */ public ServerExpression resolveUri(ServerExpression relative, String base); /** * Resolves a relative URI against an absolute URI. If base is specified, the URI is resolved relative to that base. If base is not specified, the base is set to the base-uri property from the static context, if the property exists; if it does not exist, an error is thrown. * * <a name="ml-server-type-resolve-uri"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:resolve-uri" target="mlserverdoc">xdmp:resolve-uri</a> server function. * @param relative A URI reference to resolve against the base. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param base An absolute URI to use as the base of the resolution. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_anyURI.html">xs:anyURI</a> server data type */ public ServerExpression resolveUri(ServerExpression relative, ServerExpression base); /** * Right-shift a 64-bit integer value. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:rshift64" target="mlserverdoc">xdmp:rshift64</a> server function. * @param x The value to shift. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @param y The right shift to perform. This value may be negative. (of <a href="{@docRoot}/doc-files/types/xs_long.html">xs:long</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type */ public ServerExpression rshift64(ServerExpression x, long y); /** * Right-shift a 64-bit integer value. * * <a name="ml-server-type-rshift64"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:rshift64" target="mlserverdoc">xdmp:rshift64</a> server function. * @param x The value to shift. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @param y The right shift to perform. This value may be negative. (of <a href="{@docRoot}/doc-files/types/xs_long.html">xs:long</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type */ public ServerExpression rshift64(ServerExpression x, ServerExpression y); /** * Calculates the SHA1 hash of the given argument. * * <a name="ml-server-type-sha1"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha1" target="mlserverdoc">xdmp:sha1</a> server function. * @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression sha1(ServerExpression data); /** * Calculates the SHA1 hash of the given argument. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha1" target="mlserverdoc">xdmp:sha1</a> server function. * @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression sha1(ServerExpression data, String encoding); /** * Calculates the SHA1 hash of the given argument. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha1" target="mlserverdoc">xdmp:sha1</a> server function. * @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression sha1(ServerExpression data, ServerExpression encoding); /** * Calculates the SHA256 hash of the given argument. * * <a name="ml-server-type-sha256"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha256" target="mlserverdoc">xdmp:sha256</a> server function. * @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression sha256(ServerExpression data); /** * Calculates the SHA256 hash of the given argument. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha256" target="mlserverdoc">xdmp:sha256</a> server function. * @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression sha256(ServerExpression data, String encoding); /** * Calculates the SHA256 hash of the given argument. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha256" target="mlserverdoc">xdmp:sha256</a> server function. * @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression sha256(ServerExpression data, ServerExpression encoding); /** * Calculates the SHA384 hash of the given argument. * * <a name="ml-server-type-sha384"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha384" target="mlserverdoc">xdmp:sha384</a> server function. * @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression sha384(ServerExpression data); /** * Calculates the SHA384 hash of the given argument. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha384" target="mlserverdoc">xdmp:sha384</a> server function. * @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression sha384(ServerExpression data, String encoding); /** * Calculates the SHA384 hash of the given argument. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha384" target="mlserverdoc">xdmp:sha384</a> server function. * @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression sha384(ServerExpression data, ServerExpression encoding); /** * Calculates the SHA512 hash of the given argument. * * <a name="ml-server-type-sha512"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha512" target="mlserverdoc">xdmp:sha512</a> server function. * @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression sha512(ServerExpression data); /** * Calculates the SHA512 hash of the given argument. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha512" target="mlserverdoc">xdmp:sha512</a> server function. * @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression sha512(ServerExpression data, String encoding); /** * Calculates the SHA512 hash of the given argument. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:sha512" target="mlserverdoc">xdmp:sha512</a> server function. * @param data Data to be hashed. Must be xs:string or a binary node. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @param encoding Encoding format for the output string, must be "hex" for hexadecimal or "base64". Default is "hex". (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression sha512(ServerExpression data, ServerExpression encoding); /** * Combines an initial hash with a subsequent hash. * * <a name="ml-server-type-step64"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:step64" target="mlserverdoc">xdmp:step64</a> server function. * @param initial An initial hash. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @param step A step hash to be combined with the initial hash. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type */ public ServerExpression step64(ServerExpression initial, ServerExpression step); /** * Formats a dateTime value using POSIX strftime. This function uses the POSIX strftime system call in the way it is implemented on each platform. For other XQuery functions that have more functionality (for example, for things like timezones), use one or more if the various XQuery or XSLT standard functions such as fn:format-dateTime . * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:strftime" target="mlserverdoc">xdmp:strftime</a> server function. * @param format The strftime format string. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression strftime(ServerExpression format, String value); /** * Formats a dateTime value using POSIX strftime. This function uses the POSIX strftime system call in the way it is implemented on each platform. For other XQuery functions that have more functionality (for example, for things like timezones), use one or more if the various XQuery or XSLT standard functions such as fn:format-dateTime . * * <a name="ml-server-type-strftime"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:strftime" target="mlserverdoc">xdmp:strftime</a> server function. * @param format The strftime format string. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param value The dateTime value. (of <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression strftime(ServerExpression format, ServerExpression value); /** * Converts a 64 bit timestamp value to an xs:dateTime. * * <a name="ml-server-type-timestamp-to-wallclock"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:timestamp-to-wallclock" target="mlserverdoc">xdmp:timestamp-to-wallclock</a> server function. * @param timestamp The timestamp. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a> server data type */ public ServerExpression timestampToWallclock(ServerExpression timestamp); /** * Constructs a JSON document. * * <a name="ml-server-type-to-json"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:to-json" target="mlserverdoc">xdmp:to-json</a> server function. * @param item A sequence of items from which the JSON document is to be constructed. The item sequence from which the JSON document is constructed. (of <a href="{@docRoot}/doc-files/types/item.html">item</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/node.html">node</a> server data type */ public ServerExpression toJson(ServerExpression item); /** * Returns the name of the simple type of the atomic value argument as an xs:QName. * * <a name="ml-server-type-type"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:type" target="mlserverdoc">xdmp:type</a> server function. * @param value The value to return the type of. (of <a href="{@docRoot}/doc-files/types/xs_anyAtomicType.html">xs:anyAtomicType</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_QName.html">xs:QName</a> server data type */ public ServerExpression type(ServerExpression value); /** * Parses a string as XML, returning one or more document nodes. * * <a name="ml-server-type-unquote"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:unquote" target="mlserverdoc">xdmp:unquote</a> server function. * @param arg Input to be unquoted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/document-node.html">document-node</a> server data type */ public ServerExpression unquote(ServerExpression arg); /** * Parses a string as XML, returning one or more document nodes. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:unquote" target="mlserverdoc">xdmp:unquote</a> server function. * @param arg Input to be unquoted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param defaultNamespace Default namespace for nodes in the first parameter. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/document-node.html">document-node</a> server data type */ public ServerExpression unquote(ServerExpression arg, String defaultNamespace); /** * Parses a string as XML, returning one or more document nodes. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:unquote" target="mlserverdoc">xdmp:unquote</a> server function. * @param arg Input to be unquoted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param defaultNamespace Default namespace for nodes in the first parameter. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/document-node.html">document-node</a> server data type */ public ServerExpression unquote(ServerExpression arg, ServerExpression defaultNamespace); /** * Parses a string as XML, returning one or more document nodes. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:unquote" target="mlserverdoc">xdmp:unquote</a> server function. * @param arg Input to be unquoted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param defaultNamespace Default namespace for nodes in the first parameter. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param options The options for getting this document. The default value is (). Options include: "repair-full" Specifies that malformed XML content be repaired. XML content with multiple top-level elements will be parsed as multiple documents. This option has no effect on binary or text documents. "repair-none" Specifies that malformed XML content be rejected. XML content will be parsed as a single document, so a maximum of one document node will be returned. This option has no effect on binary or text documents. "format-text" Specifies to get the document as a text document, regardless of the URI specified. "format-binary" Specifies to get the document as a binary document, regardless of the URI specified. "format-xml" Specifies to get the document as an XML document, regardless of the URI specified. "format-json" Specifies to get the document as a JSON document, regardless of the URI specified. "default-language=xx" If the root element node specified in the first parameter does not already have an xml:lang attribute, the language to specify in an xml:lang attribute on the root element node. If default-language is not specified, then nothing is added to the root element node. Some examples are default-language=en and default-language=fr. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/document-node.html">document-node</a> server data type */ public ServerExpression unquote(ServerExpression arg, String defaultNamespace, String options); /** * Parses a string as XML, returning one or more document nodes. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:unquote" target="mlserverdoc">xdmp:unquote</a> server function. * @param arg Input to be unquoted. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param defaultNamespace Default namespace for nodes in the first parameter. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param options The options for getting this document. The default value is (). Options include: "repair-full" Specifies that malformed XML content be repaired. XML content with multiple top-level elements will be parsed as multiple documents. This option has no effect on binary or text documents. "repair-none" Specifies that malformed XML content be rejected. XML content will be parsed as a single document, so a maximum of one document node will be returned. This option has no effect on binary or text documents. "format-text" Specifies to get the document as a text document, regardless of the URI specified. "format-binary" Specifies to get the document as a binary document, regardless of the URI specified. "format-xml" Specifies to get the document as an XML document, regardless of the URI specified. "format-json" Specifies to get the document as a JSON document, regardless of the URI specified. "default-language=xx" If the root element node specified in the first parameter does not already have an xml:lang attribute, the language to specify in an xml:lang attribute on the root element node. If default-language is not specified, then nothing is added to the root element node. Some examples are default-language=en and default-language=fr. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/document-node.html">document-node</a> server data type */ public ServerExpression unquote(ServerExpression arg, ServerExpression defaultNamespace, ServerExpression options); /** * Returns the content type of the given URI as matched in the mimetypes configuration. xdmp:content-type continues to work too. * * <a name="ml-server-type-uri-content-type"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:uri-content-type" target="mlserverdoc">xdmp:uri-content-type</a> server function. * @param uri The document URI. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression uriContentType(ServerExpression uri); /** * Returns the format of the given URI as matched in the mimetypes configuration. * * <a name="ml-server-type-uri-format"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:uri-format" target="mlserverdoc">xdmp:uri-format</a> server function. * @param uri The document URI. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression uriFormat(ServerExpression uri); /** * Converts URL-encoded string to plaintext. This decodes the string created with xdmp:url-encode. * * <a name="ml-server-type-url-decode"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:url-decode" target="mlserverdoc">xdmp:url-decode</a> server function. * @param encoded Encoded text to be decoded. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression urlDecode(ServerExpression encoded); /** * Converts plaintext into URL-encoded string. To decode the string, use xdmp:url-decode. * * <a name="ml-server-type-url-encode"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:url-encode" target="mlserverdoc">xdmp:url-encode</a> server function. * @param plaintext Plaintext to be encoded. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression urlEncode(ServerExpression plaintext); /** * Converts plaintext into URL-encoded string. To decode the string, use xdmp:url-decode. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:url-encode" target="mlserverdoc">xdmp:url-encode</a> server function. * @param plaintext Plaintext to be encoded. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param noSpacePlus True to encode space as "%20" instead of "+". (of <a href="{@docRoot}/doc-files/types/xs_boolean.html">xs:boolean</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression urlEncode(ServerExpression plaintext, boolean noSpacePlus); /** * Converts plaintext into URL-encoded string. To decode the string, use xdmp:url-decode. * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:url-encode" target="mlserverdoc">xdmp:url-encode</a> server function. * @param plaintext Plaintext to be encoded. (of <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a>) * @param noSpacePlus True to encode space as "%20" instead of "+". (of <a href="{@docRoot}/doc-files/types/xs_boolean.html">xs:boolean</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_string.html">xs:string</a> server data type */ public ServerExpression urlEncode(ServerExpression plaintext, ServerExpression noSpacePlus); /** * Converts an xs:dateTime to a 64 bit timestamp value. * * <a name="ml-server-type-wallclock-to-timestamp"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:wallclock-to-timestamp" target="mlserverdoc">xdmp:wallclock-to-timestamp</a> server function. * @param timestamp The xs:datetime value. (of <a href="{@docRoot}/doc-files/types/xs_dateTime.html">xs:dateTime</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type */ public ServerExpression wallclockToTimestamp(ServerExpression timestamp); /** * Returns an integer between 1 and 53, both inclusive, representing the week value in the localized value of arg. * * <a name="ml-server-type-week-from-date"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:week-from-date" target="mlserverdoc">xdmp:week-from-date</a> server function. * @param arg The date whose weeks of the year will be returned. (of <a href="{@docRoot}/doc-files/types/xs_date.html">xs:date</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type */ public ServerExpression weekFromDate(ServerExpression arg); /** * Returns an integer in the range 1 to 7, inclusive, representing the weekday value in the localized value of arg. Monday is the first weekday value (value of 1), and Sunday is the last (value of 7). * * <a name="ml-server-type-weekday-from-date"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:weekday-from-date" target="mlserverdoc">xdmp:weekday-from-date</a> server function. * @param arg The date whose weekday value will be returned. (of <a href="{@docRoot}/doc-files/types/xs_date.html">xs:date</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type */ public ServerExpression weekdayFromDate(ServerExpression arg); /** * XOR two 64-bit integer values. * * <a name="ml-server-type-xor64"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:xor64" target="mlserverdoc">xdmp:xor64</a> server function. * @param x The first value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @param y The second value. (of <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_unsignedLong.html">xs:unsignedLong</a> server data type */ public ServerExpression xor64(ServerExpression x, ServerExpression y); /** * Returns an integer between 1 and 366, both inclusive, representing the yearday value in the localized value of arg. * * <a name="ml-server-type-yearday-from-date"></a> * <p> * Provides a client interface to the <a href="http://docs.marklogic.com/xdmp:yearday-from-date" target="mlserverdoc">xdmp:yearday-from-date</a> server function. * @param arg The date whose days of the year will be returned. (of <a href="{@docRoot}/doc-files/types/xs_date.html">xs:date</a>) * @return a server expression with the <a href="{@docRoot}/doc-files/types/xs_integer.html">xs:integer</a> server data type */ public ServerExpression yeardayFromDate(ServerExpression arg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Expression generateExpression(GenerationContext context);", "@Test\n public void testMultiFunction() throws Exception {\n String sql = \"SELECT 5 + length(concat(a, 'x')) FROM g\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node function1Node = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, Function.ID);\n verifyProperty(function1Node, Function.NAME_PROP_NAME, \"+\");\n verifyConstant(function1Node, Function.ARGS_REF_NAME, 1, 5);\n \n Node function2Node = verify(function1Node, Function.ARGS_REF_NAME, 2, Function.ID);\n verifyProperty(function2Node, Function.NAME_PROP_NAME, \"length\");\n \n Node function3Node = verify(function2Node, Function.ARGS_REF_NAME, Function.ID);\n verifyProperty(function3Node, Function.NAME_PROP_NAME, \"concat\");\n verifyElementSymbol(function3Node, Function.ARGS_REF_NAME, 1, \"a\");\n verifyConstant(function3Node, Function.ARGS_REF_NAME, 2, \"x\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"g\");\n \n verifySql(\"SELECT (5 + length(concat(a, 'x'))) FROM g\", fileNode);\n }", "public static void main(String[] args) {\n\n System.out.println(\"119.1+(28.2+37.3*(46.4-55.5)-4.6+(3/2)+1) = \" + evaluateExpression(\"119.1 + ( 28.2 + 37.3 * ( 46.4 - 55.5 ) - 4.6 + ( 3 / 2 ) + 1 )\"));\n\n}", "@Test\n public void test() {\n final ZuluCompileResult result = this.engine.compile(\"{ \"\n // + \"a: hello(name: 'theo'),\"\n // + \"b: child { a: hello(name: 'alice'), b: hello(name: 'bob') }, \"\n // + \"c: sum(xa: 1, b: 2)\"\n + \"d: child { g: id, f: id, child { id, A: intcount, b: intcount, longcount } } \"\n + \"other { typeAfield } \"\n + \" }\");\n\n if (!result.warnings().isEmpty()) {\n result.warnings().forEach(System.err::println);\n }\n\n final ZuluExecutable executable = result.executable();\n\n System.err.println(\" --- executing\");\n\n // bind executable to a context.\n final ZuluContext context = executable.bind(new QueryRoot(), new ZuluExecutionScope());\n\n // now invoke a single field without parameters.\n final Map<ZuluSelection, Object> values = context.execute();\n\n values.forEach((sel, val) -> System.err.println(sel.path() + \"[\" + sel.fieldType() + \"]\" + \": \" + val));\n\n // System.err.println(context.execute(new DebugZuluResultReceiver(), \"d\"));\n\n // and then execute all fields in the operation at once.\n // context.execute()\n // .forEach((outputField, fieldValue) -> System.err.println(outputField + \" = \" + fieldValue));\n\n }", "Expression createExpression();", "public static Node executeExpressions(Node node, Environment env) {\n Node statement = node;\n Node nextStatement = statement.getCdr();\n\n\n while (!nextStatement.isNull()) {\n statement.getCar().eval(statement, env);\n statement = nextStatement;\n nextStatement = nextStatement.getCdr();\n }\n return statement.getCar().eval(statement, env);\n }", "XExpr createXExpr();", "Hojas eval();", "public Object getExpression();", "public String evaluateExpression(ValueExpression expr,CodeExecutionContext execCtx) throws JavascribeException;", "Expr createExpr();", "String getExpression();", "String getExpression();", "@Override\n public void execute() {\n\n String value=\"\";\n ////System.out.println(expCtx.printBlock().printExtra().arrayCall().getText());\n boolean chh = false;\n try {\n chh = expCtx.printBlock().printExtra().expression().assignmentExpression().assignment().additiveExpression().multiplicativeExpression().unaryExpression().unaryExpressionNotPlusMinus().postfixExpression().primary().arrayCall()!=null;\n }catch (NullPointerException e){\n\n }\n if (expCtx.printBlock().printExtra().arrayCall()!=null\n ||chh){\n //System.out.println(\"FOUND ARRAY\");\n List<Integer> matchList = new ArrayList<Integer>();\n Pattern regex = Pattern.compile(\"\\\\[(.*?)\\\\]\");\n //System.out.println(expCtx.printBlock().getText());\n Matcher regexMatcher = regex.matcher(expCtx.printBlock().getText());\n List<Integer> dummy = null;\n while (regexMatcher.find()) {//Finds Matching Pattern in String\n //System.out.println(\"IN MATCHER\");\n //System.out.println(ClypsCustomVisitor.testingExpression(regexMatcher.group(1).trim(), dummy, expCtx.start.getLine()));\n matchList.add(Integer.parseInt(ClypsCustomVisitor.testingExpression(regexMatcher.group(1).trim(), dummy, expCtx.start.getLine())));//Fetching Group from String\n }\n value = ClypsCustomVisitor.testingExpression(expCtx.printBlock().getText(), matchList, expCtx.start.getLine());\n //System.out.println(value);\n }else {\n //System.out.println(\"NOT ARRAY\");\n List<Integer> dummy = null;\n value = ClypsCustomVisitor.testingExpression(expCtx.printBlock().getText(), dummy, expCtx.start.getLine());\n //System.out.println(value);\n }\n\n if (value.contains(\"\\\"\")&&value.matches(\".*[a-zA-Z]+.*\")&&value.matches(\".*[0-9]+.*\")){\n //System.out.println(\"WE IN\");\n String[] temp = value.split(\"\\\\+\");\n ArrayList<String> store = new ArrayList<>();\n for (int i = 0;i<temp.length;i++){\n try {\n store.add(new Expression(temp[i]).eval().toPlainString());\n }catch (NullPointerException e){\n store.add(temp[i]);\n }\n }\n String send=\"\";\n for (String i:store){\n //System.out.println(i);\n send=send.concat(i);\n }\n //System.out.println(\"WE OUT\");\n //System.out.println(send);\n\n send=send.replaceAll(\"\\\"\",\"\").replaceAll(\"\\\\+\",\"\");\n ////System.out.println(\"ACTUAL PRINT\");\n if (expCtx.printHead().getText().contains(\"ln\"))\n System.out.println(send);\n else\n System.out.print(send);\n }else {\n //System.out.println(\"YEP\");\n //CAUTION: REPLACES ALL + SIGNS\n value=value.replaceAll(\"\\\"\",\"\").replaceAll(\"\\\\+\",\"\");\n ////System.out.println(\"ACTUAL PRINT\");\n if (expCtx.printHead().getText().contains(\"ln\"))\n System.out.println(value);\n else\n System.out.print(value);\n }\n\n\n\n\n\n }", "@Test void testInterpretFunction() {\n SchemaPlus schema = rootSchema.add(\"s\", new AbstractSchema());\n final ScalarFunction f =\n ScalarFunctionImpl.create(Smalls.MY_PLUS_EVAL_METHOD);\n schema.add(\"myPlus\", f);\n final String sql = \"select x, \\\"s\\\".\\\"myPlus\\\"(x, 1)\\n\"\n + \"from (values (2), (4), (7)) as t (x)\";\n String[] rows = {\"[2, 3]\", \"[4, 5]\", \"[7, 8]\"};\n final int n = Smalls.MyPlusFunction.INSTANCE_COUNT.get().get();\n sql(sql).returnsRows(rows);\n final int n2 = Smalls.MyPlusFunction.INSTANCE_COUNT.get().get();\n assertThat(n2, is(n + 1)); // instantiated once per run, not once per row\n }", "private Expression transform(Expression exp)\n {\n return UseContracts.execute(exp, fun, callers);\n }", "@Test\n\tpublic void testFunctionCall() throws ParseException {\n\n\t\t// function call with one argument\n\t\tExpression expression = langParser(\"today('GMT')\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\tFunctionCall functionCall = (FunctionCall) expression;\n\t\tassertEquals(functionCall.getFunctionValue().getClass(), Identifier.class);\n\t\tassertEquals(((Identifier) functionCall.getFunctionValue()).getName(), \"today\");\n\t\tassertEquals(functionCall.getArguments().size(), 1);\n\t\tassertEquals(functionCall.getArguments().get(0).getClass(), StringLiteral.class);\n\t\tassertEquals(((StringLiteral) functionCall.getArguments().get(0)).getValue(), \"GMT\");\n\n\t\t// function call with no argument\n\t\texpression = langParser(\"now()\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\tfunctionCall = (FunctionCall) expression;\n\t\tassertEquals(functionCall.getFunctionValue().getClass(), Identifier.class);\n\t\tassertEquals(((Identifier) functionCall.getFunctionValue()).getName(), \"now\");\n\t\tassertEquals(functionCall.getArguments().size(), 0);\n\n\t\t// function call with an expression as function value\n\t\texpression = langParser(\"a(1)(3)\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\tfunctionCall = (FunctionCall) expression;\n\t\tassertEquals(functionCall.getFunctionValue().getClass(), FunctionCall.class);\n\t\tassertEquals(functionCall.getArguments().size(), 1);\n\n\t\t// function call with lambda expression\n\t\texpression = langParser(\"(fn(a,b)->mul(add(a,1),b))(4,5)\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\tfunctionCall = (FunctionCall) expression;\n\t\tassertEquals(functionCall.getFunctionValue().getClass(), FunctionLiteral.class);\n\t\tassertEquals(functionCall.getArguments().size(), 2);\n\t}", "@Test\n public void test01(){\n Object result = FelEngine.instance.eval(\"5000*12+7500\");\n System.out.println(result);\n }", "Expr expr();", "XExpression getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "JavaExpression createJavaExpression();", "ExpressionCalculPrimary getExpr();", "private void jetInvokeExpr(){\n\t\tInvokeExpr invokeExpr = (InvokeExpr) rExpr;\n\t\tSootMethodRef methodRef = invokeExpr.getMethodRef();\n\t\tif(StringModeling.stringMethods.contains(methodRef.getSignature())){\n\t\t\tjetStringOperation(invokeExpr);\n\t\t}else{\n\t\t\tValue thisBase = null;\n\t\t\tif(invokeExpr instanceof InterfaceInvokeExpr){\n\t\t\t\tthisBase = ((InterfaceInvokeExpr) invokeExpr).getBase();\n\t\t\t}else if(invokeExpr instanceof SpecialInvokeExpr){\n\t\t\t\tthisBase = ((SpecialInvokeExpr) invokeExpr).getBase();\n\t\t\t}else if(invokeExpr instanceof VirtualInvokeExpr){\n\t\t\t\tthisBase = ((VirtualInvokeExpr) invokeExpr).getBase();\n\t\t\t}\n\t\t\tString funStr = constructFunStr(invokeExpr);\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(\"(\");\n\t\t\tsb.append(funStr);\n\t\t\tsb.append(\" \");\n\t\t\t\n\t\t\tif(thisBase != null){\n\t\t\t\tString thisBaseName = fileGenerator.getRenameOf(thisBase, false, this.stmtIdx);\n\t\t\t\tsb.append(thisBaseName);\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t\t\n\t\t\tfor(Value param : invokeExpr.getArgs()){\n\t\t\t\tif(param instanceof Constant){\n\t\t\t\t\tsb.append(param.toString());\n\t\t\t\t}else{\n\t\t\t\t\tString paramName = fileGenerator.getRenameOf(param, false, this.stmtIdx);\n\t\t\t\t\tif(param instanceof NumericConstant && paramName.startsWith(\"-\")){\n\t\t\t\t\t\t//-1 --> (- 0 1)\n\t\t\t\t\t\tsb.append(\"(- 0 \");\n\t\t\t\t\t\tsb.append(paramName.substring(1));\n\t\t\t\t\t\tsb.append(\")\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append(paramName);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t\t\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t}\n\t}", "private QueryFunction compile(Stack<QueryTerm> queryTerms) {\n if (queryTerms.isEmpty()) return (s, r) -> s;\n return (s, r) -> Queries.of(queryTerms.pop()).apply(compile(queryTerms).apply(s, r), r);\n }", "DExpression getExpression();", "public String evaluate(String expression);", "public interface Column extends Expression {\n\n Expression asc();\n\n Expression desc();\n\n Expression isNull();\n\n Expression isNotNull();\n\n Expression lt(Expression expr);\n\n Expression lt(Integer literal);\n\n Expression lt(Float literal);\n\n Expression lt(Double literal);\n\n Expression gt(Expression expr);\n\n Expression gt(Integer literal);\n\n Expression gt(Float literal);\n\n Expression gt(Double literal);\n\n Expression eq(Expression expr);\n\n Expression eq(Integer literal);\n\n Expression eq(Float literal);\n\n Expression eq(Double literal);\n\n Expression eq(String literal);\n\n Expression le(Expression expr);\n\n Expression le(Integer literal);\n\n Expression le(Float literal);\n\n Expression le(Double literal);\n\n Expression ge(Expression expr);\n\n Expression ge(Integer literal);\n\n Expression ge(Float literal);\n\n Expression ge(Double literal);\n\n Expression ne(Expression expr);\n\n Expression ne(Integer literal);\n\n Expression ne(Float literal);\n\n Expression ne(Double literal);\n\n Expression ne(String literal);\n\n Expression ne2(Expression expr);\n\n Expression ne2(Integer literal);\n\n Expression ne2(Float literal);\n\n Expression ne2(Double literal);\n\n Expression ne2(String literal);\n\n Expression in(Expression... expressions);\n\n Expression in(String... strLiterals);\n\n Expression in(Integer... intLiterals);\n\n Expression in(Long... longLiterals);\n\n Expression in(Dataset dataset);\n\n Expression notIn(Expression... expressions);\n\n Expression notIn(String... strLiterals);\n\n Expression notIn(Integer... intLiterals);\n\n Expression notIn(Long... longLiterals);\n\n Expression notIn(Dataset dataset);\n\n Expression between(Expression left, Expression right);\n\n Expression notBetween(Expression left, Expression right);\n\n Expression between(Integer left, Integer right);\n\n Expression notBetween(Integer left, Integer right);\n\n Expression between(Long left, Long right);\n\n Expression notBetween(Long left, Long right);\n\n Expression like(String str);\n}", "public Object eval (Object expression);", "private static <QUERY> void outputExpression(QueryDialect_SQL dialect, IEntityModelUtil entityModelUtil, QueryBuilder s, ExecutableQueryExpressions expressions, EFieldAccessType fieldReferenceType, int level, int [] context) {\n\t\t\n\t\tfinal EExpressionType type = expressions.getExpressionType(level, context);\n\t\t\n\t\tswitch (type) {\n\t\tcase FIELD:\n\t\t\t\n\t\t\tfinal CompiledFieldReference fieldReference = expressions.getFieldReference(level, context);\n\t\t\t\n\t\t\tdialect.appendFieldReference(s, prepareFieldReference(dialect, entityModelUtil, fieldReferenceType, fieldReference));\n\t\t\tbreak;\n\t\t\t\n\t\tcase VALUE:\n\t\t\t// TODO: handle this properly, must wrap string literals etc\n\t\t\t\n\t\t\tfinal Comparable<?> value = expressions.getValue(level, context);\n\t\t\t\n\t\t\ts.append(value.toString());\n\t\t\tbreak;\n\t\t\t\n\t\tcase LIST:\n\t\t\ts.append('(');\n\n\t\t\tfinal int num = expressions.getSubCount(level, context);\n\n\t\t\tfor (int i = 0; i < num; ++ i) {\n\n\t\t\t\tif (i > 0) {\n\t\t\t\t\tfinal char opChar;\n\n\t\t\t\t\tfinal Operator operator = expressions.getListOperator(level, context, i - 1);\n\t\t\t\t\t\n\t\t\t\t\tswitch (operator) {\n\t\t\t\t\tcase PLUS: \t\topChar = '+'; break;\n\t\t\t\t\tcase MINUS: \topChar = '-'; break;\n\t\t\t\t\tcase MULTIPLY: \topChar = '*'; break;\n\t\t\t\t\tcase DIVIDE: \topChar = '/'; break;\n\t\t\t\t\t\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthrow new UnsupportedOperationException(\"Unknown arithmetic operator \" + operator);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ts.sb.append(' ').append(opChar).append(' ');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// recurse\n\t\t\t\tcontext[level + 1] = i;\n\n\t\t\t\toutputExpression(dialect, entityModelUtil, s, expressions, fieldReferenceType, level + 1, context);\n\t\t\t}\n\n\t\t\ts.append(')');\n\t\t\tbreak;\n\t\t\t\n\t\tcase FUNCTION:\n\t\t\tfinal FunctionBase function = expressions.getFunction(level, context);\n\t\t\tfinal String functionName = dialect.getFunctionName(function);\n\t\t\t\n\t\t\ts.append(functionName);\n\t\t\ts.append('(');\n\t\t\t\n\t\t\tfinal int numParameters = expressions.getSubCount(level, context);\n\t\t\t\n\t\t\tfor (int i = 0; i < numParameters; ++ i) {\n\t\t\t\t\n\t\t\t\tif (i > 0) {\n\t\t\t\t\ts.append(\", \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcontext[level + 1] = i;\n\n\t\t\t\t// recurse for param\n\t\t\t\toutputExpression(dialect, entityModelUtil, s, expressions, fieldReferenceType, level + 1, context);\n\t\t\t}\n\t\t\t\n\t\t\ts.append(')');\n\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\tthrow new UnsupportedOperationException(\"Unknown expression type \" + type);\n\t\t}\n\t\t\n\t}", "Expression getExp();", "public static Temp evalFunction(CommonTree tree){\n\t\tLinkedList<Temp> temps = new LinkedList<Temp>();\n\t\tfor (int k=1; k<tree.getChildCount(); k++){\n\t\t\t//System.out.println(\"SDFJSDF:LJSDL:FJSDF\");\n\t\t\ttemps.add(evalExpression((CommonTree) tree.getChild(k)));\n\t\t\t//\t\t\tircode.add(new ThreeOpCode())\n\t\t}\n\t\tircode.add(new ThreeOpCode(\"PUSH\"));\n\t\t// push the parameters on to the stack\n\t\tfor (int i=1; i < tree.getChildCount(); i++){\n\t\t\tircode.add(new ThreeOpCode(\"PUSH\", temps.get(i-1).name));\n\t\t}\n\t\t// add JSR command\n\t\tircode.add(new ThreeOpCode(\"JSR\", tree.getChild(0).getText()));\n\t\t// pop parameters off the stack\n\t\tfor (int i=1; i < tree.getChildCount(); i++){\n\t\t\tircode.add(new ThreeOpCode(\"POP\"));\n\t\t}\n\t\t// create temperary for return value\n\t\tTemp temp = new Temp(temperaryNum++,tree.getType(),tree.getText());\n\t\t// pop the return value\n\t\tircode.add(new ThreeOpCode(\"POP\", temp.name));\n\t\treturn temp;\n\t}", "List getExpressions();", "EvaluationResult evalExpression(ValueExp expr) { return evalExpression(expr, true); }", "public static String evaluate( String expr )\n {\n\n\tString[] arr = expr.split(\"//s+\");\n\tString ret = \"\";\n\tALStack<String> stack = new ALStack<String>();\n\tfor( String s: arr)\n\t stack.push(s);\n\n\tif( stack.peek().equals(\"(\")){\n\t stack.pop();\n\t int operator = findOp(stack.pop());\n\t ret = unload(operator, stack);\n\t return ret;\n\t}\n\treturn \"\";\n }", "FunctionAnalytical createFunctionAnalytical();", "public interface IExpressionRuntime\n{\n Object evaluate();\n}", "public org.pentaho.pms.cwm.pentaho.meta.core.CwmExpression getExpression();", "@Override\r\n\tpublic void visit(FunctionCallExpression functionCallExpression) {\n\r\n\t}", "public interface ExpressionService {\n String ID = ExpressionService.class.getName();\n\n String DAYS_DESCRIPTION = \"[Number of days]\";\n\n String SYMBOL_DAYS = \"[days]\";\n\n String SYMBOL_WILDCARD = \"*\";\n\n String UID_EXPRESSION = \"[a-zA-Z]\\\\w{10}\";\n\n String INT_EXPRESSION = \"^(0|-?[1-9]\\\\d*)$\";\n\n // -------------------------------------------------------------------------\n // Expression CRUD operations\n // -------------------------------------------------------------------------\n\n /**\n * Adds a new Expression to the database.\n *\n * @param expression The Expression to add.\n * @return The generated identifier for this Expression.\n */\n long addExpression(Expression expression);\n\n /**\n * Updates an Expression.\n *\n * @param expression The Expression to update.\n */\n void updateExpression(Expression expression);\n\n /**\n * Deletes an Expression from the database.\n *\n * @param expression the expression.\n */\n void deleteExpression(Expression expression);\n\n /**\n * Get the Expression with the given identifier.\n *\n * @param id The identifier.\n * @return an Expression with the given identifier.\n */\n Expression getExpression(long id);\n\n /**\n * Gets all Expressions.\n *\n * @return A list with all Expressions.\n */\n List<Expression> getAllExpressions();\n\n // -------------------------------------------------------------------------\n // Indicator expression logic\n // -------------------------------------------------------------------------\n\n /**\n * Returns all dimensional item objects which are present in numerator and denominator of the\n * given indicators, as a map from id to object.\n *\n * @param indicators the collection of indicators.\n * @return a map from dimensional item id to object.\n */\n Map<DimensionalItemId, DimensionalItemObject> getIndicatorDimensionalItemMap(\n Collection<Indicator> indicators);\n\n /**\n * Returns all OrganisationUnitGroups in the numerator and denominator expressions in the given\n * Indicators. Returns an empty set if the given indicators are null or empty.\n *\n * @param indicators the set of indicators.\n * @return a Set of OrganisationUnitGroups.\n */\n List<OrganisationUnitGroup> getOrgUnitGroupCountGroups(Collection<Indicator> indicators);\n\n /**\n * Generates the calculated value for the given parameters based on the values in the given maps.\n *\n * @param indicator the indicator for which to calculate the value.\n * @param periods a List of periods for which to calculate the value.\n * @param itemMap map of dimensional item id to object in expression.\n * @param valueMap the map of data values.\n * @param orgUnitCountMap the map of organisation unit group member counts.\n * @return the calculated value as a double.\n */\n IndicatorValue getIndicatorValueObject(\n Indicator indicator,\n List<Period> periods,\n Map<DimensionalItemId, DimensionalItemObject> itemMap,\n Map<DimensionalItemObject, Object> valueMap,\n Map<String, Integer> orgUnitCountMap);\n\n /**\n * Substitutes any constants and org unit group member counts in the numerator and denominator on\n * all indicators in the given collection.\n *\n * @param indicators the set of indicators.\n */\n void substituteIndicatorExpressions(Collection<Indicator> indicators);\n\n // -------------------------------------------------------------------------\n // Get information about the expression\n // -------------------------------------------------------------------------\n\n /**\n * Tests whether the expression is valid.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @return the ExpressionValidationOutcome of the validation.\n */\n ExpressionValidationOutcome expressionIsValid(String expression, ParseType parseType);\n\n /**\n * Creates an expression description containing the names of the DimensionalItemObjects from a\n * numeric valued expression.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @return a description containing DimensionalItemObjects names.\n */\n String getExpressionDescription(String expression, ParseType parseType);\n\n /**\n * Creates an expression description containing the names of the DimensionalItemObjects from an\n * expression string, for an expression that will return the specified data type.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @param dataType the data type for the expression to return.\n * @return An description containing DimensionalItemObjects names.\n */\n String getExpressionDescription(String expression, ParseType parseType, DataType dataType);\n\n /**\n * Gets the item descriptions that need to be substituted in an expression to form the expression\n * description.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @return A {@link Map} of item descriptions.\n */\n Map<String, String> getExpressionItemDescriptions(String expression, ParseType parseType);\n\n /**\n * Gets the item descriptions that need to be substituted in an expression to form the expression\n * description, for an expression that will return the specified data type.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @param dataType the data type for the expression to return.\n * @return A {@link Map} of item descriptions.\n */\n Map<String, String> getExpressionItemDescriptions(\n String expression, ParseType parseType, DataType dataType);\n\n /**\n * Gets information we need from an expression string.\n *\n * @param params the expression parameters.\n * @return the expression information.\n */\n ExpressionInfo getExpressionInfo(ExpressionParams params);\n\n /**\n * From expression info, create a \"base\" expression parameters object with certain metadata fields\n * supplied that are needed for later evaluation.\n *\n * <p>Before evaluation, the caller will need to add to this \"base\" object fields such as\n * expression, parseType, dataType, valueMap, etc.\n *\n * @param info the expression information.\n * @return the expression parameters with metadata pre-filled.\n */\n ExpressionParams getBaseExpressionParams(ExpressionInfo info);\n\n /**\n * Returns UIDs of Data Elements and associated Option Combos (if any) found in the Data Element\n * Operands an expression.\n *\n * <p>If the Data Element Operand consists of just a Data Element, or if the Option Combo is a\n * wildcard \"*\", returns just dataElementUID.\n *\n * <p>If an Option Combo is present, returns dataElementUID.optionComboUID.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @return a Set of data element identifiers.\n */\n Set<String> getExpressionElementAndOptionComboIds(String expression, ParseType parseType);\n\n /**\n * Returns all data element ids found in the given expression string, including those found in\n * data element operands. Returns an empty set if the given expression is null.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @return a Set of data elements ids included in the expression string.\n */\n Set<String> getExpressionDataElementIds(String expression, ParseType parseType);\n\n /**\n * Returns all CategoryOptionCombo uids in the given expression string that are used as a data\n * element operand categoryOptionCombo or attributeOptionCombo. Returns an empty set if the\n * expression is null.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @return a Set of CategoryOptionCombo uids in the expression string.\n */\n Set<String> getExpressionOptionComboIds(String expression, ParseType parseType);\n\n /**\n * Returns all dimensional item object ids in the given expression.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @return a Set of dimensional item object ids.\n */\n Set<DimensionalItemId> getExpressionDimensionalItemIds(String expression, ParseType parseType);\n\n /**\n * Returns set of all OrganisationUnitGroup UIDs in the given expression.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @return Map of UIDs to OrganisationUnitGroups in the expression string.\n */\n Set<String> getExpressionOrgUnitGroupIds(String expression, ParseType parseType);\n\n // -------------------------------------------------------------------------\n // Compute the value of the expression\n // -------------------------------------------------------------------------\n\n /**\n * Generates the calculated value for an expression.\n *\n * @param params the expression parameters.\n * @return the calculated value.\n */\n Object getExpressionValue(ExpressionParams params);\n\n // -------------------------------------------------------------------------\n // Gets a (possibly cached) constant map\n // -------------------------------------------------------------------------\n\n /**\n * Gets the (possibly cached) constant map.\n *\n * @return the constant map.\n */\n Map<String, Constant> getConstantMap();\n}", "public static void main(String[] args) {\n\n\t\tUnaryOperator<Integer> func=x->x*7;\t\t\n\t\tint num=func.apply(10);\n\t\tSystem.out.println(num);\n\t\t\n\t\tFunction<Integer, Integer> func1=x->x*10;\n\t\tSystem.out.println(func1.apply(10));\n\t\t\n\t\tList<String> langList=new ArrayList<String>();\n\t\tlangList.add(\"Java\");\n\t\tlangList.add(\"Ruby\");\n\t\tlangList.add(\"Python\");\n\t\t\n\t\tSystem.out.println(langList);\n\t\t\n\t\tlangList.replaceAll(ele -> ele +\" Deeps\");\n\t\tSystem.out.println(langList);\n\t}", "Expr getExpr();", "public MathObject evaluate(Function input);", "protected String expandFunctions( String formula, String user, List<String> roles ) {\n formula = formula.replaceAll( \"USER\\\\(\\\\)\", String.format( \"\\\"%s\\\"\", user ) );\n\n // \"expand\" ROLES() function (regex: escape parentheses and escape backslash that escapes parentheses\n StringBuilder buf = new StringBuilder();\n int i = 0;\n for ( String role : roles ) {\n if ( i > 0 ) {\n buf.append( \";\" );\n }\n buf.append( String.format( \"\\\"%s\\\"\", role ) );\n i++;\n }\n return formula.replaceAll( \"ROLES\\\\(\\\\)\", buf.toString() );\n }", "public String evaluate(ArrayList<String> expression)\n {\n Stack<String> Values = new Stack<String>(), Operations = new Stack<String>();\n\n for (int i = 0; i < expression.size(); i++)\n\t\t{\n\t\t\tif (expression.get(i).equals(\"(\"))\n Operations.push(expression.get(i));\n else if (expression.get(i).equals(\")\"))\n {\n while (Operations.peek().equals(\"(\"))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.pop();\n }\n else if (expression.get(i).equals(\"+\") || expression.get(i).equals(\"-\") || expression.get(i).equals(\"*\") || expression.get(i).equals(\"/\"))\n {\n while (!Operations.empty() && precedence(expression.get(i), Operations.peek()))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.push(expression.get(i));\n }\n\t\t\telse\n\t\t\t{\n\t\t\t\tValues.push(expression.get(i));\n\t\t\t}\n }\n while (!Operations.empty())\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n return Values.pop();\n }", "private String evaluateExpr(String expr){\n\t\t//bigdecimal used for long user inputs\n\t\tBigDecimal num1, num2, ans, temp = new BigDecimal(\"0\");\n\t\tint check = 1;\n\t\t//find the position of function\n\t\twhile(Character.isDigit(expr.charAt(check)) || expr.charAt(check) == '.')\n\t\t\tcheck++;\n\t\t//extract numbers from expression\n\t\tnum1 = new BigDecimal(expr.substring(0,check));\n\t\tnum2 = new BigDecimal(expr.substring(check + 1,expr.length()));\n\t\t//division by zero error\n\t\tif(num2.compareTo(temp) == 0 && expr.charAt(check) == '/')\n\t\t\treturn \"Invalid\";\n\t\t//evaluate functions\n\t\tif(expr.charAt(check) == '*')\n\t\t\tans = num1.multiply(num2);\n\t\telse if(expr.charAt(check) == '+')\n\t\t\tans = num1.add(num2);\n\t\telse if(expr.charAt(check) == '/')\n\t\t\tans = num1.divide(num2, MathContext.DECIMAL32);\n\t\telse\n\t\t\tans = num1.subtract(num2);\n\t\treturn ans.toString();\n\t}", "@Override\n public String getCustomFunctionInvocation(String functionName, int argumentCount) {\n if (argumentCount == 0) {\n return \"OPERATOR('\" + functionName + \"',''\";\n }\n\n return \"OPERATOR('\" + functionName + \"',\";\n }", "public MathEval() {\r\n super();\r\n\r\n constants=new TreeMap<String,Double>(String.CASE_INSENSITIVE_ORDER);\r\n setConstant(\"E\" ,Math.E);\r\n setConstant(\"Euler\" ,0.577215664901533D);\r\n setConstant(\"LN2\" ,0.693147180559945D);\r\n setConstant(\"LN10\" ,2.302585092994046D);\r\n setConstant(\"LOG2E\" ,1.442695040888963D);\r\n setConstant(\"LOG10E\",0.434294481903252D);\r\n setConstant(\"PHI\" ,1.618033988749895D);\r\n setConstant(\"PI\" ,Math.PI);\r\n\r\n variables=new TreeMap<String,Double>(String.CASE_INSENSITIVE_ORDER);\r\n\r\n functions=new TreeMap<String,FunctionHandler>(String.CASE_INSENSITIVE_ORDER);\r\n\r\n offset=0;\r\n isConstant=false;\r\n }", "final public ASTExpression Expression() throws ParseException {\r\n /*@bgen(jjtree) Expression */\r\n ASTExpression jjtn000 = new ASTExpression(JJTEXPRESSION);\r\n boolean jjtc000 = true;\r\n jjtree.openNodeScope(jjtn000);\r\n try {\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case QUOTE:\r\n StringLiteral();\r\n jj_consume_token(61);\r\n jjtree.closeNodeScope(jjtn000, true);\r\n jjtc000 = false;\r\n {if (true) return jjtn000;}\r\n break;\r\n case IDENTIFIER:\r\n case INTEGER:\r\n case NOT:\r\n case SUB:\r\n case FLOATING_POINT_LITERAL:\r\n case 59:\r\n LogicalORExpression();\r\n jjtree.closeNodeScope(jjtn000, true);\r\n jjtc000 = false;\r\n {if (true) return jjtn000;}\r\n break;\r\n default:\r\n jj_la1[45] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n } catch (Throwable jjte000) {\r\n if (jjtc000) {\r\n jjtree.clearNodeScope(jjtn000);\r\n jjtc000 = false;\r\n } else {\r\n jjtree.popNode();\r\n }\r\n if (jjte000 instanceof RuntimeException) {\r\n {if (true) throw (RuntimeException)jjte000;}\r\n }\r\n if (jjte000 instanceof ParseException) {\r\n {if (true) throw (ParseException)jjte000;}\r\n }\r\n {if (true) throw (Error)jjte000;}\r\n } finally {\r\n if (jjtc000) {\r\n jjtree.closeNodeScope(jjtn000, true);\r\n }\r\n }\r\n throw new Error(\"Missing return statement in function\");\r\n }", "ExpressionsPackage getExpressionsPackage();", "public static ExpressionTree makeExpression(String function,\n List<Field> inFields,\n Field resultField) {\n List<TreeNode> children = new ArrayList<TreeNode>(inFields.size());\n for (Field field : inFields) {\n children.add(makeField(field));\n }\n\n TreeNode root = makeFunction(function, children, resultField.getType());\n return makeExpression(root, resultField);\n }", "public static ExtractedExpression extractFunctionCalls(AbstractExpression exp) {\n\t\tExtractedExpression ee = new ExtractedExpression(exp);\n\t\tAbstractFunctionCall fc = exp.getEmbeddedFunctionCall();\n\t\twhile (fc != null) {\n\t\t\tString var = FreeVarNameProvider.getFreeVariable(\"subst\");\n\t\t\tee.rewrite(var, fc);\n\t\t\tfc = ee.getExpression().getEmbeddedFunctionCall();\n\t\t}\n\t\treturn ee;\n\t}", "public void testNestedAggregationOnComputedColumn( ) throws Exception\n \t{\n \t\tccName = new String[] { \"cc1\", \"cc2\", \"cc3\" };\n \t\tccExpr = new String[] {\n \t\t\t\t\"row.COL0+row.COL1\",\n \t\t\t\t\"Total.runningSum(row.cc1/Total.sum(row.cc1))*100\",\n \t\t\t\t\"Total.runningSum(Total.sum(row.cc1/Total.sum(row.cc1)))\" };\n \n \t\tfor (int i = 0; i < ccName.length; i++) {\n \t\t\tComputedColumn computedColumn = new ComputedColumn(ccName[i],\n \t\t\t\t\tccExpr[i], DataType.ANY_TYPE);\n \t\t\t((BaseDataSetDesign) this.dataSet)\n \t\t\t\t\t.addComputedColumn(computedColumn);\n \t\t}\n \t\t\n \t\tString[] bindingNameRow = new String[7];\n \t\tbindingNameRow[0] = \"ROW_COL0\";\n \t\tbindingNameRow[1] = \"ROW_COL1\";\n \t\tbindingNameRow[2] = \"ROW_COL2\";\n \t\tbindingNameRow[3] = \"ROW_COL3\";\n \t\tbindingNameRow[4] = \"ROW_cc1\";\n \t\tbindingNameRow[5] = \"ROW_cc2\";\n \t\tbindingNameRow[6] = \"ROW_cc3\";\n \t\tScriptExpression[] bindingExprRow = new ScriptExpression[] {\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL0\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL1\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL2\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL3\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[0], 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[1], 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[2], 0) };\n \n \t\tIResultIterator resultIt = this.executeQuery(this.createQuery(null,\n \t\t\t\tnull, null, null, null, null, null, null, null, bindingNameRow,\n \t\t\t\tbindingExprRow));\n \n \t\tprintResult(resultIt, bindingNameRow, bindingExprRow);\n \t\t// assert\n \t\tcheckOutputFile();\n \t\t\n \t}", "public RelNode genScriptPlan(\n HiveParserASTNode trfm, HiveParserQB qb, List<RexNode> operands, RelNode input)\n throws SemanticException {\n boolean isAllRexRef = operands.stream().allMatch(node -> node instanceof RexInputRef);\n int[] transformFieldIndices;\n if (!isAllRexRef) {\n input =\n LogicalProject.create(\n input, Collections.emptyList(), operands, (List<String>) null);\n transformFieldIndices = IntStream.range(0, operands.size()).toArray();\n HiveParserRowResolver rowResolver = new HiveParserRowResolver();\n // record the column info for the project node\n for (int i = 0; i < operands.size(); i++) {\n ColumnInfo oColInfo =\n new ColumnInfo(\n getColumnInternalName(i),\n HiveParserTypeConverter.convert(operands.get(i).getType()),\n null,\n false);\n rowResolver.put(null, getColumnInternalName(i), oColInfo);\n }\n relToRowResolver.put(input, rowResolver);\n } else {\n transformFieldIndices =\n operands.stream()\n .flatMapToInt(node -> IntStream.of(((RexInputRef) node).getIndex()))\n .toArray();\n }\n\n ArrayList<ColumnInfo> inputSchema = relToRowResolver.get(input).getColumnInfos();\n\n // If there is no \"AS\" clause, the output schema will be \"key,value\"\n ArrayList<ColumnInfo> outputCols = new ArrayList<>();\n int inputSerDeNum = 1, inputRecordWriterNum = 2;\n int outputSerDeNum = 4, outputRecordReaderNum = 5;\n int outputColsNum = 6;\n boolean outputColNames = false, outputColSchemas = false;\n int execPos = 3;\n boolean defaultOutputCols = false;\n\n // Go over all the children\n if (trfm.getChildCount() > outputColsNum) {\n HiveParserASTNode outCols = (HiveParserASTNode) trfm.getChild(outputColsNum);\n if (outCols.getType() == HiveASTParser.TOK_ALIASLIST) {\n outputColNames = true;\n } else if (outCols.getType() == HiveASTParser.TOK_TABCOLLIST) {\n outputColSchemas = true;\n }\n }\n\n // If column type is not specified, use a string\n if (!outputColNames && !outputColSchemas) {\n // output schema will be \"key, value\"\n String[] outputAlias = new String[] {\"key\", \"value\"};\n for (int i = 0; i < outputAlias.length; i++) {\n String intName = getColumnInternalName(i);\n ColumnInfo colInfo =\n new ColumnInfo(intName, TypeInfoFactory.stringTypeInfo, null, false);\n colInfo.setAlias(outputAlias[i]);\n outputCols.add(colInfo);\n }\n defaultOutputCols = true;\n } else {\n // column name or type is specified\n HiveParserASTNode collist = (HiveParserASTNode) trfm.getChild(outputColsNum);\n int ccount = collist.getChildCount();\n Set<String> colAliasNamesDuplicateCheck = new HashSet<>();\n for (int i = 0; i < ccount; i++) {\n ColumnInfo colInfo =\n getColumnInfoInScriptTransform(\n (HiveParserASTNode) collist.getChild(i),\n outputColSchemas,\n i,\n colAliasNamesDuplicateCheck);\n outputCols.add(colInfo);\n }\n }\n\n // input schema info\n StringBuilder inpColumns = new StringBuilder();\n StringBuilder inpColumnTypes = new StringBuilder();\n for (int i = 0; i < transformFieldIndices.length; i++) {\n if (i != 0) {\n inpColumns.append(\",\");\n inpColumnTypes.append(\",\");\n }\n inpColumns.append(inputSchema.get(transformFieldIndices[i]).getInternalName());\n inpColumnTypes.append(\n inputSchema.get(transformFieldIndices[i]).getType().getTypeName());\n }\n\n // output schema info\n StringBuilder outColumns = new StringBuilder();\n StringBuilder outColumnTypes = new StringBuilder();\n List<RelDataType> outDataTypes = new ArrayList<>();\n List<String> outColNames = new ArrayList<>();\n HiveParserRowResolver scriptRR = new HiveParserRowResolver();\n RelDataTypeFactory dtFactory = cluster.getRexBuilder().getTypeFactory();\n for (int i = 0; i < outputCols.size(); i++) {\n if (i != 0) {\n outColumns.append(\",\");\n outColumnTypes.append(\",\");\n }\n\n outColumns.append(outputCols.get(i).getInternalName());\n outColumnTypes.append(outputCols.get(i).getType().getTypeName());\n\n scriptRR.put(\n qb.getParseInfo().getAlias(), outputCols.get(i).getAlias(), outputCols.get(i));\n\n outDataTypes.add(HiveParserUtils.toRelDataType(outputCols.get(i).getType(), dtFactory));\n outColNames.add(outputCols.get(i).getInternalName());\n }\n\n String serdeName = LazySimpleSerDe.class.getName();\n int fieldSeparator = Utilities.tabCode;\n if (HiveConf.getBoolVar(hiveConf, HiveConf.ConfVars.HIVESCRIPTESCAPE)) {\n fieldSeparator = Utilities.ctrlaCode;\n }\n\n // Input and Output Serdes\n HiveParserBaseSemanticAnalyzer.SerDeClassProps inSerDeClassProps;\n if (trfm.getChild(inputSerDeNum).getChildCount() > 0) {\n // use user specified serialize class and properties\n HiveParserASTNode inputSerDeNode = (HiveParserASTNode) trfm.getChild(inputSerDeNum);\n inSerDeClassProps =\n HiveParserBaseSemanticAnalyzer.SerDeClassProps.analyzeSerDeInfo(\n (HiveParserASTNode) inputSerDeNode.getChild(0),\n inpColumns.toString(),\n inpColumnTypes.toString(),\n false);\n } else {\n // use default serialize class and properties\n Map<String, String> inSerdeProps =\n HiveParserBaseSemanticAnalyzer.SerDeClassProps.getDefaultSerDeProps(\n serdeName,\n String.valueOf(fieldSeparator),\n inpColumns.toString(),\n inpColumnTypes.toString(),\n false,\n true);\n inSerDeClassProps =\n new HiveParserBaseSemanticAnalyzer.SerDeClassProps(serdeName, inSerdeProps);\n }\n HiveParserBaseSemanticAnalyzer.SerDeClassProps outSerDeClassProps;\n if (trfm.getChild(outputSerDeNum).getChildCount() > 0) {\n // use user specified deserialize class and properties\n HiveParserASTNode outSerDeNode = (HiveParserASTNode) trfm.getChild(outputSerDeNum);\n outSerDeClassProps =\n HiveParserBaseSemanticAnalyzer.SerDeClassProps.analyzeSerDeInfo(\n (HiveParserASTNode) outSerDeNode.getChild(0),\n outColumns.toString(),\n outColumnTypes.toString(),\n false);\n } else {\n // use default deserialize class and properties\n Map<String, String> outSerdeProps =\n HiveParserBaseSemanticAnalyzer.SerDeClassProps.getDefaultSerDeProps(\n serdeName,\n String.valueOf(fieldSeparator),\n outColumns.toString(),\n outColumnTypes.toString(),\n defaultOutputCols,\n true);\n outSerDeClassProps =\n new HiveParserBaseSemanticAnalyzer.SerDeClassProps(serdeName, outSerdeProps);\n }\n\n // script input record writer\n Tree recordWriterASTNode = trfm.getChild(inputRecordWriterNum);\n String inRecordWriter =\n recordWriterASTNode.getChildCount() == 0\n ? TextRecordWriter.class.getName()\n : unescapeSQLString(recordWriterASTNode.getChild(0).getText());\n\n // script output record readers\n Tree recordReaderASTNode = trfm.getChild(outputRecordReaderNum);\n String outRecordReader =\n recordReaderASTNode.getChildCount() == 0\n ? TextRecordReader.class.getName()\n : unescapeSQLString(recordReaderASTNode.getChild(0).getText());\n\n RelDataType rowDataType = dtFactory.createStructType(outDataTypes, outColNames);\n\n String script = unescapeSQLString(trfm.getChild(execPos).getText());\n\n ScriptTransformIOInfo inputOutSchema =\n new ScriptTransformIOInfo(\n inSerDeClassProps.getSerdeClassName(),\n inSerDeClassProps.getProperties(),\n outSerDeClassProps.getSerdeClassName(),\n outSerDeClassProps.getProperties(),\n inRecordWriter,\n outRecordReader,\n new JobConfWrapper(new JobConf(hiveConf)));\n\n LogicalScriptTransform scriptTransform =\n LogicalScriptTransform.create(\n input, transformFieldIndices, script, inputOutSchema, rowDataType);\n\n relToHiveColNameCalcitePosMap.put(scriptTransform, buildHiveToCalciteColumnMap(scriptRR));\n relToRowResolver.put(scriptTransform, scriptRR);\n\n // todo\n // Add URI entity for transform script. script assumed t be local unless downloadable\n return scriptTransform;\n }", "public String evaluate(Node root){\n\t\tObject[] args;\n\t\tClass[] types;\n\t\tint i= 0;\n\t\tNode nxt;\n\t\tString fun;\n\t\tfun = root.getValue();\n\t\tClass c=null;\n\t\t\n\t\tLinkedList<Node> children = root.getChildren();\n\n\t\tIterator<Node> iter = children.listIterator();\n\t\tif (!iter.hasNext()){\n\t\t\treturn fun;\n\t\t}\n\t\ttypes= new Class[children.size()];\n\t\targs = new Object[children.size()];\n\t\t\n\t\t//populates types[] for getmethod and args[] for invoke\n\t\twhile (iter.hasNext()) {\n\t\t\tnxt = iter.next();\n\t\t\tfun = evaluate(nxt);\n\t\t\tswitch ( root.getReturnType()[i+1] & 0b1111 ) {\n\t\t\t\t//the argument should be a string\n\t\t\t\tcase STRING:\n\t\t\t\t\tc=String.class;\n\t\t\t\t\targs[i]=fun.replace(\"\\\"\",\"\");\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a float primitive\n\t\t\t\tcase FLOAT:\n\t\t\t\t\tc=float.class;\n\t\t\t\t\targs[i]=new Float(Float.parseFloat(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a int primitive\n\t\t\t\tcase INTEGER:\n\t\t\t\t\tc=int.class;\n\t\t\t\t\targs[i]=new Integer(Integer.parseInt(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a Float class\n\t\t\t\tcase BIGFLOAT:\n\t\t\t\t\tc=Float.class;\n\t\t\t\t\targs[i]=new Float(Float.parseFloat(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be an Integer class\n\t\t\t\tcase BIGINTEGER:\n\t\t\t\t\tc=Integer.class;\n\t\t\t\t\targs[i]=new Integer(Integer.parseInt(fun));\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\n\t\t\ttypes[i]=c;\n\t\t\ti ++;\n\t\t\t\n\t\t}\n\t\tfun = root.getValue();\n\t\t\n\t\ttry {\n\t\t\t//get the method at this node and apply it to the evaluation of its children\n\t\t\tfun = \"\" + coms.getMethod(fun, types).invoke(coms, args);\n\t\t}catch (Exception e){\n\t\t\t//this will never ever happen\n\t\t}\n\t\t\n\t\treturn fun;\n\t}", "public void testNestedComputedColumn( ) throws Exception\n \t{\n \t\tccName = new String[] { \"cc1\", \"cc2\", \"cc3\" };\n \t\tccExpr = new String[] {\n \t\t\t\t\"row.COL0+row.COL1\",\n \t\t\t\t\"row.cc1*100\",\n \t\t\t\t\"Total.runningSum(row.cc1/Total.sum(row.cc1))*100\" };\n \n \t\tfor (int i = 0; i < ccName.length; i++) {\n \t\t\tComputedColumn computedColumn = new ComputedColumn(ccName[i],\n \t\t\t\t\tccExpr[i], DataType.ANY_TYPE);\n \t\t\t((BaseDataSetDesign) this.dataSet)\n \t\t\t\t\t.addComputedColumn(computedColumn);\n \t\t}\n \t\t\n \t\tString[] bindingNameRow = new String[7];\n \t\tbindingNameRow[0] = \"ROW_COL0\";\n \t\tbindingNameRow[1] = \"ROW_COL1\";\n \t\tbindingNameRow[2] = \"ROW_COL2\";\n \t\tbindingNameRow[3] = \"ROW_COL3\";\n \t\tbindingNameRow[4] = \"ROW_cc1\";\n \t\tbindingNameRow[5] = \"ROW_cc2\";\n \t\tbindingNameRow[6] = \"ROW_cc3\";\n \t\tScriptExpression[] bindingExprRow = new ScriptExpression[] {\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL0\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL1\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL2\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL3\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[0], 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[1], 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[2], 0) };\n \n \t\tIResultIterator resultIt = this.executeQuery(this.createQuery(null,\n \t\t\t\tnull, null, null, null, null, null, null, null, bindingNameRow,\n \t\t\t\tbindingExprRow));\n \n \t\tprintResult(resultIt, bindingNameRow, bindingExprRow);\n \t\t// assert\n \t\tcheckOutputFile();\n \t\t\n \t}", "public Object eval(String expression) throws Exception;", "@Test\r\n public void testEval__declare_call__1() throws ScriptException {\r\n Object value = engine.eval(\"#() true\");\r\n Assert.assertTrue(value instanceof Function);\r\n Object result = ((Function) value).invoke(engine.createBindings());\r\n Assert.assertTrue((Boolean)result);\r\n }", "abstract /*package*/ Object executeRVMFunction(Function func, IValue[] posArgs, Map<String,IValue> kwArgs);", "@Test\n\tpublic void testFunctionBySQL() {\n\t\tString sql = \"{? = call FUNC_RETURN_NUM(?)}\";\n\t\tString[] paramTypeNames = { \"NUMERIC\", \"NUMERIC\" };\n\t\tString[] bindings = { \"OUT\", \"IN\" };\n\t\tString[] names = { \"outVal\", \"inVal\" };\n\n\t\tMap<String, Integer> inVal = new HashMap<String, Integer>();\n\t\tinVal.put(\"inVal\", new Integer(2));\n\t\tMap<String, Object> results = queryService.executeBySQL(sql,\n\t\t\t\tparamTypeNames, names, bindings, inVal);\n\n\t\tAssert.assertEquals(\"{outVal=1}\", results.toString());\n\t}", "@Override\n\tpublic String visitExpr(MicroParser.ExprContext ctx) {\n\t\tString prefix = visit(ctx.expr_prefix());\n\t\tString expr = prefix + visit(ctx.term());\n\t\t\n\t\t//System.out.println(\"in visit expr: \"+expr);\n\t\t//System.out.println(\"in visit expr: prefix is: \"+prefix);\n\t\tif((prefix.contentEquals(\"\"))) return expr;\n\t\tString op1, op2, result;\n\t\tString type = currentType;\n\t\tString[] ids = expr.split(\"\\\\-|\\\\+\");\n\t List<String> operands = new ArrayList<String>();\n\t List<Character> addops = new ArrayList<Character>();\n\t \n\t for(int i=0;i<expr.length();i++) {\n\t \tif(expr.charAt(i)=='+' || expr.charAt(i)=='-')\n\t \t\taddops.add(expr.charAt(i));\n\t }\n\t //create a list of addops\n\t \n\t //create a list of operands \n\t for(String i:ids) \n\t \t operands.add(i);\n\t \n\t op1 = operands.get(0);\n\t op2 = operands.get(1);\n\t temp = new Temporary(type);\n\t result = temp.fullName;\n\t tempList.addT(temp);\n\t //System.out.println(\"in visit expr, ops are: \"+op1+\" \"+ op2);\n\t //System.out.println(\"in visit expr, result is: \"+ result);\n\t if(addops.get(0)=='+') {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \t\n\t else {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \n\t \t\n\t if(operands.size()==0) return result;\n\t \n\t for(int i=0; i<operands.size();i++) {\n\t \top1 = result;\n\t \top2 = operands.get(i);\n\t \ttemp = new Temporary(type);\n\t \tresult = temp.fullName;\n\t \ttempList.addT(temp);\n\t \tif(addops.get(0)=='+') {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t \t}\n\t\t \t\n\t\t else {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t\t }\n\t\t \t\n\t }\n\t return result; \n\t\t\n\t}", "private ExpressionTools(){\n\t\t\n\t}", "private Object evaluateExpression(String expression, String type, boolean isReturnMultiplicityOne)\n {\n String functionName = \"test_\" + UUID.randomUUID().toString().replace('-', '_');\n String functionSignature = functionName + \"():\" + ((type == null) ? \"Any\" : type) + (isReturnMultiplicityOne ? \"[1]\" : \"[*]\");\n String testFunctionString = \"function \" + functionSignature + \"\\n\" +\n \"{\\n\" +\n ArrayIterate.makeString(expression.split(\"\\\\R\"), \" \", \"\\n \", \"\\n\") +\n \"}\\n\";\n String sourceName = functionName + RepositoryCodeStorage.PURE_FILE_EXTENSION;\n this.sourcesToDelete.add(sourceName);\n compileTestSource(sourceName, testFunctionString);\n CoreInstance result = execute(functionSignature);\n return isReturnMultiplicityOne ?\n Instance.getValueForMetaPropertyToOneResolved(result, M3Properties.values, processorSupport) :\n Instance.getValueForMetaPropertyToManyResolved(result, M3Properties.values, processorSupport);\n }", "@Test\n\t\tpublic void testExpression() throws LexicalException, SyntaxException {\n\t\t\tString input = \"x + 2\";\n\t\t\tPLPParser parser = makeParser(input);\n\t\t\tExpression e = parser.expression(); //call expression here instead of parse\n\t\t\tshow(e);\t\n\t\t\tassertEquals(ExpressionBinary.class, e.getClass());\n\t\t\tExpressionBinary b = (ExpressionBinary)e;\n\t\t\tassertEquals(ExpressionIdentifier.class, b.leftExpression.getClass());//\n\t\t\tExpressionIdentifier left = (ExpressionIdentifier)b.leftExpression;\n\t\t\tassertEquals(\"x\", left.name);\n\t\t\tassertEquals(ExpressionIntegerLiteral.class, b.rightExpression.getClass());\n\t\t\tExpressionIntegerLiteral right = (ExpressionIntegerLiteral)b.rightExpression;\n\t\t\tassertEquals(2, right.value);\n\t\t\tassertEquals(OP_PLUS, b.op);\n\t\t}", "LogicExpression getExpr();", "public interface Expression {\n\t\n\t/**\n\t * Evaluates an arithmetic expression.\n\t * \n\t * @return the value to which this expression evaluates\n\t */\n\tdouble eval();\n\t\n\t/**\n\t * Creates a String representation of an arithmetic expression.\n\t * \n\t * @return this expression in standard form, suitable for inclusion\n\t * in a program or text document (e.g., \"(2 - 4 * (7 + 2))\"). Note\n\t * that the string can have \"unnecessary\" parentheses as this (toy)\n\t * system does not know about operator precedence. \n\t */\n\tString toString();\n\n}", "public void executeDsl();", "public CALL(Exp f, ExpList a) {func=f; args=a;}", "private static List<Transformation> evaluate(String query, boolean isOnlyParsing) throws ConnectException {\n \t// Parse the query\n final NotaQLExpression expression = NotaQLExpressionParser.parse(query);\n List<Transformation> transformations = expression.getTransformations();\n \n \n // If this is a trigger based transformation only return the transformation and don't evaluate anything\n // => The calling method has to handle the execution of the transformations\n if (!isOnlyParsing && (!(transformations.size() == 1 && transformations.get(0).getInEngineEvaluator() instanceof TriggerEngineEvaluator))) {\n \t// Perform all transformations from the query\n\t for (Transformation transformation : transformations) \n\t \tevaluateTransformation(transformation);\n }\n \n \n return transformations;\n }", "Operations operations();", "@Test\n @Named(\"Expressions in tables\")\n @Order(3)\n public void _expressionsInTables() throws Exception {\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"package bootstrap\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"describe \\\"Example Tables\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"def myExampleWithClosures{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| input | operation | result |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| \\\"a\\\" | [String s | s.toUpperCase] | \\\"A\\\" |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| \\\"B\\\" | [String s | s.toLowerCase] | \\\"b\\\" | \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"} \");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"fact \\\"supports closures as values\\\"{ \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"myExampleWithClosures.forEach[\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"operation.apply(input) should be result\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"]\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"} \");\n _builder.newLine();\n _builder.append(\"}\");\n _builder.newLine();\n this._behaviorExecutor.executesSuccessfully(_builder);\n }", "Expression getExpression(long id);", "public interface IOptimizableFuncExpr {\n public AbstractFunctionCallExpression getFuncExpr();\n\n public int getNumLogicalVars();\n\n public int getNumConstantVals();\n\n public LogicalVariable getLogicalVar(int index);\n\n public void setLogicalExpr(int index, ILogicalExpression logExpr);\n\n public ILogicalExpression getLogicalExpr(int index);\n\n public void setFieldName(int index, List<String> fieldName);\n\n public List<String> getFieldName(int index);\n\n public void setFieldType(int index, IAType fieldName);\n\n public IAType getFieldType(int index);\n\n public void setOptimizableSubTree(int index, OptimizableOperatorSubTree subTree);\n\n public OptimizableOperatorSubTree getOperatorSubTree(int index);\n\n public IAlgebricksConstantValue getConstantVal(int index);\n\n public int findLogicalVar(LogicalVariable var);\n\n public int findFieldName(List<String> fieldName);\n\n public void substituteVar(LogicalVariable original, LogicalVariable substitution);\n\n public void setPartialField(boolean partialField);\n\n public boolean containsPartialField();\n\n public void setSourceVar(int index, LogicalVariable var);\n\n public LogicalVariable getSourceVar(int index);\n}", "private static int evaluateExpression(String expression, int number1, int number2){\n if(expression.equals(\"plus\")){\n \treturn (number1 + number2);\n }else if(expression.equals(\"minus\")){\n \treturn (number1 - number2);\n }else if(expression.equals(\"times\")){\n \treturn(number1 * number2);\n }else if(expression.equals(\"divide\")){\n \treturn(number1 / number2);\n }\n return 0;\n \n }", "@Test void testInterpretTableFunction() {\n SchemaPlus schema = rootSchema.add(\"s\", new AbstractSchema());\n final TableFunction table1 = TableFunctionImpl.create(Smalls.MAZE_METHOD);\n schema.add(\"Maze\", table1);\n final String sql = \"select *\\n\"\n + \"from table(\\\"s\\\".\\\"Maze\\\"(5, 3, 1))\";\n String[] rows = {\"[abcde]\", \"[xyz]\", \"[generate(w=5, h=3, s=1)]\"};\n sql(sql).returnsRows(rows);\n }", "public FunCallExpr(String funName, List<Expr> args){\n this.funName = funName;\n this.args = args;\n }", "EolChainedFeatureCallPostfixExpression getChainedFeatureCallPostfixExpression();", "public Object lambda10() {\n return Scheme.applyToArgs.apply2(this.sk, AddOp.$Pl.apply2(this.i, pregexp.Lit8));\n }", "@FunctionalInterface\npublic interface StepExpr extends Expr {\n\n /**\n * {@inheritDoc}\n *\n * @return evaluated XML node views\n */\n @Override\n <N extends Node> IterableNodeView<N> resolve(Navigator<N> navigator, NodeView<N> view, boolean greedy)\n throws XmlBuilderException;\n\n}", "public Expression generateExpression(GenerationContext context) {\r\n Expression whereClause = getLeft().generateExpression(context);\r\n List arguments = getTheObjects();\r\n Node firstArg = (Node)arguments.get(0);\r\n if (firstArg.isSubqueryNode()) {\r\n SubqueryNode subqueryNode = (SubqueryNode)firstArg;\r\n ReportQuery reportQuery = subqueryNode.getReportQuery(context);\r\n if (notIndicated()) {\r\n whereClause = whereClause.notIn(reportQuery);\r\n }\r\n else {\r\n whereClause = whereClause.in(reportQuery);\r\n }\r\n } else if (isListParameterOrSubquery && firstArg.isParameterNode()) {\r\n if (notIndicated()) {\r\n whereClause = whereClause.notIn(firstArg.generateExpression(context));\r\n } else {\r\n whereClause = whereClause.in(firstArg.generateExpression(context));\r\n }\r\n } else {\r\n Vector inArguments = new Vector(arguments.size());\r\n for (Iterator iter = arguments.iterator(); iter.hasNext();) {\r\n Node nextNode = (Node)iter.next();\r\n inArguments.add(nextNode.generateExpression(context));\r\n }\r\n if (inArguments.size() > 0) {\r\n if (notIndicated()) {\r\n whereClause = whereClause.notIn(inArguments);\r\n } else {\r\n whereClause = whereClause.in(inArguments);\r\n }\r\n }\r\n }\r\n return whereClause;\r\n }", "public static void main(String[] args) {\n ArithmeticExpression calculation =\n new Operand(\n new Operand(new Number(4), Operation.PLUS, new Number(6)),\n Operation.MULTIPLICATION,\n new Operand(new Number(1), Operation.DIVISION, new Number(2)));\n\n System.out.println(calculation.toString() + \" = \" + calculation.calculate());\n }", "public void testGroupFilterOnComputedColumnsWithAggregations( ) throws Exception\n \t{\n \t\tccName = new String[] { \"cc1\", \"cc2\", \"cc3\", \"cc4\" };\n \t\tccExpr = new String[] {\n \t\t\t\t\"row.COL0+row.COL1\",\n \t\t\t\t\"Total.sum(row.COL1+row.cc1)\",\n \t\t\t\t\"Total.ave(row.cc1+row.COL2+row.COL3, null, 0)*81\",\n \t\t\t\t\"Total.sum(row.COL1+row.COL2+row.COL3+row.COL0)\" };\n \t\t\n \t\tfor (int i = 0; i < ccName.length; i++) {\n \t\t\tComputedColumn computedColumn = new ComputedColumn(ccName[i],\n \t\t\t\t\tccExpr[i], DataType.ANY_TYPE);\n \t\t\t((BaseDataSetDesign) this.dataSet)\n \t\t\t\t\t.addComputedColumn(computedColumn);\n \t\t}\n \t\t\n \t\tString[] bindingNameGroup = new String[1];\n \t\tbindingNameGroup[0] = \"GROUP_GROUP1\";\n \t\tIBaseExpression[] bindingExprGroup = new IBaseExpression[1];\n \t\tbindingExprGroup[0] = new ScriptExpression(\"dataSetRow.cc1\");\n \n \t\tGroupDefinition[] groupDefn = new GroupDefinition[] {\n \t\t\t\tnew GroupDefinition(\"group1\") };\t\n \t\tgroupDefn[0].setKeyExpression(\"row.GROUP_GROUP1\");\n \t\t\n \t\tFilterDefinition filter = new FilterDefinition(new ScriptExpression(\n \t\t\t\t\"Total.sum(dataSetRow.COL0)>400\"));\n \t\tgroupDefn[0].addFilter(filter);\n \n \t\tString[] bindingNameRow = new String[8];\n \t\tbindingNameRow[0] = \"ROW_COL0\";\n \t\tbindingNameRow[1] = \"ROW_COL1\";\n \t\tbindingNameRow[2] = \"ROW_COL2\";\n \t\tbindingNameRow[3] = \"ROW_COL3\";\n \t\tbindingNameRow[4] = \"ROW_cc1\";\n \t\tbindingNameRow[5] = \"ROW_cc2\";\n \t\tbindingNameRow[6] = \"ROW_cc3\";\n \t\tbindingNameRow[7] = \"ROW_cc4\";\n \t\tScriptExpression[] bindingExprRow = new ScriptExpression[] {\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL0\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL1\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL2\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + \"COL3\", 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[0], 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[1], 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[2], 0),\n \t\t\t\tnew ScriptExpression(\"dataSetRow.\" + ccName[3], 0) };\n \n \t\ttry {\n \t\t\tthis.executeQuery(this.createQuery(null, null, null, null, null,\n \t\t\t\t\tnull, null, null, null, bindingNameRow, bindingExprRow));\n \t\t\t// fail( \"Should not arrive here\" );\n \t\t} catch (DataException e) {\n \n \t\t}\n \t}", "void doNestedNaturalJoin(WorkflowExpressionQuery e, NestedExpression nestedExpression, StringBuffer columns, StringBuffer where, StringBuffer whereComp, List values, List queries, StringBuffer orderBy) { // throws WorkflowStoreException {\n\n Object value;\n Field currentExpField;\n\n int numberOfExp = nestedExpression.getExpressionCount();\n\n for (int i = 0; i < numberOfExp; i++) { //ori\n\n //for (i = numberOfExp; i > 0; i--) { //reverse 1 of 3\n Expression expression = nestedExpression.getExpression(i); //ori\n\n //Expression expression = nestedExpression.getExpression(i - 1); //reverse 2 of 3\n if (!(expression.isNested())) {\n FieldExpression fieldExp = (FieldExpression) expression;\n\n FieldExpression fieldExpBeforeCurrent;\n queries.add(expression);\n\n int queryId = queries.size();\n\n if (queryId > 1) {\n columns.append(\" , \");\n }\n\n //do; OS_CURRENTSTEP AS a1 ....\n if (fieldExp.getContext() == Context.CURRENT_STEPS) {\n columns.append(currentTable + \" AS \" + 'a' + queryId);\n } else if (fieldExp.getContext() == Context.HISTORY_STEPS) {\n columns.append(historyTable + \" AS \" + 'a' + queryId);\n } else {\n columns.append(entryTable + \" AS \" + 'a' + queryId);\n }\n\n ///////// beginning of WHERE JOINS/s : //////////////////////////////////////////\n //do for first query; a1.ENTRY_ID = a1.ENTRY_ID\n if (queryId == 1) {\n where.append(\"a1\" + '.' + stepProcessId);\n where.append(\" = \");\n\n if (fieldExp.getContext() == Context.CURRENT_STEPS) {\n where.append(\"a\" + queryId + '.' + stepProcessId);\n } else if (fieldExp.getContext() == Context.HISTORY_STEPS) {\n where.append(\"a\" + queryId + '.' + stepProcessId);\n } else {\n where.append(\"a\" + queryId + '.' + entryId);\n }\n }\n\n //do; a1.ENTRY_ID = a2.ENTRY_ID\n if (queryId > 1) {\n fieldExpBeforeCurrent = (FieldExpression) queries.get(queryId - 2);\n\n if (fieldExpBeforeCurrent.getContext() == Context.CURRENT_STEPS) {\n where.append(\"a\" + (queryId - 1) + '.' + stepProcessId);\n } else if (fieldExpBeforeCurrent.getContext() == Context.HISTORY_STEPS) {\n where.append(\"a\" + (queryId - 1) + '.' + stepProcessId);\n } else {\n where.append(\"a\" + (queryId - 1) + '.' + entryId);\n }\n\n where.append(\" = \");\n\n if (fieldExp.getContext() == Context.CURRENT_STEPS) {\n where.append(\"a\" + queryId + '.' + stepProcessId);\n } else if (fieldExp.getContext() == Context.HISTORY_STEPS) {\n where.append(\"a\" + queryId + '.' + stepProcessId);\n } else {\n where.append(\"a\" + queryId + '.' + entryId);\n }\n }\n\n ///////// end of LEFT JOIN : \"LEFT JOIN OS_CURRENTSTEP a1 ON a0.ENTRY_ID = a1.ENTRY_ID\n //\n //////// BEGINNING OF WHERE clause //////////////////////////////////////////////////\n value = fieldExp.getValue();\n currentExpField = fieldExp.getField();\n\n //if the Expression is negated and FieldExpression is \"EQUALS\", we need to negate that FieldExpression\n if (expression.isNegate()) {\n //do ; a2.STATUS !=\n whereComp.append(\"a\" + queryId + '.' + fieldName(fieldExp.getField()));\n\n switch (fieldExp.getOperator()) { //WHERE a1.STATUS !=\n case EQUALS:\n\n if (value == null) {\n whereComp.append(\" IS NOT \");\n } else {\n whereComp.append(\" != \");\n }\n\n break;\n\n case NOT_EQUALS:\n\n if (value == null) {\n whereComp.append(\" IS \");\n } else {\n whereComp.append(\" = \");\n }\n\n break;\n\n case GT:\n whereComp.append(\" < \");\n\n break;\n\n case LT:\n whereComp.append(\" > \");\n\n break;\n\n default:\n whereComp.append(\" != \");\n\n break;\n }\n\n switch (currentExpField) {\n case START_DATE:\n case FINISH_DATE:\n values.add(new Timestamp(((java.util.Date) value).getTime()));\n\n break;\n\n default:\n\n if (value == null) {\n values.add(null);\n } else {\n values.add(value);\n }\n\n break;\n }\n } else {\n //do; a1.OWNER =\n whereComp.append(\"a\" + queryId + '.' + fieldName(fieldExp.getField()));\n\n switch (fieldExp.getOperator()) { //WHERE a2.FINISH_DATE <\n case EQUALS:\n\n if (value == null) {\n whereComp.append(\" IS \");\n } else {\n whereComp.append(\" = \");\n }\n\n break;\n\n case NOT_EQUALS:\n\n if (value == null) {\n whereComp.append(\" IS NOT \");\n } else {\n whereComp.append(\" <> \");\n }\n\n break;\n\n case GT:\n whereComp.append(\" > \");\n\n break;\n\n case LT:\n whereComp.append(\" < \");\n\n break;\n\n default:\n whereComp.append(\" = \");\n\n break;\n }\n\n switch (currentExpField) {\n case START_DATE:\n case FINISH_DATE:\n values.add(new Timestamp(((java.util.Date) value).getTime()));\n\n break;\n\n default:\n\n if (value == null) {\n values.add(null);\n } else {\n values.add(value);\n }\n\n break;\n }\n }\n\n //do; a1.OWNER = ? ... a2.STATUS != ?\n whereComp.append(\" ? \");\n\n //////// END OF WHERE clause////////////////////////////////////////////////////////////\n if ((e.getSortOrder() != WorkflowExpressionQuery.SORT_NONE) && (e.getOrderBy() != null)) {\n // System.out.println(\"ORDER BY ; queries.size() : \" + queries.size());\n orderBy.append(\" ORDER BY \");\n orderBy.append(\"a1\" + '.' + fieldName(e.getOrderBy()));\n\n if (e.getSortOrder() == WorkflowExpressionQuery.SORT_ASC) {\n orderBy.append(\" ASC\");\n } else if (e.getSortOrder() == WorkflowExpressionQuery.SORT_DESC) {\n orderBy.append(\" DESC\");\n }\n }\n } else {\n NestedExpression nestedExp = (NestedExpression) expression;\n\n where.append('(');\n\n doNestedNaturalJoin(e, nestedExp, columns, where, whereComp, values, queries, orderBy);\n\n where.append(')');\n }\n\n //add AND or OR clause between the queries\n if (i < (numberOfExp - 1)) { //ori\n\n //if (i > 1) { //reverse 3 of 3\n if (nestedExpression.getExpressionOperator() == LogicalOperator.AND) {\n where.append(\" AND \");\n whereComp.append(\" AND \");\n } else {\n where.append(\" OR \");\n whereComp.append(\" OR \");\n }\n }\n }\n }", "public Element compileExpression() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean op;\n\t\tboolean oper = false;\n\t\tString command = \"\";\n\t\tElement expressionParent = document.createElement(\"expression\");\n\n\t\t// if the term-op-term-op cycle breaks, that means its the end of the expression\n\t\tdo {\n\n\t\t\t// At least one term\n\t\t\texpressionParent.appendChild(compileTerm());\n\t\t\t\n\t\t\t//If an operand has been encountered, then can write the command as it is postfix\n\t\t\tif (oper) {\n\t\t\t\twriter.writeCommand(command);\n\t\t\t}\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.presentToken;\n\n\t\t\t// zero or more ops\n\t\t\tif (token.matches(\"\\\\+|-|\\\\*|/|\\\\&|\\\\||<|=|>|~\")) {\n\t\t\t\toper = true;\n\n\t\t\t\tswitch (token) {\n\t\t\t\tcase \"+\":\n\t\t\t\t\tcommand = \"add\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-\":\n\t\t\t\t\tcommand = \"sub\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"*\":\n\t\t\t\t\tcommand = \"call Math.multiply 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"/\":\n\t\t\t\t\tcommand = \"call Math.divide 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<\":\n\t\t\t\t\tcommand = \"lt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \">\":\n\t\t\t\t\tcommand = \"gt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"=\":\n\t\t\t\t\tcommand = \"eq\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"&\":\n\t\t\t\t\tcommand = \"and\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"|\":\n\t\t\t\t\tcommand = \"or\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\texpressionParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\top = true;\n\t\t\t} else {\n\t\t\t\top = false;\n\t\t\t}\n\t\t} while (op);\n\n\t\treturn expressionParent;\n\t}", "private void jetFunctions(){\n\t\tInvokeExpr invokeExpr = (InvokeExpr) rExpr;\n\t\tSootMethodRef methodRef = invokeExpr.getMethodRef();\n\t\t\n\t\t//if this is a java.lang.String.func, we don't need to declare it\n\t\tif(StringModeling.stringMethods.contains(methodRef.getSignature())){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString funStr = constructFunStr(invokeExpr);\n\t\tType thisType = null;\n\t\tif(!fileGenerator.getDeclaredFunctions().contains(funStr)){\n\t\t\tif(invokeExpr instanceof StaticInvokeExpr){\n\t\t\t\twriter.println(Z3MiscFunctions.v().getFuncDeclareStmt(funStr, thisType,\n\t\t\t\t\t\tmethodRef.parameterTypes(), methodRef.returnType()));\n\t\t\t}else{\n\t\t\t\tif(invokeExpr instanceof InterfaceInvokeExpr){\n\t\t\t\t\tthisType = ((InterfaceInvokeExpr) invokeExpr).getBase().getType();\n\t\t\t\t}else if(invokeExpr instanceof SpecialInvokeExpr){\n\t\t\t\t\tthisType = ((SpecialInvokeExpr) invokeExpr).getBase().getType();\n\t\t\t\t}else if(invokeExpr instanceof VirtualInvokeExpr){\n\t\t\t\t\tthisType = ((VirtualInvokeExpr) invokeExpr).getBase().getType();\n\t\t\t\t}\n\t\t\t\twriter.println(Z3MiscFunctions.v().getFuncDeclareStmt(funStr, thisType,\n\t\t\t\t\t\tmethodRef.parameterTypes(), methodRef.returnType()));\n\t\t\t}\n\t\t\tfileGenerator.getDeclaredFunctions().add(funStr);\n\t\t}\n\t}", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Calc.Function function = token.getValue(); // e.g. CalcGrammar.Function.sin\n Expression argument = next.pollFirst().getTarget(); // e.g. Expression.Variable(\"x\")\n return new Expression.Function(function, argument);\n }", "ExpOperand createExpOperand();", "void startExternalFunctionEvaluation(Container funcContainer, Object[] arguments) throws Exception {\n\t\toriginalCallstack = callStack;\r\n\t\toriginalEvaluationStackHeight = evaluationStack.size();\r\n\r\n\t\t// Create a new base call stack element.\r\n\t\tcallStack = new CallStack(funcContainer);\r\n\t\tcallStack.currentElement().type = PushPopType.Function;\r\n\t\t\r\n\t\t // Change the callstack the variableState is looking at to be\r\n\t\t // this temporary function evaluation one. We'll restore it afterwards\r\n\t\t variablesState.setCallStack(callStack);\r\n\r\n\t\t// By setting ourselves in external function evaluation mode,\r\n\t\t// we're saying it's okay to end the flow without a Done or End,\r\n\t\t// but with a ~ return instead.\r\n\t\tisExternalFunctionEvaluation = true;\r\n\r\n\t\t// Pass arguments onto the evaluation stack\r\n\t\tif (arguments != null) {\r\n\t\t\tfor (int i = 0; i < arguments.length; i++) {\r\n\t\t\t\tif (!(arguments[i] instanceof Integer || arguments[i] instanceof Float\r\n\t\t\t\t\t\t|| arguments[i] instanceof String)) {\r\n\t\t\t\t\tthrow new Exception(\"ink arguments when calling EvaluateFunction must be int, float or string\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tpushEvaluationStack(Value.create(arguments[i]));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Element compileExpressionList() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean contFlag = false;\n\n\t\tElement expListParent = document.createElement(\"expressionList\");\n\t\ttoken = jTokenizer.returnTokenVal();\n\t\tif (token.equals(\")\")) {\n\t\t\t// expListParent.setTextContent(\"\\n\");\n\t\t\treturn expListParent;\n\t\t}\n\t\tdo {\n\t\t\texpListParent.appendChild(compileExpression());\n\n\t\t\tjTokenizer.advance();\n\t\t\ttoken = jTokenizer.returnTokenVal();\n\n\t\t\tif (token.equals(\",\")) {\n\t\t\t\t// tokenType= jTokenizer.tokenType();\n\t\t\t\t// ele= createXMLnode(tokenType);\n\t\t\t\t// expListParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tcontFlag = true;\n\t\t\t} else {\n\t\t\t\tcontFlag = false;\n\t\t\t}\n\t\t} while (contFlag);\n\t\treturn expListParent;\n\t}", "ActivationExpression createActivationExpression();", "public Object eval (org.apache.spark.sql.catalyst.expressions.Row input) { throw new RuntimeException(); }", "private CodeFragment callFunc(List<AlangParser.ExpressionContext> expressions, Function f) {\n CodeFragment result = new CodeFragment();\n\n ST template;\n if (f.returntype.equals(Types.LLVMVOID)) {\n template = this.group.getInstanceOf(\"voidfunccall\");\n } else {\n template = this.group.getInstanceOf(\"funccall\");\n result.setRegister(this.generateNewRegister(false));\n template.add(\"reg\", result.getRegister());\n template.add(\"type\", f.returntype);\n if (f.returntype.equals(Types.LLVMZNAK)){\n result.setCharRegister();\n }\n }\n\n template.add(\"name\", f.name);\n\n for (int i = 0; i < expressions.size(); i++) {\n CodeFragment expr = visit(expressions.get(i));\n result.addCode(expr);\n if (i == 0)\n template.add(\"args\", f.args.get(i) + \" \" + expr.getRegister());\n else\n template.add(\"args\", \", \" + f.args.get(i) + \" \" + expr.getRegister());\n\n String exprtext = expressions.get(i).getText();\n if (this.globals.containsKey(exprtext)) {\n this.addError(expressions.get(i), exprtext, \"Cannot pass global array to function\");\n return new CodeFragment(\"\");\n }\n\n /* if we are passing whole array to function, pass also its dimensions */\n if (this.vars.get(this.scope).containsKey(exprtext)) {\n Variable v = this.vars.get(this.scope).get(exprtext);\n for (int j = 0; j < v.levelregs.size(); j++) {\n String finalreg = v.levelregs.get(j);\n if (!v.isLocalArray) {\n finalreg = this.generateNewRegister(false);\n result.addCode(String.format(\"%s = load i32, i32* %s\\n\", finalreg, v.levelregs.get(j)));\n }\n template.add(\"args\", \", i32 \" + finalreg);\n }\n }\n }\n\n result.addCode(template.render() + \"\\n\");\n return result;\n }", "public Vector<String> getExpressions(boolean history) {\n Vector<String> expressions = new Vector<>();\n try {\n Statement stat = conn.createStatement();\n ResultSet rs;\n if(history)\n rs = stat.executeQuery(\"SELECT * FROM history ORDER BY id DESC;\");\n else\n rs = stat.executeQuery(\"SELECT * FROM expressions ORDER BY id DESC;\");\n while (rs.next()) {\n expressions.add(rs.getString(\"expression\"));\n }\n return expressions;\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n return null;\n }\n }", "OperationCallExp createOperationCallExp();", "public void createQueryProcessor() throws IOException {\n\t\tfor(int i=0; i<=payload.getnumber_of_grouping_variables();i++) {\n\t\t\tlistMapsAggregates.add(new HashMap<String, String>());\n\t\t}\n\t\tfor(int i=0;i<payload.getnumber_of_aggregate_functions();i++) {\n\t\t\tString[] temp = payload.getaggregate_functions().get(i).split(\"_\",3);\n\t\t\tlistMapsAggregates.get(Integer.parseInt(temp[0])).put(temp[1], temp[2]);//(key,value) -> (aggregate function , column name)\n\t\t}\n\t\tStringBuilder fileData = new StringBuilder();\n\t\tfileData.append(\"package dbmsProject;\\r\\n\\r\\n\" + \n\t\t\t\t\"import java.io.FileOutputStream;\\r\\n\" + \n\t\t\t\t\"import java.io.IOException;\\r\\n\" + \n\t\t\t\t\"import java.text.DateFormat;\\r\\n\" + \n\t\t\t\t\"import java.text.DecimalFormat;\\r\\n\" + \n\t\t\t\t\"import java.text.SimpleDateFormat;\\r\\n\" + \n\t\t\t\t\"import java.util.ArrayList;\\r\\n\" + \n\t\t\t\t\"import java.util.Calendar;\\r\\n\" + \n\t\t\t\t\"import java.util.HashMap;\\r\\n\");\n\t\tfileData.append(\"\\r\\npublic class QueryProcessor{\\n\");\n\t\tfileData.append(\"\tprivate SalesTable salesTable;\\n\");\n\t\tfileData.append(\"\tprivate ExpTree expTree;\\n\");\n\t\tfileData.append(\"\tprivate Payload payload;\\n\");\n\t\tfileData.append(\"\tprivate Helper helper;\\n\");\n\t\tfileData.append(\"\tprivate ArrayList<HashMap<String,String>> listMapsAggregates;\\r\\n\" + \n\t\t\t\t\t\t\"\tprivate HashMap<String, Double> aggregatesMap;\\r\\n\" + \n\t\t\t\t\t\t\"\tprivate ArrayList<HashMap<String, ArrayList<InputRow>>> allGroups;\\r\\n\" + \n\t\t\t\t\t\t\"\tprivate ArrayList<ArrayList<String>> allGroupKeyStrings;\\r\\n\" + \n\t\t\t\t\t\t\"\tprivate ArrayList<ArrayList<InputRow>> allGroupKeyRows;\\n\");\n\t\tfileData.append(\"\\r\\n\tpublic QueryProcessor(SalesTable salesTable, Payload payload){\\n\");\n\t\tfileData.append(\"\t\tthis.aggregatesMap = new HashMap<String, Double>();\\n\");\n\t\tfileData.append(\"\t\tthis.salesTable=salesTable;\\n\");\n\t\tfileData.append(\"\t\tthis.payload=payload;\\n\");\n\t\tfileData.append(\"\t\tthis.expTree=new ExpTree();\\n\");\n\t\tfileData.append(\"\t\tthis.helper=new Helper();\\n\"\n\t\t\t\t\t\t+ \"\t\tthis.allGroupKeyRows = new ArrayList<ArrayList<InputRow>>();\\r\\n\" + \n\t\t\t\t\t\t\"\t\tthis.allGroupKeyStrings = new ArrayList<ArrayList<String>>();\\r\\n\" + \n\t\t\t\t\t\t\"\t\tthis.listMapsAggregates = new ArrayList<HashMap<String,String>>();\\r\\n\"\t+\n\t\t\t\t\t\t\"\t\tthis.allGroups = new ArrayList<HashMap<String, ArrayList<InputRow>>>();\\n\");\n\t\tfileData.append(\"\t}\\n\");\n\t\tfileData.append(\"\\r\\n\tpublic ArrayList<InputRow> createInputSet(){\\n\");\n\t\tfileData.append(\"\t\tArrayList<InputRow> inputResultSet = new ArrayList<InputRow>();\\n\");\n\t\tfileData.append(\"\t\tfor(SalesTableRow row: salesTable.getResultSet()) {\\n\");\n\t\tfileData.append(\"\t\t\tInputRow ir=new InputRow();\\n\");\n\t\tfor(String var: this.projectionVars) {\n\t\t\tfileData.append(\"\t\t\tir.set\"+varPrefix+var+\"(row.get\"+var+\"());\\n\");\n\t\t}\n\t\tfileData.append(\"\t\t\tinputResultSet.add(ir);\\n\");\n\t\tfileData.append(\"\t\t}\\n\");\n\t\tfileData.append(\"\t\treturn inputResultSet;\\n\");\n\t\tfileData.append(\"\t}\\n\");\n\t\t\n//OUTPUT ROW CREATION LOGIC\n\t\tfileData.append(\"\\r\\n\tpublic OutputRow convertInputToOutputRow(InputRow inputRow, String str, ArrayList<String> strList){\\n\");\n\t\tfileData.append(\"\t\tString temp=\\\"\\\";\\n\");\n\t\tfileData.append(\"\t\tOutputRow outputRow = new OutputRow();\\n\");\n\t\tfor(String select: payload.getselect_variables()) {\n\t\t\tif(helper.columnMapping.containsKey(select)) {\n\t\t\t\tfileData.append(\"\t\toutputRow.set\"+varPrefix+select+\"(inputRow.get\"+varPrefix+select+\"());\\n\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tString temp=select;\n\t\t\t\tif(select.contains(\"/\")) select=select.replaceAll(\"/\", \"_divide_\");\n\t\t\t\tif(select.contains(\"*\")) select=select.replaceAll(\"*\", \"_multiply_\");\n\t\t\t\tif(select.contains(\"+\")) select=select.replaceAll(\"+\", \"_add_\");\n\t\t\t\tif(select.contains(\"-\")) select=select.replaceAll(\"-\", \"_minus_\");\n\t\t\t\tif(select.contains(\")\")) select=select.replaceAll(\"[)]+\", \"\");\n\t\t\t\tif(select.contains(\"(\")) select=select.replaceAll(\"[(]+\", \"\");\n\t\t\t\tfileData.append(\"\t\ttemp = prepareClause(inputRow, inputRow, \\\"\"+temp+\"\\\", str, strList);\\n\");\n\t\t\t\tfileData.append(\"\t\tif(temp.contains(\\\"(\\\")) temp = expTree.execute(temp);\\r\\n\");\n\t\t\t\tfileData.append(\"\t\tif(temp.equals(\\\"discard_invalid_entry\\\")) return null;\\n\");\n\t\t\t\tfileData.append(\"\t\toutputRow.set\"+varPrefix+select+\"(Double.parseDouble(temp));\\n\");\n\t\t\t}\n\t\t}\n\t\tfileData.append(\"\t\treturn outputRow;\\n\");\n\t\tfileData.append(\"\t}\\n\");\n\t\t\n//WHERE CLAUSE EXECUTOR\n\t\tfileData.append(\"\\r\\n\tpublic ArrayList<InputRow> executeWhereClause(ArrayList<InputRow> inputResultSet) {\\r\\n\" + \n\t\t\t\t\"\t\tint i=0;\\r\\n\" + \n\t\t\t\t\"\t\twhile(i<inputResultSet.size()) {\\r\\n\" + \n\t\t\t\t\"\t\t\tString condition=prepareClause(inputResultSet.get(i), inputResultSet.get(i), payload.getWhereClause(), \\\"\\\", new ArrayList<String>());\\r\\n\" + \n\t\t\t\t\"\t\t\tif(condition.equals(\\\"discard_invalid_entry\\\") || !Boolean.parseBoolean(expTree.execute(condition))){\\r\\n\" + \n\t\t\t\t\"\t\t\t\tinputResultSet.remove(i);\\r\\n\" + \n\t\t\t\t\"\t\t\t\tcontinue;\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\ti++;\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\treturn inputResultSet;\\r\\n\" + \n\t\t\t\t\"\t}\\n\");\n\n//REFINE CLAUSE FOR PROCESSING\n\t\tfileData.append(\"\\r\\n\tpublic String prepareClause(InputRow row, InputRow rowZero, String condition, String str, ArrayList<String> strList) {\\r\\n\" + \n\t\t\t\t\"\t\tfor(int i=0;i<strList.size();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tif(condition.contains(i+\\\"_\\\")) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\tboolean flag=false;\\r\\n\" + \n\t\t\t\t\"\t\t\t\tfor(String ag : payload.getaggregate_functions()) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tif(!ag.contains(i+\\\"\\\")) continue;\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tif(condition.contains(ag)) flag=true;\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tcondition=condition.replaceAll(ag, ag+\\\"_\\\"+strList.get(i));\\r\\n\" + \n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\tif(flag) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tboolean changeFlag=false;\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tfor(String key : aggregatesMap.keySet()) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t\tif(condition.contains(key)) changeFlag=true;\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t\tcondition = condition.replaceAll(key, Double.toString(aggregatesMap.get(key)));\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tif(!changeFlag) return \\\"discard_invalid_entry\\\";\\r\\n\" + \n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t\tif(condition.contains(\\\".\\\")) {\\r\\n\");\n\t\tfor(String var: projectionVars) {\n\t\t\tif(helper.columnMapping.get(var)==0 || helper.columnMapping.get(var)==1 || helper.columnMapping.get(var)==5)\n\t\t\t\tfileData.append(\"\t\t\tcondition=condition.replaceAll(\\\"[0-9]+\\\\\\\\.\"+var+\"\\\", row.get\"+varPrefix+var+\"());\\r\\n\");\n\t\t\telse\n\t\t\t\tfileData.append(\"\t\t\tcondition=condition.replaceAll(\\\"[0-9]+\\\\\\\\.\"+var+\"\\\", Integer.toString(row.get\"+varPrefix+var+\"()));\\r\\n\");\n\t\t}\n\t\tfileData.append(\"\t\t}\\n\");\n\t\t\n\t\tfor(String var: projectionVars) {\n\t\t\tif(helper.columnMapping.get(var)==0 || helper.columnMapping.get(var)==1 || helper.columnMapping.get(var)==5)\n\t\t\t\tfileData.append(\"\t\tcondition=condition.replaceAll(\\\"\"+var+\"\\\", rowZero.get\"+varPrefix+var+\"());\\r\\n\");\n\t\t\telse\n\t\t\t\tfileData.append(\"\t\tcondition=condition.replaceAll(\\\"\"+var+\"\\\", Integer.toString(rowZero.get\"+varPrefix+var+\"()));\\r\\n\");\n\t\t}\n\t\t\n\t\tfileData.append(\n\t\t\t\t\"\t\tcondition=condition.replaceAll(\\\"\\\\\\\\s+\\\", \\\"\\\");\\r\\n\" + \n\t\t\t\t\"\t\tcondition=condition.replaceAll(\\\"\\\\\\\"\\\", \\\"\\\");\\r\\n\" + \n\t\t\t\t\"\t\tcondition=condition.replaceAll(\\\"\\\\'\\\", \\\"\\\");\\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t\treturn condition;\\r\\n\" + \n\t\t\t\t\"\t}\\n\");\n\n//CREATE GROUPS\t\t\n\t\tfileData.append(\"\\r\\n\tpublic void createListsBasedOnSuchThatPredicate(ArrayList<InputRow> inputResultSet) {\\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t\tfor(int i=0;i<=payload.getnumber_of_grouping_variables();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tArrayList<String> groupKeyStrings = new ArrayList<String>();\\r\\n\" + \n\t\t\t\t\"\t\t\tArrayList<InputRow> groupKeyRows = new ArrayList<InputRow>();\\r\\n\" + \n\t\t\t\t\"\t\t\tfor(InputRow row : inputResultSet) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\tStringBuilder temp=new StringBuilder();\\r\\n\" + \n\t\t\t\t\"\t\t\t\tInputRow groupRow = new InputRow();\\r\\n\" + \n\t\t\t\t\"\t\t\t\tfor(String group: payload.getGroupingAttributesOfAllGroups().get(i)) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tint col = helper.columnMapping.get(group);\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tswitch(col) {\\r\\n\");\n\t\tfor(String var: projectionVars) {\n\t\t\tfileData.append(\"\t\t\t\t\t\tcase \"+helper.columnMapping.get(var)+\":\"+\"{temp.append(row.get\"+varPrefix+var+\"()+\\\"_\\\"); groupRow.set\"+varPrefix+ var+ \"(row.get\"+varPrefix+var+\"()); break;}\\r\\n\");\n\t\t}\n\t\tfileData.append(\"\t\t\t\t\t}\\n\"+\n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\tString s=temp.toString();\\r\\n\" + \n\t\t\t\t\"\t\t\t\tif(s.charAt(s.length()-1)=='_') s=s.substring(0, s.length()-1);\\r\\n\" + \n\t\t\t\t\"\t\t\t\tif( !groupKeyStrings.contains(s) ) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tgroupKeyStrings.add(s);\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tgroupKeyRows.add(groupRow);\\r\\n\" + \n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\tallGroupKeyRows.add(groupKeyRows);\\r\\n\" + \n\t\t\t\t\"\t\t\tallGroupKeyStrings.add(groupKeyStrings);\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t\tfor(int i=0;i<=payload.getnumber_of_grouping_variables();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tHashMap<String, ArrayList<InputRow>> res = new HashMap<String, ArrayList<InputRow>>();\\r\\n\" + \n\t\t\t\t\"\t\t\tString suchThat = payload.getsuch_that_predicates().get(i);\\r\\n\" + \n\t\t\t\t\"\t\t\tfor(int j=0;j<allGroupKeyRows.get(i).size();j++) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\tInputRow zeroRow = allGroupKeyRows.get(i).get(j);\\r\\n\" + \n\t\t\t\t\"\t\t\t\tArrayList<InputRow> groupMember = new ArrayList<InputRow>();\\r\\n\" + \n\t\t\t\t\"\t\t\t\tfor(InputRow salesRow : inputResultSet) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tString condition = prepareClause(salesRow, zeroRow, suchThat, \\\"\\\", new ArrayList<String>());\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tif(Boolean.parseBoolean(expTree.execute(condition))) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t\tgroupMember.add(salesRow);\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\tres.put(allGroupKeyStrings.get(i).get(j), new ArrayList<InputRow>(groupMember));\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\tallGroups.add(new HashMap<String, ArrayList<InputRow>>(res));\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t}\\n\");\n\t\t\n//GETGROUPING VARIABLE METHOD\n\t\tfileData.append(\"\\r\\n\tpublic String getGroupingVariable(int i, InputRow row) {\\r\\n\" + \n\t\t\t\t\"\t\tswitch(i) {\\r\\n\");\n\t\tfor(String var: projectionVars) {\n\t\t\tif(helper.columnMapping.get(var)==0||helper.columnMapping.get(var)==1||helper.columnMapping.get(var)==5)\n\t\t\t\tfileData.append(\"\t\t\tcase \"+helper.columnMapping.get(var)+\": return row.get\"+varPrefix+var+\"();\\r\\n\");\n\t\t\telse if(helper.columnMapping.get(var)==7)\n\t\t\t\tfileData.append(\"\t\t\tcase \"+helper.columnMapping.get(var)+\": return \\\"all\\\"\");\n\t\t\telse\n\t\t\t\tfileData.append(\"\t\t\tcase \"+helper.columnMapping.get(var)+\": return Integer.toString(row.get\"+varPrefix+var+\"());\\r\\n\");\n\t\t}\n\t\tfileData.append(\"\t\t}\\r\\n\");\n\t\tfileData.append(\"\t\treturn \\\"__Garbage__\\\";\\r\\n\");\n\t\tfileData.append(\"\t}\\n\");\n\t\t\n//COMPUTE AGGREGATES METHOD\n\t\tfileData.append(\"\\r\\n\tpublic void computeAggregates(ArrayList<InputRow> inputResultSet) {\t\\r\\n\" + \n\t\t\t\t\"\t\tdouble val=0;\\r\\n\"+\n\t\t\t\t\"\t\tfor(int i=0; i<=payload.getnumber_of_grouping_variables();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tlistMapsAggregates.add(new HashMap<String, String>());\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\tfor(int i=0;i<payload.getnumber_of_aggregate_functions();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tString[] temp = payload.getaggregate_functions().get(i).split(\\\"_\\\",3);\\r\\n\" + \n\t\t\t\t\"\t\t\tlistMapsAggregates.get(Integer.parseInt(temp[0])).put(temp[1], temp[2]);//(key,value) -> (aggregate function , column name)\\r\\n\" + \n\t\t\t\t\"\t\t}\\r\\n\"+\n\t\t\t\t\"\t\tint nGroupingVariables=0;\\r\\n\"+\n\t\t\t\t\"\t\taggregatesMap = new HashMap<>();\\r\\n\"+\n\t\t\t\t\"\t\tHashMap<String,Double> tempAggregatesMap;\\r\\n\");\n\t\t\n\t\tfor(int nGroupingVariables=0;nGroupingVariables<=payload.getnumber_of_grouping_variables();nGroupingVariables++) {\n\t\t\tfileData.append(\"\\n\t\tnGroupingVariables=\"+nGroupingVariables+\";\\r\\n\");\n\t\t\tfileData.append(\n\t\t\t\t\t\t\t\"\t\ttempAggregatesMap = new HashMap<String,Double>();\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\tfor(int i=0;i<allGroupKeyRows.get(nGroupingVariables).size(); i++) {\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\tInputRow zeroRow = allGroupKeyRows.get(nGroupingVariables).get(i);\\r\\n\" );\n\t\t\t\n\t\t\t//MFvsEMF\n\t\t\tif(isGroupMF(nGroupingVariables)) fileData.append(\"\t\t\tfor(InputRow row: allGroups.get(nGroupingVariables).get(allGroupKeyStrings.get(nGroupingVariables).get(i)))\t{\\r\\n\");\n\t\t\telse fileData.append(\"\t\t\tfor(InputRow row: inputResultSet) {\\r\\n\");\n\t\t\t\n\t\t\tfileData.append(\"\t\t\t\tString condition = payload.getsuch_that_predicates().get(nGroupingVariables);\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\t\tString str = allGroupKeyStrings.get(nGroupingVariables).get(i);\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\t\tArrayList<String> strList = new ArrayList<String>();\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\t\tfor(int j=0;j<=payload.getnumber_of_grouping_variables();j++) strList.add(str);\\r\\n\" +\n\t\t\t\t\t\t\t\"\t\t\t\tcondition= prepareClause(row, zeroRow, condition, str, strList);\\r\\n\" + \n\t\t\t\t\t\t\t\"\t\t\t\tif(condition.equals(\\\"discard_invalid_entry\\\") || !Boolean.parseBoolean(expTree.execute(condition))) continue;\\r\\n\"\n\t\t\t\t\t\t\t);\n\t\t\tString key1 = nGroupingVariables+\"_sum_\"+listMapsAggregates.get(nGroupingVariables).get(\"sum\");\n\t\t\tString key2 = nGroupingVariables+\"_avg_\"+listMapsAggregates.get(nGroupingVariables).get(\"avg\");\n\t\t\tString key3 = nGroupingVariables+\"_min_\"+listMapsAggregates.get(nGroupingVariables).get(\"min\");\n\t\t\tString key4 = nGroupingVariables+\"_max_\"+listMapsAggregates.get(nGroupingVariables).get(\"max\");\n\t\t\tString key5 = nGroupingVariables+\"_count_\"+listMapsAggregates.get(nGroupingVariables).get(\"count\");\n\t\t\tString key6 = nGroupingVariables+\"_count_\"+listMapsAggregates.get(nGroupingVariables).get(\"avg\");\n\t\t\t\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"sum\")) \n\t\t\t\tfileData.append(\"\t\t\t\tString key1=\\\"\"+key1+\"\\\";\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"avg\")) {\n\t\t\t\tfileData.append(\"\t\t\t\tString key2=\\\"\"+key2+\"\\\";\\r\\n\");\n\t\t\t\tfileData.append(\"\t\t\t\tString key6=\\\"\"+key6+\"\\\";\\r\\n\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"min\"))\n\t\t\t\tfileData.append(\"\t\t\t\tString key3=\\\"\"+key3+\"\\\";\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"max\"))\n\t\t\t\tfileData.append(\"\t\t\t\tString key4=\\\"\"+key4+\"\\\";\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"count\"))\n\t\t\t\tfileData.append(\"\t\t\t\tString key5=\\\"\"+key5+\"\\\";\\r\\n\");\n\t\t\t\n\t\t\tfileData.append(\"\t\t\t\tfor(String ga: payload.getGroupingAttributesOfAllGroups().get(nGroupingVariables)) {\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"sum\")) \n\t\t\t\tfileData.append(\"\t\t\t\t\tkey1=key1+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"avg\")) {\n\t\t\t\tfileData.append(\"\t\t\t\t\tkey2=key2+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\t\tfileData.append(\"\t\t\t\t\tkey6=key6+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"min\"))\n\t\t\t\tfileData.append(\"\t\t\t\t\tkey3=key3+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"max\"))\n\t\t\t\tfileData.append(\"\t\t\t\t\tkey4=key4+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"count\"))\n\t\t\t\tfileData.append(\"\t\t\t\t\tkey5=key5+\\\"_\\\"+ getGroupingVariable(helper.columnMapping.get(ga), zeroRow);\\r\\n\");\n\t\t\tfileData.append(\"\t\t\t\t}\\r\\n\");\n\t\t\t\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"sum\")) {\n\t\t\t\tfileData.append(\"\t\t\tval=tempAggregatesMap.getOrDefault(key1, 0.0)+Double.parseDouble(getGroupingVariable(helper.columnMapping.get(listMapsAggregates.get(nGroupingVariables).get(\\\"sum\\\")), row));\\r\\n\" + \n\t\t\t\t\"\t\t\ttempAggregatesMap.put(key1, val);\\r\\n\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"avg\")) {\n\t\t\t\tfileData.append(\"\t\t\tval=tempAggregatesMap.getOrDefault(key2, 0.0)+Double.parseDouble(getGroupingVariable(helper.columnMapping.get(listMapsAggregates.get(nGroupingVariables).get(\\\"avg\\\")), row));\\r\\n\"+\n\t\t\t\t\"\t\t\ttempAggregatesMap.put(key2, val);\\r\\n\"+\n\t\t\t\t\"\t\t\ttempAggregatesMap.put(key6, tempAggregatesMap.getOrDefault(key6, 0.0)+1);\\r\\n\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"min\")) {\n\t\t\t\tfileData.append(\"\t\t\tval=Math.min( tempAggregatesMap.getOrDefault(key3, Double.MAX_VALUE) , Double.parseDouble(getGroupingVariable(helper.columnMapping.get(listMapsAggregates.get(nGroupingVariables).get(\\\"min\\\")), row)));\\r\\n\"+\n\t\t\t\t\"\t\t\ttempAggregatesMap.put(key3, val);\\r\\n\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"max\")) {\n\t\t\t\tfileData.append(\"\t\t\tval=Math.max( tempAggregatesMap.getOrDefault(key4, Double.MIN_VALUE) , Double.parseDouble(getGroupingVariable(helper.columnMapping.get(listMapsAggregates.get(nGroupingVariables).get(\\\"max\\\")), row)));\\r\\n\"+\n\t\t\t\t\"\t\t\ttempAggregatesMap.put(key4, val);\");\n\t\t\t}\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"count\")) {\n\t\t\t\tfileData.append(\"\t\t\ttempAggregatesMap.put(key5, tempAggregatesMap.getOrDefault(key5, 0.0)+1);\\r\\n\");\n\t\t\t}\n\t\t\tfileData.append(\"\t\t\t}\\r\\n\");\n\t\t\tfileData.append(\"\t\t}\\r\\n\");\n\t\t\tif(listMapsAggregates.get(nGroupingVariables).containsKey(\"avg\")) {\n\t\t\t\tfileData.append(\n\t\t\t\t\"\t\tfor(String key: tempAggregatesMap.keySet()) {\\r\\n\"+\n\t\t\t\t\"\t\t\tif(key.contains(\\\"_avg_\\\"))\\r\\n\"+\n\t\t\t\t\"\t\t\t\ttempAggregatesMap.put(key, tempAggregatesMap.get(key)/tempAggregatesMap.get(key.replace(\\\"_avg_\\\", \\\"_count_\\\")));\\r\\n\"+\n\t\t\t\t\"\t\t}\\r\\n\");\n\t\t\t}\n\t\t\tfileData.append(\"\t\taggregatesMap.putAll(tempAggregatesMap);\\r\\n\");\n\t\t}\n\t\t\n\t\tfileData.append(\"\t}\\n\");\n\n//PREPARE THE RESULTS AND ADD THEM TO A LIST OF OUTPUTROW\n\t\tfileData.append(\"\\r\\n\tpublic ArrayList<OutputRow> createOutputResultSet() {\\r\\n\" + \n\t\t\t\t\"\t\tArrayList<OutputRow> outputRowList = new ArrayList<OutputRow>();\\r\\n\"+\n\t\t\t\t\"\t\tfor(int i=0; i<allGroupKeyRows.get(0).size();i++) {\\r\\n\" + \n\t\t\t\t\"\t\t\tString str=allGroupKeyStrings.get(0).get(i);\\r\\n\" + \n\t\t\t\t\"\t\t\tString[] tempStr = str.split(\\\"_\\\");\\r\\n\" + \n\t\t\t\t\"\t\t\tArrayList<String> strList = new ArrayList<String>();\\r\\n\" + \n\t\t\t\t\"\t\t\tfor(int j=0; j<=payload.getnumber_of_grouping_variables(); j++) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\tString ss = \\\"\\\";\\r\\n\" + \n\t\t\t\t\"\t\t\t\tint k=0;\\r\\n\" + \n\t\t\t\t\"\t\t\t\tfor(String gz: payload.getgrouping_attributes()) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tif(payload.getGroupingAttributesOfAllGroups().get(j).contains(gz)) ss=ss+tempStr[k++]+\\\"_\\\";\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\telse k++;\\r\\n\" + \n\t\t\t\t\"\t\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t\tstrList.add(ss.substring(0, ss.length()-1));\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\t\t\t//having check\\r\\n\" + \n\t\t\t\t\"\t\t\tif(payload.isHavingClause()) {\\r\\n\" + \n\t\t\t\t\"\t\t\t\tString condition= prepareClause(allGroupKeyRows.get(0).get(i), allGroupKeyRows.get(0).get(i), payload.getHavingClause(), str, strList);\\r\\n\" + \n\t\t\t\t\"\t\t\t\tif(condition.equals(\\\"discard_invalid_entry\\\") || !Boolean.parseBoolean(expTree.execute(condition))) continue;\\r\\n\" + \n\t\t\t\t\"\t\t\t}\\r\\n\" + \n\t\t\t\t\"\\r\\n\" + \n\t\t\t\t\"\t\t\tOutputRow outputRow= convertInputToOutputRow(allGroupKeyRows.get(0).get(i), str, strList);\\r\\n\"+\n\t\t\t\t\"\t\t\tif(outputRow!=null){\\r\\n\" + \n\t\t\t\t\"\t\t\t\toutputRowList.add(outputRow);\\r\\n\"+\n\t\t\t\t\"\t\t\t}\\r\\n\"+\t\n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\treturn outputRowList;\\r\\n\"+\n\t\t\t\t\"\t}\\n\");\n\t\t\n//PRINT THE OUTPUT ROW\n\t\tfileData.append(\"\\r\\n\tpublic void printOutputResultSet(ArrayList<OutputRow> outputResultSet) throws IOException{\\r\\n\");\n\t\tfileData.append(\"\t\tCalendar now = Calendar.getInstance();\\r\\n\" + \n\t\t\t\t\"\t\tDateFormat dateFormat = new SimpleDateFormat(\\\"MM/dd/yyyy HH:mm:ss\\\");\\r\\n\" + \n\t\t\t\t\"\t\tStringBuilder fileData = new StringBuilder();\\r\\n\" + \n\t\t\t\t\"\t\tfileData.append(\\\"TIME (MM/dd/yyyy HH:mm:ss)::::\\\"+dateFormat.format(now.getTime())+\\\"\\\\r\\\\n\\\");\\r\\n\" + \n\t\t\t\t\"\t\tString addDiv = \\\" -------------- \\\";\\r\\n\" + \n\t\t\t\t\"\t\tString divide = \\\"\\\";\\r\\n\" + \n\t\t\t\t\"\t\tString header=\\\"\\\";\"+\n\t\t\t\t\"\t\tfor(String select: payload.getselect_variables()) {\\r\\n\" + \n\t\t\t\t\"\t\t\tif(select.contains(\\\"0_\\\")) select=select.substring(2);\\r\\n\" + \n\t\t\t\t\"\t\t\theader=header+\\\" \\\"+select;\\r\\n\" + \n\t\t\t\t\"\t\t\tfor(int i=0;i<14-select.length();i++) header=header+\\\" \\\";\\r\\n\" + \n\t\t\t\t\"\t\t\tdivide=divide+addDiv;\\r\\n\"+\n\t\t\t\t\"\t\t}\\r\\n\" + \n\t\t\t\t\"\t\tSystem.out.println(divide); fileData.append(divide+\\\"\\\\r\\\\n\\\");\\r\\n\" + \n\t\t\t\t\"\t\tSystem.out.println(header); fileData.append(header+\\\"\\\\r\\\\n\\\");\\r\\n\" + \n\t\t\t\t\"\t\tSystem.out.println(divide); fileData.append(divide+\\\"\\\\r\\\\n\\\");\\r\\n\" + \n\t\t\t\t//\"\t\tSystem.out.println(); fileData.append(\\\"\\\\r\\\\n\\\");\\r\\n\" + \n\t\t\t\t\"\t\tString ansString=\\\"\\\";\\r\\n\" + \n\t\t\t\t\"\t\tDecimalFormat df = new DecimalFormat(\\\"#.####\\\");\\r\\n\");\n\t\tfileData.append(\"\t\tfor(OutputRow outputRow: outputResultSet) {\\r\\n\");\n\t\tfileData.append(\"\t\t\tString answer=\\\"\\\";\\r\\n\");\n\t\t\n\t\tfor(String select: payload.getselect_variables()) {\n\t\t\tif(helper.columnMapping.containsKey(select)) {\n\t\t\t\tint col = helper.columnMapping.get(select);\n\t\t\t\tif(col==0|| col==1|| col==5) {\n\t\t\t\t\t//string\n\t\t\t\t\tfileData.append(\"\t\t\tansString=outputRow.get\"+varPrefix+select+\"();\\r\\n\");\n\t\t\t\t\tfileData.append(\"\t\t\tanswer=answer+\\\" \\\"+ansString;\\r\\n\");\n\t\t\t\t\tfileData.append(\"\t\t\tfor(int k=0;k<14-ansString.length();k++) answer=answer+\\\" \\\";\\r\\n\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//int\n\t\t\t\t\tfileData.append(\"\t\t\tansString = Integer.toString(outputRow.get\"+varPrefix+select+\"());\\r\\n\");\n\t\t\t\t\tfileData.append(\"\t\t\tfor(int k=0;k<12-ansString.length();k++) answer=answer+\\\" \\\";\\r\\n\");\n\t\t\t\t\tfileData.append(\"\t\t\tanswer=answer+ansString+\\\" \\\";\\r\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//double\n\t\t\t\tif(select.contains(\"/\")) select=select.replaceAll(\"/\", \"_divide_\");\n\t\t\t\tif(select.contains(\"*\")) select=select.replaceAll(\"*\", \"_multiply_\");\n\t\t\t\tif(select.contains(\"+\")) select=select.replaceAll(\"+\", \"_add_\");\n\t\t\t\tif(select.contains(\"-\")) select=select.replaceAll(\"-\", \"_minus_\");\n\t\t\t\tif(select.contains(\")\")) select=select.replaceAll(\"[)]+\", \"\");\n\t\t\t\tif(select.contains(\"(\")) select=select.replaceAll(\"[(]+\", \"\");\n\t\t\t\tfileData.append(\"\t\t\tansString = df.format(outputRow.get\"+varPrefix+select+\"());\\r\\n\");\n\t\t\t\tfileData.append(\"\t\t\tfor(int k=0;k<12-ansString.length();k++) answer=answer+\\\" \\\";\\r\\n\");\n\t\t\t\tfileData.append(\"\t\t\tanswer=answer+ansString+\\\" \\\";\\r\\n\");\n\t\t\t}\n\t\t}\n\t\tfileData.append(\"\t\t\tSystem.out.println(answer); fileData.append(answer+\\\"\\\\r\\\\n\\\");\\r\\n\");\n\t\tfileData.append(\"\t\t}\\r\\n\");\n\t\tfileData.append(\"\t\tFileOutputStream fos = new FileOutputStream(\\\"queryOutput/\"+payload.fileName+\"\\\");\\r\\n\" + \n\t\t\t\t\"\t\tfos.write(fileData.toString().getBytes());\\r\\n\" + \n\t\t\t\t\"\t\tfos.flush();\\r\\n\" + \n\t\t\t\t\"\t\tfos.close();\\r\\n\");\n\t\tfileData.append(\"\t}\\r\\n\");\n\t\t\n\t\t\n//DRIVER METHOD OF THE QUERY PROCESSOR\n\t\tfileData.append(\"\\r\\n\tpublic void process() throws IOException{\\r\\n\" + \n\t\t\t\t\"\t\tArrayList<InputRow> inputResultSet = createInputSet();\\r\\n\" + \n\t\t\t\t\"\t\tif(payload.getIsWhereClause()) inputResultSet = executeWhereClause(inputResultSet);\\r\\n\" + \n\t\t\t\t\"\t\tif(payload.getnumber_of_grouping_variables()>0) createListsBasedOnSuchThatPredicate(inputResultSet);\\r\\n\" + \n\t\t\t\t\"\t\tcomputeAggregates(inputResultSet);\\r\\n\" + \n\t\t\t\t\"\t\tArrayList<OutputRow> outputResultSet = createOutputResultSet();\\r\\n\" + \n\t\t\t\t\"\t\tprintOutputResultSet(outputResultSet);\\r\\n\"+\n\t\t\t\t\"\t}\\n\");\n\t\t\n\t\tfileData.append(\"}\");\n\t\tFileOutputStream fos = new FileOutputStream(\"src/dbmsProject/QueryProcessor.java\");\n\t\tfos.write(fileData.toString().getBytes());\n\t\tfos.flush();\n\t\tfos.close();\n\t}", "public double computeExpression(Expression exp, DataRow data) {\n\n //TODO all cases\n\n //------ net.sf.jsqlparser.expression.operators.* ---------\n if (exp instanceof Parenthesis) {\n return computeExpression(((Parenthesis) exp).getExpression(), data);\n }\n\n\n //------ net.sf.jsqlparser.expression.operators.conditional.* ---------\n if (exp instanceof AndExpression) {\n return computeAnd((AndExpression) exp, data);\n }\n if (exp instanceof OrExpression) {\n return computeOr((OrExpression) exp, data);\n }\n\n\n //------ net.sf.jsqlparser.expression.operators.relational.* ---------\n if(exp instanceof Between){\n return computeBetween((Between)exp, data);\n }\n if (exp instanceof ComparisonOperator) {\n // this deals with 6 subclasses:\n return computeComparisonOperator((ComparisonOperator) exp, data);\n }\n if(exp instanceof ExistsExpression){\n //TODO\n }\n if(exp instanceof ExpressionList){\n //TODO\n }\n if (exp instanceof InExpression) {\n return computeInExpression((InExpression) exp, data);\n }\n if (exp instanceof IsNullExpression) {\n return computeIsNull((IsNullExpression) exp, data);\n }\n if(exp instanceof JsonOperator){\n //TODO\n }\n if(exp instanceof LikeExpression){\n //TODO\n }\n if(exp instanceof Matches){\n //TODO\n }\n if(exp instanceof MultiExpressionList){\n //TODO\n }\n if(exp instanceof NamedExpressionList){\n //TODO\n }\n if(exp instanceof RegExpMatchOperator){\n //TODO\n }\n\n return cannotHandle(exp);\n }", "public interface Unary extends Expr \n{\n /** Unary expression operator. */\n public static enum Operator {\n BIT_NOT (\"~\", true),\n NEG (\"-\", true),\n POST_INC (\"++\", false),\n POST_DEC (\"--\", false),\n PRE_INC (\"++\", true),\n PRE_DEC (\"--\", true),\n POS (\"+\", true),\n NOT (\"!\", true),\n CARET (\"^\", true),\n BAR (\"|\", true),\n AMPERSAND(\"&\", true),\n STAR (\"*\", true),\n SLASH (\"/\", true),\n PERCENT (\"%\", true);\n\n protected boolean prefix;\n protected String name;\n\n private Operator(String name, boolean prefix) {\n this.name = name;\n this.prefix = prefix;\n }\n\n /** Returns true of the operator is a prefix operator, false if\n * postfix. */\n public boolean isPrefix() { return prefix; }\n\n @Override public String toString() { return name; }\n }\n\n public static final Operator BIT_NOT = Operator.BIT_NOT;\n public static final Operator NEG = Operator.NEG;\n public static final Operator POST_INC = Operator.POST_INC;\n public static final Operator POST_DEC = Operator.POST_DEC;\n public static final Operator PRE_INC = Operator.PRE_INC;\n public static final Operator PRE_DEC = Operator.PRE_DEC;\n public static final Operator POS = Operator.POS;\n public static final Operator NOT = Operator.NOT;\n public static final Operator CARET = Operator.CARET;\n public static final Operator BAR = Operator.BAR;\n public static final Operator AMPERSAND = Operator.AMPERSAND;\n public static final Operator STAR = Operator.STAR;\n public static final Operator SLASH = Operator.SLASH;\n public static final Operator PERCENT = Operator.PERCENT;\n\n /** The sub-expression on that to apply the operator. */\n Expr expr();\n /** Set the sub-expression on that to apply the operator. */\n Unary expr(Expr e);\n\n /** The operator to apply on the sub-expression. */\n Operator operator();\n /** Set the operator to apply on the sub-expression. */\n Unary operator(Operator o);\n}" ]
[ "0.6009071", "0.58664715", "0.5824601", "0.5818673", "0.5816509", "0.57852817", "0.57229555", "0.5722777", "0.5663341", "0.5620861", "0.55850047", "0.5564388", "0.5564388", "0.5534445", "0.5530746", "0.5483495", "0.54775554", "0.5444175", "0.543649", "0.5428733", "0.54282874", "0.54282874", "0.54282874", "0.54282874", "0.54222697", "0.54099727", "0.5385619", "0.5343069", "0.5337485", "0.53347915", "0.5334122", "0.53320444", "0.5298761", "0.5295553", "0.52856743", "0.52559763", "0.52523404", "0.52438986", "0.5237937", "0.52260524", "0.52178025", "0.52170753", "0.5215949", "0.520408", "0.51995814", "0.51784545", "0.51755315", "0.5175074", "0.5174571", "0.5173638", "0.5173114", "0.517181", "0.51655114", "0.51493317", "0.5139322", "0.5131004", "0.512766", "0.5124425", "0.51177394", "0.51170677", "0.5116996", "0.5102855", "0.51015455", "0.5100848", "0.5099379", "0.5088507", "0.508789", "0.50800145", "0.50736445", "0.5070441", "0.50668216", "0.50648034", "0.5064449", "0.504758", "0.50459814", "0.50399446", "0.50362", "0.5031327", "0.5029026", "0.5023799", "0.50230396", "0.50224704", "0.50175637", "0.5014979", "0.50067186", "0.50062364", "0.50036114", "0.49999323", "0.49967375", "0.49891677", "0.49779496", "0.49755874", "0.49690667", "0.49683806", "0.4967974", "0.4960419", "0.49497318", "0.4935954", "0.49340886", "0.49318197" ]
0.53485364
27
If this looks like username, search by UserId.
@Override public List<EduUser> apply(final String s) { if (StringUtils.isAlphanumeric(s)) { List<EduUser> userList = new ArrayList<>(); userList.add(humanResourceService.getUserByUsername(s)); return userList; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String searchForUser() {\n String userId = \"\";\n String response = given().\n get(\"/users\").then().extract().asString();\n List usernameId = from(response).getList(\"findAll { it.username.equals(\\\"Samantha\\\") }.id\");\n if (!usernameId.isEmpty()) {\n userId = usernameId.get(0).toString();\n }\n return userId;\n }", "public int search_userid(String user_name);", "public User search_userinfo(String user_name);", "@Override\n\tpublic String nameFind(String user_id) {\n\t\treturn mapper.nameFind(user_id);\n\t}", "String getUserName(String userId);", "@Override\n\tpublic List<User> searchByUser(String userName) {\n\t\tlog.info(\"Search by username!\");\n\t\treturn userRepository.findByFirstNameRegex(userName+\".*\");\n\t}", "List<User> searchUsersByUsername(String username);", "public String getUserName(int userId);", "public long searchID(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select _id, username from \" + TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n long id = -1;\n String uname;\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(1);\n if (uname.equals(username)) {\n id = cursor.getLong(cursor.getColumnIndex(ROW_ID));\n }\n } while (cursor.moveToNext());\n }\n return id;\n }", "List<User> findAllByUsernameContains(String username);", "public User getUserByUserName(String username);", "public int UserNamePresent(String search) {\n\t\tint item = -1;\n\t\tfor (int i = 0; i < CarerAccounts.size(); ++i) {\n if (CarerAccounts.get(i).getUsername().equals(search)){\n item = CarerAccounts.get(i).getID();\n\t\t\t}\n\t\t}\n\t\treturn item;\n\t}", "public List<User> searchUser(String searchValue);", "public String findUser(String id) throws UserNotFoundException{\n\t\tString userFound = \"\";\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tif (users.get(i).getDocumentNumber().equals(id)) {\n\t\t\t\tuserFound = \"\\n-------USER-------\\n\"+users.get(i).toString();\n\t\t\t}\n\t\t}\n\t\tif (userFound.equals(\"\")) {\n\t\t\tthrow new UserNotFoundException(id);\n\t\t}\n\t\telse {\n\t\t\treturn userFound;\n\t\t}\n\t}", "@Override\n public void onClick(View view){\n String username = search.getText().toString();\n String userid = \"\";\n if (users != null) {\n for (String id : users.keySet()) {\n if (users.get(id).getUserName().equals(username)){\n userid = id;\n break;\n }\n }\n if (userid.equals(\"\")){\n Toast.makeText(getContext(), \"No Such User\", Toast.LENGTH_LONG).show();\n } else {\n readUserInfo(userid, username);\n Toast.makeText(getContext(), \"Loading User\", Toast.LENGTH_SHORT).show();\n }\n } else {\n Toast.makeText(getContext(), \"Loading User List\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\r\n\tpublic User searchUser(Integer id) {\n\t\treturn userReposotory.getById(id);\r\n\t}", "List<UserRepresentation> searchUserAccount(final String username);", "public ArrayList<String> findUserID(String username) {\n DataManager.getUsers getUser = new DataManager.getUsers(getActivity());\n ArrayList<String> queryList = new ArrayList<>();\n ArrayList<User> usersList = new ArrayList<>();\n\n queryList.add(\"username\");\n queryList.add(username);\n getUser.execute(queryList);\n\n try {\n usersList = getUser.get();\n } catch (Exception e) {}\n\n if (!usersList.isEmpty()) {\n String stringQuery = usersList.get(0).getID();\n queryList.clear();\n queryList.add(stringQuery);\n }\n\n return queryList;\n }", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public User queryUserByUsername(String username);", "public AgtUser findUserByName(String username);", "java.lang.String getUserIdOne();", "@Override\n\tpublic List<User> getFirstNamesLike(String username) {\n\t\tQuery query = entityManager.createNativeQuery(\"SELECT em.* FROM spring_data_jpa_example.username as em \" +\n \"WHERE em.username LIKE ?\", User.class);\n query.setParameter(1, username + \"%\");\n return query.getResultList();\n\t}", "public User getSpecificUser(String username);", "public User getUserByUserName(String userName);", "@Override\n @Query(\"SELECT u FROM User u WHERE u.login = LOWER(:username)\")\n User loadUserByUsername(@Param(\"username\") String username) throws UsernameNotFoundException;", "public User getUserByUsername(String username);", "@Override\n\tpublic boolean findUser(String findId) {\n\t\tif(session.selectOne(namespace + \".searchUser\", findId) != null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public String searchForID(String searchTerm) throws Exception {\n for (User oneUser : userList) {\n if (oneUser.hasEmail(searchTerm)) {\n return searchTerm;\n }\n }\n\n // did not find an exact match, then search for partial strings\n for (User oneUser : userList) {\n if (oneUser.hasEmailMatchingSearchTerm(searchTerm)) {\n return oneUser.getEmailMatchingSearchTerm(searchTerm);\n }\n }\n\n return null;\n }", "public String searchName(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username, name from \"+ TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n String uname, name;\n name = \"not found\";\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if (uname.equals(username)) {\n name = cursor.getString(1);\n break;\n }\n } while (cursor.moveToNext());\n }\n\n return name;\n }", "public User findByUserName(String username) throws Exception;", "@Override\n\tpublic String getUserNameByUserId(String userId) {\n\t\tMap<String,Object> map = new HashMap<String, Object>();\n\t\tmap.put(\"userId\", userId);\n\t\tString sql = \"select *from tp_users where userId=:userId\";\n\t\tList<Map<String, Object>> list = joaSimpleDao.queryForList(sql, map);\n\t\treturn list.get(0).get(\"userName\").toString();\n\t\t\n\t}", "@Override\r\n\tpublic Boolean kiemTonTaiTheoUserName(String id) {\n\t\treturn userReposotory.existsByUserName(id);\r\n\t}", "public User getUserByName(String username);", "public User getUserByName(String username);", "public String searchUserWithKeyword(){\r\n\t\tlog.info(\"Starting to search user(s) with keyword = \"+ searchkeyword);\r\n\t\tthis.clearErrorsAndMessages();\r\n\t\tusersList = new ArrayList<Users>();\r\n\t\tusersList.clear();\t\t\r\n\t\ttry {\t\t\r\n\t\t\tusersList = userService.findUsersWithNameLike(searchkeyword);\r\n\t\t\tmessage = usersList.size() + \" users found .\";\t\r\n\t\t\tlog.info(message);\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tmessage = \"Error in finding users for keyword [\" +searchkeyword+\"]. \"+ e.getMessage();\r\n\t\t\tthis.addActionError(message);\r\n\t\t\tlog.error(message, e);\r\n\t\t}\t\r\n\t\t// reset the keyword\r\n\t\tsearchkeyword = \"\";\r\n\t\treturn SUCCESS;\r\n\t}", "User findByUsername(String userName);", "public int user_index(String uname)\r\n\t{\r\n\t\tuname=uname.trim();\r\n\t\tint index=-1;\r\n\t\tint length=user_records.size();\r\n\t\tfor(int i=0;i<length;i++)\r\n\t\t{\r\n\t\t\tif(((User)user_records.get(i)).get_username().equals(uname))\r\n\t\t\t{\r\n\t\t\t\tindex=i;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn index;\r\n\t}", "@Override\n\tpublic String getRealNameByUserId(String userId) {\n\t\tMap<String,Object> map = new HashMap<String, Object>();\n\t\t//Map<String,Object> reqs = new HashMap<String, Object>();\n\t\tmap.put(\"userId\", userId);\n\t\tString sql = \"select * from tp_users where userId=:userId\";\n\t\t//reqs =joaSimpleDao.retrieve(\"tp_users\",map);\n\t\tList<Map<String, Object>> list = joaSimpleDao.queryForList(sql, map);\n\t\treturn list.get(0).get(\"realName\").toString();\n\t}", "String getUserId();", "String getUserId();", "UUID getUserId(String userName) throws UserNotFoundException;", "public User findByUsername(String username);", "public User findByUsername(String username);", "public User findByUsername(String username);", "public User findByUsername(String username);", "public List<User> findAutoCompleteUser(String key) {\n\t\tTypedQuery<User> query = em.createQuery(\"select distinct a from User a\" + \" where UPPER(a.name) like :name\",\n\t\t\t\tUser.class);\n\t\tquery.setParameter(\"name\", \"%\" + key.toUpperCase() + \"%\");\n\t\tList<User> userLst = query.setFirstResult(0).setMaxResults(10).getResultList();\n\n\t\treturn userLst;\n\t}", "User findByUserName(String userName);", "User findByUserName(String userName);", "public List<UserLog> findUserLogByUserId(String username,long UserId) {\n \n\t LOGGER.info(\"Found \" + username + \" results.\");\n\t CriteriaBuilder cb = em.getCriteriaBuilder();\n\n // the actual search query that returns one page of results\n CriteriaQuery<UserLog> searchQuery = cb.createQuery(UserLog.class);\n Root<UserLog> searchRoot = searchQuery.from(UserLog.class);\n searchQuery.select(searchRoot);\n searchQuery.where(getUserLogWhereCondition(cb, UserId, searchRoot));\n\n List<Order> orderList = new ArrayList<Order>();\n orderList.add(cb.desc(searchRoot.get(\"log_time\")));\n searchQuery.orderBy(orderList);\n\n TypedQuery<UserLog> filterQuery = em.createQuery(searchQuery);\n LOGGER.info(\"Found \" + UserId + \" results.\");\n return filterQuery.getResultList();\n }", "OfBizUser getCaseInsensitive(long directoryId, String userName);", "public Utente containUsername(String username) {\r\n \t\r\n \tfor(Utente ut: utenti) {\r\n \t\tString us=ut.getUsername();\r\n \t\tif(us.equals(username)) {\r\n \t\t\treturn ut;\r\n \t\t}\r\n \t}\r\n \t\r\n \treturn null;\r\n \t\r\n }", "private int indexOfUsername(String userN){\n for(int i = 0; i < clientThreads.size(); i++){\n if(clientThreads.get(i).getUsername().equals(userN)){\n return i;\n }\n }\n return -1;\n }", "User findByExternalId(String externalId) throws UsernameNotFoundException;", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "@Override\r\n\tpublic List loginusername(String un) {\n\t\treturn homedao.loginusername(un);\r\n\t}", "public boolean contains(String search) {\n\n if (username.toLowerCase().contains(search.toLowerCase())) {\n return true;\n }\n return false;\n }", "Data<User> getUserSearch(String user);", "User getUserByUsername(String username);", "User getUserByUsername(String username);", "User getUserByUsername(String username);", "@Test\n public void userExist() {\n String username = argument.substring(0, 15);\n boolean found = false;\n\n for(int i = 0; i<users.size(); i++){\n if(users.get(i).substring(0, 15).trim().toLowerCase().contains(username.trim().toLowerCase())){\n found = true;\n }\n }\n assertTrue(\"User Not Found\", found);\n }", "private Boolean findUser(String username){\n return usersDataBase.containsKey(username);\n }", "public List<User> listSearch(String search);", "private int getUserById(int id)\n\t{\n\t\tint index = -1;\n\t\t// Search the user in the list\n\t\tfor(int i = 0; i < this.usersList.size(); i++)\n\t\t{\n\t\t\tif(this.usersList.get(i).getId() == id)\n\t\t\t{\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Return the index \n\t\treturn index;\n\t}", "List<User> findByUsernameContainingIgnoreCase(String name);", "public UserQueryEntity getByName(String userName);", "public User getUsername(String id){\n\t\treturn restMongoDBRepository.findById(id).get();\n\t}", "User findUserByUsername(String username);", "public void search(String searchQuery) {\n if (!searchQuery.trim().equals(\"\")) {\n DBref.orderByChild(\"username\").startAt(searchQuery).endAt(searchQuery + \"\\uf8ff\").addValueEventListener(userEventListener);\n } // if searching input is not empty\n }", "User findByUsername(String username) throws UserDaoException;", "@Override\r\n\tpublic List<User> search(String name) {\n\t\treturn null;\r\n\t}", "@Override\n public List<User> findByName(String username){\n try {\n return runner.query(con.getThreadConnection(),\"select * from user where username like ?\",new BeanListHandler<User>(User.class),username);\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }", "User findUser(String userId);", "User findByUsername(String username);", "User findByUsername(String username);", "User findByUsername(String username);", "User findByUsername(String username);", "User findByUsername(String username);", "User findByUsername(String username);", "@Override\n\tpublic void findUserByUsername(String username) {\n\n\t}", "private List<ParseUser> filterUsers(List<ParseUser> pUsers, String searchTerm) {\n List<ParseUser> filteredUsers = new ArrayList<>();\n for (ParseUser pU : pUsers) {\n User u = new User(pU);\n if (u.getName().toLowerCase().contains(searchTerm.toLowerCase())) {\n filteredUsers.add(pU);\n }\n }\n return filteredUsers;\n }", "User getByUsername(String username);", "public User getUser(String username);", "@Override\n\tpublic String getUserIdByUsername(String userName) {\n\t\tMap<String, Object> map = new HashMap<String,Object>();\n\t\tmap.put(\"userName\", userName);\n\t\tString sql = \"select * from tp_users where userName=:userName\";\n\t\tList<Map<String, Object>> list = joaSimpleDao.queryForList(sql, map);\n\t\treturn list.get(0).get(\"userId\").toString();\n\t}", "public boolean searchUser(String username)\n\t{\n\t\t// Connect to database\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\t\n\t\t// SQL queries\n\t\t// Gets all rows from PageVisited\n\t\tString searchString = \"SELECT * FROM User WHERE username = ?\";\n\t\t\n\t\ttry {\n\t\t\tps = conn.prepareStatement(searchString);\n\t\t\tps.setString(1, username);\n\t\t\trs = ps.executeQuery();\n\t\t\t\n\t\t\t// If we get some result, it means we have already seen this user\n\t\t\t// return true\n\t\t\tboolean foundMatch = false;\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\tString usernameValue = rs.getString(\"username\");\n\t\t\t\tif(username.contentEquals(usernameValue))\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// if we get a result with no rows, return false\n\t\t\tif(!foundMatch)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tcatch(SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\t// Close connections\n\t\t\ttry {\n\t\t\t\tif(rs != null)\n\t\t\t\t{\n\t\t\t\t\trs.close();\n\t\t\t\t}\n\t\t\t\tif(ps != null)\n\t\t\t\t{\n\t\t\t\t\tps.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(SQLException sqle)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sqle: \" + sqle.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn false; \n\t}", "public boolean userNameExist(String username);", "private User findByName(String username) {\r\n\t\tCriteriaBuilder cb = entityManager.getCriteriaBuilder();\r\n\t\tCriteriaQuery cq = cb.createQuery(User.class);\r\n\t\tRoot<User> user = cq.from(User.class);\r\n\t\tcq.where(user.get(User_.username).in(username));\r\n\r\n\t\tTypedQuery<User> tq = entityManager.createQuery(cq);\r\n\t\t\r\n\t\treturn tq.getSingleResult();\r\n\t}", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();" ]
[ "0.76561606", "0.7543163", "0.69876546", "0.69208384", "0.6651486", "0.65842545", "0.6542835", "0.65358484", "0.6487732", "0.64847577", "0.6331825", "0.6331143", "0.628845", "0.62470996", "0.6229818", "0.6220647", "0.62187797", "0.6213736", "0.61841637", "0.61841637", "0.61841637", "0.6176661", "0.61618525", "0.61423326", "0.61297554", "0.61189914", "0.61169624", "0.6080187", "0.60748506", "0.60574335", "0.6010826", "0.59949505", "0.59847236", "0.5978695", "0.5939573", "0.5930486", "0.5930486", "0.5928879", "0.59205484", "0.59178287", "0.5910963", "0.59060895", "0.59060895", "0.59033513", "0.5879584", "0.5879584", "0.5879584", "0.5879584", "0.58738786", "0.5872131", "0.5872131", "0.587194", "0.586922", "0.5868552", "0.5860189", "0.58552086", "0.58547914", "0.58547914", "0.58547914", "0.58547914", "0.58547914", "0.58547914", "0.58547914", "0.58547914", "0.58547914", "0.58526665", "0.58472097", "0.5842075", "0.5841053", "0.5841053", "0.5841053", "0.5838984", "0.5823984", "0.5823169", "0.5816077", "0.5812908", "0.58045584", "0.5791331", "0.5789491", "0.57780576", "0.57578397", "0.5756978", "0.57549965", "0.5749637", "0.5746982", "0.5746982", "0.5746982", "0.5746982", "0.5746982", "0.5746982", "0.5735588", "0.5717802", "0.57139486", "0.57077277", "0.57062215", "0.5705994", "0.57005477", "0.569711", "0.56857806", "0.56857806", "0.56857806" ]
0.0
-1
If this looks like userId, search by UserId.
@Override public List<EduUser> apply(final String s) { if (StringUtils.isNumeric(s)) { List<EduUser> userList = new ArrayList<>(); userList.add(humanResourceService.getUserByUserId(Long.valueOf(s))); return userList; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int search_userid(String user_name);", "private String searchForUser() {\n String userId = \"\";\n String response = given().\n get(\"/users\").then().extract().asString();\n List usernameId = from(response).getList(\"findAll { it.username.equals(\\\"Samantha\\\") }.id\");\n if (!usernameId.isEmpty()) {\n userId = usernameId.get(0).toString();\n }\n return userId;\n }", "java.lang.String getUserIdOne();", "@Override\r\n\tpublic User searchUser(Integer id) {\n\t\treturn userReposotory.getById(id);\r\n\t}", "public LongFilter getUserId() {\n\t\treturn userId;\n\t}", "@Override\r\n\tpublic UsersSearch getUserSearchRecordById(long userId) {\n\t\treturn usersSearchDAO.getUserSearchRecordById(userId);\r\n\t}", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "@Override\r\n\tpublic List<User> query(int userId) {\n\t\treturn null;\r\n\t}", "private int getUserById(int id)\n\t{\n\t\tint index = -1;\n\t\t// Search the user in the list\n\t\tfor(int i = 0; i < this.usersList.size(); i++)\n\t\t{\n\t\t\tif(this.usersList.get(i).getId() == id)\n\t\t\t{\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Return the index \n\t\treturn index;\n\t}", "public boolean containsId(String key, Long userId) {\n if(index.containsKey(key)) {\n return index.get(key).contains(userId);\n }\n return false;\n }", "public User getUserById(Long userId);", "Userinfo selectByPrimaryKey(String userId);", "Long getUserId();", "List<ItemUser> findByUserId(Long userId);", "User findUser(String userId);", "BaseUser selectByPrimaryKey(String userId);", "@Override\r\n\tpublic User queryUserById(String userId) {\n\t\tUser user = userMapper.queryUserById(userId);\r\n\t\treturn user;\r\n\t}", "String getUserId();", "String getUserId();", "public User getUser(Long userId);", "@Override\n\tpublic boolean findUser(String findId) {\n\t\tif(session.selectOne(namespace + \".searchUser\", findId) != null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public long getUserId();", "public long getUserId();", "public long getUserId();", "public long getUserId();", "private UserFormData loadUserIdByEmail(final UserFormData formData) {\n\t\tif (LOG.isDebugEnabled()) {\n\t\t\tLOG.debug(\"Searching userId with email : \" + formData.getEmail().getValue());\n\t\t}\n\t\tSQL.selectInto(SQLs.USER_SELECT_ID_ONLY + SQLs.USER_SELECT_FILTER_EMAIL + SQLs.USER_SELECT_INTO_ID_ONLY,\n\t\t\t\tformData);\n\t\treturn formData;\n\t}", "WbUser selectByPrimaryKey(Integer userId);", "SysUser selectByPrimaryKey(Long userId);", "long getUserId();", "long getUserId();", "public User getRegUserFromId(int userId){\n for (int i = 0; i < regUsers.size(); i++){\n if (regUsers.get(i).getUserId() == userId){\n return regUsers.get(i);\n }\n }\n\n return null;\n }", "User selectByPrimaryKey(Long userId);", "public UserEntity findByPrimaryKey(String userId) throws FinderException;", "@Override\n\tpublic long getUserId();", "@Override\n\tpublic long getUserId();", "public User searchUser(Long userId) throws UserException {\n\t\treturn null;\r\n\t}", "boolean hasUserId();", "boolean hasUserId();", "boolean hasUserId();", "public long searchID(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select _id, username from \" + TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n long id = -1;\n String uname;\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(1);\n if (uname.equals(username)) {\n id = cursor.getLong(cursor.getColumnIndex(ROW_ID));\n }\n } while (cursor.moveToNext());\n }\n return id;\n }", "RegsatUser selectByPrimaryKey(Long userId);", "Integer getUserId();", "UUID getUserId(String userName) throws UserNotFoundException;", "@Override\n\tpublic String nameFind(String user_id) {\n\t\treturn mapper.nameFind(user_id);\n\t}", "public List<UsersRobots> findByUserId(int idUser){\n return (List<UsersRobots>) entityManager.createQuery(\"SELECT ur FROM UsersRobots ur where ur.idUser = :idUser\").setParameter(\"idUser\",idUser).getResultList();\n }", "LikeUser selectByPrimaryKey(Long id);", "@Override\n\tpublic MemberVO idCheck(String userid) {\n\t\treturn sqlSession.selectOne(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.idCheck\", userid);\n\t}", "public int countByUserId(long userId);", "public int countByUserId(long userId);", "@Override\n\tpublic Epuser queryById(String epUserId) throws Exception {\n\t\treturn epuserMapper.load(epUserId);\n\t}", "public ArrayList<String> findUserID(String username) {\n DataManager.getUsers getUser = new DataManager.getUsers(getActivity());\n ArrayList<String> queryList = new ArrayList<>();\n ArrayList<User> usersList = new ArrayList<>();\n\n queryList.add(\"username\");\n queryList.add(username);\n getUser.execute(queryList);\n\n try {\n usersList = getUser.get();\n } catch (Exception e) {}\n\n if (!usersList.isEmpty()) {\n String stringQuery = usersList.get(0).getID();\n queryList.clear();\n queryList.add(stringQuery);\n }\n\n return queryList;\n }", "public User search_userinfo(String user_name);", "@Override\r\n\tpublic void getById(String userId) {\n\t\t\r\n\t}", "public void setUserId(LongFilter userId) {\n\t\tthis.userId = userId;\n\t}", "@Override\n\tpublic AnswerCustom finduser(Integer id) throws Exception {\n\t\treturn null;\n\t}", "public abstract VisitorProfile findByUserId(String userId);", "public List<User> searchUser(String searchValue);", "List<Card> search(String searchString, long userId) throws PersistenceCoreException;", "public int getUserId() {\n return userId_;\n }", "public java.util.List<Todo> findByUserId(long userId);", "public User findById(int userId);", "@Path(\"{userId}\")\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response findById(@PathParam(Const.USER_ID) String userId,\n\t\t\t@Context UriInfo ui, @Context HttpHeaders hh) {\n\t\tDate startDate = Utils.getDate();\n\t\tResponse response = null;\n\t\tif (!sessionMid.checkAppForToken(Utils.getSessionToken(hh), appId))\n\t\t\treturn Response.status(Status.UNAUTHORIZED).entity(new Error(\"Action in wrong app: \"+appId)).build();\n\t\tint code = Utils.treatParameters(ui, hh);\n\t\tif (code == 1) {\n\t\t\tString sessionToken = Utils.getSessionToken(hh);\n\t\t\tLog.debug(\"\", this, \"findById\", \"********Finding User info************ \");\n\t\t\tif (AppsMiddleLayer.getInstance().appExists(appId)) {\n\t\t\t\tResult res = usersMid.getUserInApp(appId, userId);\n\t\t\t\tif (res != null) {\n\t\t\t\t\tDate endDate = Utils.getDate();\n\t\t\t\t\tLog.info(sessionToken, this, \"get user by id\", \"Start: \" + Utils.printDate(startDate) + \" - Finish:\" + Utils.printDate(endDate) + \" - Time:\" + (endDate.getTime()-startDate.getTime()));\n\t\t\t\t\tresponse = Response.status(Status.OK).entity(res).build();\n\t\t\t\t} else {\n\t\t\t\t\tresponse = Response.status(Status.NOT_FOUND).entity(userId).build();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresponse = Response.status(Status.NOT_FOUND).entity(appId).build();\n\t\t\t}\n\t\t} else if (code == -2) {\n\t\t\tresponse = Response.status(Status.FORBIDDEN).entity(\"Invalid Session Token.\").build();\n\t\t} else if (code == -1)\n\t\t\tresponse = Response.status(Status.BAD_REQUEST).entity(\"Error handling the request.\").build();\n\t\treturn response;\n\t}", "public List<UserLog> findUserLogByUserId(String username,long UserId) {\n \n\t LOGGER.info(\"Found \" + username + \" results.\");\n\t CriteriaBuilder cb = em.getCriteriaBuilder();\n\n // the actual search query that returns one page of results\n CriteriaQuery<UserLog> searchQuery = cb.createQuery(UserLog.class);\n Root<UserLog> searchRoot = searchQuery.from(UserLog.class);\n searchQuery.select(searchRoot);\n searchQuery.where(getUserLogWhereCondition(cb, UserId, searchRoot));\n\n List<Order> orderList = new ArrayList<Order>();\n orderList.add(cb.desc(searchRoot.get(\"log_time\")));\n searchQuery.orderBy(orderList);\n\n TypedQuery<UserLog> filterQuery = em.createQuery(searchQuery);\n LOGGER.info(\"Found \" + UserId + \" results.\");\n return filterQuery.getResultList();\n }", "public Long getUserId() {\r\n return userId;\r\n }", "public Long getUserId() {\r\n return userId;\r\n }", "public Long getUserId() {\r\n return userId;\r\n }", "@Override\n\tpublic Set<Long> getAllUserId() {\n\t\tfinal Set<Long> allUserIds = new HashSet<>();\n\t\tfinal Object[][] result = SQL.select(SQLs.USER_SELECT_ID_ONLY);\n\t\tif (null != result && result.length > 0) {\n\t\t\tfor (int i = 0; i < result.length; i++) {\n\t\t\t\tif (null != result[i]) {\n\t\t\t\t\tallUserIds.add((Long) result[i][0]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn allUserIds;\n\t}", "public String searchForID(String searchTerm) throws Exception {\n for (User oneUser : userList) {\n if (oneUser.hasEmail(searchTerm)) {\n return searchTerm;\n }\n }\n\n // did not find an exact match, then search for partial strings\n for (User oneUser : userList) {\n if (oneUser.hasEmailMatchingSearchTerm(searchTerm)) {\n return oneUser.getEmailMatchingSearchTerm(searchTerm);\n }\n }\n\n return null;\n }", "@Override\n public void onClick(View view){\n String username = search.getText().toString();\n String userid = \"\";\n if (users != null) {\n for (String id : users.keySet()) {\n if (users.get(id).getUserName().equals(username)){\n userid = id;\n break;\n }\n }\n if (userid.equals(\"\")){\n Toast.makeText(getContext(), \"No Such User\", Toast.LENGTH_LONG).show();\n } else {\n readUserInfo(userid, username);\n Toast.makeText(getContext(), \"Loading User\", Toast.LENGTH_SHORT).show();\n }\n } else {\n Toast.makeText(getContext(), \"Loading User List\", Toast.LENGTH_SHORT).show();\n }\n }", "public String findUser(String id) throws UserNotFoundException{\n\t\tString userFound = \"\";\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tif (users.get(i).getDocumentNumber().equals(id)) {\n\t\t\t\tuserFound = \"\\n-------USER-------\\n\"+users.get(i).toString();\n\t\t\t}\n\t\t}\n\t\tif (userFound.equals(\"\")) {\n\t\t\tthrow new UserNotFoundException(id);\n\t\t}\n\t\telse {\n\t\t\treturn userFound;\n\t\t}\n\t}", "@Override\n\tpublic User findByKey(Integer id) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<Post> searchInfByUserId(User user) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\tList<Post> list=new ArrayList<Post>();\r\n\t\treturn postDao.infSearchByUserId(user);\r\n\t\t\r\n\t}", "public int getUserId() {\r\n return this.UserId;\r\n }", "public UserItem getUserItemByIds(UserItem ui);", "public Integer getUserId() {\r\n return userId;\r\n }", "public Integer getUserId() {\r\n return userId;\r\n }", "public User getUserFromId(int userId){\n for (int i = 0; i < regUsers.size(); i++){\n if (regUsers.get(i).getUserId() == userId){\n return regUsers.get(i);\n }\n }\n\n for (int i = 0; i < adminUsers.size(); i++){\n if (adminUsers.get(i).getUserId() == userId){\n return adminUsers.get(i);\n }\n }\n return null;\n }", "ROmUsers selectByPrimaryKey(String pkUserid);", "user showGoodsByUserId(long userId);", "@Override\r\n\tpublic int useridselect(String userid) {\n\t\treturn sqlSession.selectOne(NAMESPACE + \".select_userid_list\", userid);\r\n\t}", "public int getUserId(User user) throws Exception;", "int getUserId() {\r\n\t\t\treturn userId;\r\n\t\t}", "private List<String> searchForPosts(){\n String userId = searchForUser();\n List <String> postIds;\n String response = given().\n get(\"/posts\").then().extract().asString();\n postIds = from(response).getList(String.format(\"findAll { it.userId.equals(%s) }.id\", userId));\n return postIds;\n }", "public long getUserId() {\r\n return userId;\r\n }", "@Query(value = \"select subscribers from User u where u.id =:userId\")\n List<User> findSubscribers(@Param(\"userId\") long userId);", "public int selectCountByUserId(Integer userId);", "public long getResponsedByUserId();", "@Override\n\tpublic PlatUser selectByPrimaryKey(String userId) {\n\t\treturn platUserMapper.selectByPrimaryKey(userId);\n\t}", "public User getUserById(int userId) {\n return this.userDao.selectByPrimaryKey(userId); \r\n }", "@Override\n\tpublic Users findUserByUniqueId(String uniqueId) {\n\t\treturn iUserDao.findUserByUniqueId(uniqueId);\n\t}", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserId(long userId);" ]
[ "0.7158994", "0.7106636", "0.65823835", "0.6570303", "0.6513652", "0.650384", "0.6480288", "0.6480288", "0.6480288", "0.6431282", "0.6406407", "0.63413", "0.6338899", "0.6319615", "0.6290516", "0.6284307", "0.6280157", "0.62547874", "0.62113106", "0.62007123", "0.62007123", "0.6196234", "0.6175272", "0.61584336", "0.61584336", "0.61584336", "0.61584336", "0.6151104", "0.6148248", "0.61401105", "0.6134706", "0.6134706", "0.611656", "0.6108874", "0.6106533", "0.61036676", "0.61036676", "0.6096848", "0.6093245", "0.6093245", "0.6093245", "0.6082339", "0.6072508", "0.6067281", "0.60517806", "0.60491896", "0.6039202", "0.6031437", "0.60150856", "0.6014569", "0.6014569", "0.6010343", "0.60036004", "0.600344", "0.5998693", "0.598517", "0.5978517", "0.59700507", "0.5961238", "0.5958577", "0.5941688", "0.59279275", "0.59052855", "0.5897685", "0.5885271", "0.58829665", "0.58829665", "0.58829665", "0.58826137", "0.58822405", "0.58770335", "0.5875288", "0.5873415", "0.58725893", "0.5868759", "0.5853189", "0.58504206", "0.58504206", "0.58416396", "0.58285964", "0.5826902", "0.5825455", "0.5805841", "0.58030164", "0.5802279", "0.58005506", "0.5798664", "0.5796768", "0.5794464", "0.57894546", "0.5782018", "0.57797706", "0.5779219", "0.5779219", "0.5779219", "0.5779219", "0.5779219", "0.57783294", "0.57783294", "0.57783294", "0.57783294" ]
0.0
-1
Get the process id from specified file path. Parses each line to find a valid number and returns the first one found.
public static String getProcessId(Path path) throws IOException { if (path == null) { throw new IOException("Trying to access process id from a null path"); } LOG.debug("Accessing pid from pid file {}", path); String processId = null; BufferedReader bufReader = null; try { File file = new File(path.toString()); if (file.exists()) { FileInputStream fis = new FileInputStream(file); bufReader = new BufferedReader(new InputStreamReader(fis, "UTF-8")); while (true) { String line = bufReader.readLine(); if (line == null) { break; } String temp = line.trim(); if (!temp.isEmpty()) { if (Shell.WINDOWS) { // On Windows, pid is expected to be a container ID, so find first // line that parses successfully as a container ID. try { ContainerId.fromString(temp); processId = temp; break; } catch (Exception e) { // do nothing } } else { // Otherwise, find first line containing a numeric pid. try { long pid = Long.parseLong(temp); if (pid > 0) { processId = temp; break; } } catch (Exception e) { // do nothing } } } } } } finally { if (bufReader != null) { bufReader.close(); } } LOG.debug("Got pid {} from path {}", (processId != null ? processId : "null"), path); return processId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int readID(String path) {\n int id = 0;\n\n try {\n File file = new File(sourcePath + path);\n BufferedReader br = new BufferedReader(new FileReader(file));\n\n String line = br.readLine();\n\n if (line != null)\n id = Integer.parseInt(line.trim());\n else\n System.out.println(\"Unable to convert to integer!\");\n\n br.close();\n } catch (IOException e) {\n System.out.println(\"File not found!\");\n e.printStackTrace();\n }\n\n return id;\n }", "private String getPid(String filename) \r\n {\r\n\tString xml_file = filename;\r\n\tString pid = \"00000\";\r\n\t\r\n\t/* make a formal XML file name , taking \"DATA\" out of xml filename \r\n\t Johnson_arizona_0009D_10063_DATA.xml ==> 10063\r\n\t*/\r\n\tint loc = xml_file.lastIndexOf(\"_DATA.xml\"); \r\n\txml_file = xml_file.substring (0, loc); // \t\r\n\tSystem.out.println (\"xml_file +\" + xml_file);\r\n \r\n\tint loc_begin = xml_file.lastIndexOf(\"_\") + 1 ;\t\r\n\r\n\tif(loc_begin < 0)\r\n\t {\r\n\t\tSystem.out.println(\"Error (copyFile): File \" + xml_file + \" must be of form LastName_arizona_\\\\d\");\r\n\t\treturn pid;\r\n\t }\r\n\telse{\r\n\t pid = xml_file.substring (loc_begin); // get pid = something like \"10063\" \r\n\t //System.out.println(\"***** pid = \" + pid);\r\n\r\n\t if(pid == null || pid.length() < 1)\r\n\t\t{\r\n\t\t System.out.println(\"Error (copyFile): Unable to parse out persistent identifier (pid) from name \" + xml_file);\r\n\t\t return null;\r\n\t\t}\r\n\t return pid;\r\n\t}\r\n }", "private Integer getTripId(Path filePath) {\n\t\tString tripFileName = filePath.getName(); // get file name\n\t\tint filenameEnding = tripFileName.indexOf(\".\"); // remove ending\n\t\tString strTripId = tripFileName.substring(0, filenameEnding);\n\t\treturn Integer.parseInt(strTripId);\n\t}", "public static int Id(String key) {\n try {\n File file = FileHandler.loadFile(key + \".id\");\n InputStream input = new FileInputStream(Objects.requireNonNull(file));\n Scanner scanner = new Scanner(input);\n int id = scanner.nextInt();\n scanner.close();\n input.close();\n return id;\n } catch (FileNotFoundException fileNotFoundException) {\n fileNotFoundException.printStackTrace();\n logger.fatal(key + \"id file doesnt exist.\");\n } catch (IOException e) {\n e.printStackTrace();\n logger.error(\"couldn't read from \" + key + \" id file.\");\n }\n return 0;\n }", "public int idNum(String fullFilePath){\n\n int lines = 0;\n\n try {\n BufferedReader reader = new BufferedReader(new FileReader(fullFilePath));\n while (reader.readLine() != null) {\n lines++;\n }\n reader.close();\n }\n catch(IOException ioe) {\n ioe.printStackTrace();\n }\n return lines;\n }", "public static String getModuleId(File f)\n {\n FileReader fr = null;\n try\n {\n fr = new FileReader(f);\n\n final XMLInputFactory xmlInputFactory = XMLInputFactory.newInstance();\n final XMLStreamReader xmlStreamReader = xmlInputFactory.createXMLStreamReader(fr);\n\n while (xmlStreamReader.hasNext())\n {\n if (xmlStreamReader.next() == XMLStreamReader.START_ELEMENT\n && \"module\".equals(xmlStreamReader.getLocalName()))\n {\n for (int i = 0; i < xmlStreamReader.getAttributeCount(); i++)\n {\n String name = xmlStreamReader.getAttributeLocalName(i);\n if (\"name\".equals(name))\n {\n return xmlStreamReader.getAttributeValue(i);\n }\n }\n }\n }\n }\n catch (Exception e)\n {\n // Nothing to do\n }\n finally\n {\n if (null != fr)\n {\n try\n {\n fr.close();\n }\n catch (IOException ioe)\n {\n // Ignore\n }\n }\n }\n\n return null;\n }", "public static int findBuildNumberUsingPattern(final String fileContent) {\n\t\tif (StringUtils.trimToNull(fileContent) == null) {\n\t\t\treturn NO_BUILD_FOUND;\n\t\t}\n\t\tint buildNumberFromFile = NO_BUILD_FOUND;\n\t\tfinal Matcher matcher = BUILD_NUMBER_PATTERN.matcher(fileContent);\n\t\tif (matcher.find()) {\n\t\t\tfinal String extractedBuildNumber = matcher.group(1);\n\t\t\ttry {\n\t\t\t\tbuildNumberFromFile = Integer.valueOf(extractedBuildNumber);\n\t\t\t\treturn buildNumberFromFile;\n\t\t\t} catch (final Exception e) {\n\t\t\t\tLOGGER.log(Level.FINE, \"There was an issue extracting the build number from a file. Found: \\\"\" + \n\t\t\t\t\t\textractedBuildNumber + \"\\\" as a build number.\");\n\t\t\t}\n\t\t}\n\n\t\treturn NO_BUILD_FOUND;\n\t}", "public static String findPdbId(File file) throws IOException,\n\t\t\tFileNotFoundException {\n\n\t\tString line;\n\t\tString returnMe = \"\";\n\t\tBufferedReader in;\n\t\tString extension = PdbHelper.getFileExtension(file);\n\n\t\tif (extension.equals(\"gz\")) { // PDB files that are gzipped can be used\n\t\t\tin = new BufferedReader(new InputStreamReader(new GZIPInputStream(\n\t\t\t\t\tnew FileInputStream(file))));\n\t\t} else {\n\t\t\tin = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\twhile ((line = in.readLine()) != null) {\n\t\t\tif (line.startsWith(\"HEADER\")) {\n\t\t\t\t// PDB identifier is mentioned between the 63rd and 66th\n\t\t\t\t// characters\n\t\t\t\treturnMe = line.substring(63 - 1, 67 - 1).trim();\n\t\t\t}\n\t\t}\n\t\tin.close();\n\t\treturn returnMe.toUpperCase();\n\t}", "public static Integer getLine(String line){\n\t\ttry{\n\t\t\tScanner scanner = new Scanner(new File(ramProgram));\n\t\t\tInteger numberLine = 1;\n\t\t\twhile (scanner.hasNext()){\n\t\t\t\tif (scanner.nextLine().trim().equals(line)){\n\t\t\t\t\tscanner.close();\n\t\t\t\t\treturn numberLine;\n\t\t\t\t}\n\t\t\t\tnumberLine++;\n\t\t\t}\n\t\t\tscanner.close();\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\t\n\t\t}\n\t\t\n\t\treturn -1;\n\t}", "public static TsFileIdentifier getFileIdentifierFromFilePath(String filepath) {\n String splitter = File.separator;\n if (\"\\\\\".equals(splitter)) {\n // String.split use a regex way to split the string into array\n // \"\\\" Should be escaped as \"\\\\\"\n splitter = \"\\\\\\\\\";\n }\n String[] splittedPath = filepath.split(splitter);\n int length = splittedPath.length;\n if (length < 5) {\n // if the path contains the required information\n // after splitting result should contain more than 5 objects\n throw new RuntimeException(\n String.format(\"Path %s cannot be parsed into file info\", filepath));\n }\n\n return new TsFileIdentifier(\n splittedPath[length - LOGICAL_SG_OFFSET_IN_PATH],\n splittedPath[length - DATA_REGION_OFFSET_IN_PATH],\n splittedPath[length - TIME_PARTITION_OFFSET_IN_PATH],\n splittedPath[length - SEQUENCE_OFFSET_IN_PATH].equals(IoTDBConstant.SEQUENCE_FLODER_NAME),\n splittedPath[length - FILE_NAME_OFFSET_IN_PATH]);\n }", "public static Long getPid() {\n String name = ManagementFactory.getRuntimeMXBean().getName();\n List<String> nameParts = Splitter.on('@').splitToList(name);\n if (nameParts.size() == 2) { // 12345@somewhere\n try {\n return Long.parseLong(Iterators.get(nameParts.iterator(), 0));\n } catch (NumberFormatException ex) {\n LOG.warn(\"Failed to get PID from [\" + name + \"]\", ex);\n }\n } else {\n LOG.warn(\"Don't know how to get PID from [\" + name + \"]\");\n }\n return null;\n }", "public static String getPid() {\n String retVal = \"-\";\n Vector<String> commands = new Vector<String>();\n commands.add(\"/bin/bash\");\n commands.add(\"-c\");\n commands.add(\"echo $PPID\");\n ProcessBuilder pb = new ProcessBuilder(commands);\n try {\n Process pr = pb.start();\n pr.waitFor();\n if (pr.exitValue() == 0) {\n BufferedReader outReader = new BufferedReader(\n new InputStreamReader(pr.getInputStream()));\n retVal = outReader.readLine().trim();\n }\n } catch (Exception e) {\n }\n return retVal;\n }", "java.lang.String getProcessId();", "public static int getFirstIntValue(String line) {\n return getNthIntValue(line, 1);\n }", "public static int getRunNumber( String FileName)\n {\n if( FileName == null)\n return -1;\n int k= FileName.lastIndexOf( '.' );\n if( k < 0)\n k = FileName.length( );\n String S =\"\";\n boolean done = false;\n int i;\n for( i=k-1; i > 0 && !done; )\n if( Character.isDigit( FileName.charAt( i )))\n done = true;\n else\n i--;\n \n k=i;\n done = false;\n for( i=k; i > 0 && !done; i--)\n if( Character.isDigit( FileName.charAt( i )))\n S = FileName.charAt( i )+S;\n else\n done = true;\n try\n {\n return Integer.parseInt( S.trim() );\n }catch(Exception s)\n {\n return -1;\n }\n }", "private long determinePID(final Process p)\n {\n long pid = -1;\n\n try\n {\n // Unix variants incl. OSX\n if (p.getClass().getSimpleName().equals(\"UNIXProcess\"))\n {\n final Class<?> clazz = p.getClass();\n final Field pidF = clazz.getDeclaredField(\"pid\");\n\n pidF.setAccessible(true);\n\n Object oPid = pidF.get(p);\n\n if (oPid instanceof Number)\n {\n pid = ((Number) oPid).longValue();\n }\n else if (oPid instanceof String)\n {\n pid = Long.parseLong((String) oPid);\n }\n }\n\n // Windows processes, i.e. Win32Process or ProcessImpl\n else\n {\n RuntimeMXBean rtb = ManagementFactory.getRuntimeMXBean();\n final String sProcess = rtb.getName();\n final int iPID = sProcess.indexOf('@');\n\n if (iPID > 0)\n {\n String sPID = sProcess.substring(0, iPID);\n\n pid = Long.parseLong(sPID);\n }\n }\n }\n catch (SecurityException e)\n {\n }\n catch (NoSuchFieldException e)\n {\n }\n catch (IllegalArgumentException e)\n {\n }\n catch (IllegalAccessException e)\n {\n }\n\n return pid;\n }", "public static int getIdentifier(String resource) {\n String fileName = new File(resource).getName();\n String tokens[] = fileName.split(\"\\\\.(?=[^\\\\.]+$)\");\n int identifier;\n if (tokens.length == 2 && tokens[0].matches(\"\\\\d+\")) {\n identifier = Integer.valueOf(tokens[0]);\n } else {\n int hashCode = Math.abs(fileName.hashCode());\n int minValue = Integer.MAX_VALUE / 2;\n identifier = minValue + hashCode / 2;\n }\n return identifier;\n }", "public static String retrieveProjectId(String filepath) {\n TmsMeta meta = retrieveMeta(filepath);\n String projectId = meta.getProjectId();\n if (StringUtils.isEmpty(projectId)) {\n System.err.println(\"Project id not detected inside project TMS meta file\");\n System.exit(-1);\n }\n return meta.getProjectId();\n }", "public abstract long getProcessID();", "private Long unixLikeProcessId(Process process) {\n Class<?> clazz = process.getClass();\n try {\n if (clazz.getName().equals(\"java.lang.UNIXProcess\")) {\n Field pidField = clazz.getDeclaredField(\"pid\");\n pidField.setAccessible(true);\n Object value = pidField.get(process);\n if (value instanceof Integer) {\n log.debug(\"Detected pid: \" + value);\n return ((Integer) value).longValue();\n }\n }\n } catch (SecurityException sx) {\n log.error(\"SecurityException: \", sx);\n } catch (NoSuchFieldException e) {\n log.error(\"NoSuchFieldException: \", e);\n } catch (IllegalArgumentException e) {\n log.error(\"IllegalArgumentException: \", e);\n } catch (IllegalAccessException e) {\n log.error(\"IllegalAccessException: \", e);\n }\n return null;\n }", "@Override\n protected String getStationId(String filename) {\n Matcher matcher = stationIdPattern.matcher(filename);\n if (matcher.matches()) {\n return matcher.group(1);\n }\n return null;\n }", "public static Long extractJobID(CDXEntry entry) {\n\t\tif(entry == null) {\n\t\t\treturn null;\n\t\t}\n\t\tString filename = entry.getFilename();\n\t\tif(filename == null || filename.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tif(!filename.contains(\"-\")) {\n\t\t\tlogger.warn(\"CDXEntry with odd filename: \" + filename);\n\t\t\treturn null;\n\t\t}\n\t\treturn Long.parseLong(filename.split(\"[-]\")[0]);\n\t}", "public static int readIntFromIndex(File file, String index) {\n if(!file.exists()) return -1;\n String[] lines = getFileLines(file);\n for(String line : lines) {\n if(line.startsWith(index)) {\n line = line.replace(index,\"\");\n try{\n return Integer.parseInt(line);\n } catch (Exception e) { //continues looking for another index\n e.printStackTrace();\n ZmdbLogger.log(\"Unable to get integer from index \" + index + \" from file \" + file.getPath() + \". Continuing to look for another index.\");\n }\n }\n }\n //if nothing was found or Integer.parseInt failed\n return -1;\n }", "public long getFileId(String file_name) {\n\n\t\tif (m_db == null)\n\t\t\treturn -1;\n\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_ID }, FILE_FIELD_PATH + \"=?\",\n\t\t\t\tnew String[] { file_name }, null, null, null);\n\n\t\t//\n\t\t// get first entry of result set\n\t\t//\n\t\tString result = getFirstEntryOfResultSet(cursor);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\tif (result == null)\n\t\t\treturn -1;\n\t\telse\n\t\t\treturn Long.parseLong(result);\n\t}", "public static final int getProcessId() {\n\t\treturn ID;\n\t}", "public String getIdURLFromFile(String filePath, int key) {\n\t\tHashMap<Integer, String> map = new HashMap<Integer, String>();\n\t\ttry {\n\t\t\tList<String> file1URIs = ClassFactory.getFileUtilityInstance().getURIsFromFile(filePath);\n\t\t\t// create a thread for each URI\n\t\t\tfor (int i = 0; i < file1URIs.size(); i++) {\n\t\t\t\tint id = i + 1;\n\t\t\t\tmap.put(id, file1URIs.get(i));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error in getting File ID and URL Value\" + e.getMessage());\n\t\t}\n\t\treturn map.get(key);\n\t}", "public static Long translateFileHandleId(String fileId) {\r\n\t\tif(fileId == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn Long.parseLong(fileId);\r\n\t}", "public Integer getNextId(){\n\t\tInteger id = 0;\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(userFile));\n\t\t\tString l;\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\twhile (( l = br.readLine()) != null){\n\t\t\t\tString[] line = l.split(\",\");\n\t\t\t\ttry {\n\t\t\t\t\tlist.add(new Integer(line[0]));\t\t\t\t\t\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tSystem.out.println(\"DATA ERROR: id field is not an integer\" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\t// sort the first field\n\t\t\tCollections.sort(list);\n\t\t\t// get the last (highest value) object\n\t\t\tid = list.get(list.size()-1);\n\t\t\t// increment so next id is guaranteed to be highest integer\n\t\t\tid = id.intValue() + 1;\n\t\t} catch (Exception e){\n\t\t\tSystem.err.println(\"Caught Exception: \" + e.getMessage());\n\t\t}\n\t\treturn id;\n\t}", "public int getLineID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LINEID$2, 0);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }", "String getPid();", "public int getProgramIdFromUI(String programName) throws ParseException;", "public int getId() {\n // some code goes here\n int id = f.getAbsoluteFile().hashCode();\n //System.out.println(id);\n return id;\n }", "public static int getFileNum(File f)\r\n\t{\r\n\t\tString fileStr = f.toString().substring(2);\r\n\t\t\r\n\t\tint num = Integer.parseInt(fileStr.substring(13, fileStr.length()-5));\r\n\t\treturn num;\r\n\t}", "public String getIssueID(String filename, String extensionSymbol) {\n\t\tif (filename == null) {\n\n\t\t\treturn null;\n\n\t\t}\n\t\treturn filename.split(extensionSymbol)[1];\n\t}", "public static int getFileID() {\n\t\treturn StringArray.fileID;\n\t}", "private int pathToCharacterNumber(TreePath path) {\r\n\t\tif (path != null) {\r\n\t\t\tObject[] nodes = path.getPath();\r\n\t\t\tif (nodes[1] instanceof CharacterTreeNode) {\r\n\t\t\t\treturn ((CharacterTreeNode) nodes[1]).getCharacter().getCharacterId();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "static String getMyPid() {\n String pid = \"0\";\n try {\n final String nameStr = ManagementFactory.getRuntimeMXBean().getName();\n\n // XXX (bjorn): Really stupid parsing assuming that nameStr will be of the form\n // \"pid@hostname\", which is probably not guaranteed.\n pid = nameStr.split(\"@\")[0];\n } catch (RuntimeException e) {\n // Fall through.\n }\n return pid;\n }", "private static String extractVolumeIDFromFilePath(String path) {\n\t\tString prefix = \"loc\";\r\n\r\n\t\tString filename = \"ark+=13960=t9765kx0j.mets.xml\";\r\n\r\n\t\t// the full filename sans the extension is the cleaned headless ID\r\n\t\tString cleanedHeadlessID = filename.substring(0, filename.length()\r\n\t\t\t\t- \".mets.xml\".length());\r\n\r\n\t\t// must unclean this token using Pairtree\r\n\t\tPairtree pairtree = new Pairtree();\r\n\t\tString uncleanedHeadlessID = pairtree.uncleanId(cleanedHeadlessID);\r\n\r\n\t\tString str = prefix + \".\" + uncleanedHeadlessID;\r\n\r\n\t\treturn prefix + \".\" + uncleanedHeadlessID;\r\n\r\n\t}", "public static String getProcessDefPackageId(String processDefId) {\n String result = null;\n if (processDefId != null) {\n StringTokenizer st = new StringTokenizer(processDefId, \"#\");\n if (st.countTokens() > 2) {\n result = st.nextToken();\n }\n }\n return result;\n }", "public final int getProcessId() {\n\t\treturn this.processId;\n\t}", "@Nullable\n public ObjectId findFile(String fileName) throws IOException {\n if (revision == null) {\n return null;\n }\n\n try (TreeWalk tw = TreeWalk.forPath(reader, fileName, revision.getTree())) {\n if (tw != null) {\n return tw.getObjectId(0);\n }\n }\n return null;\n }", "private static File getPidFile(String pathPrefix) {\n File pidFile = new File(pathPrefix + \".txt\");\n if (!pidFile.exists()) {\n pidFile = new File(pathPrefix + \".list\");\n }\n if (!pidFile.exists()) {\n pidFile = new File(pathPrefix);\n }\n if (!pidFile.exists()) {\n return null;\n }\n return pidFile;\n }", "public int get_process_number() {\n\t\treturn process_number;\n\t}", "public String getPidForPURL(String PURL) throws FedoraException, IOException {\r\n String riSearchUrl = this.fedoraBaseUrl + (this.fedoraBaseUrl.endsWith(\"/\") ? \"\" : \"/\") + \"risearch?type=tuples&lang=itql&format=Sparql&query=select%20%24member%20from%20%3C%23ri%3E%20where%20%24member%20%3Cdc%3Aidentifier%3E%20'\" + URLEncoder.encode(PURL, \"UTF-8\")+ \"'\";\r\n try {\r\n Document doc = parseUrlAsXmlDocument(riSearchUrl);\r\n NodeList children = (NodeList) this.getXPath().evaluate(\"//sparql:sparql/sparql:results/sparql:result/sparql:member\", doc, XPathConstants.NODESET);\r\n if (children.getLength() == 0) {\r\n LOGGER.warn(\"No PID found for PURL: \" + PURL);\r\n return null;\r\n } else if (children.getLength() == 1) {\r\n String pid = ((Element) children.item(0)).getAttribute(\"uri\").replace(\"info:fedora/\", \"\");\r\n LOGGER.debug(\"PID, \\\"\" + pid + \"\\\", found for PURL: \" + PURL);\r\n return pid;\r\n } else {\r\n LOGGER.error(children.getLength() + \" PIDs found for PURL: \" + PURL);\r\n return null;\r\n }\r\n } catch (SAXException ex) {\r\n throw new FedoraResponseParsingException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraResponseParsingException(ex);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraResponseParsingException(ex);\r\n }\r\n }", "public YangUInt32 getProcessPidValue() throws JNCException {\n return (YangUInt32)getValue(\"process-pid\");\n }", "com.google.protobuf.ByteString getProcessIdBytes();", "public static int[] firstNum(File file) {\n int lineCount = dataNum(file); // Storing the return of dataNum method as an integer\n int[] firstNum = new int[lineCount]; // Making an int array with an index the same as the lineCount\n String line = \"\"; // Blank string so it can be used anywhere in method \n \n try { // Try catch\n Scanner scan = new Scanner(file); // Scans file that was specified\n for(int i = 0; i < lineCount; i++) { // For loop that runs as many times as line count\n if (scan.hasNextLine()) { // When there is a next line\n line = scan.nextLine(); // The line is stored in the string \"line\"\n }\n if (Character.isDigit(line.charAt(4)) == false) { // If the 4th character in the line is not an integer\n if (scan.hasNextLine()) { // And there is a line after\n line = scan.nextLine(); // The program skips the line with no integer and scans the next line instead\n }\n }\n char first = line.charAt(4); // The 4th character is stored in a char variable\n int num = Character.getNumericValue(first); // The character is then converted to an integer\n firstNum[i] = num; // That integer is stored in the int array at the index number equal to the times the for loop ran\n //System.out.println(firstNum[i]);\n }\n } catch (FileNotFoundException e) { // If error occurs\n System.out.println(\"An error has occured\"); // Prints that the error has occured\n }\n return firstNum; // Returns the int array with all the values stored\n }", "private String getProjectNumber(ZipFile zipFile) throws ZipException\n {\n Pattern pattern = Pattern.compile( \"^P-[\\\\dA-F]{4}\", Pattern.CASE_INSENSITIVE);\n for (FileHeader fileHeader : zipFile.getFileHeaders ( ) ) {\n Matcher matcher = pattern.matcher(fileHeader.getFileName());\n if (matcher.find()) {\n return matcher.group();\n }\n }\n \n throw new PlcRuntimeException(\"Error determining project number.\");\n }", "public String getProcessId()\r\n\t{\r\n\t\treturn processId;\r\n\t}", "String getID(String pid) {\n try {\n Cursor cursor = selectTable(makeMax(TableColumn.ChecklistTable.CID), makeCondition(TableColumn.ChecklistTable.PID, pid));\n cursor.moveToFirst();\n String id = cursor.getString(0);\n cursor.close();\n return id;\n } catch (SQLiteException sql_ex) {\n Log.e(\"SQL\", sql_ex.toString());\n } catch (CursorIndexOutOfBoundsException cur_ex) {\n Log.e(\"SQL\", cur_ex.toString());\n }\n return null;\n }", "public static String extractAndroidIdFromCsvFilename(String filename) {\n int indexOfFirstUnderscore = filename.indexOf(\"_\");\n String androidId = filename.substring(0, indexOfFirstUnderscore);\n return androidId;\n }", "public java.lang.String getProcessId() {\n return processId;\n }", "public java.lang.String getProcessId() {\n return processId;\n }", "private static int findRenderThreadId(@NotNull ProcessModel process) {\n Optional<ThreadModel> renderThread =\n process.getThreads().stream().filter((thread) -> thread.getName().equalsIgnoreCase(RENDER_THREAD_NAME)).findFirst();\n return renderThread.map(ThreadModel::getId).orElse(INVALID_PROCESS);\n }", "public org.apache.xmlbeans.XmlInt xgetLineID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(LINEID$2, 0);\n return target;\n }\n }", "@Nullable\n public Integer findProcessByName(String targetName) throws IOException, InterruptedException, TimeoutException {\n // Debug\n String tag = TAG + \": readProcessName()\";\n Log.d(tag, \"Called\");\n\n // List all processes\n LinkedList<Integer> pids = listProcesses();\n if (pids == null || pids.size() == 0) {\n // Something went wrong...\n // TODO: Handle it like a pro.\n Log.e(tag, \"Process count is zero\"); // Debug\n return null;\n }\n\n // Go through listed processes and try matching with given target\n Iterator<Integer> iterator = pids.descendingIterator();\n while (iterator.hasNext()) {\n Integer pid = iterator.next();\n String processName = readProcessName(pid);\n Log.d(tag, processName + \" (\" + pid.toString() + \")\"); // Debug\n if (processName != null && processName.equals(targetName)) {\n Log.d(tag, \"Return: \" + pid.toString()); // Debug\n return pid;\n }\n }\n return null;\n }", "public static int nextId(String key) {\n //Setting the id to number of users created + 1 and clearing id file\n try {\n File file = FileHandler.loadFile(key + \".id\");\n InputStream input = new FileInputStream(file);\n Scanner scanner = new Scanner(input);\n int id = scanner.nextInt() + 1;\n scanner.close();\n input.close();\n FileHandler.ClearFile(file);\n //updating id file with new numbers\n PrintStream printStream = new PrintStream(new FileOutputStream(file));\n printStream.println(id);\n printStream.close();\n return id;\n } catch (FileNotFoundException fileNotFoundException) {\n fileNotFoundException.printStackTrace();\n logger.fatal(key + \"id file doesnt exist.\");\n } catch (IOException e) {\n e.printStackTrace();\n logger.error(\"couldn't read from \" + key + \" id file.\");\n }\n return -1;\n }", "public final static int get(String fileName) {\n\t\t\tString strValue = PROPERTIES.getProperty(fileName);\n\t\t\t//log.info(\"GET dataset id : \"+fileName);\n\t\t\ttry {\treturn strValue!=null? Integer.valueOf(strValue): -1;\t}catch(Exception e) {\treturn -1;\t}\n\t\t}", "private Option<String> getParleysId(String url) {\n Matcher m = ID_PARLEYS_PATTERN.matcher(url);\n\n if (!m.find())\n return Option.none();\n\n return Option.of(m.group(1));\n }", "public java.lang.String getProcessId() {\n return processId;\n }", "public java.lang.String getProcessId() {\n return processId;\n }", "public int getProgID() throws Exception\n\t{\n\t\tint id=0;\n\t\ttry(Connection connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/usersdb?useTimezone=true&serverTimezone=UTC\", \"root\", \"123\");\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(\"SELECT idprogram FROM usersdb.telephone_numbers WHERE clients_username = ?;\"))\n\t\t{\n\t\t\tpreparedStatement.setString(1,username);\n\t\t\tResultSet result = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile(result.next()) \n\t\t\t{\n\t\t\t\tid = result.getInt(\"idprogram\");\n\t\t\t\tprogid = result.getInt(\"idprogram\");\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn id;\n\t}", "public static int getFirstPtId() {\n\t\tif (xml == null) return 1;\n\t\treturn firstPtId;\n\t}", "private static int getPidForWindows(Process process)\n\t{\n\t\tint pid = -1;\n\t\tif (process.getClass().getName().equals(\"java.lang.Win32Process\") || process.getClass().getName().equals(\"java.lang.ProcessImpl\")) {\n\t\t\t/* determine the pid on windows plattforms */\n\t\t\ttry {\n\t\t\t\tField f = process.getClass().getDeclaredField(\"handle\");\n\t\t\t\tf.setAccessible(true);\n\t\t\t\t// f.getInt(process);\n\t\t\t\tlong handl = f.getLong(process);\n\t\t\t\tKernel32 kernel = Kernel32.INSTANCE;\n\t\t\t\tW32API.HANDLE handle = new W32API.HANDLE();\n\t\t\t\thandle.setPointer(Pointer.createConstant(handl));\n\t\t\t\tpid = kernel.GetProcessId(handle);\n\t\t\t} catch (Throwable e) {\n\t\t\t\tLOGGER.error(\"failed to get pid for process [ \" + process.toString() + \" ] : \" + e.getMessage(), e);\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t\treturn pid;\n\t}", "public static int[] getPathResolved(String path)\n throws NumberFormatException\n {\n try\n {\n // Initialize the token array\n int[] returnArray = new int[0];\n \n // Tokenize the path\n StringTokenizer st = new StringTokenizer(path,\":\");\n \n // Reset the array with the number of tokens\n returnArray = new int[st.countTokens()];\n \n // Save value of each token in the array\n if (st.countTokens() > 0)\n {\n for (int i = 0; i < returnArray.length; i++)\n {\n returnArray[i] = Integer.parseInt\n (st.nextToken().trim());\n }\n }\n \n // Return path array\n return returnArray;\n }\n catch (Exception e)\n {\n // Wrap the exception in a NumberFormatException\n throw new NumberFormatException(e.getMessage());\n }\n }", "IPID getPID();", "protected final int findParentDirectoryId(DBDeviceContext ctx, String path, boolean filePath) {\n\n // Split the path\n \n String[] paths = null;\n \n if ( path != null && path.startsWith(\"\\\\\")) {\n\n // Split the path\n \n paths = FileName.splitPath(path);\n }\n else {\n \n // Add a leading slash to the path before parsing\n \n paths = FileName.splitPath(\"\\\\\" + path);\n }\n \n if ( paths[0] != null && paths[0].compareTo(\"\\\\\") == 0 || paths[0].startsWith(\"\\\\\") == false)\n return 0;\n \n // Check if the file is in the cache\n \n FileStateCache cache = ctx.getStateCache();\n FileState state = null;\n \n if ( cache != null) {\n \n // Search for the file state\n \n state = cache.findFileState(paths[0]);\n if ( state != null && state.getFileId() != -1) {\n \n // Debug\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"@@ Cache hit - findParentDirectoryId() path=\" + paths[0]);\n \n // Return the file id\n \n return state.getFileId();\n }\n }\n\n // Get the directory id list\n \n int[] ids = findParentDirectoryIdList(ctx,path,filePath);\n if ( ids == null)\n return -1;\n \n // Check for the root directory id only\n \n if ( ids.length == 1)\n return ids[0];\n \n // Return the directory id of the last directory\n \n int idx = ids.length - 1;\n if ( filePath == true && ids[ids.length - 1] == -1)\n idx--;\n \n return ids[idx];\n }", "private int getNumber(String taskInfo) throws EditNoIndexException {\n try {\n int numberNextSlash = taskInfo.indexOf(\"/\");\n int number = Integer.parseInt(taskInfo.substring(0, (numberNextSlash - 2)));\n return number;\n } catch (StringIndexOutOfBoundsException | NumberFormatException e) {\n throw new EditNoIndexException();\n }\n }", "public final int getProcessId() {\n \treturn m_pid;\n }", "public static String retrieveSuiteId(String filepath, String subplan) {\n TmsMeta meta = retrieveMeta(filepath);\n TestFile testFile = null;\n String relativePath = getRelativePath(filepath);\n for(TestFile file : meta.getFiles()){\n if (StringUtils.equals(file.getPath(), relativePath)){\n if (StringUtils.isNotEmpty(subplan) && StringUtils.equals(file.getSubStep(), subplan)){\n testFile = file;\n break;\n }\n testFile = file;\n break;\n }\n }\n if (testFile == null){\n System.out.println(\"There is no suite associated with the file: \" + filepath);\n System.exit(-1);\n }\n return testFile.getSuiteId();\n }", "public static String getPid() {\n\t\tString name = ManagementFactory.getRuntimeMXBean().getName(); \n\t\t// get pid \n\t\treturn name.split(\"@\")[0];\n\t}", "public long getProcessID() {\n return processID;\n }", "public int getId() {\n // some code goes here\n \treturn m_f.getAbsoluteFile().hashCode();\n }", "public static final int getListFileFirstInt(final ListFile var) {\n if (var == null)\n return -1;\n return getListFileIntList(var)[0];\n }", "String getProcessInstanceID();", "private static int getPidForUnix(Process process)\n\t{\n\t\tint pid = -1;\n\t\tif (process.getClass().getName().equals(\"java.lang.UNIXProcess\")) {\n\t\t\t/* get the PID on unix/linux systems */\n\t\t\ttry {\n\t\t\t\tField f = process.getClass().getDeclaredField(\"pid\");\n\t\t\t\tf.setAccessible(true);\n\t\t\t\tpid = f.getInt(process);\n\t\t\t} catch (Throwable e) {\n\t\t\t\tLOGGER.error(\"failed to get pid for process [ \" + process.toString() + \" ] : \" + e.getMessage(), e);\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t\treturn pid;\n\t}", "String getProgramId();", "public String getIdString(CharSequence line) {\n\t\tList<String> values = parseCsvLine(line);\n\t\treturn values.get(id);\n\t}", "int getPatronId(Patron patron) {\n\t\t\n\t\t// goes through all our patrons \n\t\tfor (int id = 0; id < this.patronCounter; id++) {\t\t\t\n\t\t\t// checks if this patron is our needed patron \n\t\t\tif (this.patronlist[id] == patron) {\n\t\t\t\treturn id; \n\t\t\t}\n\t\t}\n\t\t\n\t\t// we could not get an id for that patron \n\t\treturn -1; \n\t}", "public native int getProcess();", "private void setProcessId(int value) {\n\t\tthis.processId = value;\n\t}", "public int getInt(String path)\n {\n if (configuration.contains(path))\n return configuration.getInt(path);\n else return defaultConfig.getInt(path);\n }", "public static AccountDigit find(final String[] lines) {\n\t\tInteger key = Integer.valueOf(Arrays.hashCode(lines));\n\t\treturn lookup.get(key);\n\t}", "public String getLine1Number() {\n String line1Number = \"\";\n try {\n line1Number = Settings.Secure.getString(mContext.getContentResolver(), \"Line1Number\");\n if (line1Number == null) {\n line1Number = \"\";\n }\n } catch (Exception e) {\n line1Number = \"\";\n System.out.println(\"in or out strean exception\");\n }\n return line1Number;\n }", "private AbsoluteAddress getContinuosPoint(FileProcess file) {\n\t\tint t = 0;\n\t\twhile (true) {\n\t\t\tString temp = file.getLineAt(t);\n\n\t\t\tif (temp == null || temp == \"\") {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tif (temp.contains(\"Address\")) {\n\t\t\t\ttemp = temp.substring(temp.indexOf(\"x\") + 1, temp.length());\n\t\t\t\treturn new AbsoluteAddress(Long.parseLong(temp, 16));\n\t\t\t}\n\t\t\tt++;\n\t\t}\n\t}", "private static int getSatFromLine(String line) {\n\t\treturn Integer.parseInt(line.split(\" \")[0]);\n\t}", "public MaliciousProcess analyzeProcess(int pID){\n\t\t\ttry {\n\t\t\t\tString execPath = getExecutablePath(pID);\n\t\t\t\treturn analyzeFile(execPath);\n\t\t\t} catch (IOException | InterruptedException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t}", "public short getFileID() \r\n\t //@ requires [?f]valid_id(this);\r\n\t //@ ensures [f]valid_id(this);\r\n\t{\r\n\t\t////@ open [f]valid_id(this); // auto\r\n\t\treturn fileID;\r\n\t\t//@ close [f]valid_id(this);\r\n\t}", "public short getFileID() \r\n\t //@ requires [?f]valid_id(this);\r\n\t //@ ensures [f]valid_id(this);\r\n\t{\r\n\t\t////@ open [f]valid_id(this); // auto\r\n\t\treturn fileID;\r\n\t\t//@ close [f]valid_id(this);\r\n\t}", "public int getFileFromID(int id) {\n for(int i = 0 ; i < files.size(); i++) {\n if(files.get(i).getFileID() == id)\n return i;\n }\n return -1;\n }", "final Integer getIdFromStringPerson(String selectedValue) {\n String [] tokens = selectedValue.split(\":\"); //Split our String\n int idPosition = 1; // ID's position in the our String(See getAsString())\n return Integer.parseInt(tokens[idPosition]); //Extract Id from the string\n }", "@NativeType(\"pid_t\")\n public static long getpid() {\n long __functionAddress = Functions.getpid;\n return invokeP(__functionAddress);\n }", "private static int readIdFromConsole() {\n\t\tboolean validInput = false; \n\t\tint id = -1; \n\t\twhile (! validInput) {\n\t\t\ttry {\n\t\t\t\tOut.print(\" Bitte Id eingeben: \");\n\t\t\t\tid = Integer.parseInt(In.readLine());\n\t\t\t\tif (id > 0) validInput = true; \n\t\t\t\telse Out.print(\" Falsche Eingabe!\");\n\t\t\t} catch (Exception e) {\n\t\t\t\tOut.print(\" Falsche Eingabe!\");\n\t\t\t}\n\t\t}\n\t\treturn id; \n\t}", "public static int getIntFromFile(String filename) {\n if (Logger.get().isDebug()) {\n Logger.debug(\"Reading file {}\", filename);\n }\n try {\n List<String> read = FileKit.readLines(filename);\n if (!read.isEmpty()) {\n if (Logger.get().isTrace()) {\n Logger.trace(\"Read {}\", read.get(0));\n }\n return Integer.parseInt(read.get(0));\n }\n } catch (NumberFormatException ex) {\n Logger.warn(\"Unable to read value from {}. {}\", filename, ex.getMessage());\n }\n return 0;\n }", "public ConProcess getById(int id) throws AppException;", "public static int getPID() {\n return Integer.parseInt(ManagementFactory.getRuntimeMXBean().getName().split(\"@\")[0]);\n }", "public String getProcessID()\n {\n return processID;\n }", "int getLineID(Vector<Integer> lineIDs,Vector<Integer> lineDepIDs, Vector<String> lineCodes, String cellValue, int depID);", "private String getAgentIDFromFile() throws CatascopiaException {\n \tProperties prop = new Properties();\n \tString id;\n \ttry {\n\t\t\tString agentfile = JCATASCOPIA_AGENT_HOME + File.separator + AGENT_PRIVATE_FILE;\n\t\t\tif((new File(agentfile).isFile())) {\n\t\t\t\t//load agent_private properties file\n\t\t\t\tFileInputStream fis = new FileInputStream(agentfile);\n\t\t\t\tprop.load(fis);\n\t\t\t\tif (fis != null)\n\t\t \t\tfis.close();\n\t\t\t\tid = prop.getProperty(\"agentID\",UUID.randomUUID().toString().replace(\"-\", \"\"));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//first time agent started. Store assigned id to file\n\t\t\t\tid = UUID.randomUUID().toString().replace(\"-\", \"\");\n\t\t\t\tprop.setProperty(\"agentID\", id);\n\t\t\t\tprop.store(new FileOutputStream(agentfile), null);\n\t\t\t}\n \t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\tthrow new CatascopiaException(\"agent_private file not found\", CatascopiaException.ExceptionType.FILE_ERROR);\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\tthrow new CatascopiaException(\"agent_file parsing error\", CatascopiaException.ExceptionType.FILE_ERROR);\n\t\t}\t\n \treturn id;\n\t}", "private static Long readAnnotationId(String url) {\r\n\t\treturn Long.parseLong(url.replace(Config.getInstance().getAnnotationBaseUrl(), \"\"));\r\n\t}" ]
[ "0.71901876", "0.6528309", "0.63557684", "0.6134993", "0.59776145", "0.5955127", "0.5929461", "0.5916727", "0.5869344", "0.58674043", "0.58489275", "0.5786618", "0.57636136", "0.5739264", "0.5672854", "0.5672682", "0.56514287", "0.5602041", "0.558426", "0.5581069", "0.5561833", "0.55330926", "0.5509385", "0.54835236", "0.5461125", "0.54544055", "0.5448825", "0.5431228", "0.54130125", "0.5405904", "0.5374369", "0.5364867", "0.53521615", "0.53487027", "0.5322823", "0.5294358", "0.5282679", "0.5281536", "0.5281525", "0.525318", "0.52508575", "0.52349955", "0.5227551", "0.5219302", "0.5218756", "0.5211965", "0.5205474", "0.51943535", "0.51898044", "0.51834816", "0.51760334", "0.5156639", "0.5156639", "0.51222175", "0.511919", "0.51130086", "0.5096802", "0.50933295", "0.50908494", "0.508353", "0.508353", "0.5069514", "0.5066057", "0.50658834", "0.5061989", "0.5041531", "0.5034392", "0.50221694", "0.5007847", "0.5003797", "0.50022656", "0.4986184", "0.49791956", "0.4975794", "0.4974571", "0.49682742", "0.49567512", "0.49477947", "0.49454615", "0.49350244", "0.49274907", "0.49150994", "0.49118784", "0.4911608", "0.4909508", "0.49013707", "0.4899394", "0.4895723", "0.4895723", "0.48936513", "0.4885686", "0.48814332", "0.48589233", "0.4842276", "0.48393616", "0.48386672", "0.4825185", "0.4825161", "0.4821319", "0.48150808" ]
0.8070819
0
elements not in array
public HashTable(int size){ arraySize = size; hashArray = new Elements[arraySize]; nullement = new Elements(" -1 "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean notInArray(Process p, Process[] q){\n for(int i =0; i<q.length; i++){\n if(q[i]==p){\n return false;\n }\n }\n return true;\n }", "public static List<Integer> getUnmarked(boolean[] arr) {\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif (arr[i] == false) {\n\t\t\t\tlist.add(new Integer(i));\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public static void getNonRepeatedNumbres(int[] arr )\r\n\t{\n\t\tSet<Integer> set=find(arr);\t\r\n\t\t//If size of set >=1 then there are few integers which are Non Repeated \r\n\t\tif(set.size()>=1)\r\n\t\t{\r\n\t\t\t//Printing those every Integers in set \r\n\t\t\tSystem.out.println(\"Non Repeated Integers are=\");\r\n\t\t\tfor(Integer i:set)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//If set.size==0, Then there are no Integers Which are Non Repeated..............\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"There are no repeated numbers in a given array\");\r\n\t\t}\r\n\t}", "private static void findMultipleMissing(int[] arr, int count) {\n int missingCount = count - arr.length;\n BitSet bitSet = new BitSet(count);\n\n for (int i : arr) {\n bitSet.set(i - 1);\n }\n\n int lastMissingIndex = 0;\n for (int i = 0; i < missingCount; i++) {\n lastMissingIndex = bitSet.nextClearBit(lastMissingIndex);\n System.out.println(++lastMissingIndex);\n }\n }", "private static boolean allElementsEqual(Mark[] array) {\n\t\t\n\t\tboolean areEqual = true;\n\t\t\n for(int i=0 ; i < array.length; i++) {\n \t\n \t\n \tif (array[i] == null) {\n \t\tareEqual = false;\n \t\tbreak;\n \t}\n \t\n if(!array[0].equals(array[i])) {\n areEqual = false;\n break;\n }\n }\n\n return areEqual;\n }", "@Test\n public void testContainsAll_Not_Contain() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n\n Collection c = Arrays.asList(1, 2, 5);\n\n boolean expResult = false;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "public static List<Integer> findDisappearedNumbers_set(int[] nums) {\n List<Integer> ans = new ArrayList<>();\n int len = nums.length;\n Set<Integer> set = new HashSet<>();\n for (int x : nums) {\n set.add(x);\n }\n\n for (int i = 1; i <= len; i++) {\n if (!set.contains(i)) {\n ans.add(i);\n }\n }\n\n return ans;\n }", "@VisibleForTesting\n static boolean isAnyAppIdUnwhitelisted(int[] prevArray, int[] newArray) {\n boolean prevFinished;\n int i1 = 0;\n int i2 = 0;\n while (true) {\n prevFinished = i1 >= prevArray.length;\n boolean newFinished = i2 >= newArray.length;\n if (!prevFinished && !newFinished) {\n int a1 = prevArray[i1];\n int a2 = newArray[i2];\n if (a1 == a2) {\n i1++;\n i2++;\n } else if (a1 < a2) {\n return true;\n } else {\n i2++;\n }\n } else if (!prevFinished) {\n return false;\n } else {\n return newFinished;\n }\n }\n if (!prevFinished) {\n }\n }", "private void setIsNoted(ArrayList<OrderItem> oil) {\n if (oil != null) {\n int size = oil.size();\n isNoted = new boolean[size];\n\n for (int i = 0; i < size; i++) {\n isNoted[i] = !oil.get(i).getNote().equals(\"\");\n }\n }\n }", "public void removeNotIn(int[] keys) {\n MapElement me = null;\n\n for (int i = 0; i < capacity; i++) {\n if (map[i] != null) {\n me = map[i];\n while (null != me) {\n int meKey = me.getKey();\n for (int k = 0; k < keys.length; k++) {\n if (keys[k] == meKey) {\n keys[k] = -1;\n }\n }\n me = me.getNext();\n }\n }\n }\n for (int k = 0; k < keys.length; k++) {\n if (keys[k] > 0) {\n removeElement(keys[k]);\n }\n }\n }", "public ZYSet<ElementType> difference(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n if(!otherSet.contains(e)){\n result.add(e);\n }\n }\n return result;\n }", "boolean isExcluded();", "static int findMissing2(int arr[], int size)\n {\n int shift = segregate (arr, size);\n int arr2[] = new int[size-shift];\n int j=0;\n for(int i=shift;i<(size);i++)\n {\n arr2[j] = arr[i];\n j++;\n } \n return findMissingPositive(arr2, j);\n }", "public boolean containsNotOperator() {\r\n\t\tfor (int n = 0; n < elements.size(); ++n) {\r\n\t\t\tObject ob = elements.get(n);\r\n\t\t\tif (ob instanceof Operator) {\r\n\t\t\t\tif (((Operator) ob).isNot()) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static List<Integer> findDisappearedNumbers_bf(int[] nums) {\n int len = nums.length;\n List<Integer> ans = new ArrayList<>();\n for (int i = 1; i <= len; i++) {\n boolean hasFlag = false;\n for (int j = 0; j < len; j++) {\n if (nums[j] == i) {\n hasFlag = true;\n break;\n }\n }\n\n if (!hasFlag) {\n ans.add(i);\n }\n }\n\n return ans;\n }", "boolean isExcluded(Individual ind);", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\tint[] ints = {1, 2, 3, 4, 6,7,9,11,13};\n\t for (int i = 0; i < ints.length - 1; i++) {\n\n\t if ((ints[i + 1] - ints[i]) > 1) {\n\t System.out.println(\"Missing elements is :\"+(ints[i]+1));\n\n\t }\n\n\t }\n\n\t}", "@Override\n public SetInterface<T> difference(SetInterface<T> rhs) {\n //create return SetInterface\n SetInterface<T> result = new ArraySet();\n //Look through the calling set\n for(int i = 0; i < numItems; i++){\n //if the item is NOT also in the param set, add it to result\n if(!rhs.contains(arr[i]))\n result.addItem(arr[i]);\n }\n return result;\n }", "public final boolean removeAll(Object... elements) {\n if (elements.length == 0) {\n return false;\n }\n\n synchronized (sync) {\n if (array == null) {\n return false;\n }\n\n boolean result = false;\n for (Object element : elements) {\n final T[] oldArray = array;\n\n\n array = ArrayUtils.remove(array, element);\n\n result |= (oldArray != array);\n }\n\n return result;\n }\n }", "@Test\n public void testContainsAll_Not_Contain_Overflow() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n instance.add(5);\n instance.add(4);\n instance.add(7);\n\n Collection c = Arrays.asList(1, 2, 5, 8);\n\n boolean expResult = false;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "public static List<String> filter_empty(String[] arr){\n\t\tboolean contient_added = false;\n\t\tList<String> out = new ArrayList<String>();\n\t\tfor(String s : arr) {\n\t\t\tif(s.trim().length() > 0){\n\t\t\t\tif(s.equals(\"CONTIENT\")){\n\t\t\t\t\tif(contient_added){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tcontient_added = true;\n\t\t\t\t}\n\t\t\t\tout.add(s);\n\t\t\t}\n\t\t}\n\t\treturn out;\n\t}", "static public boolean excludesAll(Collection source, Collection arg) {\n\t\tIterator it = arg.iterator();\n\t\twhile ( it.hasNext() ) {\n\t\t\tObject elem = it.next();\n\t\t\tif ( source.contains(elem) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "static int findMissing(int arr[], int size)\n {\n \n //0 -10 1 3 -20\n int p1 = 0;\n int p2 = size-1;\n while (p1<p2) {\n if (arr[p1] > 0) {\n p1++;\n } else {\n int temp = arr[p2];\n arr[p2] = arr[p1];\n arr[p1] = temp;\n p2--;\n }\n }\n //1 3 0 -10 -20\n for (int i=0; i<=p1; i++) {\n int x = Math.abs(arr[i])-1;\n int y = arr[x];\n if (y>0 && y <= size) {\n arr[x] = y*-1;\n }\n }\n for (int i=0; i<size; i++) {\n if (arr[i] > 0) {\n return i+1;\n }\n }\n \n return p1+2;\n }", "public static void main(String[] args) {\nArrayList<String> al1= new ArrayList<String>();\nal1.add(\"a\");\nal1.add(\"b\");\nal1.add(\"a\");\nal1.add(\"d\");\nal1.add(\"e\");\nal1.add(\"e\");\n\nArrayList<String> al2=new ArrayList<String>();\nal2.add(\"a\");\nal2.add(\"e\");\n\n// al1.removeAll(al2); --> b/d\nal1.retainAll(al2);\n\nfor(String a:al1)\nSystem.out.println(a);\n}", "static int findMissingUsingSummation(int[] arr) {\n\t\tint expectedSum = (arr.length + 1) * (arr.length + 1 + 1) / 2;\n\t\tint actualSum = 0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tactualSum = actualSum + arr[i];\n\t\t}\n\n\t\treturn expectedSum - actualSum;\n\t}", "public List<Integer> getRepetitiveElementsUnBounded(int[] array) {\n if (array== null) return null;\n\n List<Integer> result = new ArrayList<>();\n Arrays.sort(array); // complexity: O(nlogn)\n\n int startIndex = 0;\n // O(n)\n while (startIndex < array.length) {\n while (startIndex+1 < array.length && array[startIndex] == array[startIndex+1]){\n startIndex++;\n }\n if (startIndex-1 >= 0 && array[startIndex-1] == array[startIndex]) {\n result.add(array[startIndex]);\n }\n startIndex++;\n }\n return result;\n }", "public List<Integer> findDisappearedNumbers(int[] nums) {\n\t\tList<Integer> list = new ArrayList<>();\n\t for (int i=0; i<nums.length; ) {\n\t int index = nums[i] - 1;\n\t if (index >= 0 && nums[index] != -1) {\n\t nums[i] = nums[index];\n\t nums[index] = -1;\n\t } else {\n\t i++;\n\t }\n\t }\n\t \n\t for (int i=0; i<nums.length; i++) {\n\t if (nums[i] != -1) {\n\t list.add(i+1);\n\t }\n\t }\n\t \n\t return list;\n }", "public ArrayList<T> getNonZeroOrderedElements() {\n\t\tArrayList<T> ordered = getOrderedElements();\n\t\tfor (Iterator<T> iter = ordered.iterator(); iter.hasNext();) {\n\t\t\tT element = iter.next();\n\t\t\tif (itemProbs_.get(element) == 0)\n\t\t\t\titer.remove();\n\t\t}\n\t\treturn ordered;\n\t}", "private static int findMissing(int[] arr, int totalCount) {\n int nSum = totalCount * (totalCount + 1) / 2;\n int actualSum = Arrays.stream(arr).sum();\n return nSum - actualSum;\n }", "static void findTwoMissingNumber(int a[]) {\n int miss1 = 0;\n int miss2;\n int miss1miss2 = 0;\n\n int size = a.length;\n for (int i = 0; i < size; i++) {\n miss1miss2 ^= ((i + 1) ^ a[i]);\n }\n\n miss1miss2 ^= (size + 1);\n miss1miss2 ^= (size + 2);\n\n int diff = miss1miss2 & (-miss1miss2);\n\n for (int i = 0; i < size; i++) {\n if (((i + 1) & diff) > 0)\n miss1 ^= (i + 1);\n\n if ((a[i] & diff) > 0)\n miss1 ^= a[i];\n }\n\n if (((size + 1) ^ diff) > 0)\n miss1 ^= (size + 1);\n\n if (((size + 2) ^ diff) > 0)\n miss1 ^= (size + 2);\n\n miss2 = miss1miss2 ^ miss1;\n\n System.out.println(miss1);\n System.out.println(miss2);\n }", "public NSMutableArray<I_WorkFlowItem> getTachesObligatoiresAbsentes() {\n\t\tNSMutableArray<I_WorkFlowItem> tachesObligatoiresAbsentes = new NSMutableArray<I_WorkFlowItem>();\n\n\t\tfor (int i = 0; i < tachesObligatoires().count(); i++) {\n\t\t\tI_WorkFlowItem tache = tachesObligatoires().objectAtIndex(i);\n\t\t\tif (!tachesFaites.containsObject(tache)) {\n\t\t\t\ttachesObligatoiresAbsentes.addObject(tache);\n\t\t\t}\n\t\t}\n\n\t\treturn tachesObligatoiresAbsentes;\n\t}", "@Test \n\tpublic void testIfNumberisNotInArray()\n\t{\n \tData d = new Data();\n\t\tassertFalse(d.isMember(1)); // 1 is the value not in the array. \n\t}", "@Test\n\t public void test_Is_Subset_Negative() throws Exception{\t\n\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t SET subsetarray= new SET( new int[]{7,8});\n\t\t assertFalse(setarray.isSubSet(subsetarray));\t \n\t }", "public static void ignoreElements() {\n Observable.fromIterable(Utils.getData())\n .ignoreElements()\n .subscribe(new MyCompletableObserver());\n }", "public static void main(String[] args) {\n\t\tint a[] = {12 ,14,16,25,36};\r\n\t\tint b[] = {14,17,78,45,36};\r\n int n = a.length;\r\n int m = b.length;\r\n findMissing(a,b,n,m);\r\n\t}", "private static List<Integer> notInList(List<String> inputs, int num) {\n List<Integer> set = new ArrayList<Integer>();\n for(int i = 1; i <= num; i++) {\n set.add(Integer.valueOf(i));\n }\n for(String string: inputs) {\n Integer n = Integer.valueOf(string);\n set.remove(n);\n }\n Collections.sort(set);\n return set;\n }", "public static <T> T[] notEmpty(T[] array){\n if(ArrayUtils.isEmpty(array)) return array;\n List<T> items = new ArrayList<>();\n for(int i=0;i<array.length; i++){\n if(array[i] != null) items.add(array[i]);\n }\n return items.toArray((T[])Array.newInstance(\n array.getClass().getComponentType(),\n items.size()));\n }", "public static <T> T[] notEmpty(T[] array){\n if(ArrayUtils.isEmpty(array)) return array;\n List<T> items = new ArrayList<>();\n for(int i=0;i<array.length; i++){\n if(array[i] != null) items.add(array[i]);\n }\n return items.toArray((T[])Array.newInstance(\n array.getClass().getComponentType(),\n items.size()));\n }", "public Set<T> noFollow(T elem) {\n\t\t Set<T> s = rule.get(elem.hashCode());\n\t\t return s == null ? new HashSet<T>() :s; // TODO YOUR CODE HERE\n\t}", "@Test\n public void testList(){\n ArrayList<Integer> integers = Lists.newArrayList(1, 2, 3, 4);\n ArrayList<Integer> integers2 = Lists.newArrayList(1, 2, 3, 4, 5);\n// integers2.removeAll(integers);\n// System.out.println(integers2);\n integers2.retainAll(integers);\n System.out.println(integers2);\n }", "public static void printMissings(int[] numbers, int total){\n BitSet bs = new BitSet(numbers.length);\n for(int i : numbers){\n bs.set(i -1);\n }\n int diff = total - numbers.length;\n for(int i = 0; i < diff; i++ ){\n int missing = bs.nextClearBit(0);\n System.out.println(missing + 1);\n bs.set(missing);\n }\n \n }", "public ArrayList<CtColor> getMissingChips(ArrayList<CtColor> array) {\n\t\tArrayList<CtColor> missing = new ArrayList<CtColor>();\n\t\tChipSet myClone = (ChipSet) this.clone();\n\t\tfor (CtColor color : array)\n\t\t\t// If there is at least one chip of this color at this place then is\n\t\t\t// not missing and decrement\n\t\t\t// its counter so that we know that we have already used it.\n\t\t\tif (myClone.getNumChips(color) >= 1)\n\t\t\t\tmyClone.setNumChips(color, myClone.getNumChips(color) - 1);\n\t\t\telse\n\t\t\t\tmissing.add(color);\n\n\t\treturn missing;\n\t}", "private static void findDuplicatesByNegation(int[] arr2) {\n\t\t\n\t\tfor ( int i =0 ; i<arr2.length ; i++)\n\t\t{\n\t\t\t\n\t\t\tif(arr2[Math.abs(arr2[i])] < 0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\" Duplicates exist by Negation \" + arr2[i]);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tarr2[arr2[i]] = -arr2[arr2[i]];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public List<Integer> findDisappearedNumbers(int[] nums) {\n\n HashMap<Integer, Integer> counters = new HashMap<>();\n for (int i = 1; i <= nums.length; i++) {\n counters.put(i, 0);\n }\n\n for (int num : nums) {\n counters.put(num, counters.get(num) + 1);\n }\n\n List<Integer> ans = new ArrayList<>();\n for (Integer key : counters.keySet()) {\n if (counters.get(key) == 0) {\n ans.add(key);\n }\n }\n return ans;\n }", "public void containsNoneIn(Iterable<?> excluded) {\n containsNone(\"contains no elements in\", excluded);\n }", "public static Set<Integer> find(int[] arr)\r\n\t{\n\t\tSet<Integer> set1=new HashSet<>();\r\n\t\tSet<Integer> set2=new HashSet<>();\r\n\t\t\r\n\t\t//Here Storing the Integers in set1 And set2 so, here set1 And set2 will not allow to store\r\n\t\t//duplicate integers\r\n\t\tfor(Integer i:arr)\r\n\t\t{\r\n\t\t\tset1.add(i);\r\n\t\t\tset2.add(i);\r\n\t\t}\r\n\t\t//Now set1 & set2 contains non duplicate Integers\r\n\t\t// One for every integer in set1 and for every integer in given array And and int counter=0\r\n\t\t //here if Integer in set1 equals to Integer in given array,Then increase the counter.\r\n\t\t\r\n\t\tfor(Integer i:set1)\r\n\t\t{\r\n\t\t\tint count=0;\r\n\t\t\tfor(Integer a:arr)\r\n\t\t\t{\r\n\t\t\t\t//Integer in set1==Integer in array counter will increases by one \r\n\t\t\t\tif(i==a)\r\n\t\t\t\t{\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//If count of that integer greater or equal to 2 then delete that Integer in set2\r\n\t\t\tif(count>=2)\r\n\t\t\t{\r\n\t\t\t\tset2.remove(i);\r\n\t\t\t\t//NOTE:- Here I Took set2 because I can not delete the Integer in set1 because it is already in use(Concurrent Modification Exception)\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Returning the set2 which containing NonRepeated Integers\r\n\t\treturn set2;\r\n\t\t\r\n\t}", "public static ArrayList<String> complement(ArrayList<String> universe, ArrayList<String> value) {\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor(String element : universe) {\n\t\t\tif(!value.contains(element)) {\n\t\t\t\tresult.add(element);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "static void FindDuplicate(String[] strArray){\n\t\t\n\t\tHashSet<String> set = new HashSet<String>();\n\t\t\n\t\tfor(String arrayElement : strArray){\n\t\t\tif(!set.add(arrayElement))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Duplicate Element is: \"+ arrayElement);\n\t\t\t}\n\t\t}\n\t}", "private boolean numbersCorrect( int[] num ) {\n ArrayList<Integer> sourceNumList = new ArrayList<Integer>();\r\n for (int sourceNumber : sourceNumbers) {\r\n sourceNumList.add(sourceNumber);\r\n }\r\n for (int aNum : num) {\r\n boolean removed = sourceNumList.remove(new Integer(aNum));\r\n if (!removed)\r\n return false;\r\n }\r\n return true;\r\n }", "@Test\n public void testContains_Not_Contain() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(2);\n\n boolean expResult = false;\n boolean result = instance.contains(3);\n assertEquals(expResult, result);\n }", "public Instances notCoveredBy(Instances data) {\n\n Instances r = new Instances(data, data.numInstances());\n Enumeration enu = data.enumerateInstances();\n while (enu.hasMoreElements()) {\n\tInstance i = (Instance) enu.nextElement();\n\tif (resultRule(i) == -1) {\n\t r.add(i);\n\t}\n }\n r.compactify();\n return r;\n }", "private Integer[] getNegArray(int size) {\n Integer[] toReturn = new Integer[size];\n for (int i = 0; i < size; i++) {\n toReturn[i] = -1;\n }\n return toReturn;\n }", "private boolean isUserInArrayLisyOfUsers( String email, ArrayList<User> users){\n \tboolean isInsideMM = false;\n \t\tfor(User u : users){\n \t\t\tif(u.getEmail().equals(email)&&users.isEmpty()==false){\n \t\t\t\tisInsideMM = true;\n \t\t\t}\n \t\t} \t\n \treturn isInsideMM;\n }", "public void andNot(BitSet set){\n for(int i=Math.min(wordsInUse,set.wordsInUse)-1;i>=0;i--)\n words[i]&=~set.words[i];\n recalculateWordsInUse();\n checkInvariants();\n }", "public static boolean hasDifference(int[] array) {\n if (array.length == 1) {\n //debug error\n //System.out.println(\"hasDifference: array length is 1.\");\n return true;\n } else {\n boolean[] differenceFlag = new boolean[array.length - 1];\n int i, j;\n for (i = 0; i < array.length - 1; i++) {\n \n int difference = (array[i] - array[i + 1]) > 0 ? (array[i] - array[i + 1]):(array[i + 1] - array[i]);\n if (0 < difference && difference < array.length) {\n differenceFlag[difference - 1] = true;\n //debug\n //System.out.printf(\"hasDifference: difference \\\"%d\\\" exists, subtracting %d from %d.\\n\", difference, array[i], array[i + 1]);\n }\n\n \n }\n \n \n for (int k = 0; k < differenceFlag.length ; k++) {\n if (differenceFlag[k] == false) {\n //debug\n //System.out.printf(\"hasDifference: difference \\\"%d\\\" does not exist.\\n\", k + 1);\n return false;\n }\n }\n return true;\n }\n }", "static int missingNumber(int[] nums) {\n int ret = 0;\n for(int i = 0; i < nums.length; i++) {\n ret ^= i;\n ret ^= nums[i];\n }\n return ret^=nums.length;\n }", "public Units whereNot(UnitSelector.BooleanSelector selector)\n\t{\n\t\tUnits result = new Units();\n\t\tfor (Unit unit : this)\n\t\t{\n\t\t\tif (!selector.isTrueFor(unit))\n\t\t\t{\n\t\t\t\tresult.add(unit);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public static List<Integer> findDisappearedNumbers(int[] nums) {\n List<Integer> ans = new ArrayList<>();\n int len = nums.length;\n for (int i = 0; i < len; i++) {\n if (nums[i] == i + 1) {\n continue;\n }\n\n while (nums[nums[i] - 1] != nums[i]) {\n int temp = nums[i];\n nums[i] = nums[temp - 1];\n nums[temp - 1] = temp;\n }\n }\n\n for (int i = 0; i < len; i++) {\n if (nums[i] != i + 1) {\n ans.add(i + 1);\n }\n }\n\n return ans;\n }", "public boolean subset(ZYSet<ElementType> potentialSubset){\n for(ElementType e:potentialSubset){\n if(!this.contains(e)){\n return false;\n }\n }\n return true;\n }", "private Set<NodePair> nonadjacencies(Graph graph) {\n Set<NodePair> nonadjacencies = new HashSet<>();\n for (Graph inputPag : input) {\n for (NodePair pair : allNodePairs(inputPag.getNodes())) {\n if (!inputPag.isAdjacentTo(pair.getFirst(), pair.getSecond())) {\n nonadjacencies.add(new NodePair(graph.getNode(pair.getFirst().getName()), graph.getNode(pair.getSecond().getName())));\n }\n }\n }\n return nonadjacencies;\n }", "public int[] check(int[] values)\n {\n swapAdjacentElements(values);\n return values;\n }", "@Override\n public void remove(T t) {\n for (int i = 0; i < elementsInArray; i++) {\n if(t.equals(arrayList[i])) {\n arrayList[i] = null;\n elementsInArray--;\n return;\n }\n }\n }", "static int findMissingPositive(int arr[], int size)\n {\n int i;\n for(i = 0; i < size; i++)\n {\n if(Math.abs(arr[i]) - 1 < size && arr[Math.abs(arr[i]) - 1] > 0)\n arr[Math.abs(arr[i]) - 1] = -arr[Math.abs(arr[i]) - 1];\n }\n // Return the first index value at which is positive \n for(i = 0; i < size; i++)\n if (arr[i] > 0)// 1 is added because indexes start from 0 \n return i+1;\n return size+1;\n }", "public static int findMissing(ArrayList<Integer> array, int column, int limit){\n\t\tif(column > limit){\n\t\t\treturn 0;\n\t\t}\n\t\tArrayList<Integer> odds = new ArrayList<Integer>();\n\t\tArrayList<Integer> even = new ArrayList<Integer>();\n\t\t\n\t\tfor(Integer t: array){\n\t\t\tif(getBit(t, column) == 0){\n\t\t\t\teven.add(t);\n\t\t\t}else{\n\t\t\t\todds.add(t);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(odds.size()>= even.size()){//missing 0;\n\t\t\treturn findMissing(even, column+1, limit) <<1 | 0;\n\t\t}else{\n\t\t\treturn findMissing(odds, column+1, limit) <<1 | 1;\n\t\t}\n\t}", "private static int[] removeElement(int[] a, int i) {\n\t\tint[] b = new int[a.length-1];\n\t\tint k = 0;\n\t\tfor (int j = 0; j < a.length; j++) {\n\t\t\tif (j != i) {\n\t\t\t\tb[k++] = a[j];\n\t\t\t}\n\t\t}\n\t\treturn b;\n\t}", "java.util.List<java.lang.Float> getNotInList();", "@Test\r\n public void removeAll() throws Exception {\r\n\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(4);\r\n l.add(2);\r\n check.removeAll(l);\r\n assertFalse(check.containsAll(l));\r\n assertFalse(check.contains(2));\r\n assertFalse(check.contains(4));\r\n assertTrue(check.contains(1));\r\n assertTrue(check.contains(3));\r\n assertTrue(check.contains(5));\r\n }", "@Test\n public void testContains_Not_Contain_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n boolean expResult = false;\n boolean result = instance.contains(7);\n assertEquals(expResult, result);\n }", "@Test\r\n\t\tpublic void testDeleteElement() {\n\t\t\ttestingSet= new IntegerSet(list1);\r\n\t\t\tInteger array[] = testingSet.toArray(); \r\n\t\t\ttestingSet.deleteElement(0);\r\n\t\t\t// check to see if the first element in the set still exists\r\n\t\t\t// should result to false \r\n\t\t\tassertEquals(testingSet.exists(array[0]), false); \r\n\t\t}", "public <T> boolean existed(T thisThing, ArrayList<T> array) {\n\n int sign = 0;\n\n for (int i = 0; i < array.size(); ++i) {\n\n if (array.get(i).equals(thisThing)) {\n ++sign;\n }\n }\n if (sign == 0)//kayitli degil false doner\n {\n return false;\n } else {\n return true;\n }\n\n }", "public static void main(String[] args) {\n\t\tInteger [] a= {1,4,7, 9, 2};\n\t\tInteger [] b={1,7,3,4,5};\n\t\tArrayList <Integer> c=new ArrayList<Integer>();\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<b.length;j++)\n\t\t\t{\n\t\t\t\tif(a[i]==b[j])\n\t\t\t\t{\n\t\t\t\t\tif(!c.contains(a[i]))\n\t\t\t\t\t{\n\t\t\t\t\t\tc.add(a[i]);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"First Method : \"+c);\n\t\t//second method\n\t\tList<Integer> arr1=Arrays.asList(a);\n\t\tList<Integer> arr2=Arrays.asList(b);\n\t\tHashSet<Integer> aset=new HashSet<>(arr1);\n\t\taset.retainAll(arr2);\n\t\tSystem.out.println(\"Second Method: \"+aset);\n\t\t\n\t}", "public static boolean areAllFalse(boolean[] array)\n {\n for(boolean b : array)\n if(b)\n return false;\n return true;\n }", "@Override\n public boolean hasNext() {\n return (arreglo[i] != null) & arreglo.length > i ;\n }", "public static ArrayList<Vkladi> falseScetVkladi() {\r\n\t\tArrayList<Vkladi> foundVkladi = new ArrayList<Vkladi>();\r\n\t\tint i = 0;\r\n\t\tfor (Vkladi vkla : vklad) {\r\n\t\t\tif (vkla.getStat() == false) {\r\n\t\t\t\tfoundVkladi.add(vkla);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn foundVkladi;\r\n\t}", "public void testContainsAll() {\n SynchronousQueue q = new SynchronousQueue();\n Integer[] empty = new Integer[0];\n assertTrue(q.containsAll(Arrays.asList(empty)));\n Integer[] ints = new Integer[1]; ints[0] = zero;\n assertFalse(q.containsAll(Arrays.asList(ints)));\n }", "private static void usingLinkedHashSet()\n\t{\n Integer[] numbers = new Integer[] {1,2,3,4,5,1,3,5};\n \n //This array has duplicate elements\n System.out.println( Arrays.toString(numbers) );\n \n //Create set from array elements\n LinkedHashSet<Integer> linkedHashSet = new LinkedHashSet<>( Arrays.asList(numbers) );\n \n //Get back the array without duplicates\n Integer[] numbersWithoutDuplicates = linkedHashSet.toArray(new Integer[] {});\n \n //Verify the array content\n System.out.println( Arrays.toString(numbersWithoutDuplicates) );\n\t}", "int getNotInCount();", "public Set<String> getWordsNotFoundByUser(){\n\n Set<String> validWordsOnBoardCopy = new HashSet<String>();\n validWordsOnBoardCopy.addAll(validWordsOnBoard);\n validWordsOnBoardCopy.removeAll(validWordsFoundByUser);\n\n return validWordsOnBoardCopy;\n }", "public static int[] uniqueElements(int[] arr) {\n boolean[] duplicateMap = new boolean[arr.length];\n int duplicate = 0;\n int index=0;\n int[]result;\n\n for (int x = 0; x < arr.length; x++) {\n for (int j = 0; j < arr.length; j++) {\n if (x == j) {\n break;\n }\n if (arr[x] == arr[j]) {\n duplicateMap[x] = true;\n duplicateMap[j]=false;\n duplicate++;\n }\n }\n }\n result=new int[arr.length-duplicate];\n for(int k=0; k< arr.length;k++){\n if(!duplicateMap[k]){\n result[index]=arr[k];\n index++;\n }\n }\n\n return result;\n }", "public void removeDuplication() {\r\n\t\t//checks if the array contains any elements\r\n\t\tif (!isEmpty()) {\t//contains elements\r\n\t\t\t//loop to execute for every element in the array\r\n\t\t\tfor (int i=0;i<size-1;i++) {\r\n\t\t\t\tObject element=list[i];\t//to store value of element in array\r\n\t\t\t\t//loop to execute for every element after the current element in the list\r\n\t\t\t\tfor (int j=i+1;j<size;j++) {\r\n\t\t\t\t\t//checks if there is are 2 elements in the list with the same value\r\n\t\t\t\t\tif (element==list[j]) {\r\n\t\t\t\t\t\tremove(j);\t//calls function to remove that element from array\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\t//contains 0 elements\r\n\t\t\tSystem.out.println(\"List is empty!\");\r\n\t\t}\r\n\t}", "public boolean isNotIn() {\n return notIn;\n }", "float getNotIn(int index);", "@Test\n public void testRemoveAll_Not_Empty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "public boolean IsDisappearing(){\r\n for (int i = 2; i < 10; i++) {\r\n ArrayList<Block> blocks = blockList.GetBlockList(i);//get all blocks\r\n int[] indexI = new int[blocks.size()], indexJ = new int[blocks.size()];\r\n //put i and j of All blocks with same color on i&j arrays\r\n for (int j = 0; j < indexI.length; j++) {\r\n indexI[j] = blocks.get(j).getI();\r\n indexJ[j] = blocks.get(j).getJ();\r\n }\r\n //check if 2 block beside each other if yes return true\r\n if (CheckBoom(indexI, indexJ))\r\n return true;\r\n else if (blocks.size() == 3) {//else check if there is another block have same color if yes swap on i,j array\r\n int temp = indexI[2];\r\n indexI[2] = indexI[1];\r\n indexI[1] = temp;\r\n temp = indexJ[2];\r\n indexJ[2] = indexJ[1];\r\n indexJ[1] = temp;\r\n if (CheckBoom(indexI, indexJ))//check\r\n return true;\r\n else {//else check from another side\r\n temp = indexI[0];\r\n indexI[0] = indexI[2];\r\n indexI[2] = temp;\r\n temp = indexJ[0];\r\n indexJ[0] = indexJ[2];\r\n indexJ[2] = temp;\r\n if (CheckBoom(indexI, indexJ))//check\r\n return true;\r\n }\r\n }\r\n }\r\n //if not return true so its false\r\n return false;\r\n }", "@Override\n\tpublic boolean notEmpty() {\n\t\treturn count==0&&front==rear?true:false;\n\t}", "boolean checkTie(){\n for (int aGameBoard : gameBoard){\n if (aGameBoard == 0)\n return false;\n }\n return true;\n }", "public final Set<Particle> getNoCollisionElements()\n {\n return noCollisionElements;\n }", "public boolean RepVec(String []a){\n boolean rep=false;\n String aux1=\"\",aux2=\"\";\n for (int i = 0; i < a.length; i++) {\n aux1=a[i];\n for (int j = 0; j < a.length; j++) {\n aux2=a[j];\n if( i!=j ){ \n if(aux1==aux2){\n rep=true;\n return rep;\n } \n } \n }\n }\n return rep;\n \n }", "public boolean containsDuplicate(int[] nums) {\n if (nums == null || nums.length == 0)\n return false;\n Set<Integer> distinctElems = new HashSet<>();\n for (int val : nums) {\n if (!distinctElems.add(val)) {\n return true;\n }\n }\n return false;\n }", "@Test\r\n void not_matches() {\n assertMatcherFalse(asList(\"1\", \"2\"), size(3));\r\n }", "@Override\n public boolean contains(BankAccount anEntry) {\n for(int i=0; i<getSize(); i++){\n if(bankArrays[i].compare(anEntry) == 0){\n return true;\n }\n }\n return false;\n }", "boolean hasArray();", "boolean isNilScansArray(int i);", "public void not() {\n\t\tfinal EWAHIterator i =\n\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\tif (!i.hasNext())\n\t\t\treturn;\n\t\twhile (true) {\n\t\t\tfinal RunningLengthWord rlw1 = i.next();\n\t\t\tif (rlw1.getRunningLength() > 0)\n\t\t\t\trlw1.setRunningBit(!rlw1.getRunningBit());\n\t\t\tfor (int j = 0; j < rlw1.getNumberOfLiteralWords(); ++j) {\n\t\t\t\ti.buffer()[i.dirtyWords() + j] =\n\t\t\t\t\t\t~i.buffer()[i.dirtyWords() + j];\n\t\t\t}\n\t\t\tif (!i.hasNext()) {// must potentially adjust the last dirty word\n\t\t\t\tif (rlw1.getNumberOfLiteralWords() == 0)\n\t\t\t\t\treturn;\n\t\t\t\tint usedbitsinlast = this.sizeinbits % wordinbits;\n\t\t\t\tif (usedbitsinlast == 0)\n\t\t\t\t\treturn;\n\t\t\t\ti.buffer()[i.dirtyWords() + rlw1.getNumberOfLiteralWords() - 1] &=\n\t\t\t\t\t\t((oneMask) >>> (wordinbits - usedbitsinlast));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "@Test(testName = \"duplicateElementsFromOneArrays\")\n\t public static void commonElementsFromOneArray() \n\t {\n\t int[] my_array = {1, 2, 5, 5, 6, 6, 7, 2};\n\t \n\t for (int i = 0; i < my_array.length-1; i++)\n\t {\n\t for (int j = i+1; j < my_array.length; j++)\n\t {\n\t if ((my_array[i] == my_array[j]) && (i != j))\n\t {\n\t System.out.println(\"Duplicate Element : \"+my_array[j]);\n\t }\n\t }\n\t }\n\t }", "public boolean hasArray()\r\n/* 122: */ {\r\n/* 123:151 */ return true;\r\n/* 124: */ }", "public static void printMissing(int[] numbers, int total){\n BitSet bs = new BitSet(total);\n for(int i : numbers){\n bs.set(i -1);\n }\n System.out.println(bs.nextClearBit(0) + 1);\n }", "private static boolean no23(int[] arr) {\n for (int i = 0; i < arr.length; i++) {\n if (arr[i]==2||arr[i]==3){\n return false;\n }\n }\n return true;\n }", "private static boolean tripletWithSumExistsNoExtraSpace(int[] arr, int expectedSum){\n Arrays.sort(arr);\n int size = arr.length;\n for(int i=0; i<size-2; ++i){\n int complement = expectedSum - arr[i];\n int lidx = i+1, ridx = size-1;\n while (lidx < ridx){\n if(arr[lidx]+arr[ridx] == complement)\n return true;\n else if(arr[lidx]+arr[ridx] < complement)\n ++lidx;\n else\n --ridx;\n }\n }\n return false;\n }", "public void missingNumberInArray() {\n\t\tint[] a = { 1, 2, 3, 4, 5, 6, 8 };\n\t\tint sum=0;\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tsum+=a[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\n\t}", "public static void main(String[] args) {\n String[] strings = new String[100];\n for (int i = 0; i < strings.length; i++) {\n strings[i] = randomStrings(2);\n }\n// for (String s : strings) {\n// System.out.println(s);\n// }\n ArrayList<String> appeared = new ArrayList<>();\n for (String s : strings) {\n if (!appeared.contains(s)) {\n appeared.add(s);\n }\n }\n System.out.println(appeared.size());\n\n }" ]
[ "0.642645", "0.6094194", "0.60142916", "0.5894329", "0.5853627", "0.57957375", "0.5776473", "0.5769435", "0.5747249", "0.5731665", "0.5713446", "0.56886256", "0.5672956", "0.5647405", "0.5636374", "0.5627618", "0.5542944", "0.5509604", "0.5503356", "0.54976946", "0.54849744", "0.54595786", "0.54316944", "0.54272985", "0.54193634", "0.54168475", "0.5414168", "0.5401991", "0.5387668", "0.5374604", "0.5354473", "0.5349009", "0.5339244", "0.5331644", "0.5331331", "0.5330894", "0.5330542", "0.5330542", "0.5318499", "0.5310823", "0.530615", "0.530075", "0.52726847", "0.5256207", "0.5247191", "0.5244587", "0.52280027", "0.52173084", "0.5216011", "0.52148837", "0.5207715", "0.5206593", "0.5200812", "0.5185905", "0.5179396", "0.51751745", "0.516942", "0.5163126", "0.51563597", "0.51560855", "0.5151343", "0.51500916", "0.5147602", "0.5144378", "0.5143475", "0.5135812", "0.51328254", "0.5130547", "0.5125482", "0.5123307", "0.51233065", "0.5120363", "0.5118265", "0.5112978", "0.51103365", "0.5105404", "0.50984675", "0.5094577", "0.50924534", "0.50849897", "0.50835", "0.5083123", "0.50765777", "0.50755817", "0.507455", "0.50734264", "0.50729233", "0.5063584", "0.5063477", "0.5056745", "0.5054328", "0.50535065", "0.5041211", "0.5038485", "0.50355273", "0.50337046", "0.5031208", "0.5030373", "0.5023481", "0.5019382", "0.50100136" ]
0.0
-1
Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
boolean hasCelExpression();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.type.Expr getCelExpression();", "String getCertificate();", "com.google.type.ExprOrBuilder getCelExpressionOrBuilder();", "public M csseSubjectNull(){if(this.get(\"csseSubjectNot\")==null)this.put(\"csseSubjectNot\", \"\");this.put(\"csseSubject\", null);return this;}", "public String getCertificationRequest() {\n if (signingRequest == null) return null;\n return signingRequest.getCertificationRequest().getContent();\n }", "@Override\n\tpublic boolean isStringForComputeRelevant(String sExpressionToProof)\n\t\t\tthrows ExceptionZZZ {\n\t\treturn false;\n\t}", "boolean hasAllowSubjectAltNamesPassthrough();", "public final EObject ruleSpecificationCS() throws RecognitionException {\n EObject current = null;\n\n Token lv_exprString_1_0=null;\n EObject lv_ownedExpression_0_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:4763:2: ( ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) | ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) ) ) )\n // InternalMyDsl.g:4764:2: ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) | ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) ) )\n {\n // InternalMyDsl.g:4764:2: ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) | ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) ) )\n int alt60=2;\n int LA60_0 = input.LA(1);\n\n if ( (LA60_0==RULE_INT||(LA60_0>=RULE_SIMPLE_ID && LA60_0<=RULE_SINGLE_QUOTED_STRING)||(LA60_0>=19 && LA60_0<=20)||LA60_0==40||LA60_0==44||(LA60_0>=60 && LA60_0<=61)||(LA60_0>=73 && LA60_0<=83)||(LA60_0>=93 && LA60_0<=94)||(LA60_0>=96 && LA60_0<=100)||LA60_0==103||(LA60_0>=105 && LA60_0<=108)||LA60_0==111||(LA60_0>=116 && LA60_0<=117)) ) {\n alt60=1;\n }\n else if ( (LA60_0==RULE_UNQUOTED_STRING) ) {\n alt60=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 60, 0, input);\n\n throw nvae;\n }\n switch (alt60) {\n case 1 :\n // InternalMyDsl.g:4765:3: ( (lv_ownedExpression_0_0= ruleExpCS ) )\n {\n // InternalMyDsl.g:4765:3: ( (lv_ownedExpression_0_0= ruleExpCS ) )\n // InternalMyDsl.g:4766:4: (lv_ownedExpression_0_0= ruleExpCS )\n {\n // InternalMyDsl.g:4766:4: (lv_ownedExpression_0_0= ruleExpCS )\n // InternalMyDsl.g:4767:5: lv_ownedExpression_0_0= ruleExpCS\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getSpecificationCSAccess().getOwnedExpressionExpCSParserRuleCall_0_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_ownedExpression_0_0=ruleExpCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getSpecificationCSRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"ownedExpression\",\n \t\t\t\t\t\tlv_ownedExpression_0_0,\n \t\t\t\t\t\t\"org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:4785:3: ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) )\n {\n // InternalMyDsl.g:4785:3: ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) )\n // InternalMyDsl.g:4786:4: (lv_exprString_1_0= RULE_UNQUOTED_STRING )\n {\n // InternalMyDsl.g:4786:4: (lv_exprString_1_0= RULE_UNQUOTED_STRING )\n // InternalMyDsl.g:4787:5: lv_exprString_1_0= RULE_UNQUOTED_STRING\n {\n lv_exprString_1_0=(Token)match(input,RULE_UNQUOTED_STRING,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_exprString_1_0, grammarAccess.getSpecificationCSAccess().getExprStringUNQUOTED_STRINGTerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getSpecificationCSRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"exprString\",\n \t\t\t\t\t\tlv_exprString_1_0,\n \t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.UNQUOTED_STRING\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public CertificateIssuer(String name) {\r\n\tsuper();\r\n\t\tthis.name = name;\r\n\t\tthis.hascert = false;\r\n\t}", "public String getCertification() {\n return certification;\n }", "boolean getAllowSubjectAltNamesPassthrough();", "public CertAuthHost requireCertVerification(Predicate<Communique> filter)\n\t\t{\n\t\t\tthis.certFilter = this.certFilter.and(filter);\n\t\t\treturn this;\n\t\t}", "ExpressionValidationOutcome expressionIsValid(String expression, ParseType parseType);", "java.lang.String getIssuer();", "public String getCertification() {\r\n\t\treturn certification;\r\n\t}", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "@Override\n public void validaEmailInteractor(CharSequence charSequence) {\n verificaEmail(charToString(charSequence));\n }", "public ValidationResult validate(CertPath certPath);", "public ExpressionGuard(final String expression)\n throws InvalidExpressionException, IllegalArgumentException {\n if (expression == null) {\n throw new IllegalArgumentException(\"`expression' must not be null.\");\n }\n try {\n this.compiledExpression = MVEL.compileExpression(expression);\n this.expression = expression;\n } catch (final CompileException exc) {\n throw new InvalidExpressionException(exc);\n }\n }", "public M csrtSubjectNull(){if(this.get(\"csrtSubjectNot\")==null)this.put(\"csrtSubjectNot\", \"\");this.put(\"csrtSubject\", null);return this;}", "public String getVerificationEmailSubject() {\n return getValue(\n \"eurekaclinical.userservice.email.verify.subject\");\n }", "public String getSubject()\n {\n final I18nHelper i18n = ComponentAccessor.getJiraAuthenticationContext().getI18nHelper();\n final Map<String, Object> contextParams = JiraMailQueueUtils.getContextParamsBody(templateParameters);\n contextParams.put(\"i18n\", i18n);\n try\n {\n return renderEmailSubject(contextParams);\n }\n catch (VelocityException e)\n {\n log.error(\"Could not determine e-mail subject\", e);\n throw new RuntimeException(e);\n }\n }", "public interface CertificationRequestWrapper {\n\n /**\n * Gets the subject name of this certificate.\n * @return subject name\n */\n X500Principal getSubject();\n \n /**\n * Gets the content of this certification request in a suitable string \n * encoding (typically PEM).\n * @return certification request content\n * @throws IOException\n */\n String getContent() throws IOException;\n \n}", "public String getCertificateEmail(X509Certificate certificate) throws CertException;", "public Optional<String> caCertFile() {\n return Codegen.stringProp(\"caCertFile\").config(config).get();\n }", "String getExpression();", "String getExpression();", "public String getSubject() {\n UnstructuredField field = obtainField(FieldName.SUBJECT);\n if (field == null)\n return null;\n\n return field.getValue();\n }", "public java.lang.String getCA() {\n return CA;\n }", "public void setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name):void\");\n }", "public String getCertDescription() {\n return certDescription;\n }", "public nl.webservices.www.soap.InsolvencyLegalSubject getLegal_subject() {\n return legal_subject;\n }", "public String validate(KeyStore keyStore, String keyAlias) throws CertificateException\n {\n String result = null;\n \n if (keyAlias != null)\n {\n try\n {\n validate(keyStore, keyStore.getCertificate(keyAlias));\n }\n catch (KeyStoreException ex)\n {\n Log.debug(ex);\n throw new CertificateException(\"Unable to validate certificate for alias [\" +\n keyAlias + \"]: \" + ex.getMessage());\n }\n result = keyAlias; \n }\n \n return result;\n }", "X500Principal getSubject();", "Rule FieldReq() {\n // No effect on the value stack\n return FirstOf(\"required \", \"optional \");\n }", "public final void constraint() throws RecognitionException {\n CommonTree IDENTIFIER7 = null;\n Expression e = null;\n\n List<EAnnotation> anns = null;\n\n\n try {\n // parser/flatzinc/FlatzincFullExtWalker.g:722:2: ( ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations ) )\n // parser/flatzinc/FlatzincFullExtWalker.g:723:2: ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations )\n {\n\n // Solver aSolver, String id, List<Expression> exps, List<EAnnotation> annotations\n ArrayList<Expression> exps = new ArrayList();\n\n\n match(input, CONSTRAINT, FOLLOW_CONSTRAINT_in_constraint2144);\n\n match(input, Token.DOWN, null);\n IDENTIFIER7 = (CommonTree) match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_constraint2146);\n\n // parser/flatzinc/FlatzincFullExtWalker.g:727:30: (e= expr )+\n int cnt48 = 0;\n loop48:\n do {\n int alt48 = 2;\n switch (input.LA(1)) {\n case EXPR:\n case FALSE:\n case IDENTIFIER:\n case INT_CONST:\n case LB:\n case STRING:\n case TRUE: {\n alt48 = 1;\n }\n break;\n\n }\n\n switch (alt48) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:727:31: e= expr\n {\n pushFollow(FOLLOW_expr_in_constraint2151);\n e = expr();\n\n state._fsp--;\n\n\n exps.add(e);\n\n }\n break;\n\n default:\n if (cnt48 >= 1) break loop48;\n EarlyExitException eee =\n new EarlyExitException(48, input);\n throw eee;\n }\n cnt48++;\n } while (true);\n\n\n pushFollow(FOLLOW_annotations_in_constraint2158);\n anns = annotations();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n\n String id = (IDENTIFIER7 != null ? IDENTIFIER7.getText() : null);\n FConstraint.make_constraint(mSolver, map, id, exps, anns);\n\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return;\n }", "public CertificateIssuer(String name, File fileaddress) throws CryptoException {\r\n\t\tsuper(fileaddress);\r\n\t\tlog.debug(PropertyFileConfiguration.StarLine+\"Issuer for \"+name+\" has been created from : \" + fileaddress.getAbsolutePath());\r\n\t\tlog.debug(\"Root cert subjectDN : \" +this.getSubjectDN()+PropertyFileConfiguration.StarLine);\r\n\t\tthis.name = name;\r\n\t\tthis.hascert = true;\r\n\t}", "@Override\n\tpublic boolean isValid(String theCode, ConstraintValidatorContext arg1) {\n\t\tif(theCode!= null) {\n\t\t\treturn theCode.startsWith(coursePrefix);\n\t\t}\n\t\treturn false;\n\t}", "public ValidationResult validate(X509Certificate[] certChain);", "java.lang.String getLicensesCertificationsRaw();", "public String getEpaCertNo() {\n return epaCertNo;\n }", "RequireExprsRule createRequireExprsRule();", "public java.util.Collection<java.util.List<?>> getSubjectAlternativeNames() throws java.security.cert.CertificateParsingException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSubjectAlternativeNames():java.util.Collection<java.util.List<?>>, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSubjectAlternativeNames():java.util.Collection<java.util.List<?>>\");\n }", "private Expression(build.buf.validate.priv.Constraint constraint) {\n this(constraint.getId(), constraint.getMessage(), constraint.getExpression());\n }", "public void setSubjectDN(javax.security.auth.x500.X500Principal r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(javax.security.auth.x500.X500Principal):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(javax.security.auth.x500.X500Principal):void\");\n }", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "@Test\n\tpublic void serviceQualificationEE() throws Exception {\n\t\tTSLParser parser = new TSLParser(new FileInputStream(new File(\"src/test/resources/tsls/0A191C3E18CAB7B783E690D3E4431C354A068FF0.xml\")));\n\t\tTSLParserResult model = parser.call();\n\n\t\tList<TSLServiceProvider> serviceProviders = model.getServiceProviders();\n\t\tassertEquals(2, serviceProviders.size());\n\n\t\tTSLService service = getESTEIDSK2007(serviceProviders);\n\t\tassertNotNull(service);\n\n\t\tList<TSLServiceExtension> extensions = service.getExtensions();\n\t\tassertEquals(1, extensions.size());\n\t\tTSLServiceExtension extension = extensions.get(0);\n\n\t\tList<TSLConditionsForQualifiers> conditionsForQualifiers = extension.getConditionsForQualifiers();\n\t\tassertEquals(1, conditionsForQualifiers.size());\n\n\t\tTSLConditionsForQualifiers qcStatement = getQualificationQCStatement(conditionsForQualifiers);\n\t\tassertNull(qcStatement);\n\n\t\t// ***************************** NEW VERSION OF TL\n\n\t\tCertificateToken certificate = DSSUtils.loadCertificateFromBase64EncodedString(\n\t\t\t\t\"MIID3DCCAsSgAwIBAgIER/idhzANBgkqhkiG9w0BAQUFADBbMQswCQYDVQQGEwJFRTEiMCAGA1UEChMZQVMgU2VydGlmaXRzZWVyaW1pc2tlc2t1czEPMA0GA1UECxMGRVNURUlEMRcwFQYDVQQDEw5FU1RFSUQtU0sgMjAwNzAeFw0wODA0MDYwOTUzMDlaFw0xMjAzMDUyMjAwMDBaMIGWMQswCQYDVQQGEwJFRTEPMA0GA1UEChMGRVNURUlEMRowGAYDVQQLExFkaWdpdGFsIHNpZ25hdHVyZTEiMCAGA1UEAxMZU0lOSVZFRSxWRUlLTywzNjcwNjAyMDIxMDEQMA4GA1UEBBMHU0lOSVZFRTEOMAwGA1UEKhMFVkVJS08xFDASBgNVBAUTCzM2NzA2MDIwMjEwMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCGRN42R9e6VEHMCyvacuubjtm1+5Kk92WgIgtWA8hY8DW2iNvQJ3jOF5XlVIyIDTwl2JVKxWKhXX+8+yNFPpqAK43IINcmMfznw/KcR7jACGNuTrivA9HrvRiqDzTg5E1rktjho6OkDkdV3dgOLB2wyhVm2anNpICfrUq8c09HPwIDMMP5o4HvMIHsMA4GA1UdDwEB/wQEAwIGQDA8BgNVHR8ENTAzMDGgL6AthitodHRwOi8vd3d3LnNrLmVlL2NybHMvZXN0ZWlkL2VzdGVpZDIwMDcuY3JsMFEGA1UdIARKMEgwRgYLKwYBBAHOHwEBAQEwNzASBggrBgEFBQcCAjAGGgRub25lMCEGCCsGAQUFBwIBFhVodHRwOi8vd3d3LnNrLmVlL2Nwcy8wHwYDVR0jBBgwFoAUSAbevoyHV5WAeGP6nCMrK6A6GHUwHQYDVR0OBBYEFJAJUyDrH3rdxTStU+LDa6aHdE8dMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQEFBQADggEBAA5qjfeuTdOoEtatiA9hpjDHzyqN1PROcaPrABXGqpLxcHbLVr7xmovILAjxS9fJAw28u9ZE3asRNa9xgQNTeX23mMlojJAYVbYCeIeJ6jtsRiCo34wgvO3CtVfO3+C1T8Du5XLCHa6SoT8SpCApW+Crwe+6eCZDmv2NKTjhn1wCCNO2e8HuSt+pTUNBTUB+rkvF4KO9VnuzRzT7zN7AUdW4OFF3bI+9+VmW3t9vq1zDOxNTdBkCM3zm5TRa8ZtyAPL48bW19JAcYzQLjPGORwoIRNSXdVTqX+cDiw2wbmb2IhPdxRqN9uPwU1x/ltZZ3W5GzJ1t8JeQN7PuGM0OHqE=\");\n\n\t\tparser = new TSLParser(new FileInputStream(new File(\"src/test/resources/tsls/0A191C3E18CAB7B783E690D3E4431C354A068FF0-2.xml\")));\n\t\tmodel = parser.call();\n\n\t\tserviceProviders = model.getServiceProviders();\n\t\tassertEquals(2, serviceProviders.size());\n\n\t\tservice = getESTEIDSK2007(serviceProviders);\n\t\tassertNotNull(service);\n\n\t\textensions = service.getExtensions();\n\t\tassertEquals(1, extensions.size());\n\t\textension = extensions.get(0);\n\n\t\tconditionsForQualifiers = extension.getConditionsForQualifiers();\n\t\tassertEquals(2, conditionsForQualifiers.size());\n\n\t\tqcStatement = getQualificationQCStatement(conditionsForQualifiers);\n\t\tassertNotNull(qcStatement);\n\n\t\tCondition condition = qcStatement.getCondition();\n\t\tassertTrue(condition.check(certificate));\n\t}", "public Equation()\r\n\t{\r\n\t\texpression = \"\";\r\n\t}", "Rule SingleQuotedLiteral() {\n return Sequence(\n \"'\",\n ZeroOrMore(NoneOf(\"'\")),\n \"'\");\n }", "Expression() { }", "java.lang.String getDelegateSuggestedSignerEmail();", "public String getActivationEmailSubject() {\n return getValue(\n \"eurekaclinical.userservice.email.activation.subject\");\n }", "StringExpression createStringExpression();", "public Expression getExpression() {\n return optionalConditionExpression; }", "public boolean acceptSuppEmail (java.lang.String emp_cde, \n java.lang.String emp_nme, \n java.lang.String dpt_cde, \n java.lang.String emp_type, \n java.lang.String emp_email) throws com.mcip.orb.CoException {\n return this._delegate.acceptSuppEmail(emp_cde, emp_nme, dpt_cde, emp_type, \n emp_email);\n }", "public Rule idExprReq()\n \t{\n \t\treturn firstOf(field(), call());\n \t}", "public String getSubject() {\n/* 286 */ return getCOSObject().getString(COSName.SUBJ);\n/* */ }", "org.hl7.fhir.ResourceReference getSubject();", "private Expression(build.buf.validate.Constraint constraint) {\n this(constraint.getId(), constraint.getMessage(), constraint.getExpression());\n }", "public String getGuardExpression()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(this.hasAttribute(guardExpressionString))\n\t\t\t\treturn this.getAttribute(guardExpressionString).getValue();\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn \"\";\n\t}", "public final EObject ruleConstraintCS() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n Token otherlv_3=null;\n Token otherlv_4=null;\n AntlrDatatypeRuleToken lv_name_0_0 = null;\n\n EObject lv_ownedMessageSpecification_2_0 = null;\n\n EObject lv_ownedSpecification_5_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:3604:2: ( ( ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )? )? otherlv_4= ':' ( (lv_ownedSpecification_5_0= ruleSpecificationCS ) ) ) )\n // InternalMyDsl.g:3605:2: ( ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )? )? otherlv_4= ':' ( (lv_ownedSpecification_5_0= ruleSpecificationCS ) ) )\n {\n // InternalMyDsl.g:3605:2: ( ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )? )? otherlv_4= ':' ( (lv_ownedSpecification_5_0= ruleSpecificationCS ) ) )\n // InternalMyDsl.g:3606:3: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )? )? otherlv_4= ':' ( (lv_ownedSpecification_5_0= ruleSpecificationCS ) )\n {\n // InternalMyDsl.g:3606:3: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )? )?\n int alt36=2;\n int LA36_0 = input.LA(1);\n\n if ( ((LA36_0>=RULE_SIMPLE_ID && LA36_0<=RULE_ESCAPED_ID)||LA36_0==19||(LA36_0>=60 && LA36_0<=61)) ) {\n alt36=1;\n }\n switch (alt36) {\n case 1 :\n // InternalMyDsl.g:3607:4: ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )?\n {\n // InternalMyDsl.g:3607:4: ( (lv_name_0_0= ruleUnrestrictedName ) )\n // InternalMyDsl.g:3608:5: (lv_name_0_0= ruleUnrestrictedName )\n {\n // InternalMyDsl.g:3608:5: (lv_name_0_0= ruleUnrestrictedName )\n // InternalMyDsl.g:3609:6: lv_name_0_0= ruleUnrestrictedName\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getConstraintCSAccess().getNameUnrestrictedNameParserRuleCall_0_0_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_43);\n lv_name_0_0=ruleUnrestrictedName();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getConstraintCSRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"name\",\n \t\t\t\t\t\t\tlv_name_0_0,\n \t\t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.UnrestrictedName\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n // InternalMyDsl.g:3626:4: (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )?\n int alt35=2;\n int LA35_0 = input.LA(1);\n\n if ( (LA35_0==20) ) {\n alt35=1;\n }\n switch (alt35) {\n case 1 :\n // InternalMyDsl.g:3627:5: otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')'\n {\n otherlv_1=(Token)match(input,20,FOLLOW_44); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(otherlv_1, grammarAccess.getConstraintCSAccess().getLeftParenthesisKeyword_0_1_0());\n \t\t\t\t\n }\n // InternalMyDsl.g:3631:5: ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) )\n // InternalMyDsl.g:3632:6: (lv_ownedMessageSpecification_2_0= ruleSpecificationCS )\n {\n // InternalMyDsl.g:3632:6: (lv_ownedMessageSpecification_2_0= ruleSpecificationCS )\n // InternalMyDsl.g:3633:7: lv_ownedMessageSpecification_2_0= ruleSpecificationCS\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getConstraintCSAccess().getOwnedMessageSpecificationSpecificationCSParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_ownedMessageSpecification_2_0=ruleSpecificationCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getConstraintCSRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"ownedMessageSpecification\",\n \t\t\t\t\t\t\t\tlv_ownedMessageSpecification_2_0,\n \t\t\t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.SpecificationCS\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,21,FOLLOW_28); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getConstraintCSAccess().getRightParenthesisKeyword_0_1_2());\n \t\t\t\t\n }\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_4=(Token)match(input,42,FOLLOW_44); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getConstraintCSAccess().getColonKeyword_1());\n \t\t\n }\n // InternalMyDsl.g:3660:3: ( (lv_ownedSpecification_5_0= ruleSpecificationCS ) )\n // InternalMyDsl.g:3661:4: (lv_ownedSpecification_5_0= ruleSpecificationCS )\n {\n // InternalMyDsl.g:3661:4: (lv_ownedSpecification_5_0= ruleSpecificationCS )\n // InternalMyDsl.g:3662:5: lv_ownedSpecification_5_0= ruleSpecificationCS\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getConstraintCSAccess().getOwnedSpecificationSpecificationCSParserRuleCall_2_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_ownedSpecification_5_0=ruleSpecificationCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getConstraintCSRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"ownedSpecification\",\n \t\t\t\t\t\tlv_ownedSpecification_5_0,\n \t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.SpecificationCS\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "@Override\n public String getDataNodeCertificate(\n DatanodeDetailsProto dnDetails,\n String certSignReq) throws IOException {\n LOGGER.info(\"Processing CSR for dn {}, UUID: {}\", dnDetails.getHostName(),\n dnDetails.getUuid());\n Objects.requireNonNull(dnDetails);\n checkIfCertSignRequestAllowed(\n storageContainerManager.getRootCARotationManager(), false, config,\n \"getDataNodeCertificate\");\n return getEncodedCertToString(certSignReq, NodeType.DATANODE);\n }", "public void setEpaCertNo(String aEpaCertNo) {\n epaCertNo = aEpaCertNo;\n }", "@JsonProperty(\"subject\")\n public WbExpression<? extends EntityIdValue> getSubject() {\n return subject;\n }", "public void setCertDescription(String aCertDescription) {\n certDescription = aCertDescription;\n }", "public void validate(KeyStore keyStore, Certificate cert) throws CertificateException\n {\n if (cert != null && cert instanceof X509Certificate)\n {\n ((X509Certificate)cert).checkValidity();\n \n String certAlias = \"[none]\";\n try\n {\n certAlias = keyStore.getCertificateAlias((X509Certificate)cert);\n Certificate[] certChain = keyStore.getCertificateChain(certAlias);\n \n ArrayList<X509Certificate> certList = new ArrayList<X509Certificate>();\n for (Certificate item : certChain)\n {\n if (!(item instanceof X509Certificate))\n {\n throw new CertificateException(\"Invalid certificate type in chain\");\n }\n certList.add((X509Certificate)item);\n }\n \n if (certList.isEmpty())\n {\n throw new CertificateException(\"Invalid certificate chain\");\n \n }\n \n X509CertSelector certSelect = new X509CertSelector();\n certSelect.setCertificate(certList.get(0));\n \n // Configure certification path builder parameters\n PKIXBuilderParameters pbParams = new PKIXBuilderParameters(_trustStore, certSelect);\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(certList)));\n \n // Set static Certificate Revocation List\n if (_crls != null && !_crls.isEmpty())\n {\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(_crls)));\n }\n \n // Enable revocation checking\n pbParams.setRevocationEnabled(true);\n \n // Set maximum certification path length\n pbParams.setMaxPathLength(_maxCertPathLength);\n \n // Build certification path\n CertPathBuilderResult buildResult = CertPathBuilder.getInstance(\"PKIX\").build(pbParams); \n \n // Validate certification path\n CertPathValidator.getInstance(\"PKIX\").validate(buildResult.getCertPath(),pbParams);\n }\n catch (Exception ex)\n {\n Log.debug(ex);\n throw new CertificateException(\"Unable to validate certificate for alias [\" +\n certAlias + \"]: \" + ex.getMessage());\n }\n } \n }", "@ApiModelProperty(value = \"The content of the new certificate to be added to the Auto-TLS truststore. Specify either this or a NewCertLocation. <br> The certificate, if specified, needs to be a standard PEM-encoded key as a single string, with all line breaks replaced with the line-feed control character '\\\\n'. <br> A value will typically look like the following string: <br> -----BEGIN CERTIFICATE-----\\\\n[base-64 encoded key]\\\\n-----END CERTIFICATE----- <br>\")\n\n\n public String getNewCertContent() {\n return newCertContent;\n }", "java.lang.String getSubject();", "java.lang.String getSubject();", "java.lang.String getSubject();", "public interface X509CertChainValidator\n{\n\t/**\n\t * Performs validation of a provided certificate path.\n\t * @param certPath to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(CertPath certPath);\n\t\n\t/**\n\t * Performs validation of a provided certificate chain.\n\t * @param certChain to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(X509Certificate[] certChain);\n\t\n\t/**\n\t * Returns a list of trusted issuers of certificates. \n\t * @return array containing trusted issuers' certificates\n\t */\n\tpublic X509Certificate[] getTrustedIssuers();\n\t\n\t/**\n\t * Registers a listener which can react to errors found during certificate \n\t * validation. It is useful in two cases: (rarely) if you want to change \n\t * the default logic of the validator and if you will use the validator indirectly\n\t * (e.g. to validate SSL socket connections) and want to get the original \n\t * {@link ValidationError}, not the exception. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addValidationListener(ValidationErrorListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered validation listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeValidationListener(ValidationErrorListener listener);\n\t\n\t\n\t/**\n\t * Registers a listener which can react to errors found during refreshing \n\t * of the trust material: trusted CAs or CRLs. This method is useful only if\n\t * the implementation supports updating of CAs or CRLs, otherwise the listener\n\t * will not be invoked. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addUpdateListener(StoreUpdateListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered CA or CRL update listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeUpdateListener(StoreUpdateListener listener);\n}", "@Test\n void lambda_condition_with_missing_right_operand() throws Exception {\n runner.run(\n \"TAKE 10 from numbers with val greater than AS var\",\n \"{numbers: [{val: 12}]}\",\n r -> r.containsValidationMessage(\"missing right operand in condition\"));\n }", "public String issuer() {\n return this.innerProperties() == null ? null : this.innerProperties().issuer();\n }", "public String getCer() {\n return cer;\n }", "public ValidationObject checkWithResponse(Certificate cert, Collection unresolvedCritExts) throws CertPathValidatorException \n {\n unresolvedCritExts.clear();\n\n X509Certificate currCert = (X509Certificate) cert;\n \n //Si es la raíz, mPrevPubKey = su key;\n if (((X509Certificate)cert).getBasicConstraints()>-1) {\n //this certificate is a CA, check whether it's a trust anchor (self-signed root) or it's an intermediate CA\n if ( ((X509Certificate)cert).getIssuerDN().equals( ((X509Certificate)cert).getSubjectDN() ) )\n mPrevPubKey=cert.getPublicKey();\n }\n \n if(mPrevPubKey==null){\n \tmPrevPubKey = mInitPubKey;\n mCRLSignFlag = true; \n }\n \n verifyRevocationStatus(currCert, mPrevPubKey, mCRLSignFlag);\n \n // Make new public key if parameters are missing\n PublicKey cKey = currCert.getPublicKey();\n if (cKey instanceof DSAPublicKey &&\n ((DSAPublicKey)cKey).getParams() == null) {\n // cKey needs to inherit DSA parameters from prev key\n cKey = makeInheritedParamsKey(cKey, mPrevPubKey);\n }\n \n mPrevPubKey = cKey;\n mCRLSignFlag = CertUtils.certCanSignCrl(currCert);\n\n return new CRLValidationInfo ( false, mApprovedCRLs );\n }", "public void setSubject(String subj) {\n/* 296 */ getCOSObject().setString(COSName.SUBJ, subj);\n/* */ }", "@ZAttr(id=1070)\n public String getDomainMandatoryMailSignatureText() {\n return getAttr(Provisioning.A_zimbraDomainMandatoryMailSignatureText, null);\n }", "RegExConstraint createRegExConstraint();", "public Builder setLicensesCertificationsRaw(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n licensesCertificationsRaw_ = value;\n onChanged();\n return this;\n }", "public interface X509Credential\n{\n\t/**\n\t * Returns the credential in a keystore.\n\t * @return the KeyStore\n\t */\n\tpublic KeyStore getKeyStore();\n\t\n\t/**\n\t * Returns a KeyManager which accompanies the KeyStore. \n\t * @return the KeyManager\n\t */\n\tpublic X509ExtendedKeyManager getKeyManager();\n\t\n\t/**\n\t * Returns a password which can be used to obtain PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method, \n\t * with the alias returned by the {@link #getKeyAlias()} method.\n\t * @return key password\n\t */\n\tpublic char[] getKeyPassword();\n\t\n\t/**\n\t * Returns an alias which can be used to obtain the PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method.\n\t * @return key alias\n\t */\n\tpublic String getKeyAlias();\n\t\n\t/**\n\t * Helper method to get private key from the underlying keystore\n\t * @return private key\n\t */\n\tpublic PrivateKey getKey();\n\n\t/**\n\t * Helper method to get certificate from the underlying keystore\n\t * @return certificate\n\t */\n\tpublic X509Certificate getCertificate();\n\n\t/**\n \t * Helper method to get certificate chain from the underlying keystore\n\t * @return certificate chain\n\t */\n\tpublic X509Certificate[] getCertificateChain();\n\t\n\t/**\n\t * @return RFC 2253 distinguished name of the certificate subject\n\t * @since 1.1.0\n\t */\n\tpublic String getSubjectName();\n}", "org.apache.xmlbeans.XmlString xgetDelegateSuggestedSignerEmail();", "public String call_google_certificate() throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n // From https://www.washington.edu/itconnect/security/ca/load-der.crt\n InputStream caInput = getResources().openRawResource(R.raw.loadder);\n Certificate ca;\n try {\n ca = cf.generateCertificate(caInput);\n System.out.println(\"ca=\" + ((X509Certificate) ca).getSubjectDN());\n } finally {\n caInput.close();\n }\n // Create a KeyStore containing our trusted CAs\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n keyStore.setCertificateEntry(\"ca\", ca);\n // Create a TrustManager that trusts the CAs in our KeyStore\n String tmfAlgorithm = TrustManagerFactory.getDefaultAlgorithm();\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(tmfAlgorithm);\n tmf.init(keyStore);\n // Create an SSLContext that uses our TrustManager\n SSLContext context = SSLContext.getInstance(\"TLS\");\n context.init(null, tmf.getTrustManagers(), null);\n // Tell the URLConnection to use a SocketFactory from our SSLContext\n URL url = new URL(\"https://certs.cac.washington.edu/CAtest/\");\n HttpsURLConnection urlConnection =\n (HttpsURLConnection) url.openConnection();\n urlConnection.setSSLSocketFactory(context.getSocketFactory());\n InputStream in = urlConnection.getInputStream();\n return getStringFromInputStream(in);\n }", "Expression getCond();", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public Expression(String expr) {\n this.expr = expr;\n scalars = null;\n arrays = null;\n openingBracketIndex = null;\n closingBracketIndex = null;\n }", "Optional<String> email();", "public String getExpression() {\n return expression;\n }", "public String getExpression() {\n return expression;\n }", "public String getExpression() {\n return expression;\n }", "public Constraint(String cnline)\n {\n// PrintStream stdout = System.out;\n// stdout.printf(\"Constraint: line: %s\\n\", cnline);\n\tString[] cnArray = cnline.split(\" \");\n\tif (cnArray.length != 2) {\n\t debug.error(\"Invalid constraint: '%s'\", cnline);\n\t}\n\n\tthis.name = cnArray[0].toLowerCase();;\n\tthis.mf = Scoring.mf2int(cnArray[1].charAt(0));\n }", "public String getSubject() {\n return this.subject;\n }", "public String getSubject() {\n return this.subject;\n }", "private Double inspectExpression(String ex) {\n Double cyclomatic = 0.0;\n if (ex != null) {\n char[] chars = ex.toCharArray();\n for (int i = 0; i < chars.length - 1; i++) {\n char next = chars[i];\n if ((next == '&' || next == '|') && (next == chars[i + 1])) {\n cyclomatic++;\n }\n }\n }\n return cyclomatic;\n }", "@Action(value = \"saveCertificate\", results = { @Result(name = INPUT, location = JSP_FIELDS) })\n @Validations(\n customValidators = { @CustomValidator(type = \"hibernate\", fieldName = \"certificate.issuer\", parameters = {\n @ValidationParameter(name = \"resourceKeyBase\", value = \"profile.organization\"),\n @ValidationParameter(name = \"excludes\", value = \"externalId\") }) },\n requiredFields = { @RequiredFieldValidator(fieldName = \"certificate.certificateType\",\n key = \"error.credentials.certificate.type.required\") },\n fieldExpressions = { @FieldExpressionValidator(\n fieldName = \"certificateFile.data\",\n expression = \"certificate.id != null || (certificateFile != null && certificateFile.data != null)\",\n key = \"error.credentials.certificate.file.required\"),\n @FieldExpressionValidator(fieldName = \"nihOerIssued\",\n expression = \"nihOerIssued || issuingOrganizationExternalId != null || certificate.issuer != null\",\n key = \"error.credentials.organization.required\"),\n @FieldExpressionValidator(\n fieldName = \"certificate.issuer.postalAddress.stateOrProvince\",\n expression = \"certificate.issuer != null\"\n + \" && certificate.issuer.postalAddress.stateOrProvinceValid\",\n key = \"stateOrProvince.required\")\n })\n public String saveCertificate() throws IOException {\n setFileDescription();\n setCertificateIssuer();\n boolean valid = validateFields();\n if (valid) {\n try {\n doSave();\n } catch (CredentialAlreadyExistsException ae) {\n handleCredentialAlreadyExists();\n valid = false;\n } catch (ValidationException e) {\n return handleValidationException(e);\n }\n }\n\n return valid ? closeDialog(getDialogId()) : INPUT;\n }", "public String getEmailAlt() {\n\t\t\treturn emailAlt;\n\t\t}", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public String getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject() {\n\t\treturn txtSubject.getText();\n\t}" ]
[ "0.5052196", "0.47985694", "0.47958878", "0.4716534", "0.466066", "0.46300215", "0.46271056", "0.46063027", "0.4583486", "0.4569593", "0.45532435", "0.4544505", "0.4522406", "0.45017546", "0.44715625", "0.44701862", "0.4441761", "0.44367138", "0.4434463", "0.4416392", "0.43963617", "0.437979", "0.4374971", "0.43666786", "0.43592867", "0.434751", "0.434751", "0.43311056", "0.4315824", "0.4314916", "0.43067038", "0.42980012", "0.4280305", "0.42726755", "0.4266831", "0.4262196", "0.42507425", "0.42291427", "0.4215884", "0.419461", "0.41847566", "0.41815224", "0.4180355", "0.4169595", "0.41604102", "0.41552353", "0.4145232", "0.41395333", "0.41314626", "0.41291416", "0.41155723", "0.41131714", "0.41012883", "0.40952516", "0.40934053", "0.4087566", "0.40848422", "0.40757203", "0.40707356", "0.40667096", "0.4066214", "0.4060816", "0.40570113", "0.4047275", "0.40417328", "0.40334013", "0.40329608", "0.40277863", "0.40277863", "0.40277863", "0.40266445", "0.4026443", "0.40257758", "0.40228528", "0.40223855", "0.40101954", "0.40045965", "0.40017763", "0.39959282", "0.39958248", "0.3990667", "0.39811337", "0.39810637", "0.39747354", "0.39747354", "0.39701444", "0.39628893", "0.39578968", "0.39578968", "0.39578968", "0.3952806", "0.39516672", "0.39516672", "0.39504337", "0.39437118", "0.3934059", "0.39337653", "0.39318773", "0.39318773", "0.39301327" ]
0.40095115
76
Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
com.google.type.Expr getCelExpression();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCertificate();", "com.google.type.ExprOrBuilder getCelExpressionOrBuilder();", "public M csseSubjectNull(){if(this.get(\"csseSubjectNot\")==null)this.put(\"csseSubjectNot\", \"\");this.put(\"csseSubject\", null);return this;}", "public String getCertificationRequest() {\n if (signingRequest == null) return null;\n return signingRequest.getCertificationRequest().getContent();\n }", "boolean hasAllowSubjectAltNamesPassthrough();", "@Override\n\tpublic boolean isStringForComputeRelevant(String sExpressionToProof)\n\t\t\tthrows ExceptionZZZ {\n\t\treturn false;\n\t}", "public final EObject ruleSpecificationCS() throws RecognitionException {\n EObject current = null;\n\n Token lv_exprString_1_0=null;\n EObject lv_ownedExpression_0_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:4763:2: ( ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) | ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) ) ) )\n // InternalMyDsl.g:4764:2: ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) | ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) ) )\n {\n // InternalMyDsl.g:4764:2: ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) | ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) ) )\n int alt60=2;\n int LA60_0 = input.LA(1);\n\n if ( (LA60_0==RULE_INT||(LA60_0>=RULE_SIMPLE_ID && LA60_0<=RULE_SINGLE_QUOTED_STRING)||(LA60_0>=19 && LA60_0<=20)||LA60_0==40||LA60_0==44||(LA60_0>=60 && LA60_0<=61)||(LA60_0>=73 && LA60_0<=83)||(LA60_0>=93 && LA60_0<=94)||(LA60_0>=96 && LA60_0<=100)||LA60_0==103||(LA60_0>=105 && LA60_0<=108)||LA60_0==111||(LA60_0>=116 && LA60_0<=117)) ) {\n alt60=1;\n }\n else if ( (LA60_0==RULE_UNQUOTED_STRING) ) {\n alt60=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 60, 0, input);\n\n throw nvae;\n }\n switch (alt60) {\n case 1 :\n // InternalMyDsl.g:4765:3: ( (lv_ownedExpression_0_0= ruleExpCS ) )\n {\n // InternalMyDsl.g:4765:3: ( (lv_ownedExpression_0_0= ruleExpCS ) )\n // InternalMyDsl.g:4766:4: (lv_ownedExpression_0_0= ruleExpCS )\n {\n // InternalMyDsl.g:4766:4: (lv_ownedExpression_0_0= ruleExpCS )\n // InternalMyDsl.g:4767:5: lv_ownedExpression_0_0= ruleExpCS\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getSpecificationCSAccess().getOwnedExpressionExpCSParserRuleCall_0_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_ownedExpression_0_0=ruleExpCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getSpecificationCSRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"ownedExpression\",\n \t\t\t\t\t\tlv_ownedExpression_0_0,\n \t\t\t\t\t\t\"org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:4785:3: ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) )\n {\n // InternalMyDsl.g:4785:3: ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) )\n // InternalMyDsl.g:4786:4: (lv_exprString_1_0= RULE_UNQUOTED_STRING )\n {\n // InternalMyDsl.g:4786:4: (lv_exprString_1_0= RULE_UNQUOTED_STRING )\n // InternalMyDsl.g:4787:5: lv_exprString_1_0= RULE_UNQUOTED_STRING\n {\n lv_exprString_1_0=(Token)match(input,RULE_UNQUOTED_STRING,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_exprString_1_0, grammarAccess.getSpecificationCSAccess().getExprStringUNQUOTED_STRINGTerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getSpecificationCSRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"exprString\",\n \t\t\t\t\t\tlv_exprString_1_0,\n \t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.UNQUOTED_STRING\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public CertificateIssuer(String name) {\r\n\tsuper();\r\n\t\tthis.name = name;\r\n\t\tthis.hascert = false;\r\n\t}", "public String getCertification() {\n return certification;\n }", "boolean getAllowSubjectAltNamesPassthrough();", "public CertAuthHost requireCertVerification(Predicate<Communique> filter)\n\t\t{\n\t\t\tthis.certFilter = this.certFilter.and(filter);\n\t\t\treturn this;\n\t\t}", "ExpressionValidationOutcome expressionIsValid(String expression, ParseType parseType);", "java.lang.String getIssuer();", "public String getCertification() {\r\n\t\treturn certification;\r\n\t}", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "@Override\n public void validaEmailInteractor(CharSequence charSequence) {\n verificaEmail(charToString(charSequence));\n }", "public ValidationResult validate(CertPath certPath);", "public ExpressionGuard(final String expression)\n throws InvalidExpressionException, IllegalArgumentException {\n if (expression == null) {\n throw new IllegalArgumentException(\"`expression' must not be null.\");\n }\n try {\n this.compiledExpression = MVEL.compileExpression(expression);\n this.expression = expression;\n } catch (final CompileException exc) {\n throw new InvalidExpressionException(exc);\n }\n }", "public M csrtSubjectNull(){if(this.get(\"csrtSubjectNot\")==null)this.put(\"csrtSubjectNot\", \"\");this.put(\"csrtSubject\", null);return this;}", "public String getVerificationEmailSubject() {\n return getValue(\n \"eurekaclinical.userservice.email.verify.subject\");\n }", "public String getSubject()\n {\n final I18nHelper i18n = ComponentAccessor.getJiraAuthenticationContext().getI18nHelper();\n final Map<String, Object> contextParams = JiraMailQueueUtils.getContextParamsBody(templateParameters);\n contextParams.put(\"i18n\", i18n);\n try\n {\n return renderEmailSubject(contextParams);\n }\n catch (VelocityException e)\n {\n log.error(\"Could not determine e-mail subject\", e);\n throw new RuntimeException(e);\n }\n }", "public interface CertificationRequestWrapper {\n\n /**\n * Gets the subject name of this certificate.\n * @return subject name\n */\n X500Principal getSubject();\n \n /**\n * Gets the content of this certification request in a suitable string \n * encoding (typically PEM).\n * @return certification request content\n * @throws IOException\n */\n String getContent() throws IOException;\n \n}", "public String getCertificateEmail(X509Certificate certificate) throws CertException;", "public Optional<String> caCertFile() {\n return Codegen.stringProp(\"caCertFile\").config(config).get();\n }", "String getExpression();", "String getExpression();", "public String getSubject() {\n UnstructuredField field = obtainField(FieldName.SUBJECT);\n if (field == null)\n return null;\n\n return field.getValue();\n }", "public java.lang.String getCA() {\n return CA;\n }", "public void setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name):void\");\n }", "public String getCertDescription() {\n return certDescription;\n }", "public nl.webservices.www.soap.InsolvencyLegalSubject getLegal_subject() {\n return legal_subject;\n }", "public String validate(KeyStore keyStore, String keyAlias) throws CertificateException\n {\n String result = null;\n \n if (keyAlias != null)\n {\n try\n {\n validate(keyStore, keyStore.getCertificate(keyAlias));\n }\n catch (KeyStoreException ex)\n {\n Log.debug(ex);\n throw new CertificateException(\"Unable to validate certificate for alias [\" +\n keyAlias + \"]: \" + ex.getMessage());\n }\n result = keyAlias; \n }\n \n return result;\n }", "X500Principal getSubject();", "Rule FieldReq() {\n // No effect on the value stack\n return FirstOf(\"required \", \"optional \");\n }", "public final void constraint() throws RecognitionException {\n CommonTree IDENTIFIER7 = null;\n Expression e = null;\n\n List<EAnnotation> anns = null;\n\n\n try {\n // parser/flatzinc/FlatzincFullExtWalker.g:722:2: ( ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations ) )\n // parser/flatzinc/FlatzincFullExtWalker.g:723:2: ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations )\n {\n\n // Solver aSolver, String id, List<Expression> exps, List<EAnnotation> annotations\n ArrayList<Expression> exps = new ArrayList();\n\n\n match(input, CONSTRAINT, FOLLOW_CONSTRAINT_in_constraint2144);\n\n match(input, Token.DOWN, null);\n IDENTIFIER7 = (CommonTree) match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_constraint2146);\n\n // parser/flatzinc/FlatzincFullExtWalker.g:727:30: (e= expr )+\n int cnt48 = 0;\n loop48:\n do {\n int alt48 = 2;\n switch (input.LA(1)) {\n case EXPR:\n case FALSE:\n case IDENTIFIER:\n case INT_CONST:\n case LB:\n case STRING:\n case TRUE: {\n alt48 = 1;\n }\n break;\n\n }\n\n switch (alt48) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:727:31: e= expr\n {\n pushFollow(FOLLOW_expr_in_constraint2151);\n e = expr();\n\n state._fsp--;\n\n\n exps.add(e);\n\n }\n break;\n\n default:\n if (cnt48 >= 1) break loop48;\n EarlyExitException eee =\n new EarlyExitException(48, input);\n throw eee;\n }\n cnt48++;\n } while (true);\n\n\n pushFollow(FOLLOW_annotations_in_constraint2158);\n anns = annotations();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n\n String id = (IDENTIFIER7 != null ? IDENTIFIER7.getText() : null);\n FConstraint.make_constraint(mSolver, map, id, exps, anns);\n\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return;\n }", "public CertificateIssuer(String name, File fileaddress) throws CryptoException {\r\n\t\tsuper(fileaddress);\r\n\t\tlog.debug(PropertyFileConfiguration.StarLine+\"Issuer for \"+name+\" has been created from : \" + fileaddress.getAbsolutePath());\r\n\t\tlog.debug(\"Root cert subjectDN : \" +this.getSubjectDN()+PropertyFileConfiguration.StarLine);\r\n\t\tthis.name = name;\r\n\t\tthis.hascert = true;\r\n\t}", "@Override\n\tpublic boolean isValid(String theCode, ConstraintValidatorContext arg1) {\n\t\tif(theCode!= null) {\n\t\t\treturn theCode.startsWith(coursePrefix);\n\t\t}\n\t\treturn false;\n\t}", "public ValidationResult validate(X509Certificate[] certChain);", "java.lang.String getLicensesCertificationsRaw();", "public String getEpaCertNo() {\n return epaCertNo;\n }", "public java.util.Collection<java.util.List<?>> getSubjectAlternativeNames() throws java.security.cert.CertificateParsingException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSubjectAlternativeNames():java.util.Collection<java.util.List<?>>, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSubjectAlternativeNames():java.util.Collection<java.util.List<?>>\");\n }", "RequireExprsRule createRequireExprsRule();", "private Expression(build.buf.validate.priv.Constraint constraint) {\n this(constraint.getId(), constraint.getMessage(), constraint.getExpression());\n }", "public void setSubjectDN(javax.security.auth.x500.X500Principal r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(javax.security.auth.x500.X500Principal):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(javax.security.auth.x500.X500Principal):void\");\n }", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "@Test\n\tpublic void serviceQualificationEE() throws Exception {\n\t\tTSLParser parser = new TSLParser(new FileInputStream(new File(\"src/test/resources/tsls/0A191C3E18CAB7B783E690D3E4431C354A068FF0.xml\")));\n\t\tTSLParserResult model = parser.call();\n\n\t\tList<TSLServiceProvider> serviceProviders = model.getServiceProviders();\n\t\tassertEquals(2, serviceProviders.size());\n\n\t\tTSLService service = getESTEIDSK2007(serviceProviders);\n\t\tassertNotNull(service);\n\n\t\tList<TSLServiceExtension> extensions = service.getExtensions();\n\t\tassertEquals(1, extensions.size());\n\t\tTSLServiceExtension extension = extensions.get(0);\n\n\t\tList<TSLConditionsForQualifiers> conditionsForQualifiers = extension.getConditionsForQualifiers();\n\t\tassertEquals(1, conditionsForQualifiers.size());\n\n\t\tTSLConditionsForQualifiers qcStatement = getQualificationQCStatement(conditionsForQualifiers);\n\t\tassertNull(qcStatement);\n\n\t\t// ***************************** NEW VERSION OF TL\n\n\t\tCertificateToken certificate = DSSUtils.loadCertificateFromBase64EncodedString(\n\t\t\t\t\"MIID3DCCAsSgAwIBAgIER/idhzANBgkqhkiG9w0BAQUFADBbMQswCQYDVQQGEwJFRTEiMCAGA1UEChMZQVMgU2VydGlmaXRzZWVyaW1pc2tlc2t1czEPMA0GA1UECxMGRVNURUlEMRcwFQYDVQQDEw5FU1RFSUQtU0sgMjAwNzAeFw0wODA0MDYwOTUzMDlaFw0xMjAzMDUyMjAwMDBaMIGWMQswCQYDVQQGEwJFRTEPMA0GA1UEChMGRVNURUlEMRowGAYDVQQLExFkaWdpdGFsIHNpZ25hdHVyZTEiMCAGA1UEAxMZU0lOSVZFRSxWRUlLTywzNjcwNjAyMDIxMDEQMA4GA1UEBBMHU0lOSVZFRTEOMAwGA1UEKhMFVkVJS08xFDASBgNVBAUTCzM2NzA2MDIwMjEwMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCGRN42R9e6VEHMCyvacuubjtm1+5Kk92WgIgtWA8hY8DW2iNvQJ3jOF5XlVIyIDTwl2JVKxWKhXX+8+yNFPpqAK43IINcmMfznw/KcR7jACGNuTrivA9HrvRiqDzTg5E1rktjho6OkDkdV3dgOLB2wyhVm2anNpICfrUq8c09HPwIDMMP5o4HvMIHsMA4GA1UdDwEB/wQEAwIGQDA8BgNVHR8ENTAzMDGgL6AthitodHRwOi8vd3d3LnNrLmVlL2NybHMvZXN0ZWlkL2VzdGVpZDIwMDcuY3JsMFEGA1UdIARKMEgwRgYLKwYBBAHOHwEBAQEwNzASBggrBgEFBQcCAjAGGgRub25lMCEGCCsGAQUFBwIBFhVodHRwOi8vd3d3LnNrLmVlL2Nwcy8wHwYDVR0jBBgwFoAUSAbevoyHV5WAeGP6nCMrK6A6GHUwHQYDVR0OBBYEFJAJUyDrH3rdxTStU+LDa6aHdE8dMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQEFBQADggEBAA5qjfeuTdOoEtatiA9hpjDHzyqN1PROcaPrABXGqpLxcHbLVr7xmovILAjxS9fJAw28u9ZE3asRNa9xgQNTeX23mMlojJAYVbYCeIeJ6jtsRiCo34wgvO3CtVfO3+C1T8Du5XLCHa6SoT8SpCApW+Crwe+6eCZDmv2NKTjhn1wCCNO2e8HuSt+pTUNBTUB+rkvF4KO9VnuzRzT7zN7AUdW4OFF3bI+9+VmW3t9vq1zDOxNTdBkCM3zm5TRa8ZtyAPL48bW19JAcYzQLjPGORwoIRNSXdVTqX+cDiw2wbmb2IhPdxRqN9uPwU1x/ltZZ3W5GzJ1t8JeQN7PuGM0OHqE=\");\n\n\t\tparser = new TSLParser(new FileInputStream(new File(\"src/test/resources/tsls/0A191C3E18CAB7B783E690D3E4431C354A068FF0-2.xml\")));\n\t\tmodel = parser.call();\n\n\t\tserviceProviders = model.getServiceProviders();\n\t\tassertEquals(2, serviceProviders.size());\n\n\t\tservice = getESTEIDSK2007(serviceProviders);\n\t\tassertNotNull(service);\n\n\t\textensions = service.getExtensions();\n\t\tassertEquals(1, extensions.size());\n\t\textension = extensions.get(0);\n\n\t\tconditionsForQualifiers = extension.getConditionsForQualifiers();\n\t\tassertEquals(2, conditionsForQualifiers.size());\n\n\t\tqcStatement = getQualificationQCStatement(conditionsForQualifiers);\n\t\tassertNotNull(qcStatement);\n\n\t\tCondition condition = qcStatement.getCondition();\n\t\tassertTrue(condition.check(certificate));\n\t}", "public Equation()\r\n\t{\r\n\t\texpression = \"\";\r\n\t}", "Rule SingleQuotedLiteral() {\n return Sequence(\n \"'\",\n ZeroOrMore(NoneOf(\"'\")),\n \"'\");\n }", "Expression() { }", "java.lang.String getDelegateSuggestedSignerEmail();", "public String getActivationEmailSubject() {\n return getValue(\n \"eurekaclinical.userservice.email.activation.subject\");\n }", "StringExpression createStringExpression();", "public Expression getExpression() {\n return optionalConditionExpression; }", "public boolean acceptSuppEmail (java.lang.String emp_cde, \n java.lang.String emp_nme, \n java.lang.String dpt_cde, \n java.lang.String emp_type, \n java.lang.String emp_email) throws com.mcip.orb.CoException {\n return this._delegate.acceptSuppEmail(emp_cde, emp_nme, dpt_cde, emp_type, \n emp_email);\n }", "public Rule idExprReq()\n \t{\n \t\treturn firstOf(field(), call());\n \t}", "public String getSubject() {\n/* 286 */ return getCOSObject().getString(COSName.SUBJ);\n/* */ }", "org.hl7.fhir.ResourceReference getSubject();", "private Expression(build.buf.validate.Constraint constraint) {\n this(constraint.getId(), constraint.getMessage(), constraint.getExpression());\n }", "public final EObject ruleConstraintCS() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n Token otherlv_3=null;\n Token otherlv_4=null;\n AntlrDatatypeRuleToken lv_name_0_0 = null;\n\n EObject lv_ownedMessageSpecification_2_0 = null;\n\n EObject lv_ownedSpecification_5_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:3604:2: ( ( ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )? )? otherlv_4= ':' ( (lv_ownedSpecification_5_0= ruleSpecificationCS ) ) ) )\n // InternalMyDsl.g:3605:2: ( ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )? )? otherlv_4= ':' ( (lv_ownedSpecification_5_0= ruleSpecificationCS ) ) )\n {\n // InternalMyDsl.g:3605:2: ( ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )? )? otherlv_4= ':' ( (lv_ownedSpecification_5_0= ruleSpecificationCS ) ) )\n // InternalMyDsl.g:3606:3: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )? )? otherlv_4= ':' ( (lv_ownedSpecification_5_0= ruleSpecificationCS ) )\n {\n // InternalMyDsl.g:3606:3: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )? )?\n int alt36=2;\n int LA36_0 = input.LA(1);\n\n if ( ((LA36_0>=RULE_SIMPLE_ID && LA36_0<=RULE_ESCAPED_ID)||LA36_0==19||(LA36_0>=60 && LA36_0<=61)) ) {\n alt36=1;\n }\n switch (alt36) {\n case 1 :\n // InternalMyDsl.g:3607:4: ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )?\n {\n // InternalMyDsl.g:3607:4: ( (lv_name_0_0= ruleUnrestrictedName ) )\n // InternalMyDsl.g:3608:5: (lv_name_0_0= ruleUnrestrictedName )\n {\n // InternalMyDsl.g:3608:5: (lv_name_0_0= ruleUnrestrictedName )\n // InternalMyDsl.g:3609:6: lv_name_0_0= ruleUnrestrictedName\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getConstraintCSAccess().getNameUnrestrictedNameParserRuleCall_0_0_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_43);\n lv_name_0_0=ruleUnrestrictedName();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getConstraintCSRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"name\",\n \t\t\t\t\t\t\tlv_name_0_0,\n \t\t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.UnrestrictedName\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n // InternalMyDsl.g:3626:4: (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )?\n int alt35=2;\n int LA35_0 = input.LA(1);\n\n if ( (LA35_0==20) ) {\n alt35=1;\n }\n switch (alt35) {\n case 1 :\n // InternalMyDsl.g:3627:5: otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')'\n {\n otherlv_1=(Token)match(input,20,FOLLOW_44); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(otherlv_1, grammarAccess.getConstraintCSAccess().getLeftParenthesisKeyword_0_1_0());\n \t\t\t\t\n }\n // InternalMyDsl.g:3631:5: ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) )\n // InternalMyDsl.g:3632:6: (lv_ownedMessageSpecification_2_0= ruleSpecificationCS )\n {\n // InternalMyDsl.g:3632:6: (lv_ownedMessageSpecification_2_0= ruleSpecificationCS )\n // InternalMyDsl.g:3633:7: lv_ownedMessageSpecification_2_0= ruleSpecificationCS\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getConstraintCSAccess().getOwnedMessageSpecificationSpecificationCSParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_ownedMessageSpecification_2_0=ruleSpecificationCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getConstraintCSRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"ownedMessageSpecification\",\n \t\t\t\t\t\t\t\tlv_ownedMessageSpecification_2_0,\n \t\t\t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.SpecificationCS\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,21,FOLLOW_28); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getConstraintCSAccess().getRightParenthesisKeyword_0_1_2());\n \t\t\t\t\n }\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_4=(Token)match(input,42,FOLLOW_44); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getConstraintCSAccess().getColonKeyword_1());\n \t\t\n }\n // InternalMyDsl.g:3660:3: ( (lv_ownedSpecification_5_0= ruleSpecificationCS ) )\n // InternalMyDsl.g:3661:4: (lv_ownedSpecification_5_0= ruleSpecificationCS )\n {\n // InternalMyDsl.g:3661:4: (lv_ownedSpecification_5_0= ruleSpecificationCS )\n // InternalMyDsl.g:3662:5: lv_ownedSpecification_5_0= ruleSpecificationCS\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getConstraintCSAccess().getOwnedSpecificationSpecificationCSParserRuleCall_2_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_ownedSpecification_5_0=ruleSpecificationCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getConstraintCSRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"ownedSpecification\",\n \t\t\t\t\t\tlv_ownedSpecification_5_0,\n \t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.SpecificationCS\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public String getGuardExpression()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(this.hasAttribute(guardExpressionString))\n\t\t\t\treturn this.getAttribute(guardExpressionString).getValue();\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn \"\";\n\t}", "@Override\n public String getDataNodeCertificate(\n DatanodeDetailsProto dnDetails,\n String certSignReq) throws IOException {\n LOGGER.info(\"Processing CSR for dn {}, UUID: {}\", dnDetails.getHostName(),\n dnDetails.getUuid());\n Objects.requireNonNull(dnDetails);\n checkIfCertSignRequestAllowed(\n storageContainerManager.getRootCARotationManager(), false, config,\n \"getDataNodeCertificate\");\n return getEncodedCertToString(certSignReq, NodeType.DATANODE);\n }", "public void setEpaCertNo(String aEpaCertNo) {\n epaCertNo = aEpaCertNo;\n }", "@JsonProperty(\"subject\")\n public WbExpression<? extends EntityIdValue> getSubject() {\n return subject;\n }", "public void setCertDescription(String aCertDescription) {\n certDescription = aCertDescription;\n }", "public void validate(KeyStore keyStore, Certificate cert) throws CertificateException\n {\n if (cert != null && cert instanceof X509Certificate)\n {\n ((X509Certificate)cert).checkValidity();\n \n String certAlias = \"[none]\";\n try\n {\n certAlias = keyStore.getCertificateAlias((X509Certificate)cert);\n Certificate[] certChain = keyStore.getCertificateChain(certAlias);\n \n ArrayList<X509Certificate> certList = new ArrayList<X509Certificate>();\n for (Certificate item : certChain)\n {\n if (!(item instanceof X509Certificate))\n {\n throw new CertificateException(\"Invalid certificate type in chain\");\n }\n certList.add((X509Certificate)item);\n }\n \n if (certList.isEmpty())\n {\n throw new CertificateException(\"Invalid certificate chain\");\n \n }\n \n X509CertSelector certSelect = new X509CertSelector();\n certSelect.setCertificate(certList.get(0));\n \n // Configure certification path builder parameters\n PKIXBuilderParameters pbParams = new PKIXBuilderParameters(_trustStore, certSelect);\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(certList)));\n \n // Set static Certificate Revocation List\n if (_crls != null && !_crls.isEmpty())\n {\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(_crls)));\n }\n \n // Enable revocation checking\n pbParams.setRevocationEnabled(true);\n \n // Set maximum certification path length\n pbParams.setMaxPathLength(_maxCertPathLength);\n \n // Build certification path\n CertPathBuilderResult buildResult = CertPathBuilder.getInstance(\"PKIX\").build(pbParams); \n \n // Validate certification path\n CertPathValidator.getInstance(\"PKIX\").validate(buildResult.getCertPath(),pbParams);\n }\n catch (Exception ex)\n {\n Log.debug(ex);\n throw new CertificateException(\"Unable to validate certificate for alias [\" +\n certAlias + \"]: \" + ex.getMessage());\n }\n } \n }", "@ApiModelProperty(value = \"The content of the new certificate to be added to the Auto-TLS truststore. Specify either this or a NewCertLocation. <br> The certificate, if specified, needs to be a standard PEM-encoded key as a single string, with all line breaks replaced with the line-feed control character '\\\\n'. <br> A value will typically look like the following string: <br> -----BEGIN CERTIFICATE-----\\\\n[base-64 encoded key]\\\\n-----END CERTIFICATE----- <br>\")\n\n\n public String getNewCertContent() {\n return newCertContent;\n }", "public interface X509CertChainValidator\n{\n\t/**\n\t * Performs validation of a provided certificate path.\n\t * @param certPath to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(CertPath certPath);\n\t\n\t/**\n\t * Performs validation of a provided certificate chain.\n\t * @param certChain to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(X509Certificate[] certChain);\n\t\n\t/**\n\t * Returns a list of trusted issuers of certificates. \n\t * @return array containing trusted issuers' certificates\n\t */\n\tpublic X509Certificate[] getTrustedIssuers();\n\t\n\t/**\n\t * Registers a listener which can react to errors found during certificate \n\t * validation. It is useful in two cases: (rarely) if you want to change \n\t * the default logic of the validator and if you will use the validator indirectly\n\t * (e.g. to validate SSL socket connections) and want to get the original \n\t * {@link ValidationError}, not the exception. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addValidationListener(ValidationErrorListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered validation listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeValidationListener(ValidationErrorListener listener);\n\t\n\t\n\t/**\n\t * Registers a listener which can react to errors found during refreshing \n\t * of the trust material: trusted CAs or CRLs. This method is useful only if\n\t * the implementation supports updating of CAs or CRLs, otherwise the listener\n\t * will not be invoked. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addUpdateListener(StoreUpdateListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered CA or CRL update listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeUpdateListener(StoreUpdateListener listener);\n}", "java.lang.String getSubject();", "java.lang.String getSubject();", "java.lang.String getSubject();", "public String issuer() {\n return this.innerProperties() == null ? null : this.innerProperties().issuer();\n }", "@Test\n void lambda_condition_with_missing_right_operand() throws Exception {\n runner.run(\n \"TAKE 10 from numbers with val greater than AS var\",\n \"{numbers: [{val: 12}]}\",\n r -> r.containsValidationMessage(\"missing right operand in condition\"));\n }", "public ValidationObject checkWithResponse(Certificate cert, Collection unresolvedCritExts) throws CertPathValidatorException \n {\n unresolvedCritExts.clear();\n\n X509Certificate currCert = (X509Certificate) cert;\n \n //Si es la raíz, mPrevPubKey = su key;\n if (((X509Certificate)cert).getBasicConstraints()>-1) {\n //this certificate is a CA, check whether it's a trust anchor (self-signed root) or it's an intermediate CA\n if ( ((X509Certificate)cert).getIssuerDN().equals( ((X509Certificate)cert).getSubjectDN() ) )\n mPrevPubKey=cert.getPublicKey();\n }\n \n if(mPrevPubKey==null){\n \tmPrevPubKey = mInitPubKey;\n mCRLSignFlag = true; \n }\n \n verifyRevocationStatus(currCert, mPrevPubKey, mCRLSignFlag);\n \n // Make new public key if parameters are missing\n PublicKey cKey = currCert.getPublicKey();\n if (cKey instanceof DSAPublicKey &&\n ((DSAPublicKey)cKey).getParams() == null) {\n // cKey needs to inherit DSA parameters from prev key\n cKey = makeInheritedParamsKey(cKey, mPrevPubKey);\n }\n \n mPrevPubKey = cKey;\n mCRLSignFlag = CertUtils.certCanSignCrl(currCert);\n\n return new CRLValidationInfo ( false, mApprovedCRLs );\n }", "public String getCer() {\n return cer;\n }", "public void setSubject(String subj) {\n/* 296 */ getCOSObject().setString(COSName.SUBJ, subj);\n/* */ }", "boolean hasCelExpression();", "@ZAttr(id=1070)\n public String getDomainMandatoryMailSignatureText() {\n return getAttr(Provisioning.A_zimbraDomainMandatoryMailSignatureText, null);\n }", "RegExConstraint createRegExConstraint();", "public interface X509Credential\n{\n\t/**\n\t * Returns the credential in a keystore.\n\t * @return the KeyStore\n\t */\n\tpublic KeyStore getKeyStore();\n\t\n\t/**\n\t * Returns a KeyManager which accompanies the KeyStore. \n\t * @return the KeyManager\n\t */\n\tpublic X509ExtendedKeyManager getKeyManager();\n\t\n\t/**\n\t * Returns a password which can be used to obtain PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method, \n\t * with the alias returned by the {@link #getKeyAlias()} method.\n\t * @return key password\n\t */\n\tpublic char[] getKeyPassword();\n\t\n\t/**\n\t * Returns an alias which can be used to obtain the PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method.\n\t * @return key alias\n\t */\n\tpublic String getKeyAlias();\n\t\n\t/**\n\t * Helper method to get private key from the underlying keystore\n\t * @return private key\n\t */\n\tpublic PrivateKey getKey();\n\n\t/**\n\t * Helper method to get certificate from the underlying keystore\n\t * @return certificate\n\t */\n\tpublic X509Certificate getCertificate();\n\n\t/**\n \t * Helper method to get certificate chain from the underlying keystore\n\t * @return certificate chain\n\t */\n\tpublic X509Certificate[] getCertificateChain();\n\t\n\t/**\n\t * @return RFC 2253 distinguished name of the certificate subject\n\t * @since 1.1.0\n\t */\n\tpublic String getSubjectName();\n}", "public Builder setLicensesCertificationsRaw(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n licensesCertificationsRaw_ = value;\n onChanged();\n return this;\n }", "org.apache.xmlbeans.XmlString xgetDelegateSuggestedSignerEmail();", "public String call_google_certificate() throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n // From https://www.washington.edu/itconnect/security/ca/load-der.crt\n InputStream caInput = getResources().openRawResource(R.raw.loadder);\n Certificate ca;\n try {\n ca = cf.generateCertificate(caInput);\n System.out.println(\"ca=\" + ((X509Certificate) ca).getSubjectDN());\n } finally {\n caInput.close();\n }\n // Create a KeyStore containing our trusted CAs\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n keyStore.setCertificateEntry(\"ca\", ca);\n // Create a TrustManager that trusts the CAs in our KeyStore\n String tmfAlgorithm = TrustManagerFactory.getDefaultAlgorithm();\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(tmfAlgorithm);\n tmf.init(keyStore);\n // Create an SSLContext that uses our TrustManager\n SSLContext context = SSLContext.getInstance(\"TLS\");\n context.init(null, tmf.getTrustManagers(), null);\n // Tell the URLConnection to use a SocketFactory from our SSLContext\n URL url = new URL(\"https://certs.cac.washington.edu/CAtest/\");\n HttpsURLConnection urlConnection =\n (HttpsURLConnection) url.openConnection();\n urlConnection.setSSLSocketFactory(context.getSocketFactory());\n InputStream in = urlConnection.getInputStream();\n return getStringFromInputStream(in);\n }", "Expression getCond();", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public Expression(String expr) {\n this.expr = expr;\n scalars = null;\n arrays = null;\n openingBracketIndex = null;\n closingBracketIndex = null;\n }", "Optional<String> email();", "public String getExpression() {\n return expression;\n }", "public String getExpression() {\n return expression;\n }", "public String getExpression() {\n return expression;\n }", "public Constraint(String cnline)\n {\n// PrintStream stdout = System.out;\n// stdout.printf(\"Constraint: line: %s\\n\", cnline);\n\tString[] cnArray = cnline.split(\" \");\n\tif (cnArray.length != 2) {\n\t debug.error(\"Invalid constraint: '%s'\", cnline);\n\t}\n\n\tthis.name = cnArray[0].toLowerCase();;\n\tthis.mf = Scoring.mf2int(cnArray[1].charAt(0));\n }", "public String getSubject() {\n return this.subject;\n }", "public String getSubject() {\n return this.subject;\n }", "private Double inspectExpression(String ex) {\n Double cyclomatic = 0.0;\n if (ex != null) {\n char[] chars = ex.toCharArray();\n for (int i = 0; i < chars.length - 1; i++) {\n char next = chars[i];\n if ((next == '&' || next == '|') && (next == chars[i + 1])) {\n cyclomatic++;\n }\n }\n }\n return cyclomatic;\n }", "@Action(value = \"saveCertificate\", results = { @Result(name = INPUT, location = JSP_FIELDS) })\n @Validations(\n customValidators = { @CustomValidator(type = \"hibernate\", fieldName = \"certificate.issuer\", parameters = {\n @ValidationParameter(name = \"resourceKeyBase\", value = \"profile.organization\"),\n @ValidationParameter(name = \"excludes\", value = \"externalId\") }) },\n requiredFields = { @RequiredFieldValidator(fieldName = \"certificate.certificateType\",\n key = \"error.credentials.certificate.type.required\") },\n fieldExpressions = { @FieldExpressionValidator(\n fieldName = \"certificateFile.data\",\n expression = \"certificate.id != null || (certificateFile != null && certificateFile.data != null)\",\n key = \"error.credentials.certificate.file.required\"),\n @FieldExpressionValidator(fieldName = \"nihOerIssued\",\n expression = \"nihOerIssued || issuingOrganizationExternalId != null || certificate.issuer != null\",\n key = \"error.credentials.organization.required\"),\n @FieldExpressionValidator(\n fieldName = \"certificate.issuer.postalAddress.stateOrProvince\",\n expression = \"certificate.issuer != null\"\n + \" && certificate.issuer.postalAddress.stateOrProvinceValid\",\n key = \"stateOrProvince.required\")\n })\n public String saveCertificate() throws IOException {\n setFileDescription();\n setCertificateIssuer();\n boolean valid = validateFields();\n if (valid) {\n try {\n doSave();\n } catch (CredentialAlreadyExistsException ae) {\n handleCredentialAlreadyExists();\n valid = false;\n } catch (ValidationException e) {\n return handleValidationException(e);\n }\n }\n\n return valid ? closeDialog(getDialogId()) : INPUT;\n }", "public String getEmailAlt() {\n\t\t\treturn emailAlt;\n\t\t}", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public String getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject() {\n\t\treturn subject;\n\t}", "public CompletionStage<Result> validate()\n {\n IRequestValidator requestValidator=new CertValidateRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_VALIDATE);\n }" ]
[ "0.47998154", "0.47935447", "0.47163722", "0.4661001", "0.46318147", "0.46302044", "0.46041164", "0.45844018", "0.45709434", "0.4557432", "0.4545868", "0.45213032", "0.45034346", "0.44728565", "0.44711342", "0.44416025", "0.44388214", "0.44322208", "0.44163385", "0.43967706", "0.43794107", "0.4376143", "0.4366852", "0.43608946", "0.4344761", "0.4344761", "0.43305105", "0.43155947", "0.4314884", "0.43074232", "0.42983374", "0.42822248", "0.42734465", "0.42659178", "0.42622054", "0.42510104", "0.42303458", "0.4217485", "0.4195353", "0.41848612", "0.41821754", "0.4181465", "0.41688004", "0.41607", "0.41561836", "0.4146206", "0.41370037", "0.41309565", "0.41268998", "0.41161036", "0.41128263", "0.40992856", "0.40927583", "0.40923712", "0.40867472", "0.40852687", "0.4076495", "0.40699196", "0.40649748", "0.40639433", "0.40601286", "0.40574005", "0.40470558", "0.40427256", "0.40352532", "0.4033462", "0.40284243", "0.4027585", "0.4027585", "0.4027585", "0.40274158", "0.40269163", "0.4022326", "0.4021554", "0.4010806", "0.40088004", "0.4004361", "0.40012655", "0.39970854", "0.39958635", "0.3991081", "0.3982039", "0.397742", "0.39746666", "0.39746666", "0.3967771", "0.39633167", "0.39546126", "0.39546126", "0.39546126", "0.39519247", "0.39515224", "0.39515224", "0.39484486", "0.39435938", "0.39358824", "0.39354843", "0.3931881", "0.3931881", "0.3929778" ]
0.5048878
0
Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see .google.type.Expr cel_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
com.google.type.ExprOrBuilder getCelExpressionOrBuilder();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.type.Expr getCelExpression();", "String getCertificate();", "public M csseSubjectNull(){if(this.get(\"csseSubjectNot\")==null)this.put(\"csseSubjectNot\", \"\");this.put(\"csseSubject\", null);return this;}", "public String getCertificationRequest() {\n if (signingRequest == null) return null;\n return signingRequest.getCertificationRequest().getContent();\n }", "@Override\n\tpublic boolean isStringForComputeRelevant(String sExpressionToProof)\n\t\t\tthrows ExceptionZZZ {\n\t\treturn false;\n\t}", "boolean hasAllowSubjectAltNamesPassthrough();", "public final EObject ruleSpecificationCS() throws RecognitionException {\n EObject current = null;\n\n Token lv_exprString_1_0=null;\n EObject lv_ownedExpression_0_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:4763:2: ( ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) | ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) ) ) )\n // InternalMyDsl.g:4764:2: ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) | ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) ) )\n {\n // InternalMyDsl.g:4764:2: ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) | ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) ) )\n int alt60=2;\n int LA60_0 = input.LA(1);\n\n if ( (LA60_0==RULE_INT||(LA60_0>=RULE_SIMPLE_ID && LA60_0<=RULE_SINGLE_QUOTED_STRING)||(LA60_0>=19 && LA60_0<=20)||LA60_0==40||LA60_0==44||(LA60_0>=60 && LA60_0<=61)||(LA60_0>=73 && LA60_0<=83)||(LA60_0>=93 && LA60_0<=94)||(LA60_0>=96 && LA60_0<=100)||LA60_0==103||(LA60_0>=105 && LA60_0<=108)||LA60_0==111||(LA60_0>=116 && LA60_0<=117)) ) {\n alt60=1;\n }\n else if ( (LA60_0==RULE_UNQUOTED_STRING) ) {\n alt60=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 60, 0, input);\n\n throw nvae;\n }\n switch (alt60) {\n case 1 :\n // InternalMyDsl.g:4765:3: ( (lv_ownedExpression_0_0= ruleExpCS ) )\n {\n // InternalMyDsl.g:4765:3: ( (lv_ownedExpression_0_0= ruleExpCS ) )\n // InternalMyDsl.g:4766:4: (lv_ownedExpression_0_0= ruleExpCS )\n {\n // InternalMyDsl.g:4766:4: (lv_ownedExpression_0_0= ruleExpCS )\n // InternalMyDsl.g:4767:5: lv_ownedExpression_0_0= ruleExpCS\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getSpecificationCSAccess().getOwnedExpressionExpCSParserRuleCall_0_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_ownedExpression_0_0=ruleExpCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getSpecificationCSRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"ownedExpression\",\n \t\t\t\t\t\tlv_ownedExpression_0_0,\n \t\t\t\t\t\t\"org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalMyDsl.g:4785:3: ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) )\n {\n // InternalMyDsl.g:4785:3: ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) )\n // InternalMyDsl.g:4786:4: (lv_exprString_1_0= RULE_UNQUOTED_STRING )\n {\n // InternalMyDsl.g:4786:4: (lv_exprString_1_0= RULE_UNQUOTED_STRING )\n // InternalMyDsl.g:4787:5: lv_exprString_1_0= RULE_UNQUOTED_STRING\n {\n lv_exprString_1_0=(Token)match(input,RULE_UNQUOTED_STRING,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_exprString_1_0, grammarAccess.getSpecificationCSAccess().getExprStringUNQUOTED_STRINGTerminalRuleCall_1_0());\n \t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getSpecificationCSRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"exprString\",\n \t\t\t\t\t\tlv_exprString_1_0,\n \t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.UNQUOTED_STRING\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public CertificateIssuer(String name) {\r\n\tsuper();\r\n\t\tthis.name = name;\r\n\t\tthis.hascert = false;\r\n\t}", "public String getCertification() {\n return certification;\n }", "boolean getAllowSubjectAltNamesPassthrough();", "public CertAuthHost requireCertVerification(Predicate<Communique> filter)\n\t\t{\n\t\t\tthis.certFilter = this.certFilter.and(filter);\n\t\t\treturn this;\n\t\t}", "ExpressionValidationOutcome expressionIsValid(String expression, ParseType parseType);", "java.lang.String getIssuer();", "public String getCertification() {\r\n\t\treturn certification;\r\n\t}", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "@Override\n public void validaEmailInteractor(CharSequence charSequence) {\n verificaEmail(charToString(charSequence));\n }", "public ValidationResult validate(CertPath certPath);", "public ExpressionGuard(final String expression)\n throws InvalidExpressionException, IllegalArgumentException {\n if (expression == null) {\n throw new IllegalArgumentException(\"`expression' must not be null.\");\n }\n try {\n this.compiledExpression = MVEL.compileExpression(expression);\n this.expression = expression;\n } catch (final CompileException exc) {\n throw new InvalidExpressionException(exc);\n }\n }", "public M csrtSubjectNull(){if(this.get(\"csrtSubjectNot\")==null)this.put(\"csrtSubjectNot\", \"\");this.put(\"csrtSubject\", null);return this;}", "public String getVerificationEmailSubject() {\n return getValue(\n \"eurekaclinical.userservice.email.verify.subject\");\n }", "public String getSubject()\n {\n final I18nHelper i18n = ComponentAccessor.getJiraAuthenticationContext().getI18nHelper();\n final Map<String, Object> contextParams = JiraMailQueueUtils.getContextParamsBody(templateParameters);\n contextParams.put(\"i18n\", i18n);\n try\n {\n return renderEmailSubject(contextParams);\n }\n catch (VelocityException e)\n {\n log.error(\"Could not determine e-mail subject\", e);\n throw new RuntimeException(e);\n }\n }", "public interface CertificationRequestWrapper {\n\n /**\n * Gets the subject name of this certificate.\n * @return subject name\n */\n X500Principal getSubject();\n \n /**\n * Gets the content of this certification request in a suitable string \n * encoding (typically PEM).\n * @return certification request content\n * @throws IOException\n */\n String getContent() throws IOException;\n \n}", "public String getCertificateEmail(X509Certificate certificate) throws CertException;", "public Optional<String> caCertFile() {\n return Codegen.stringProp(\"caCertFile\").config(config).get();\n }", "String getExpression();", "String getExpression();", "public String getSubject() {\n UnstructuredField field = obtainField(FieldName.SUBJECT);\n if (field == null)\n return null;\n\n return field.getValue();\n }", "public java.lang.String getCA() {\n return CA;\n }", "public void setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name):void\");\n }", "public String getCertDescription() {\n return certDescription;\n }", "public nl.webservices.www.soap.InsolvencyLegalSubject getLegal_subject() {\n return legal_subject;\n }", "public String validate(KeyStore keyStore, String keyAlias) throws CertificateException\n {\n String result = null;\n \n if (keyAlias != null)\n {\n try\n {\n validate(keyStore, keyStore.getCertificate(keyAlias));\n }\n catch (KeyStoreException ex)\n {\n Log.debug(ex);\n throw new CertificateException(\"Unable to validate certificate for alias [\" +\n keyAlias + \"]: \" + ex.getMessage());\n }\n result = keyAlias; \n }\n \n return result;\n }", "X500Principal getSubject();", "Rule FieldReq() {\n // No effect on the value stack\n return FirstOf(\"required \", \"optional \");\n }", "public final void constraint() throws RecognitionException {\n CommonTree IDENTIFIER7 = null;\n Expression e = null;\n\n List<EAnnotation> anns = null;\n\n\n try {\n // parser/flatzinc/FlatzincFullExtWalker.g:722:2: ( ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations ) )\n // parser/flatzinc/FlatzincFullExtWalker.g:723:2: ^( CONSTRAINT IDENTIFIER (e= expr )+ anns= annotations )\n {\n\n // Solver aSolver, String id, List<Expression> exps, List<EAnnotation> annotations\n ArrayList<Expression> exps = new ArrayList();\n\n\n match(input, CONSTRAINT, FOLLOW_CONSTRAINT_in_constraint2144);\n\n match(input, Token.DOWN, null);\n IDENTIFIER7 = (CommonTree) match(input, IDENTIFIER, FOLLOW_IDENTIFIER_in_constraint2146);\n\n // parser/flatzinc/FlatzincFullExtWalker.g:727:30: (e= expr )+\n int cnt48 = 0;\n loop48:\n do {\n int alt48 = 2;\n switch (input.LA(1)) {\n case EXPR:\n case FALSE:\n case IDENTIFIER:\n case INT_CONST:\n case LB:\n case STRING:\n case TRUE: {\n alt48 = 1;\n }\n break;\n\n }\n\n switch (alt48) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:727:31: e= expr\n {\n pushFollow(FOLLOW_expr_in_constraint2151);\n e = expr();\n\n state._fsp--;\n\n\n exps.add(e);\n\n }\n break;\n\n default:\n if (cnt48 >= 1) break loop48;\n EarlyExitException eee =\n new EarlyExitException(48, input);\n throw eee;\n }\n cnt48++;\n } while (true);\n\n\n pushFollow(FOLLOW_annotations_in_constraint2158);\n anns = annotations();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n\n String id = (IDENTIFIER7 != null ? IDENTIFIER7.getText() : null);\n FConstraint.make_constraint(mSolver, map, id, exps, anns);\n\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return;\n }", "public CertificateIssuer(String name, File fileaddress) throws CryptoException {\r\n\t\tsuper(fileaddress);\r\n\t\tlog.debug(PropertyFileConfiguration.StarLine+\"Issuer for \"+name+\" has been created from : \" + fileaddress.getAbsolutePath());\r\n\t\tlog.debug(\"Root cert subjectDN : \" +this.getSubjectDN()+PropertyFileConfiguration.StarLine);\r\n\t\tthis.name = name;\r\n\t\tthis.hascert = true;\r\n\t}", "@Override\n\tpublic boolean isValid(String theCode, ConstraintValidatorContext arg1) {\n\t\tif(theCode!= null) {\n\t\t\treturn theCode.startsWith(coursePrefix);\n\t\t}\n\t\treturn false;\n\t}", "public ValidationResult validate(X509Certificate[] certChain);", "java.lang.String getLicensesCertificationsRaw();", "RequireExprsRule createRequireExprsRule();", "public String getEpaCertNo() {\n return epaCertNo;\n }", "public java.util.Collection<java.util.List<?>> getSubjectAlternativeNames() throws java.security.cert.CertificateParsingException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSubjectAlternativeNames():java.util.Collection<java.util.List<?>>, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSubjectAlternativeNames():java.util.Collection<java.util.List<?>>\");\n }", "private Expression(build.buf.validate.priv.Constraint constraint) {\n this(constraint.getId(), constraint.getMessage(), constraint.getExpression());\n }", "public void setSubjectDN(javax.security.auth.x500.X500Principal r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(javax.security.auth.x500.X500Principal):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(javax.security.auth.x500.X500Principal):void\");\n }", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "@Test\n\tpublic void serviceQualificationEE() throws Exception {\n\t\tTSLParser parser = new TSLParser(new FileInputStream(new File(\"src/test/resources/tsls/0A191C3E18CAB7B783E690D3E4431C354A068FF0.xml\")));\n\t\tTSLParserResult model = parser.call();\n\n\t\tList<TSLServiceProvider> serviceProviders = model.getServiceProviders();\n\t\tassertEquals(2, serviceProviders.size());\n\n\t\tTSLService service = getESTEIDSK2007(serviceProviders);\n\t\tassertNotNull(service);\n\n\t\tList<TSLServiceExtension> extensions = service.getExtensions();\n\t\tassertEquals(1, extensions.size());\n\t\tTSLServiceExtension extension = extensions.get(0);\n\n\t\tList<TSLConditionsForQualifiers> conditionsForQualifiers = extension.getConditionsForQualifiers();\n\t\tassertEquals(1, conditionsForQualifiers.size());\n\n\t\tTSLConditionsForQualifiers qcStatement = getQualificationQCStatement(conditionsForQualifiers);\n\t\tassertNull(qcStatement);\n\n\t\t// ***************************** NEW VERSION OF TL\n\n\t\tCertificateToken certificate = DSSUtils.loadCertificateFromBase64EncodedString(\n\t\t\t\t\"MIID3DCCAsSgAwIBAgIER/idhzANBgkqhkiG9w0BAQUFADBbMQswCQYDVQQGEwJFRTEiMCAGA1UEChMZQVMgU2VydGlmaXRzZWVyaW1pc2tlc2t1czEPMA0GA1UECxMGRVNURUlEMRcwFQYDVQQDEw5FU1RFSUQtU0sgMjAwNzAeFw0wODA0MDYwOTUzMDlaFw0xMjAzMDUyMjAwMDBaMIGWMQswCQYDVQQGEwJFRTEPMA0GA1UEChMGRVNURUlEMRowGAYDVQQLExFkaWdpdGFsIHNpZ25hdHVyZTEiMCAGA1UEAxMZU0lOSVZFRSxWRUlLTywzNjcwNjAyMDIxMDEQMA4GA1UEBBMHU0lOSVZFRTEOMAwGA1UEKhMFVkVJS08xFDASBgNVBAUTCzM2NzA2MDIwMjEwMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCGRN42R9e6VEHMCyvacuubjtm1+5Kk92WgIgtWA8hY8DW2iNvQJ3jOF5XlVIyIDTwl2JVKxWKhXX+8+yNFPpqAK43IINcmMfznw/KcR7jACGNuTrivA9HrvRiqDzTg5E1rktjho6OkDkdV3dgOLB2wyhVm2anNpICfrUq8c09HPwIDMMP5o4HvMIHsMA4GA1UdDwEB/wQEAwIGQDA8BgNVHR8ENTAzMDGgL6AthitodHRwOi8vd3d3LnNrLmVlL2NybHMvZXN0ZWlkL2VzdGVpZDIwMDcuY3JsMFEGA1UdIARKMEgwRgYLKwYBBAHOHwEBAQEwNzASBggrBgEFBQcCAjAGGgRub25lMCEGCCsGAQUFBwIBFhVodHRwOi8vd3d3LnNrLmVlL2Nwcy8wHwYDVR0jBBgwFoAUSAbevoyHV5WAeGP6nCMrK6A6GHUwHQYDVR0OBBYEFJAJUyDrH3rdxTStU+LDa6aHdE8dMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQEFBQADggEBAA5qjfeuTdOoEtatiA9hpjDHzyqN1PROcaPrABXGqpLxcHbLVr7xmovILAjxS9fJAw28u9ZE3asRNa9xgQNTeX23mMlojJAYVbYCeIeJ6jtsRiCo34wgvO3CtVfO3+C1T8Du5XLCHa6SoT8SpCApW+Crwe+6eCZDmv2NKTjhn1wCCNO2e8HuSt+pTUNBTUB+rkvF4KO9VnuzRzT7zN7AUdW4OFF3bI+9+VmW3t9vq1zDOxNTdBkCM3zm5TRa8ZtyAPL48bW19JAcYzQLjPGORwoIRNSXdVTqX+cDiw2wbmb2IhPdxRqN9uPwU1x/ltZZ3W5GzJ1t8JeQN7PuGM0OHqE=\");\n\n\t\tparser = new TSLParser(new FileInputStream(new File(\"src/test/resources/tsls/0A191C3E18CAB7B783E690D3E4431C354A068FF0-2.xml\")));\n\t\tmodel = parser.call();\n\n\t\tserviceProviders = model.getServiceProviders();\n\t\tassertEquals(2, serviceProviders.size());\n\n\t\tservice = getESTEIDSK2007(serviceProviders);\n\t\tassertNotNull(service);\n\n\t\textensions = service.getExtensions();\n\t\tassertEquals(1, extensions.size());\n\t\textension = extensions.get(0);\n\n\t\tconditionsForQualifiers = extension.getConditionsForQualifiers();\n\t\tassertEquals(2, conditionsForQualifiers.size());\n\n\t\tqcStatement = getQualificationQCStatement(conditionsForQualifiers);\n\t\tassertNotNull(qcStatement);\n\n\t\tCondition condition = qcStatement.getCondition();\n\t\tassertTrue(condition.check(certificate));\n\t}", "public Equation()\r\n\t{\r\n\t\texpression = \"\";\r\n\t}", "Rule SingleQuotedLiteral() {\n return Sequence(\n \"'\",\n ZeroOrMore(NoneOf(\"'\")),\n \"'\");\n }", "Expression() { }", "java.lang.String getDelegateSuggestedSignerEmail();", "public String getActivationEmailSubject() {\n return getValue(\n \"eurekaclinical.userservice.email.activation.subject\");\n }", "StringExpression createStringExpression();", "public Expression getExpression() {\n return optionalConditionExpression; }", "public boolean acceptSuppEmail (java.lang.String emp_cde, \n java.lang.String emp_nme, \n java.lang.String dpt_cde, \n java.lang.String emp_type, \n java.lang.String emp_email) throws com.mcip.orb.CoException {\n return this._delegate.acceptSuppEmail(emp_cde, emp_nme, dpt_cde, emp_type, \n emp_email);\n }", "public Rule idExprReq()\n \t{\n \t\treturn firstOf(field(), call());\n \t}", "public String getSubject() {\n/* 286 */ return getCOSObject().getString(COSName.SUBJ);\n/* */ }", "org.hl7.fhir.ResourceReference getSubject();", "private Expression(build.buf.validate.Constraint constraint) {\n this(constraint.getId(), constraint.getMessage(), constraint.getExpression());\n }", "public final EObject ruleConstraintCS() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n Token otherlv_3=null;\n Token otherlv_4=null;\n AntlrDatatypeRuleToken lv_name_0_0 = null;\n\n EObject lv_ownedMessageSpecification_2_0 = null;\n\n EObject lv_ownedSpecification_5_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:3604:2: ( ( ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )? )? otherlv_4= ':' ( (lv_ownedSpecification_5_0= ruleSpecificationCS ) ) ) )\n // InternalMyDsl.g:3605:2: ( ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )? )? otherlv_4= ':' ( (lv_ownedSpecification_5_0= ruleSpecificationCS ) ) )\n {\n // InternalMyDsl.g:3605:2: ( ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )? )? otherlv_4= ':' ( (lv_ownedSpecification_5_0= ruleSpecificationCS ) ) )\n // InternalMyDsl.g:3606:3: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )? )? otherlv_4= ':' ( (lv_ownedSpecification_5_0= ruleSpecificationCS ) )\n {\n // InternalMyDsl.g:3606:3: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )? )?\n int alt36=2;\n int LA36_0 = input.LA(1);\n\n if ( ((LA36_0>=RULE_SIMPLE_ID && LA36_0<=RULE_ESCAPED_ID)||LA36_0==19||(LA36_0>=60 && LA36_0<=61)) ) {\n alt36=1;\n }\n switch (alt36) {\n case 1 :\n // InternalMyDsl.g:3607:4: ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )?\n {\n // InternalMyDsl.g:3607:4: ( (lv_name_0_0= ruleUnrestrictedName ) )\n // InternalMyDsl.g:3608:5: (lv_name_0_0= ruleUnrestrictedName )\n {\n // InternalMyDsl.g:3608:5: (lv_name_0_0= ruleUnrestrictedName )\n // InternalMyDsl.g:3609:6: lv_name_0_0= ruleUnrestrictedName\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getConstraintCSAccess().getNameUnrestrictedNameParserRuleCall_0_0_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_43);\n lv_name_0_0=ruleUnrestrictedName();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getConstraintCSRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"name\",\n \t\t\t\t\t\t\tlv_name_0_0,\n \t\t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.UnrestrictedName\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n // InternalMyDsl.g:3626:4: (otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')' )?\n int alt35=2;\n int LA35_0 = input.LA(1);\n\n if ( (LA35_0==20) ) {\n alt35=1;\n }\n switch (alt35) {\n case 1 :\n // InternalMyDsl.g:3627:5: otherlv_1= '(' ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) ) otherlv_3= ')'\n {\n otherlv_1=(Token)match(input,20,FOLLOW_44); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(otherlv_1, grammarAccess.getConstraintCSAccess().getLeftParenthesisKeyword_0_1_0());\n \t\t\t\t\n }\n // InternalMyDsl.g:3631:5: ( (lv_ownedMessageSpecification_2_0= ruleSpecificationCS ) )\n // InternalMyDsl.g:3632:6: (lv_ownedMessageSpecification_2_0= ruleSpecificationCS )\n {\n // InternalMyDsl.g:3632:6: (lv_ownedMessageSpecification_2_0= ruleSpecificationCS )\n // InternalMyDsl.g:3633:7: lv_ownedMessageSpecification_2_0= ruleSpecificationCS\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getConstraintCSAccess().getOwnedMessageSpecificationSpecificationCSParserRuleCall_0_1_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_8);\n lv_ownedMessageSpecification_2_0=ruleSpecificationCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getConstraintCSRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"ownedMessageSpecification\",\n \t\t\t\t\t\t\t\tlv_ownedMessageSpecification_2_0,\n \t\t\t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.SpecificationCS\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,21,FOLLOW_28); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getConstraintCSAccess().getRightParenthesisKeyword_0_1_2());\n \t\t\t\t\n }\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_4=(Token)match(input,42,FOLLOW_44); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getConstraintCSAccess().getColonKeyword_1());\n \t\t\n }\n // InternalMyDsl.g:3660:3: ( (lv_ownedSpecification_5_0= ruleSpecificationCS ) )\n // InternalMyDsl.g:3661:4: (lv_ownedSpecification_5_0= ruleSpecificationCS )\n {\n // InternalMyDsl.g:3661:4: (lv_ownedSpecification_5_0= ruleSpecificationCS )\n // InternalMyDsl.g:3662:5: lv_ownedSpecification_5_0= ruleSpecificationCS\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getConstraintCSAccess().getOwnedSpecificationSpecificationCSParserRuleCall_2_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_2);\n lv_ownedSpecification_5_0=ruleSpecificationCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getConstraintCSRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"ownedSpecification\",\n \t\t\t\t\t\tlv_ownedSpecification_5_0,\n \t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.SpecificationCS\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public String getGuardExpression()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(this.hasAttribute(guardExpressionString))\n\t\t\t\treturn this.getAttribute(guardExpressionString).getValue();\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn \"\";\n\t}", "@Override\n public String getDataNodeCertificate(\n DatanodeDetailsProto dnDetails,\n String certSignReq) throws IOException {\n LOGGER.info(\"Processing CSR for dn {}, UUID: {}\", dnDetails.getHostName(),\n dnDetails.getUuid());\n Objects.requireNonNull(dnDetails);\n checkIfCertSignRequestAllowed(\n storageContainerManager.getRootCARotationManager(), false, config,\n \"getDataNodeCertificate\");\n return getEncodedCertToString(certSignReq, NodeType.DATANODE);\n }", "public void setEpaCertNo(String aEpaCertNo) {\n epaCertNo = aEpaCertNo;\n }", "@JsonProperty(\"subject\")\n public WbExpression<? extends EntityIdValue> getSubject() {\n return subject;\n }", "public void setCertDescription(String aCertDescription) {\n certDescription = aCertDescription;\n }", "public void validate(KeyStore keyStore, Certificate cert) throws CertificateException\n {\n if (cert != null && cert instanceof X509Certificate)\n {\n ((X509Certificate)cert).checkValidity();\n \n String certAlias = \"[none]\";\n try\n {\n certAlias = keyStore.getCertificateAlias((X509Certificate)cert);\n Certificate[] certChain = keyStore.getCertificateChain(certAlias);\n \n ArrayList<X509Certificate> certList = new ArrayList<X509Certificate>();\n for (Certificate item : certChain)\n {\n if (!(item instanceof X509Certificate))\n {\n throw new CertificateException(\"Invalid certificate type in chain\");\n }\n certList.add((X509Certificate)item);\n }\n \n if (certList.isEmpty())\n {\n throw new CertificateException(\"Invalid certificate chain\");\n \n }\n \n X509CertSelector certSelect = new X509CertSelector();\n certSelect.setCertificate(certList.get(0));\n \n // Configure certification path builder parameters\n PKIXBuilderParameters pbParams = new PKIXBuilderParameters(_trustStore, certSelect);\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(certList)));\n \n // Set static Certificate Revocation List\n if (_crls != null && !_crls.isEmpty())\n {\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(_crls)));\n }\n \n // Enable revocation checking\n pbParams.setRevocationEnabled(true);\n \n // Set maximum certification path length\n pbParams.setMaxPathLength(_maxCertPathLength);\n \n // Build certification path\n CertPathBuilderResult buildResult = CertPathBuilder.getInstance(\"PKIX\").build(pbParams); \n \n // Validate certification path\n CertPathValidator.getInstance(\"PKIX\").validate(buildResult.getCertPath(),pbParams);\n }\n catch (Exception ex)\n {\n Log.debug(ex);\n throw new CertificateException(\"Unable to validate certificate for alias [\" +\n certAlias + \"]: \" + ex.getMessage());\n }\n } \n }", "@ApiModelProperty(value = \"The content of the new certificate to be added to the Auto-TLS truststore. Specify either this or a NewCertLocation. <br> The certificate, if specified, needs to be a standard PEM-encoded key as a single string, with all line breaks replaced with the line-feed control character '\\\\n'. <br> A value will typically look like the following string: <br> -----BEGIN CERTIFICATE-----\\\\n[base-64 encoded key]\\\\n-----END CERTIFICATE----- <br>\")\n\n\n public String getNewCertContent() {\n return newCertContent;\n }", "@Test\n void lambda_condition_with_missing_right_operand() throws Exception {\n runner.run(\n \"TAKE 10 from numbers with val greater than AS var\",\n \"{numbers: [{val: 12}]}\",\n r -> r.containsValidationMessage(\"missing right operand in condition\"));\n }", "public String issuer() {\n return this.innerProperties() == null ? null : this.innerProperties().issuer();\n }", "java.lang.String getSubject();", "java.lang.String getSubject();", "java.lang.String getSubject();", "public interface X509CertChainValidator\n{\n\t/**\n\t * Performs validation of a provided certificate path.\n\t * @param certPath to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(CertPath certPath);\n\t\n\t/**\n\t * Performs validation of a provided certificate chain.\n\t * @param certChain to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(X509Certificate[] certChain);\n\t\n\t/**\n\t * Returns a list of trusted issuers of certificates. \n\t * @return array containing trusted issuers' certificates\n\t */\n\tpublic X509Certificate[] getTrustedIssuers();\n\t\n\t/**\n\t * Registers a listener which can react to errors found during certificate \n\t * validation. It is useful in two cases: (rarely) if you want to change \n\t * the default logic of the validator and if you will use the validator indirectly\n\t * (e.g. to validate SSL socket connections) and want to get the original \n\t * {@link ValidationError}, not the exception. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addValidationListener(ValidationErrorListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered validation listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeValidationListener(ValidationErrorListener listener);\n\t\n\t\n\t/**\n\t * Registers a listener which can react to errors found during refreshing \n\t * of the trust material: trusted CAs or CRLs. This method is useful only if\n\t * the implementation supports updating of CAs or CRLs, otherwise the listener\n\t * will not be invoked. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addUpdateListener(StoreUpdateListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered CA or CRL update listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeUpdateListener(StoreUpdateListener listener);\n}", "public String getCer() {\n return cer;\n }", "public ValidationObject checkWithResponse(Certificate cert, Collection unresolvedCritExts) throws CertPathValidatorException \n {\n unresolvedCritExts.clear();\n\n X509Certificate currCert = (X509Certificate) cert;\n \n //Si es la raíz, mPrevPubKey = su key;\n if (((X509Certificate)cert).getBasicConstraints()>-1) {\n //this certificate is a CA, check whether it's a trust anchor (self-signed root) or it's an intermediate CA\n if ( ((X509Certificate)cert).getIssuerDN().equals( ((X509Certificate)cert).getSubjectDN() ) )\n mPrevPubKey=cert.getPublicKey();\n }\n \n if(mPrevPubKey==null){\n \tmPrevPubKey = mInitPubKey;\n mCRLSignFlag = true; \n }\n \n verifyRevocationStatus(currCert, mPrevPubKey, mCRLSignFlag);\n \n // Make new public key if parameters are missing\n PublicKey cKey = currCert.getPublicKey();\n if (cKey instanceof DSAPublicKey &&\n ((DSAPublicKey)cKey).getParams() == null) {\n // cKey needs to inherit DSA parameters from prev key\n cKey = makeInheritedParamsKey(cKey, mPrevPubKey);\n }\n \n mPrevPubKey = cKey;\n mCRLSignFlag = CertUtils.certCanSignCrl(currCert);\n\n return new CRLValidationInfo ( false, mApprovedCRLs );\n }", "public void setSubject(String subj) {\n/* 296 */ getCOSObject().setString(COSName.SUBJ, subj);\n/* */ }", "boolean hasCelExpression();", "@ZAttr(id=1070)\n public String getDomainMandatoryMailSignatureText() {\n return getAttr(Provisioning.A_zimbraDomainMandatoryMailSignatureText, null);\n }", "RegExConstraint createRegExConstraint();", "public Builder setLicensesCertificationsRaw(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n licensesCertificationsRaw_ = value;\n onChanged();\n return this;\n }", "public interface X509Credential\n{\n\t/**\n\t * Returns the credential in a keystore.\n\t * @return the KeyStore\n\t */\n\tpublic KeyStore getKeyStore();\n\t\n\t/**\n\t * Returns a KeyManager which accompanies the KeyStore. \n\t * @return the KeyManager\n\t */\n\tpublic X509ExtendedKeyManager getKeyManager();\n\t\n\t/**\n\t * Returns a password which can be used to obtain PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method, \n\t * with the alias returned by the {@link #getKeyAlias()} method.\n\t * @return key password\n\t */\n\tpublic char[] getKeyPassword();\n\t\n\t/**\n\t * Returns an alias which can be used to obtain the PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method.\n\t * @return key alias\n\t */\n\tpublic String getKeyAlias();\n\t\n\t/**\n\t * Helper method to get private key from the underlying keystore\n\t * @return private key\n\t */\n\tpublic PrivateKey getKey();\n\n\t/**\n\t * Helper method to get certificate from the underlying keystore\n\t * @return certificate\n\t */\n\tpublic X509Certificate getCertificate();\n\n\t/**\n \t * Helper method to get certificate chain from the underlying keystore\n\t * @return certificate chain\n\t */\n\tpublic X509Certificate[] getCertificateChain();\n\t\n\t/**\n\t * @return RFC 2253 distinguished name of the certificate subject\n\t * @since 1.1.0\n\t */\n\tpublic String getSubjectName();\n}", "org.apache.xmlbeans.XmlString xgetDelegateSuggestedSignerEmail();", "public String call_google_certificate() throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n // From https://www.washington.edu/itconnect/security/ca/load-der.crt\n InputStream caInput = getResources().openRawResource(R.raw.loadder);\n Certificate ca;\n try {\n ca = cf.generateCertificate(caInput);\n System.out.println(\"ca=\" + ((X509Certificate) ca).getSubjectDN());\n } finally {\n caInput.close();\n }\n // Create a KeyStore containing our trusted CAs\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n keyStore.setCertificateEntry(\"ca\", ca);\n // Create a TrustManager that trusts the CAs in our KeyStore\n String tmfAlgorithm = TrustManagerFactory.getDefaultAlgorithm();\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(tmfAlgorithm);\n tmf.init(keyStore);\n // Create an SSLContext that uses our TrustManager\n SSLContext context = SSLContext.getInstance(\"TLS\");\n context.init(null, tmf.getTrustManagers(), null);\n // Tell the URLConnection to use a SocketFactory from our SSLContext\n URL url = new URL(\"https://certs.cac.washington.edu/CAtest/\");\n HttpsURLConnection urlConnection =\n (HttpsURLConnection) url.openConnection();\n urlConnection.setSSLSocketFactory(context.getSocketFactory());\n InputStream in = urlConnection.getInputStream();\n return getStringFromInputStream(in);\n }", "Expression getCond();", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public Expression(String expr) {\n this.expr = expr;\n scalars = null;\n arrays = null;\n openingBracketIndex = null;\n closingBracketIndex = null;\n }", "Optional<String> email();", "public String getExpression() {\n return expression;\n }", "public String getExpression() {\n return expression;\n }", "public String getExpression() {\n return expression;\n }", "public Constraint(String cnline)\n {\n// PrintStream stdout = System.out;\n// stdout.printf(\"Constraint: line: %s\\n\", cnline);\n\tString[] cnArray = cnline.split(\" \");\n\tif (cnArray.length != 2) {\n\t debug.error(\"Invalid constraint: '%s'\", cnline);\n\t}\n\n\tthis.name = cnArray[0].toLowerCase();;\n\tthis.mf = Scoring.mf2int(cnArray[1].charAt(0));\n }", "private Double inspectExpression(String ex) {\n Double cyclomatic = 0.0;\n if (ex != null) {\n char[] chars = ex.toCharArray();\n for (int i = 0; i < chars.length - 1; i++) {\n char next = chars[i];\n if ((next == '&' || next == '|') && (next == chars[i + 1])) {\n cyclomatic++;\n }\n }\n }\n return cyclomatic;\n }", "public String getSubject() {\n return this.subject;\n }", "public String getSubject() {\n return this.subject;\n }", "@Action(value = \"saveCertificate\", results = { @Result(name = INPUT, location = JSP_FIELDS) })\n @Validations(\n customValidators = { @CustomValidator(type = \"hibernate\", fieldName = \"certificate.issuer\", parameters = {\n @ValidationParameter(name = \"resourceKeyBase\", value = \"profile.organization\"),\n @ValidationParameter(name = \"excludes\", value = \"externalId\") }) },\n requiredFields = { @RequiredFieldValidator(fieldName = \"certificate.certificateType\",\n key = \"error.credentials.certificate.type.required\") },\n fieldExpressions = { @FieldExpressionValidator(\n fieldName = \"certificateFile.data\",\n expression = \"certificate.id != null || (certificateFile != null && certificateFile.data != null)\",\n key = \"error.credentials.certificate.file.required\"),\n @FieldExpressionValidator(fieldName = \"nihOerIssued\",\n expression = \"nihOerIssued || issuingOrganizationExternalId != null || certificate.issuer != null\",\n key = \"error.credentials.organization.required\"),\n @FieldExpressionValidator(\n fieldName = \"certificate.issuer.postalAddress.stateOrProvince\",\n expression = \"certificate.issuer != null\"\n + \" && certificate.issuer.postalAddress.stateOrProvinceValid\",\n key = \"stateOrProvince.required\")\n })\n public String saveCertificate() throws IOException {\n setFileDescription();\n setCertificateIssuer();\n boolean valid = validateFields();\n if (valid) {\n try {\n doSave();\n } catch (CredentialAlreadyExistsException ae) {\n handleCredentialAlreadyExists();\n valid = false;\n } catch (ValidationException e) {\n return handleValidationException(e);\n }\n }\n\n return valid ? closeDialog(getDialogId()) : INPUT;\n }", "public String getEmailAlt() {\n\t\t\treturn emailAlt;\n\t\t}", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public String getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject() {\n\t\treturn subject;\n\t}", "protected String getRequiredLiteral(Node node, int idx, String argumentName)\n {\n if (!requireArgument(node, idx, argumentName)) {\n return null;\n }\n return node.jjtGetChild(idx).literal();\n }" ]
[ "0.5051508", "0.47971627", "0.4715483", "0.46588224", "0.4629933", "0.462808", "0.4606242", "0.45822513", "0.4567646", "0.45542145", "0.45441476", "0.45218515", "0.45011103", "0.44694728", "0.44690672", "0.44407302", "0.44355777", "0.4434378", "0.4415964", "0.43950272", "0.43780765", "0.43734816", "0.4365196", "0.4359794", "0.43472025", "0.43472025", "0.4329055", "0.43143687", "0.43138376", "0.43046093", "0.42967916", "0.4278423", "0.42709577", "0.42684618", "0.4262997", "0.42491966", "0.4229781", "0.42144", "0.41940987", "0.41829047", "0.41823325", "0.4179871", "0.41695896", "0.41594774", "0.4154273", "0.4143763", "0.4138958", "0.4132291", "0.41294515", "0.41165245", "0.41113386", "0.41015264", "0.40964073", "0.40918714", "0.40888804", "0.4083503", "0.4075064", "0.40707564", "0.4066709", "0.4066155", "0.40585372", "0.4054814", "0.40456206", "0.4040063", "0.40315282", "0.40314975", "0.40279427", "0.40258402", "0.40257436", "0.40257436", "0.40257436", "0.4025069", "0.4020468", "0.40200907", "0.40094605", "0.40093145", "0.40047437", "0.40021303", "0.39966694", "0.39943716", "0.39913386", "0.3980109", "0.3979423", "0.39724156", "0.39724156", "0.3969194", "0.39656633", "0.39571851", "0.39571851", "0.39571851", "0.39528877", "0.39492863", "0.3949277", "0.3949277", "0.39410588", "0.3935326", "0.39333495", "0.39296418", "0.39296418", "0.3929579" ]
0.47956443
2
Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject] will be discarded. bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED];
boolean hasAllowSubjectPassthrough();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getAllowSubjectPassthrough();", "boolean hasAllowSubjectAltNamesPassthrough();", "boolean getAllowSubjectAltNamesPassthrough();", "@Override\n public boolean isSubject() {\n return false;\n }", "public void setAddSubjectInProviderParameter(final boolean addSubject)\r\n {\n\r\n AccessController.doPrivileged(new PrivilegedAction<Object>()\r\n {\r\n public Object run()\r\n {\r\n \tapph.setAddSubjectInProviderParameter(addSubject);\r\n \treturn null;\r\n }\r\n });\r\n }", "public boolean addCertificate(SubjectInfo subjectInfo, boolean isCa){\n if(myDatabase.containsValid(subjectInfo.getOrganisation() +\"-\"+ subjectInfo.getOrganisationUnit()))\n return false;\n X500Name x500Name = generateX500Name(subjectInfo);\n String serial = String.valueOf(myDatabase.getCounter());\n\n Calendar calendar = Calendar.getInstance();\n Date startDate = calendar.getTime();\n calendar.add(Calendar.YEAR, 2); // Certificate duration will be fixed at 2 years\n Date endDate = calendar.getTime();\n\n KeyPair keyPair = generateKeyPair();\n\n IssuerData issuerData = generateIssuerData(subjectInfo.getDesiredSigner());\n SubjectData subjectData = new SubjectData(keyPair.getPublic(), x500Name, serial, startDate, endDate);\n\n X509Certificate certificate = certificateGenerator.generateCertificate(subjectData, issuerData, isCa);\n\n keyStoreWriter.loadKeyStore(null, keystorePassword.toCharArray());\n keyStoreWriter.write(serial, keyPair.getPrivate(), keystorePassword.toCharArray(), certificate);\n keyStoreWriter.saveKeyStore(keystoreFile, keystorePassword.toCharArray());\n myDatabase.writeNew(true,subjectInfo.getOrganisation() + \"-\" + subjectInfo.getOrganisationUnit());\n return true;\n }", "public CheckPrincipalAccessRequest setSubject(SubjectInfo subject) {\n this.subject = subject;\n return this;\n }", "public void setSubject(String v) \n {\n \n if (!ObjectUtils.equals(this.subject, v))\n {\n this.subject = v;\n setModified(true);\n }\n \n \n }", "public void setSubject(Subject subject);", "public void setForSubject(boolean forSubject) {\n\t\t_forSubject = forSubject;\n\t}", "public boolean addSelfSigned(SubjectInfo subjectInfo){\n if(myDatabase.containsValid(subjectInfo.getOrganisation() +\"-\"+ subjectInfo.getOrganisationUnit()))\n return false;\n X500Name x500Name = generateX500Name(subjectInfo);\n String serial = String.valueOf(myDatabase.getCounter());\n\n Calendar calendar = Calendar.getInstance();\n Date startDate = calendar.getTime();\n calendar.add(Calendar.YEAR, 2); // Certificate duration will be fixed at 2 years\n Date endDate = calendar.getTime();\n\n KeyPair keyPair = generateKeyPair();\n\n SubjectData subjectData = new SubjectData(keyPair.getPublic(), x500Name, serial, startDate, endDate);\n IssuerData issuerData = new IssuerData(keyPair.getPrivate(), x500Name);\n X509Certificate certificate = certificateGenerator.generateCertificate(subjectData, issuerData, true);\n\n keyStoreWriter.loadKeyStore(null, keystorePassword.toCharArray());\n keyStoreWriter.write(serial, keyPair.getPrivate(), keystorePassword.toCharArray(), certificate);\n keyStoreWriter.saveKeyStore(keystoreFile, keystorePassword.toCharArray());\n myDatabase.writeNew(true,subjectInfo.getOrganisation() + \"-\" + subjectInfo.getOrganisationUnit());\n return true;\n }", "com.google.protobuf.ByteString getSubjectBytes();", "public Builder setSubjectBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n subject_ = value;\n onChanged();\n return this;\n }", "public Builder setSubjectBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n subject_ = value;\n onChanged();\n return this;\n }", "public static boolean isSubjectScoped()\n {\n return __s_SubjectScoped;\n }", "boolean isSetSubject();", "public void setSubject(String newValue);", "public void setSubject(String subject)\n {\n _subject = subject;\n }", "boolean hasCertificate();", "public void setSubject(String subject) {\n this.subject = subject;\n }", "public void setSubject(String subject) {\n this.subject = subject;\n }", "protected static void setSubjectScoped(boolean fSubjectScoped)\n {\n __s_SubjectScoped = fSubjectScoped;\n }", "public void setSubject(String subject) {\r\n\t\tthis.subject= subject;\r\n\t}", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "com.google.protobuf.ByteString\n getSubjectBytes();", "com.google.protobuf.ByteString\n getSubjectBytes();", "public void setSubject(String subject) {\n\t\tthis.subject = subject;\n\t}", "public void setSecuritySubject(Subject securitySubject) {\n this.securitySubject = securitySubject;\n }", "public void setSubject(Name subject) {\r\n this.subject = subject;\r\n }", "@Override\n public boolean followsSubject(String subjectType) {\n return false;\n }", "public CreateCertFromCSR setCaInfo(X500Name subject, PrivateKey key) {\n caSubject = subject;\n caKey = key;\n return this;\n }", "public boolean hasCertificate(Subject subject) {\r\n return certificates.contains(subject.getID());\r\n }", "public void setSubject(List<String> subject) {\n\t this.subject = subject;\n\t}", "public void setSubject(javax.security.auth.Subject subject)\n {\n __m_Subject = subject;\n }", "public void setSubject(String subject)\r\n {\r\n m_subject = subject;\r\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "void setSubject(org.hl7.fhir.ResourceReference subject);", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setSubject (String s) {\n subject = s;\n }", "public interface CertificationRequestWrapper {\n\n /**\n * Gets the subject name of this certificate.\n * @return subject name\n */\n X500Principal getSubject();\n \n /**\n * Gets the content of this certification request in a suitable string \n * encoding (typically PEM).\n * @return certification request content\n * @throws IOException\n */\n String getContent() throws IOException;\n \n}", "public void setSubject(Subject subject) {\n\t\tthis.subject = subject;\n\t}", "public String getSubject() {\n return this.subject;\n }", "public String getSubject() {\n return this.subject;\n }", "private boolean addSubjectAttributes(EsbEventContainer esbEventContainer, String attributes) {\r\n EsbEvent esbEvent = esbEventContainer.getEsbEvent();\r\n Map<String, Object> debugMapForEvent = esbEventContainer.getDebugMapForEvent();\r\n boolean addedAttributes = false;\r\n Subject subject = esbEvent.retrieveSubject();\r\n if (subject != null) {\r\n String[] attributesArray = GrouperUtil.splitTrim(attributes, \",\");\r\n for (int i = 0; i < attributesArray.length; i++) {\r\n addedAttributes = true;\r\n String attributeName = attributesArray[i];\r\n String attributeValue = subject.getAttributeValueOrCommaSeparated(attributeName);\r\n if (GrouperUtil.isBlank(attributeValue)) {\r\n if (StringUtils.equals(\"name\", attributeName)) {\r\n attributeValue = subject.getName();\r\n } else if (StringUtils.equals(\"description\", attributeName)) {\r\n attributeValue = subject.getDescription();\r\n } \r\n }\r\n if (!StringUtils.isBlank(attributeValue)) {\r\n debugMapForEvent.put(\"attr_\" + attributeName + \"_value\", \"'\" + attributeValue + \"'\");\r\n esbEvent.addSubjectAttribute(attributeName, attributeValue);\r\n }\r\n }\r\n }\r\n return addedAttributes;\r\n }", "public void setSubject(String s)\r\n {\r\n mySubject = s;\r\n }", "public Builder setSubjectKeyIDBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n subjectKeyID_ = value;\n onChanged();\n return this;\n }", "public Builder setSubjectKeyIDBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n subjectKeyID_ = value;\n onChanged();\n return this;\n }", "public void setPublicSubject(String publicSubject) {\n this.publicSubject = publicSubject;\n }", "String getCertificate();", "public void addSubject(Subject subject) {\n\t\t\r\n\t}", "public X509SubjectKeyIdentifierBasedRequest(\n byte[] x509SubjectKeyIdentifier) {\n this.x509SubjectKeyIdentifier = x509SubjectKeyIdentifier;\n }", "public boolean hasCertificate() {\n return certificate_ != null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public void setSubjectDN(javax.security.auth.x500.X500Principal r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(javax.security.auth.x500.X500Principal):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(javax.security.auth.x500.X500Principal):void\");\n }", "public StartEngagementRequest withSubject(String subject) {\n setSubject(subject);\n return this;\n }", "public Subject createSubject(Subject subject);", "private void setHascert() {\r\n\t\tthis.hascert = true;\r\n\t}", "X500Principal getSubject();", "public String getSubject() {\n return subject;\n }", "public boolean hasCertificate() {\n return certificateBuilder_ != null || certificate_ != null;\n }", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public void setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name):void\");\n }", "public String getSubject() {\n return subject;\n }", "public String getSubject() {\n return subject;\n }", "public void setmSubject(String mSubject) {\n this.mSubject = mSubject;\n }", "public void setSubjects(String subjects) {\r\n this.subjects = subjects;\r\n }", "@VisibleForTesting\n IkeAuthDigitalSignRemoteConfig(@Nullable X509Certificate caCert) {\n super(IKE_AUTH_METHOD_PUB_KEY_SIGNATURE, AUTH_DIRECTION_REMOTE);\n if (caCert == null) {\n mTrustAnchor = null;\n } else {\n // The name constraints extension, defined in RFC 5280, indicates a name space\n // within which all subject names in subsequent certificates in a certification path\n // MUST be located.\n mTrustAnchor = new TrustAnchor(caCert, null /*nameConstraints*/);\n\n // TODO: Investigate if we need to support the name constraints extension.\n }\n }", "public List<String> getSubject() {\n\t return this.subject;\n\t}", "public M csseSubjectNull(){if(this.get(\"csseSubjectNot\")==null)this.put(\"csseSubjectNot\", \"\");this.put(\"csseSubject\", null);return this;}", "public String getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject() {\n\t\treturn subject;\n\t}", "public X509Certificate getCertificate();", "@Override\n\tpublic boolean isTrusted(X509Certificate[] chain, String authType)\n\t\t\tthrows CertificateException {\n\t\treturn false;\n\t}", "public boolean[] getSubjectUniqueID() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSubjectUniqueID():boolean[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSubjectUniqueID():boolean[]\");\n }", "public byte[] getSubjectKeyIdentifier() {\n return x509SubjectKeyIdentifier;\n }", "public SubjectInfo getSubject() {\n return this.subject;\n }", "java.lang.String getSubject();", "java.lang.String getSubject();", "java.lang.String getSubject();", "public CertificationRequestInfo(\n X500Name subject,\n SubjectPublicKeyInfo pkInfo,\n ASN1Set attributes)\n {\n if ((subject == null) || (pkInfo == null))\n {\n throw new IllegalArgumentException(\"Not all mandatory fields set in CertificationRequestInfo generator.\");\n }\n\n validateAttributes(attributes);\n\n this.subject = subject;\n this.subjectPKInfo = pkInfo;\n this.attributes = attributes;\n }", "public boolean canSigning() {\n if (canAddAnnot()) return true;\n if (canFillForm()) return true;\n if (canModifyContents()) return true;\n return false;\n }", "public void setSubjectInfo(SubjectInfo subjectInfo) {\r\n\t\tthis.subjectInfo = subjectInfo;\r\n\t}", "public void setSubject(String subj) {\n/* 296 */ getCOSObject().setString(COSName.SUBJ, subj);\n/* */ }", "public UpdatePipeSourceSelfManagedKafkaParameters withServerRootCaCertificate(String serverRootCaCertificate) {\n setServerRootCaCertificate(serverRootCaCertificate);\n return this;\n }", "public Builder setSubjectKeyID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subjectKeyID_ = value;\n onChanged();\n return this;\n }", "public Builder setSubjectKeyID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subjectKeyID_ = value;\n onChanged();\n return this;\n }", "public String getSubject()\r\n {\r\n return subject;\r\n }", "public void addSubject(Subject s) {\n // TODO implement here\n }", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "public Builder clearSubjectKeyID() {\n \n subjectKeyID_ = getDefaultInstance().getSubjectKeyID();\n onChanged();\n return this;\n }", "public Builder clearSubjectKeyID() {\n \n subjectKeyID_ = getDefaultInstance().getSubjectKeyID();\n onChanged();\n return this;\n }", "public Builder clearSubject() {\n \n subject_ = getDefaultInstance().getSubject();\n onChanged();\n return this;\n }", "public Builder clearSubject() {\n \n subject_ = getDefaultInstance().getSubject();\n onChanged();\n return this;\n }", "public Builder setSubject(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subject_ = value;\n onChanged();\n return this;\n }", "public Builder setSubject(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subject_ = value;\n onChanged();\n return this;\n }", "public void createNoSubject() {\n\n }", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();" ]
[ "0.66049045", "0.6545469", "0.6434618", "0.59028894", "0.54870594", "0.53665286", "0.5365175", "0.51522255", "0.5146171", "0.5113249", "0.5112765", "0.50977325", "0.5096889", "0.5096889", "0.506958", "0.5044079", "0.49914747", "0.4975057", "0.49694657", "0.4955659", "0.4955659", "0.49345836", "0.49202055", "0.49141663", "0.48962662", "0.48962662", "0.48812354", "0.48771602", "0.48428246", "0.48316902", "0.48279944", "0.48273045", "0.48029557", "0.4791522", "0.47908732", "0.47867408", "0.47867408", "0.47402492", "0.47382227", "0.47382227", "0.47376812", "0.4737627", "0.4714036", "0.47027004", "0.47027004", "0.4678231", "0.46709904", "0.46679705", "0.46679705", "0.4647388", "0.46235", "0.46128622", "0.46099788", "0.45982748", "0.45921892", "0.45902595", "0.4586681", "0.4578976", "0.45688003", "0.4554621", "0.45488796", "0.45486724", "0.45470458", "0.45470458", "0.45454025", "0.45453018", "0.45453018", "0.45326814", "0.45310393", "0.45302868", "0.45269403", "0.45184135", "0.45144814", "0.45144814", "0.45102513", "0.45034033", "0.4501552", "0.44961748", "0.447757", "0.44726855", "0.44726855", "0.44726855", "0.4471069", "0.44664043", "0.44598848", "0.44574013", "0.44566092", "0.44428685", "0.44428685", "0.44290578", "0.44228828", "0.44026092", "0.44023496", "0.44023496", "0.43955278", "0.43955278", "0.43902373", "0.43902373", "0.43831128", "0.43717167" ]
0.645281
2
Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject] will be discarded. bool allow_subject_passthrough = 2 [(.google.api.field_behavior) = REQUIRED];
boolean getAllowSubjectPassthrough();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasAllowSubjectAltNamesPassthrough();", "boolean hasAllowSubjectPassthrough();", "boolean getAllowSubjectAltNamesPassthrough();", "@Override\n public boolean isSubject() {\n return false;\n }", "public void setAddSubjectInProviderParameter(final boolean addSubject)\r\n {\n\r\n AccessController.doPrivileged(new PrivilegedAction<Object>()\r\n {\r\n public Object run()\r\n {\r\n \tapph.setAddSubjectInProviderParameter(addSubject);\r\n \treturn null;\r\n }\r\n });\r\n }", "public boolean addCertificate(SubjectInfo subjectInfo, boolean isCa){\n if(myDatabase.containsValid(subjectInfo.getOrganisation() +\"-\"+ subjectInfo.getOrganisationUnit()))\n return false;\n X500Name x500Name = generateX500Name(subjectInfo);\n String serial = String.valueOf(myDatabase.getCounter());\n\n Calendar calendar = Calendar.getInstance();\n Date startDate = calendar.getTime();\n calendar.add(Calendar.YEAR, 2); // Certificate duration will be fixed at 2 years\n Date endDate = calendar.getTime();\n\n KeyPair keyPair = generateKeyPair();\n\n IssuerData issuerData = generateIssuerData(subjectInfo.getDesiredSigner());\n SubjectData subjectData = new SubjectData(keyPair.getPublic(), x500Name, serial, startDate, endDate);\n\n X509Certificate certificate = certificateGenerator.generateCertificate(subjectData, issuerData, isCa);\n\n keyStoreWriter.loadKeyStore(null, keystorePassword.toCharArray());\n keyStoreWriter.write(serial, keyPair.getPrivate(), keystorePassword.toCharArray(), certificate);\n keyStoreWriter.saveKeyStore(keystoreFile, keystorePassword.toCharArray());\n myDatabase.writeNew(true,subjectInfo.getOrganisation() + \"-\" + subjectInfo.getOrganisationUnit());\n return true;\n }", "public CheckPrincipalAccessRequest setSubject(SubjectInfo subject) {\n this.subject = subject;\n return this;\n }", "public void setSubject(String v) \n {\n \n if (!ObjectUtils.equals(this.subject, v))\n {\n this.subject = v;\n setModified(true);\n }\n \n \n }", "public void setSubject(Subject subject);", "public boolean addSelfSigned(SubjectInfo subjectInfo){\n if(myDatabase.containsValid(subjectInfo.getOrganisation() +\"-\"+ subjectInfo.getOrganisationUnit()))\n return false;\n X500Name x500Name = generateX500Name(subjectInfo);\n String serial = String.valueOf(myDatabase.getCounter());\n\n Calendar calendar = Calendar.getInstance();\n Date startDate = calendar.getTime();\n calendar.add(Calendar.YEAR, 2); // Certificate duration will be fixed at 2 years\n Date endDate = calendar.getTime();\n\n KeyPair keyPair = generateKeyPair();\n\n SubjectData subjectData = new SubjectData(keyPair.getPublic(), x500Name, serial, startDate, endDate);\n IssuerData issuerData = new IssuerData(keyPair.getPrivate(), x500Name);\n X509Certificate certificate = certificateGenerator.generateCertificate(subjectData, issuerData, true);\n\n keyStoreWriter.loadKeyStore(null, keystorePassword.toCharArray());\n keyStoreWriter.write(serial, keyPair.getPrivate(), keystorePassword.toCharArray(), certificate);\n keyStoreWriter.saveKeyStore(keystoreFile, keystorePassword.toCharArray());\n myDatabase.writeNew(true,subjectInfo.getOrganisation() + \"-\" + subjectInfo.getOrganisationUnit());\n return true;\n }", "public void setForSubject(boolean forSubject) {\n\t\t_forSubject = forSubject;\n\t}", "public Builder setSubjectBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n subject_ = value;\n onChanged();\n return this;\n }", "public Builder setSubjectBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n subject_ = value;\n onChanged();\n return this;\n }", "com.google.protobuf.ByteString getSubjectBytes();", "public static boolean isSubjectScoped()\n {\n return __s_SubjectScoped;\n }", "boolean isSetSubject();", "public void setSubject(String newValue);", "public void setSubject(String subject)\n {\n _subject = subject;\n }", "boolean hasCertificate();", "public void setSubject(String subject) {\n this.subject = subject;\n }", "public void setSubject(String subject) {\n this.subject = subject;\n }", "protected static void setSubjectScoped(boolean fSubjectScoped)\n {\n __s_SubjectScoped = fSubjectScoped;\n }", "public void setSubject(String subject) {\r\n\t\tthis.subject= subject;\r\n\t}", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "com.google.protobuf.ByteString\n getSubjectBytes();", "com.google.protobuf.ByteString\n getSubjectBytes();", "public void setSubject(String subject) {\n\t\tthis.subject = subject;\n\t}", "public void setSecuritySubject(Subject securitySubject) {\n this.securitySubject = securitySubject;\n }", "public void setSubject(Name subject) {\r\n this.subject = subject;\r\n }", "@Override\n public boolean followsSubject(String subjectType) {\n return false;\n }", "public CreateCertFromCSR setCaInfo(X500Name subject, PrivateKey key) {\n caSubject = subject;\n caKey = key;\n return this;\n }", "public boolean hasCertificate(Subject subject) {\r\n return certificates.contains(subject.getID());\r\n }", "public void setSubject(List<String> subject) {\n\t this.subject = subject;\n\t}", "public void setSubject(javax.security.auth.Subject subject)\n {\n __m_Subject = subject;\n }", "public void setSubject(String subject)\r\n {\r\n m_subject = subject;\r\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "void setSubject(org.hl7.fhir.ResourceReference subject);", "public void setSubject (String s) {\n subject = s;\n }", "public interface CertificationRequestWrapper {\n\n /**\n * Gets the subject name of this certificate.\n * @return subject name\n */\n X500Principal getSubject();\n \n /**\n * Gets the content of this certification request in a suitable string \n * encoding (typically PEM).\n * @return certification request content\n * @throws IOException\n */\n String getContent() throws IOException;\n \n}", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setSubject(Subject subject) {\n\t\tthis.subject = subject;\n\t}", "public String getSubject() {\n return this.subject;\n }", "public String getSubject() {\n return this.subject;\n }", "private boolean addSubjectAttributes(EsbEventContainer esbEventContainer, String attributes) {\r\n EsbEvent esbEvent = esbEventContainer.getEsbEvent();\r\n Map<String, Object> debugMapForEvent = esbEventContainer.getDebugMapForEvent();\r\n boolean addedAttributes = false;\r\n Subject subject = esbEvent.retrieveSubject();\r\n if (subject != null) {\r\n String[] attributesArray = GrouperUtil.splitTrim(attributes, \",\");\r\n for (int i = 0; i < attributesArray.length; i++) {\r\n addedAttributes = true;\r\n String attributeName = attributesArray[i];\r\n String attributeValue = subject.getAttributeValueOrCommaSeparated(attributeName);\r\n if (GrouperUtil.isBlank(attributeValue)) {\r\n if (StringUtils.equals(\"name\", attributeName)) {\r\n attributeValue = subject.getName();\r\n } else if (StringUtils.equals(\"description\", attributeName)) {\r\n attributeValue = subject.getDescription();\r\n } \r\n }\r\n if (!StringUtils.isBlank(attributeValue)) {\r\n debugMapForEvent.put(\"attr_\" + attributeName + \"_value\", \"'\" + attributeValue + \"'\");\r\n esbEvent.addSubjectAttribute(attributeName, attributeValue);\r\n }\r\n }\r\n }\r\n return addedAttributes;\r\n }", "public void setSubject(String s)\r\n {\r\n mySubject = s;\r\n }", "public Builder setSubjectKeyIDBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n subjectKeyID_ = value;\n onChanged();\n return this;\n }", "public Builder setSubjectKeyIDBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n subjectKeyID_ = value;\n onChanged();\n return this;\n }", "public void setPublicSubject(String publicSubject) {\n this.publicSubject = publicSubject;\n }", "String getCertificate();", "public void addSubject(Subject subject) {\n\t\t\r\n\t}", "public X509SubjectKeyIdentifierBasedRequest(\n byte[] x509SubjectKeyIdentifier) {\n this.x509SubjectKeyIdentifier = x509SubjectKeyIdentifier;\n }", "public boolean hasCertificate() {\n return certificate_ != null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public void setSubjectDN(javax.security.auth.x500.X500Principal r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(javax.security.auth.x500.X500Principal):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(javax.security.auth.x500.X500Principal):void\");\n }", "public StartEngagementRequest withSubject(String subject) {\n setSubject(subject);\n return this;\n }", "public Subject createSubject(Subject subject);", "private void setHascert() {\r\n\t\tthis.hascert = true;\r\n\t}", "X500Principal getSubject();", "public String getSubject() {\n return subject;\n }", "public boolean hasCertificate() {\n return certificateBuilder_ != null || certificate_ != null;\n }", "public void setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name):void\");\n }", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public String getSubject() {\n return subject;\n }", "public String getSubject() {\n return subject;\n }", "public void setmSubject(String mSubject) {\n this.mSubject = mSubject;\n }", "public void setSubjects(String subjects) {\r\n this.subjects = subjects;\r\n }", "@VisibleForTesting\n IkeAuthDigitalSignRemoteConfig(@Nullable X509Certificate caCert) {\n super(IKE_AUTH_METHOD_PUB_KEY_SIGNATURE, AUTH_DIRECTION_REMOTE);\n if (caCert == null) {\n mTrustAnchor = null;\n } else {\n // The name constraints extension, defined in RFC 5280, indicates a name space\n // within which all subject names in subsequent certificates in a certification path\n // MUST be located.\n mTrustAnchor = new TrustAnchor(caCert, null /*nameConstraints*/);\n\n // TODO: Investigate if we need to support the name constraints extension.\n }\n }", "public List<String> getSubject() {\n\t return this.subject;\n\t}", "public M csseSubjectNull(){if(this.get(\"csseSubjectNot\")==null)this.put(\"csseSubjectNot\", \"\");this.put(\"csseSubject\", null);return this;}", "public String getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject() {\n\t\treturn subject;\n\t}", "public X509Certificate getCertificate();", "@Override\n\tpublic boolean isTrusted(X509Certificate[] chain, String authType)\n\t\t\tthrows CertificateException {\n\t\treturn false;\n\t}", "public boolean[] getSubjectUniqueID() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSubjectUniqueID():boolean[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSubjectUniqueID():boolean[]\");\n }", "public byte[] getSubjectKeyIdentifier() {\n return x509SubjectKeyIdentifier;\n }", "public SubjectInfo getSubject() {\n return this.subject;\n }", "public CertificationRequestInfo(\n X500Name subject,\n SubjectPublicKeyInfo pkInfo,\n ASN1Set attributes)\n {\n if ((subject == null) || (pkInfo == null))\n {\n throw new IllegalArgumentException(\"Not all mandatory fields set in CertificationRequestInfo generator.\");\n }\n\n validateAttributes(attributes);\n\n this.subject = subject;\n this.subjectPKInfo = pkInfo;\n this.attributes = attributes;\n }", "java.lang.String getSubject();", "java.lang.String getSubject();", "java.lang.String getSubject();", "public boolean canSigning() {\n if (canAddAnnot()) return true;\n if (canFillForm()) return true;\n if (canModifyContents()) return true;\n return false;\n }", "public void setSubjectInfo(SubjectInfo subjectInfo) {\r\n\t\tthis.subjectInfo = subjectInfo;\r\n\t}", "public UpdatePipeSourceSelfManagedKafkaParameters withServerRootCaCertificate(String serverRootCaCertificate) {\n setServerRootCaCertificate(serverRootCaCertificate);\n return this;\n }", "public void setSubject(String subj) {\n/* 296 */ getCOSObject().setString(COSName.SUBJ, subj);\n/* */ }", "public Builder setSubjectKeyID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subjectKeyID_ = value;\n onChanged();\n return this;\n }", "public Builder setSubjectKeyID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subjectKeyID_ = value;\n onChanged();\n return this;\n }", "public String getSubject()\r\n {\r\n return subject;\r\n }", "public void addSubject(Subject s) {\n // TODO implement here\n }", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "public Builder clearSubjectKeyID() {\n \n subjectKeyID_ = getDefaultInstance().getSubjectKeyID();\n onChanged();\n return this;\n }", "public Builder clearSubjectKeyID() {\n \n subjectKeyID_ = getDefaultInstance().getSubjectKeyID();\n onChanged();\n return this;\n }", "public Builder clearSubject() {\n \n subject_ = getDefaultInstance().getSubject();\n onChanged();\n return this;\n }", "public Builder clearSubject() {\n \n subject_ = getDefaultInstance().getSubject();\n onChanged();\n return this;\n }", "public Builder setSubject(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subject_ = value;\n onChanged();\n return this;\n }", "public Builder setSubject(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subject_ = value;\n onChanged();\n return this;\n }", "public void createNoSubject() {\n\n }", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();" ]
[ "0.65452594", "0.6452149", "0.64339614", "0.5902498", "0.5489333", "0.53689003", "0.53673905", "0.51528597", "0.5147295", "0.5114508", "0.5113659", "0.5097641", "0.5097641", "0.50972337", "0.5069091", "0.5044621", "0.49923497", "0.4976341", "0.49693063", "0.49568933", "0.49568933", "0.4935005", "0.49214756", "0.49148336", "0.48955387", "0.48955387", "0.48823908", "0.48785615", "0.48441246", "0.48323166", "0.48303273", "0.48279464", "0.48035273", "0.4793173", "0.47921813", "0.47865555", "0.47865555", "0.47420093", "0.4738257", "0.47378993", "0.4737897", "0.4737897", "0.4715387", "0.4702568", "0.4702568", "0.46810603", "0.46717727", "0.46683794", "0.46683794", "0.46473673", "0.46228275", "0.46141967", "0.4611241", "0.45976248", "0.45940998", "0.45923635", "0.45873868", "0.45797288", "0.45697838", "0.4555128", "0.4548787", "0.454797", "0.45476282", "0.45469794", "0.45469794", "0.45451674", "0.45451674", "0.4534188", "0.45314968", "0.45312074", "0.45263135", "0.45192996", "0.45143768", "0.45143768", "0.45096508", "0.4503723", "0.45022833", "0.44958788", "0.44776964", "0.44728053", "0.44726405", "0.44726405", "0.44726405", "0.44660345", "0.44617802", "0.44580218", "0.44579488", "0.4443708", "0.4443708", "0.442902", "0.4423703", "0.44034967", "0.4402731", "0.4402731", "0.43961143", "0.43961143", "0.43914658", "0.43914658", "0.4382881", "0.43706134" ]
0.6603853
0
Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a certificate request into the signed certificate. Otherwise, the requested [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded. bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED];
boolean hasAllowSubjectAltNamesPassthrough();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getAllowSubjectAltNamesPassthrough();", "boolean getAllowSubjectPassthrough();", "public java.util.Collection<java.util.List<?>> getSubjectAlternativeNames() throws java.security.cert.CertificateParsingException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSubjectAlternativeNames():java.util.Collection<java.util.List<?>>, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSubjectAlternativeNames():java.util.Collection<java.util.List<?>>\");\n }", "boolean hasAllowSubjectPassthrough();", "public AltsChannelBuilder enableUntrustedAltsForTesting() {\n enableUntrustedAlts = true;\n return this;\n }", "@Override\n public boolean isSubject() {\n return false;\n }", "public void setAddSubjectInProviderParameter(final boolean addSubject)\r\n {\n\r\n AccessController.doPrivileged(new PrivilegedAction<Object>()\r\n {\r\n public Object run()\r\n {\r\n \tapph.setAddSubjectInProviderParameter(addSubject);\r\n \treturn null;\r\n }\r\n });\r\n }", "@Override\n\t\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows CertificateException {\n\t\t\t\t\t\n\t\t\t\t}", "public void setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name):void\");\n }", "@Override\n\t\t\t\tpublic void checkServerTrusted(java.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows CertificateException {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "public void setSubjectDN(javax.security.auth.x500.X500Principal r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(javax.security.auth.x500.X500Principal):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(javax.security.auth.x500.X500Principal):void\");\n }", "@Override\n public void checkServerTrusted(\n final java.security.cert.X509Certificate[] arg0, final String arg1)\n throws CertificateException {\n }", "@Override\r\n\t\t\t\t\tpublic void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException\r\n\t\t\t\t\t{\n\t\t\t\t\t}", "private void setHascert() {\r\n\t\tthis.hascert = true;\r\n\t}", "@Override\n public void checkClientTrusted(\n final java.security.cert.X509Certificate[] arg0, final String arg1)\n throws CertificateException {\n }", "@Override\n\t\t\t\tpublic void checkClientTrusted(java.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows CertificateException {\n\n\t\t\t\t}", "public void setSubject(String v) \n {\n \n if (!ObjectUtils.equals(this.subject, v))\n {\n this.subject = v;\n setModified(true);\n }\n \n \n }", "@Override\n\t\t\t\tpublic void checkClientTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void checkClientTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "@Override\npublic void checkServerTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}", "@Override\r\n\t\t\t\t\tpublic void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException\r\n\t\t\t\t\t{\n\t\t\t\t\t}", "public void setSubject(String newValue);", "@Override\npublic void checkClientTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}", "public interface CertificationRequestWrapper {\n\n /**\n * Gets the subject name of this certificate.\n * @return subject name\n */\n X500Principal getSubject();\n \n /**\n * Gets the content of this certification request in a suitable string \n * encoding (typically PEM).\n * @return certification request content\n * @throws IOException\n */\n String getContent() throws IOException;\n \n}", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "boolean hasCertificate();", "public void setSubject(Name subject) {\r\n this.subject = subject;\r\n }", "public void setRootCaData(String data);", "String getCertificate();", "public boolean addCertificate(SubjectInfo subjectInfo, boolean isCa){\n if(myDatabase.containsValid(subjectInfo.getOrganisation() +\"-\"+ subjectInfo.getOrganisationUnit()))\n return false;\n X500Name x500Name = generateX500Name(subjectInfo);\n String serial = String.valueOf(myDatabase.getCounter());\n\n Calendar calendar = Calendar.getInstance();\n Date startDate = calendar.getTime();\n calendar.add(Calendar.YEAR, 2); // Certificate duration will be fixed at 2 years\n Date endDate = calendar.getTime();\n\n KeyPair keyPair = generateKeyPair();\n\n IssuerData issuerData = generateIssuerData(subjectInfo.getDesiredSigner());\n SubjectData subjectData = new SubjectData(keyPair.getPublic(), x500Name, serial, startDate, endDate);\n\n X509Certificate certificate = certificateGenerator.generateCertificate(subjectData, issuerData, isCa);\n\n keyStoreWriter.loadKeyStore(null, keystorePassword.toCharArray());\n keyStoreWriter.write(serial, keyPair.getPrivate(), keystorePassword.toCharArray(), certificate);\n keyStoreWriter.saveKeyStore(keystoreFile, keystorePassword.toCharArray());\n myDatabase.writeNew(true,subjectInfo.getOrganisation() + \"-\" + subjectInfo.getOrganisationUnit());\n return true;\n }", "public void setSubject(List<String> subject) {\n\t this.subject = subject;\n\t}", "@Override\n\tpublic boolean isTrusted(X509Certificate[] chain, String authType)\n\t\t\tthrows CertificateException {\n\t\treturn false;\n\t}", "private boolean addSubjectAttributes(EsbEventContainer esbEventContainer, String attributes) {\r\n EsbEvent esbEvent = esbEventContainer.getEsbEvent();\r\n Map<String, Object> debugMapForEvent = esbEventContainer.getDebugMapForEvent();\r\n boolean addedAttributes = false;\r\n Subject subject = esbEvent.retrieveSubject();\r\n if (subject != null) {\r\n String[] attributesArray = GrouperUtil.splitTrim(attributes, \",\");\r\n for (int i = 0; i < attributesArray.length; i++) {\r\n addedAttributes = true;\r\n String attributeName = attributesArray[i];\r\n String attributeValue = subject.getAttributeValueOrCommaSeparated(attributeName);\r\n if (GrouperUtil.isBlank(attributeValue)) {\r\n if (StringUtils.equals(\"name\", attributeName)) {\r\n attributeValue = subject.getName();\r\n } else if (StringUtils.equals(\"description\", attributeName)) {\r\n attributeValue = subject.getDescription();\r\n } \r\n }\r\n if (!StringUtils.isBlank(attributeValue)) {\r\n debugMapForEvent.put(\"attr_\" + attributeName + \"_value\", \"'\" + attributeValue + \"'\");\r\n esbEvent.addSubjectAttribute(attributeName, attributeValue);\r\n }\r\n }\r\n }\r\n return addedAttributes;\r\n }", "@Override\n public boolean isValidIssuer(List<String> certAuthorities) {\n return sValidIssuer;\n }", "@ApiModelProperty(value = \"The content of the new certificate to be added to the Auto-TLS truststore. Specify either this or a NewCertLocation. <br> The certificate, if specified, needs to be a standard PEM-encoded key as a single string, with all line breaks replaced with the line-feed control character '\\\\n'. <br> A value will typically look like the following string: <br> -----BEGIN CERTIFICATE-----\\\\n[base-64 encoded key]\\\\n-----END CERTIFICATE----- <br>\")\n\n\n public String getNewCertContent() {\n return newCertContent;\n }", "com.google.protobuf.ByteString getSubjectBytes();", "public CheckPrincipalAccessRequest setSubject(SubjectInfo subject) {\n this.subject = subject;\n return this;\n }", "public boolean addSelfSigned(SubjectInfo subjectInfo){\n if(myDatabase.containsValid(subjectInfo.getOrganisation() +\"-\"+ subjectInfo.getOrganisationUnit()))\n return false;\n X500Name x500Name = generateX500Name(subjectInfo);\n String serial = String.valueOf(myDatabase.getCounter());\n\n Calendar calendar = Calendar.getInstance();\n Date startDate = calendar.getTime();\n calendar.add(Calendar.YEAR, 2); // Certificate duration will be fixed at 2 years\n Date endDate = calendar.getTime();\n\n KeyPair keyPair = generateKeyPair();\n\n SubjectData subjectData = new SubjectData(keyPair.getPublic(), x500Name, serial, startDate, endDate);\n IssuerData issuerData = new IssuerData(keyPair.getPrivate(), x500Name);\n X509Certificate certificate = certificateGenerator.generateCertificate(subjectData, issuerData, true);\n\n keyStoreWriter.loadKeyStore(null, keystorePassword.toCharArray());\n keyStoreWriter.write(serial, keyPair.getPrivate(), keystorePassword.toCharArray(), certificate);\n keyStoreWriter.saveKeyStore(keystoreFile, keystorePassword.toCharArray());\n myDatabase.writeNew(true,subjectInfo.getOrganisation() + \"-\" + subjectInfo.getOrganisationUnit());\n return true;\n }", "public void setRootCa(String path);", "@Value.Redacted\n List<X509Certificate> caCert();", "com.google.protobuf.ByteString\n getSubjectBytes();", "com.google.protobuf.ByteString\n getSubjectBytes();", "public boolean[] getSubjectUniqueID() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSubjectUniqueID():boolean[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSubjectUniqueID():boolean[]\");\n }", "boolean isSetDelegateSuggestedSignerEmail();", "public void setSubjects(String subjects) {\r\n this.subjects = subjects;\r\n }", "public void setSubject (String s) {\n subject = s;\n }", "public void setSubject(String s)\r\n {\r\n mySubject = s;\r\n }", "@VisibleForTesting\n IkeAuthDigitalSignRemoteConfig(@Nullable X509Certificate caCert) {\n super(IKE_AUTH_METHOD_PUB_KEY_SIGNATURE, AUTH_DIRECTION_REMOTE);\n if (caCert == null) {\n mTrustAnchor = null;\n } else {\n // The name constraints extension, defined in RFC 5280, indicates a name space\n // within which all subject names in subsequent certificates in a certification path\n // MUST be located.\n mTrustAnchor = new TrustAnchor(caCert, null /*nameConstraints*/);\n\n // TODO: Investigate if we need to support the name constraints extension.\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public void setSubject(Subject subject);", "public void checkServerTrusted(X509Certificate[] arg0, String arg1)\n throws CertificateException\n {\n }", "public Builder setSubjectBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n subject_ = value;\n onChanged();\n return this;\n }", "public Builder setSubjectBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n subject_ = value;\n onChanged();\n return this;\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "X500Principal getSubject();", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "public void checkClientTrusted(X509Certificate[] arg0, String arg1)\n throws CertificateException\n {\n }", "protected static void setSubjectScoped(boolean fSubjectScoped)\n {\n __s_SubjectScoped = fSubjectScoped;\n }", "@Test\n public void testMutualAuthenticationWithDNSInCNField() throws Exception {\n final SaslClientFactory clientFactory = obtainSaslClientFactory(EntitySaslClientFactory.class);\n assertNotNull(clientFactory);\n\n final KeyStore keyStore = serverKeyStore;\n final Certificate[] certificateChain = keyStore.getCertificateChain(\"dnsInCNServer\");\n final SaslServer saslServer = createSaslServer(SaslMechanismInformation.Names.IEC_ISO_9798_M_DSA_SHA1, \"testserver2.example.com\",\n serverTrustStore, (PrivateKey) keyStore.getKey(\"dnsInCNServer\", KEYSTORE_PASSWORD),\n Arrays.copyOf(certificateChain, certificateChain.length, X509Certificate[].class));\n\n final String[] mechanisms = new String[] { SaslMechanismInformation.Names.IEC_ISO_9798_M_DSA_SHA1 };\n CallbackHandler cbh = createClientCallbackHandler(mechanisms, clientKeyStore, \"dnsInCNClient\", KEYSTORE_PASSWORD, getX509TrustManager(clientTrustStore));\n final SaslClient saslClient = clientFactory.createSaslClient(mechanisms, null, \"test\", \"testserver2.example.com\",\n Collections.<String, Object>emptyMap(), cbh);\n assertFalse(saslServer.isComplete());\n assertFalse(saslClient.isComplete());\n\n byte[] message = saslServer.evaluateResponse(new byte[0]);\n assertFalse(saslServer.isComplete());\n assertFalse(saslClient.isComplete());\n\n message = saslClient.evaluateChallenge(message);\n assertFalse(saslServer.isComplete());\n assertFalse(saslClient.isComplete());\n\n message = saslServer.evaluateResponse(message);\n assertNotNull(message);\n\n message = saslClient.evaluateChallenge(message);\n assertNull(message);\n assertTrue(saslClient.isComplete());\n assertTrue(saslServer.isComplete());\n assertEquals(\"cn=testclient2.example.com,ou=jboss,o=red hat,l=raleigh,st=north carolina,c=us\", saslServer.getAuthorizationID());\n }", "public X509Certificate[] getTrustedIssuers();", "@Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }", "public String getEmailAlt() {\n\t\t\treturn emailAlt;\n\t\t}", "public void setSubject(String subject)\n {\n _subject = subject;\n }", "@Override\n public String[] alternativeNames() {\n return normAlts;\n }", "public boolean isCertificateAlias(String alias) throws CryptoException {\n\t\ttry {\n\t // does alias refer to a trusted certificate?\n\t\t\treturn keystore.isCertificateEntry(alias);\n\t\t} catch(KeyStoreException e) {\n\t\t\tlogger.error(\"error checking alias '\" + alias + \"' with the keystore\", e);\n\t\t\tthrow new CryptoException(\"error checking alias '\" + alias + \"' with the keystore\", e);\t\t\t\n\t\t}\n }", "public CreateCertFromCSR setCaInfo(X500Name subject, PrivateKey key) {\n caSubject = subject;\n caKey = key;\n return this;\n }", "public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {\n\r\n\t\t\t\t}", "public void setForSubject(boolean forSubject) {\n\t\t_forSubject = forSubject;\n\t}", "public void setSubject(String subject) {\r\n\t\tthis.subject= subject;\r\n\t}", "public void setSubject(String subject) {\n this.subject = subject;\n }", "public void setSubject(String subject) {\n this.subject = subject;\n }", "public void importKeyFromJcaKeystore(KeyStore jcaKeystore,\n String alias, String domain)\n throws IOException, GeneralSecurityException {\n X509Certificate cert;\n byte[] der;\n TLV tbsCert;\n TLV subjectName;\n RSAPublicKey rsaKey;\n String owner;\n long notBefore;\n long notAfter;\n byte[] rawModulus;\n int i;\n int keyLen;\n byte[] modulus;\n byte[] exponent;\n Vector keys;\n\n // get the cert from the keystore\n try {\n cert = (X509Certificate)jcaKeystore.getCertificate(alias);\n } catch (ClassCastException cce) {\n throw new CertificateException(\"Certificate not X.509 type\");\n }\n\n if (cert == null) {\n throw new CertificateException(\"Certificate not found\");\n }\n\n /*\n * J2SE reorders the attributes when building a printable name\n * so we must build a printable name on our own.\n */\n\n /*\n * TBSCertificate ::= SEQUENCE {\n * version [0] EXPLICIT Version DEFAULT v1,\n * serialNumber CertificateSerialNumber,\n * signature AlgorithmIdentifier,\n * issuer Name,\n * validity Validity,\n * subject Name,\n * subjectPublicKeyInfo SubjectPublicKeyInfo,\n * issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL,\n * -- If present, version shall be v2 or v3\n * subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL,\n * -- If present, version shall be v2 or v3\n * extensions [3] EXPLICIT Extensions OPTIONAL\n * -- If present, version shall be v3\n * }\n */\n der = cert.getTBSCertificate();\n tbsCert = new TLV(der, 0);\n\n // walk down the tree of TLVs to find the subject name\n try {\n // Top level a is Sequence, drop down to the first child\n subjectName = tbsCert.child;\n\n // skip the version if present.\n if (subjectName.type == TLV.VERSION_TYPE) {\n subjectName = subjectName.next;\n }\n\n // skip the serial number\n subjectName = subjectName.next;\n \n // skip the signature alg. id.\n subjectName = subjectName.next;\n \n // skip the issuer\n subjectName = subjectName.next;\n \n // skip the validity\n subjectName = subjectName.next;\n\n owner = parseDN(der, subjectName);\n } catch (NullPointerException e) {\n throw new CertificateException(\"TBSCertificate corrupt 1\");\n } catch (IndexOutOfBoundsException e) {\n throw new CertificateException(\"TBSCertificate corrupt 2\");\n }\n\n notBefore = cert.getNotBefore().getTime();\n notAfter = cert.getNotAfter().getTime();\n\n // get the key from the cert\n try {\n rsaKey = (RSAPublicKey)cert.getPublicKey();\n } catch (ClassCastException cce) {\n throw new RuntimeException(\"Key in certificate is not an RSA key\");\n }\n\n // get the key parameters from the key\n rawModulus = rsaKey.getModulus().toByteArray();\n\n /*\n * the modulus is given as the minimum positive integer,\n * will not padded to the bit size of the key, or may have a extra\n * pad to make it positive. SSL expects the key to be signature\n * bit size. but we cannot get that from the key, so we should\n * remove any zero pad bytes and then pad out to a multiple of 8 bytes\n */\n for (i = 0; i < rawModulus.length && rawModulus[i] == 0; i++);\n\n keyLen = rawModulus.length - i;\n keyLen = (keyLen + 7) / 8 * 8;\n modulus = new byte[keyLen];\n\n int k, j;\n for (k = rawModulus.length - 1, j = keyLen - 1;\n k >= 0 && j >= 0; k--, j--) {\n modulus[j] = rawModulus[k];\n }\n\n exponent = rsaKey.getPublicExponent().toByteArray();\n\n // add the key\n keys = keystore.findKeys(owner);\n if (keys != null) {\n boolean duplicateKey = false;\n\n for (int n = 0; !duplicateKey && n < keys.size(); n++) {\n PublicKeyInfo key = (PublicKeyInfo)keys.elementAt(n);\n\n if (key.getOwner().equals(owner)) {\n byte[] temp = key.getModulus();\n\n if (modulus.length == temp.length) {\n duplicateKey = true;\n for (int m = 0; j < modulus.length && m < temp.length;\n m++) {\n if (modulus[m] != temp[m]) {\n duplicateKey = false;\n break;\n }\n }\n }\n }\n }\n \n if (duplicateKey) {\n throw new CertificateException(\n \"Owner already has this key in the ME keystore\");\n }\n }\n \n keystore.addKey(new PublicKeyInfo(owner, notBefore, notAfter,\n modulus, exponent, domain));\n }", "public boolean hasCertificate(Subject subject) {\r\n return certificates.contains(subject.getID());\r\n }", "public void validateSubjectIsCorrect(String expected) {\n assertTrue(\"The subject \" + subject.getText() + \" contains \" + expected, subject.getText().contains(expected));\n }", "public static void allowAllCertificates() {\n try {\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public X509Certificate[] getAcceptedIssuers() {\n X509Certificate[] myTrustedAnchors = new X509Certificate[0];\n return myTrustedAnchors;\n }\n\n @Override\n public void checkClientTrusted(X509Certificate[] certs,\n String authType) {}\n\n @Override\n public void checkServerTrusted(X509Certificate[] certs,\n String authType) {}\n } };\n\n SSLContext sc = SSLContext.getInstance(\"SSL\");\n sc.init(null, trustAllCerts, new SecureRandom());\n HttpsURLConnection\n .setDefaultSSLSocketFactory(sc.getSocketFactory());\n HttpsURLConnection\n .setDefaultHostnameVerifier(new HostnameVerifier() {\n\n @Override\n public boolean verify(String arg0, SSLSession arg1) {\n return true;\n }\n });\n } catch (Exception e) {}\n }", "public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {\n\r\n\t\t\t\t}", "public X509SubjectKeyIdentifierBasedRequest(\n byte[] x509SubjectKeyIdentifier) {\n this.x509SubjectKeyIdentifier = x509SubjectKeyIdentifier;\n }", "public interface X509CertChainValidator\n{\n\t/**\n\t * Performs validation of a provided certificate path.\n\t * @param certPath to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(CertPath certPath);\n\t\n\t/**\n\t * Performs validation of a provided certificate chain.\n\t * @param certChain to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(X509Certificate[] certChain);\n\t\n\t/**\n\t * Returns a list of trusted issuers of certificates. \n\t * @return array containing trusted issuers' certificates\n\t */\n\tpublic X509Certificate[] getTrustedIssuers();\n\t\n\t/**\n\t * Registers a listener which can react to errors found during certificate \n\t * validation. It is useful in two cases: (rarely) if you want to change \n\t * the default logic of the validator and if you will use the validator indirectly\n\t * (e.g. to validate SSL socket connections) and want to get the original \n\t * {@link ValidationError}, not the exception. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addValidationListener(ValidationErrorListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered validation listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeValidationListener(ValidationErrorListener listener);\n\t\n\t\n\t/**\n\t * Registers a listener which can react to errors found during refreshing \n\t * of the trust material: trusted CAs or CRLs. This method is useful only if\n\t * the implementation supports updating of CAs or CRLs, otherwise the listener\n\t * will not be invoked. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addUpdateListener(StoreUpdateListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered CA or CRL update listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeUpdateListener(StoreUpdateListener listener);\n}", "public void setSubject(String subject) {\n\t\tthis.subject = subject;\n\t}", "public byte[] getSubjectKeyIdentifier() {\n return x509SubjectKeyIdentifier;\n }", "@Override\n public X509Certificate[] getAcceptedIssuers() {\n return joinArrays(X509Certificate.class,finalDefaultTm.getAcceptedIssuers(), finalMyTm.getAcceptedIssuers());\n }", "public void setSubject(String subj) {\n/* 296 */ getCOSObject().setString(COSName.SUBJ, subj);\n/* */ }", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public CertificateIssuer(String name) {\r\n\tsuper();\r\n\t\tthis.name = name;\r\n\t\tthis.hascert = false;\r\n\t}", "public AltsChannelBuilder withSecureNamingTarget(String targetName) {\n handshakerOptionsBuilder.setTargetName(targetName);\n return this;\n }", "private boolean verifyStudyName() {\n\t\t\n\t\tif (subjectNameTF.getText().isEmpty()) { \n\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: Subject Name\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\tsubjectNameTF.setBackground(Color.LIGHT_GRAY);\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}", "void setSubject(org.hl7.fhir.ResourceReference subject);", "public static boolean isSubjectScoped()\n {\n return __s_SubjectScoped;\n }", "public Optional<String> caCertFile() {\n return Codegen.stringProp(\"caCertFile\").config(config).get();\n }", "public static void installHostNameVerifierNotValidatingSSLHostname()\n {\n HostnameVerifier hv = new HostnameVerifier()\n {\n @Override\n public boolean verify(String urlHostName, SSLSession session)\n {\n return true;\n }\n };\n HttpsURLConnection.setDefaultHostnameVerifier(hv);\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setSubject(String subject)\r\n {\r\n m_subject = subject;\r\n }", "private static void certprofileMultipleValuedRdn(String destFilename) {\n X509ProfileType profile = getBaseProfile(\"certprofile multiple-valued-rdn\",\n CertLevel.EndEntity, \"5y\");\n\n // Subject\n Subject subject = profile.getSubject();\n\n List<RdnType> rdnControls = subject.getRdns();\n rdnControls.add(createRdn(DN.C, 1, 1));\n rdnControls.add(createRdn(DN.O, 1, 1, null, null, null, \"group1\"));\n rdnControls.add(createRdn(DN.OU, 1, 1, null, null, null, \"group1\"));\n rdnControls.add(createRdn(DN.SN, 0, 1, REGEX_SN, null, null));\n rdnControls.add(createRdn(DN.CN, 1, 1));\n\n // Extensions\n // Extensions - general\n List<ExtensionType> list = profile.getExtensions();\n\n list.add(createExtension(Extension.subjectKeyIdentifier, true, false, null));\n list.add(createExtension(Extension.cRLDistributionPoints, false, false, null));\n list.add(createExtension(Extension.freshestCRL, false, false, null));\n\n // Extensions - basicConstraints\n list.add(createExtension(Extension.basicConstraints, true, true));\n\n // Extensions - AuthorityInfoAccess\n list.add(createExtension(Extension.authorityInfoAccess, true, false));\n last(list).setAuthorityInfoAccess(createAuthorityInfoAccess());\n\n // Extensions - AuthorityKeyIdentifier\n list.add(createExtension(Extension.authorityKeyIdentifier, true, false));\n\n // Extensions - keyUsage\n list.add(createExtension(Extension.keyUsage, true, true));\n last(list).setKeyUsage(createKeyUsage(\n new KeyUsage[]{KeyUsage.contentCommitment},\n null));\n\n marshall(profile, destFilename, true);\n }", "public java.util.Collection<java.util.List<?>> getIssuerAlternativeNames() throws java.security.cert.CertificateParsingException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getIssuerAlternativeNames():java.util.Collection<java.util.List<?>>, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getIssuerAlternativeNames():java.util.Collection<java.util.List<?>>\");\n }", "public interface X509Credential\n{\n\t/**\n\t * Returns the credential in a keystore.\n\t * @return the KeyStore\n\t */\n\tpublic KeyStore getKeyStore();\n\t\n\t/**\n\t * Returns a KeyManager which accompanies the KeyStore. \n\t * @return the KeyManager\n\t */\n\tpublic X509ExtendedKeyManager getKeyManager();\n\t\n\t/**\n\t * Returns a password which can be used to obtain PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method, \n\t * with the alias returned by the {@link #getKeyAlias()} method.\n\t * @return key password\n\t */\n\tpublic char[] getKeyPassword();\n\t\n\t/**\n\t * Returns an alias which can be used to obtain the PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method.\n\t * @return key alias\n\t */\n\tpublic String getKeyAlias();\n\t\n\t/**\n\t * Helper method to get private key from the underlying keystore\n\t * @return private key\n\t */\n\tpublic PrivateKey getKey();\n\n\t/**\n\t * Helper method to get certificate from the underlying keystore\n\t * @return certificate\n\t */\n\tpublic X509Certificate getCertificate();\n\n\t/**\n \t * Helper method to get certificate chain from the underlying keystore\n\t * @return certificate chain\n\t */\n\tpublic X509Certificate[] getCertificateChain();\n\t\n\t/**\n\t * @return RFC 2253 distinguished name of the certificate subject\n\t * @since 1.1.0\n\t */\n\tpublic String getSubjectName();\n}" ]
[ "0.7900502", "0.54110104", "0.5311288", "0.5209211", "0.5072848", "0.4953481", "0.48968685", "0.48864353", "0.48436826", "0.48263633", "0.477604", "0.477604", "0.47750613", "0.4753948", "0.4707385", "0.47033364", "0.46849358", "0.46726823", "0.46614257", "0.46427348", "0.46427348", "0.4613103", "0.4601058", "0.4584537", "0.45630413", "0.45505607", "0.45237944", "0.45102406", "0.4455209", "0.44547144", "0.4454419", "0.445411", "0.4440714", "0.44223946", "0.44197172", "0.44104773", "0.44037762", "0.44034085", "0.44016516", "0.43850142", "0.43481854", "0.43143785", "0.43056345", "0.43056345", "0.43042046", "0.43012488", "0.42860708", "0.42844835", "0.42819887", "0.4268877", "0.4265687", "0.42606395", "0.42574942", "0.42557585", "0.42557585", "0.42520458", "0.42474103", "0.4247356", "0.42375854", "0.42351177", "0.4234473", "0.42310822", "0.4224378", "0.4224358", "0.4219737", "0.42177874", "0.42044804", "0.42025328", "0.41955924", "0.41848442", "0.4181679", "0.41690245", "0.41690245", "0.41687444", "0.4157063", "0.41541052", "0.414997", "0.4148656", "0.41461667", "0.41439846", "0.41437683", "0.4143691", "0.4142379", "0.4138808", "0.41375428", "0.4128166", "0.4128166", "0.41257325", "0.4115534", "0.41082132", "0.41080225", "0.41073138", "0.41018847", "0.40891096", "0.40881124", "0.40881124", "0.40866125", "0.4084069", "0.40826717", "0.408151" ]
0.7915557
0
Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a certificate request into the signed certificate. Otherwise, the requested [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded. bool allow_subject_alt_names_passthrough = 3 [(.google.api.field_behavior) = REQUIRED];
boolean getAllowSubjectAltNamesPassthrough();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasAllowSubjectAltNamesPassthrough();", "boolean getAllowSubjectPassthrough();", "public java.util.Collection<java.util.List<?>> getSubjectAlternativeNames() throws java.security.cert.CertificateParsingException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSubjectAlternativeNames():java.util.Collection<java.util.List<?>>, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSubjectAlternativeNames():java.util.Collection<java.util.List<?>>\");\n }", "boolean hasAllowSubjectPassthrough();", "public AltsChannelBuilder enableUntrustedAltsForTesting() {\n enableUntrustedAlts = true;\n return this;\n }", "@Override\n public boolean isSubject() {\n return false;\n }", "public void setAddSubjectInProviderParameter(final boolean addSubject)\r\n {\n\r\n AccessController.doPrivileged(new PrivilegedAction<Object>()\r\n {\r\n public Object run()\r\n {\r\n \tapph.setAddSubjectInProviderParameter(addSubject);\r\n \treturn null;\r\n }\r\n });\r\n }", "@Override\n\t\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows CertificateException {\n\t\t\t\t\t\n\t\t\t\t}", "public void setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(com.android.org.bouncycastle.asn1.x509.X509Name):void\");\n }", "@Override\n\t\t\t\tpublic void checkServerTrusted(java.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows CertificateException {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "public void setSubjectDN(javax.security.auth.x500.X500Principal r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(javax.security.auth.x500.X500Principal):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSubjectDN(javax.security.auth.x500.X500Principal):void\");\n }", "@Override\n public void checkServerTrusted(\n final java.security.cert.X509Certificate[] arg0, final String arg1)\n throws CertificateException {\n }", "@Override\r\n\t\t\t\t\tpublic void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException\r\n\t\t\t\t\t{\n\t\t\t\t\t}", "private void setHascert() {\r\n\t\tthis.hascert = true;\r\n\t}", "@Override\n public void checkClientTrusted(\n final java.security.cert.X509Certificate[] arg0, final String arg1)\n throws CertificateException {\n }", "@Override\n\t\t\t\tpublic void checkClientTrusted(java.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows CertificateException {\n\n\t\t\t\t}", "public void setSubject(String v) \n {\n \n if (!ObjectUtils.equals(this.subject, v))\n {\n this.subject = v;\n setModified(true);\n }\n \n \n }", "@Override\n\t\t\t\tpublic void checkClientTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void checkClientTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "@Override\npublic void checkServerTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}", "@Override\r\n\t\t\t\t\tpublic void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException\r\n\t\t\t\t\t{\n\t\t\t\t\t}", "public void setSubject(String newValue);", "@Override\npublic void checkClientTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}", "public interface CertificationRequestWrapper {\n\n /**\n * Gets the subject name of this certificate.\n * @return subject name\n */\n X500Principal getSubject();\n \n /**\n * Gets the content of this certification request in a suitable string \n * encoding (typically PEM).\n * @return certification request content\n * @throws IOException\n */\n String getContent() throws IOException;\n \n}", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "boolean hasCertificate();", "public void setSubject(Name subject) {\r\n this.subject = subject;\r\n }", "public void setRootCaData(String data);", "String getCertificate();", "public boolean addCertificate(SubjectInfo subjectInfo, boolean isCa){\n if(myDatabase.containsValid(subjectInfo.getOrganisation() +\"-\"+ subjectInfo.getOrganisationUnit()))\n return false;\n X500Name x500Name = generateX500Name(subjectInfo);\n String serial = String.valueOf(myDatabase.getCounter());\n\n Calendar calendar = Calendar.getInstance();\n Date startDate = calendar.getTime();\n calendar.add(Calendar.YEAR, 2); // Certificate duration will be fixed at 2 years\n Date endDate = calendar.getTime();\n\n KeyPair keyPair = generateKeyPair();\n\n IssuerData issuerData = generateIssuerData(subjectInfo.getDesiredSigner());\n SubjectData subjectData = new SubjectData(keyPair.getPublic(), x500Name, serial, startDate, endDate);\n\n X509Certificate certificate = certificateGenerator.generateCertificate(subjectData, issuerData, isCa);\n\n keyStoreWriter.loadKeyStore(null, keystorePassword.toCharArray());\n keyStoreWriter.write(serial, keyPair.getPrivate(), keystorePassword.toCharArray(), certificate);\n keyStoreWriter.saveKeyStore(keystoreFile, keystorePassword.toCharArray());\n myDatabase.writeNew(true,subjectInfo.getOrganisation() + \"-\" + subjectInfo.getOrganisationUnit());\n return true;\n }", "public void setSubject(List<String> subject) {\n\t this.subject = subject;\n\t}", "@Override\n\tpublic boolean isTrusted(X509Certificate[] chain, String authType)\n\t\t\tthrows CertificateException {\n\t\treturn false;\n\t}", "private boolean addSubjectAttributes(EsbEventContainer esbEventContainer, String attributes) {\r\n EsbEvent esbEvent = esbEventContainer.getEsbEvent();\r\n Map<String, Object> debugMapForEvent = esbEventContainer.getDebugMapForEvent();\r\n boolean addedAttributes = false;\r\n Subject subject = esbEvent.retrieveSubject();\r\n if (subject != null) {\r\n String[] attributesArray = GrouperUtil.splitTrim(attributes, \",\");\r\n for (int i = 0; i < attributesArray.length; i++) {\r\n addedAttributes = true;\r\n String attributeName = attributesArray[i];\r\n String attributeValue = subject.getAttributeValueOrCommaSeparated(attributeName);\r\n if (GrouperUtil.isBlank(attributeValue)) {\r\n if (StringUtils.equals(\"name\", attributeName)) {\r\n attributeValue = subject.getName();\r\n } else if (StringUtils.equals(\"description\", attributeName)) {\r\n attributeValue = subject.getDescription();\r\n } \r\n }\r\n if (!StringUtils.isBlank(attributeValue)) {\r\n debugMapForEvent.put(\"attr_\" + attributeName + \"_value\", \"'\" + attributeValue + \"'\");\r\n esbEvent.addSubjectAttribute(attributeName, attributeValue);\r\n }\r\n }\r\n }\r\n return addedAttributes;\r\n }", "@Override\n public boolean isValidIssuer(List<String> certAuthorities) {\n return sValidIssuer;\n }", "com.google.protobuf.ByteString getSubjectBytes();", "@ApiModelProperty(value = \"The content of the new certificate to be added to the Auto-TLS truststore. Specify either this or a NewCertLocation. <br> The certificate, if specified, needs to be a standard PEM-encoded key as a single string, with all line breaks replaced with the line-feed control character '\\\\n'. <br> A value will typically look like the following string: <br> -----BEGIN CERTIFICATE-----\\\\n[base-64 encoded key]\\\\n-----END CERTIFICATE----- <br>\")\n\n\n public String getNewCertContent() {\n return newCertContent;\n }", "public CheckPrincipalAccessRequest setSubject(SubjectInfo subject) {\n this.subject = subject;\n return this;\n }", "public boolean addSelfSigned(SubjectInfo subjectInfo){\n if(myDatabase.containsValid(subjectInfo.getOrganisation() +\"-\"+ subjectInfo.getOrganisationUnit()))\n return false;\n X500Name x500Name = generateX500Name(subjectInfo);\n String serial = String.valueOf(myDatabase.getCounter());\n\n Calendar calendar = Calendar.getInstance();\n Date startDate = calendar.getTime();\n calendar.add(Calendar.YEAR, 2); // Certificate duration will be fixed at 2 years\n Date endDate = calendar.getTime();\n\n KeyPair keyPair = generateKeyPair();\n\n SubjectData subjectData = new SubjectData(keyPair.getPublic(), x500Name, serial, startDate, endDate);\n IssuerData issuerData = new IssuerData(keyPair.getPrivate(), x500Name);\n X509Certificate certificate = certificateGenerator.generateCertificate(subjectData, issuerData, true);\n\n keyStoreWriter.loadKeyStore(null, keystorePassword.toCharArray());\n keyStoreWriter.write(serial, keyPair.getPrivate(), keystorePassword.toCharArray(), certificate);\n keyStoreWriter.saveKeyStore(keystoreFile, keystorePassword.toCharArray());\n myDatabase.writeNew(true,subjectInfo.getOrganisation() + \"-\" + subjectInfo.getOrganisationUnit());\n return true;\n }", "public void setRootCa(String path);", "@Value.Redacted\n List<X509Certificate> caCert();", "com.google.protobuf.ByteString\n getSubjectBytes();", "com.google.protobuf.ByteString\n getSubjectBytes();", "public boolean[] getSubjectUniqueID() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSubjectUniqueID():boolean[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSubjectUniqueID():boolean[]\");\n }", "boolean isSetDelegateSuggestedSignerEmail();", "public void setSubjects(String subjects) {\r\n this.subjects = subjects;\r\n }", "public void setSubject (String s) {\n subject = s;\n }", "public void setSubject(String s)\r\n {\r\n mySubject = s;\r\n }", "@VisibleForTesting\n IkeAuthDigitalSignRemoteConfig(@Nullable X509Certificate caCert) {\n super(IKE_AUTH_METHOD_PUB_KEY_SIGNATURE, AUTH_DIRECTION_REMOTE);\n if (caCert == null) {\n mTrustAnchor = null;\n } else {\n // The name constraints extension, defined in RFC 5280, indicates a name space\n // within which all subject names in subsequent certificates in a certification path\n // MUST be located.\n mTrustAnchor = new TrustAnchor(caCert, null /*nameConstraints*/);\n\n // TODO: Investigate if we need to support the name constraints extension.\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public void setSubject(Subject subject);", "public void checkServerTrusted(X509Certificate[] arg0, String arg1)\n throws CertificateException\n {\n }", "public Builder setSubjectBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n subject_ = value;\n onChanged();\n return this;\n }", "public Builder setSubjectBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n subject_ = value;\n onChanged();\n return this;\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "X500Principal getSubject();", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "public void checkClientTrusted(X509Certificate[] arg0, String arg1)\n throws CertificateException\n {\n }", "protected static void setSubjectScoped(boolean fSubjectScoped)\n {\n __s_SubjectScoped = fSubjectScoped;\n }", "@Test\n public void testMutualAuthenticationWithDNSInCNField() throws Exception {\n final SaslClientFactory clientFactory = obtainSaslClientFactory(EntitySaslClientFactory.class);\n assertNotNull(clientFactory);\n\n final KeyStore keyStore = serverKeyStore;\n final Certificate[] certificateChain = keyStore.getCertificateChain(\"dnsInCNServer\");\n final SaslServer saslServer = createSaslServer(SaslMechanismInformation.Names.IEC_ISO_9798_M_DSA_SHA1, \"testserver2.example.com\",\n serverTrustStore, (PrivateKey) keyStore.getKey(\"dnsInCNServer\", KEYSTORE_PASSWORD),\n Arrays.copyOf(certificateChain, certificateChain.length, X509Certificate[].class));\n\n final String[] mechanisms = new String[] { SaslMechanismInformation.Names.IEC_ISO_9798_M_DSA_SHA1 };\n CallbackHandler cbh = createClientCallbackHandler(mechanisms, clientKeyStore, \"dnsInCNClient\", KEYSTORE_PASSWORD, getX509TrustManager(clientTrustStore));\n final SaslClient saslClient = clientFactory.createSaslClient(mechanisms, null, \"test\", \"testserver2.example.com\",\n Collections.<String, Object>emptyMap(), cbh);\n assertFalse(saslServer.isComplete());\n assertFalse(saslClient.isComplete());\n\n byte[] message = saslServer.evaluateResponse(new byte[0]);\n assertFalse(saslServer.isComplete());\n assertFalse(saslClient.isComplete());\n\n message = saslClient.evaluateChallenge(message);\n assertFalse(saslServer.isComplete());\n assertFalse(saslClient.isComplete());\n\n message = saslServer.evaluateResponse(message);\n assertNotNull(message);\n\n message = saslClient.evaluateChallenge(message);\n assertNull(message);\n assertTrue(saslClient.isComplete());\n assertTrue(saslServer.isComplete());\n assertEquals(\"cn=testclient2.example.com,ou=jboss,o=red hat,l=raleigh,st=north carolina,c=us\", saslServer.getAuthorizationID());\n }", "public X509Certificate[] getTrustedIssuers();", "public String getEmailAlt() {\n\t\t\treturn emailAlt;\n\t\t}", "@Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }", "public void setSubject(String subject)\n {\n _subject = subject;\n }", "@Override\n public String[] alternativeNames() {\n return normAlts;\n }", "public boolean isCertificateAlias(String alias) throws CryptoException {\n\t\ttry {\n\t // does alias refer to a trusted certificate?\n\t\t\treturn keystore.isCertificateEntry(alias);\n\t\t} catch(KeyStoreException e) {\n\t\t\tlogger.error(\"error checking alias '\" + alias + \"' with the keystore\", e);\n\t\t\tthrow new CryptoException(\"error checking alias '\" + alias + \"' with the keystore\", e);\t\t\t\n\t\t}\n }", "public CreateCertFromCSR setCaInfo(X500Name subject, PrivateKey key) {\n caSubject = subject;\n caKey = key;\n return this;\n }", "public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {\n\r\n\t\t\t\t}", "public void setForSubject(boolean forSubject) {\n\t\t_forSubject = forSubject;\n\t}", "public void setSubject(String subject) {\r\n\t\tthis.subject= subject;\r\n\t}", "public void setSubject(String subject) {\n this.subject = subject;\n }", "public void setSubject(String subject) {\n this.subject = subject;\n }", "public void importKeyFromJcaKeystore(KeyStore jcaKeystore,\n String alias, String domain)\n throws IOException, GeneralSecurityException {\n X509Certificate cert;\n byte[] der;\n TLV tbsCert;\n TLV subjectName;\n RSAPublicKey rsaKey;\n String owner;\n long notBefore;\n long notAfter;\n byte[] rawModulus;\n int i;\n int keyLen;\n byte[] modulus;\n byte[] exponent;\n Vector keys;\n\n // get the cert from the keystore\n try {\n cert = (X509Certificate)jcaKeystore.getCertificate(alias);\n } catch (ClassCastException cce) {\n throw new CertificateException(\"Certificate not X.509 type\");\n }\n\n if (cert == null) {\n throw new CertificateException(\"Certificate not found\");\n }\n\n /*\n * J2SE reorders the attributes when building a printable name\n * so we must build a printable name on our own.\n */\n\n /*\n * TBSCertificate ::= SEQUENCE {\n * version [0] EXPLICIT Version DEFAULT v1,\n * serialNumber CertificateSerialNumber,\n * signature AlgorithmIdentifier,\n * issuer Name,\n * validity Validity,\n * subject Name,\n * subjectPublicKeyInfo SubjectPublicKeyInfo,\n * issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL,\n * -- If present, version shall be v2 or v3\n * subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL,\n * -- If present, version shall be v2 or v3\n * extensions [3] EXPLICIT Extensions OPTIONAL\n * -- If present, version shall be v3\n * }\n */\n der = cert.getTBSCertificate();\n tbsCert = new TLV(der, 0);\n\n // walk down the tree of TLVs to find the subject name\n try {\n // Top level a is Sequence, drop down to the first child\n subjectName = tbsCert.child;\n\n // skip the version if present.\n if (subjectName.type == TLV.VERSION_TYPE) {\n subjectName = subjectName.next;\n }\n\n // skip the serial number\n subjectName = subjectName.next;\n \n // skip the signature alg. id.\n subjectName = subjectName.next;\n \n // skip the issuer\n subjectName = subjectName.next;\n \n // skip the validity\n subjectName = subjectName.next;\n\n owner = parseDN(der, subjectName);\n } catch (NullPointerException e) {\n throw new CertificateException(\"TBSCertificate corrupt 1\");\n } catch (IndexOutOfBoundsException e) {\n throw new CertificateException(\"TBSCertificate corrupt 2\");\n }\n\n notBefore = cert.getNotBefore().getTime();\n notAfter = cert.getNotAfter().getTime();\n\n // get the key from the cert\n try {\n rsaKey = (RSAPublicKey)cert.getPublicKey();\n } catch (ClassCastException cce) {\n throw new RuntimeException(\"Key in certificate is not an RSA key\");\n }\n\n // get the key parameters from the key\n rawModulus = rsaKey.getModulus().toByteArray();\n\n /*\n * the modulus is given as the minimum positive integer,\n * will not padded to the bit size of the key, or may have a extra\n * pad to make it positive. SSL expects the key to be signature\n * bit size. but we cannot get that from the key, so we should\n * remove any zero pad bytes and then pad out to a multiple of 8 bytes\n */\n for (i = 0; i < rawModulus.length && rawModulus[i] == 0; i++);\n\n keyLen = rawModulus.length - i;\n keyLen = (keyLen + 7) / 8 * 8;\n modulus = new byte[keyLen];\n\n int k, j;\n for (k = rawModulus.length - 1, j = keyLen - 1;\n k >= 0 && j >= 0; k--, j--) {\n modulus[j] = rawModulus[k];\n }\n\n exponent = rsaKey.getPublicExponent().toByteArray();\n\n // add the key\n keys = keystore.findKeys(owner);\n if (keys != null) {\n boolean duplicateKey = false;\n\n for (int n = 0; !duplicateKey && n < keys.size(); n++) {\n PublicKeyInfo key = (PublicKeyInfo)keys.elementAt(n);\n\n if (key.getOwner().equals(owner)) {\n byte[] temp = key.getModulus();\n\n if (modulus.length == temp.length) {\n duplicateKey = true;\n for (int m = 0; j < modulus.length && m < temp.length;\n m++) {\n if (modulus[m] != temp[m]) {\n duplicateKey = false;\n break;\n }\n }\n }\n }\n }\n \n if (duplicateKey) {\n throw new CertificateException(\n \"Owner already has this key in the ME keystore\");\n }\n }\n \n keystore.addKey(new PublicKeyInfo(owner, notBefore, notAfter,\n modulus, exponent, domain));\n }", "public boolean hasCertificate(Subject subject) {\r\n return certificates.contains(subject.getID());\r\n }", "public void validateSubjectIsCorrect(String expected) {\n assertTrue(\"The subject \" + subject.getText() + \" contains \" + expected, subject.getText().contains(expected));\n }", "public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {\n\r\n\t\t\t\t}", "public static void allowAllCertificates() {\n try {\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public X509Certificate[] getAcceptedIssuers() {\n X509Certificate[] myTrustedAnchors = new X509Certificate[0];\n return myTrustedAnchors;\n }\n\n @Override\n public void checkClientTrusted(X509Certificate[] certs,\n String authType) {}\n\n @Override\n public void checkServerTrusted(X509Certificate[] certs,\n String authType) {}\n } };\n\n SSLContext sc = SSLContext.getInstance(\"SSL\");\n sc.init(null, trustAllCerts, new SecureRandom());\n HttpsURLConnection\n .setDefaultSSLSocketFactory(sc.getSocketFactory());\n HttpsURLConnection\n .setDefaultHostnameVerifier(new HostnameVerifier() {\n\n @Override\n public boolean verify(String arg0, SSLSession arg1) {\n return true;\n }\n });\n } catch (Exception e) {}\n }", "public X509SubjectKeyIdentifierBasedRequest(\n byte[] x509SubjectKeyIdentifier) {\n this.x509SubjectKeyIdentifier = x509SubjectKeyIdentifier;\n }", "public void setSubject(String subject) {\n\t\tthis.subject = subject;\n\t}", "public byte[] getSubjectKeyIdentifier() {\n return x509SubjectKeyIdentifier;\n }", "@Override\n public X509Certificate[] getAcceptedIssuers() {\n return joinArrays(X509Certificate.class,finalDefaultTm.getAcceptedIssuers(), finalMyTm.getAcceptedIssuers());\n }", "public interface X509CertChainValidator\n{\n\t/**\n\t * Performs validation of a provided certificate path.\n\t * @param certPath to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(CertPath certPath);\n\t\n\t/**\n\t * Performs validation of a provided certificate chain.\n\t * @param certChain to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(X509Certificate[] certChain);\n\t\n\t/**\n\t * Returns a list of trusted issuers of certificates. \n\t * @return array containing trusted issuers' certificates\n\t */\n\tpublic X509Certificate[] getTrustedIssuers();\n\t\n\t/**\n\t * Registers a listener which can react to errors found during certificate \n\t * validation. It is useful in two cases: (rarely) if you want to change \n\t * the default logic of the validator and if you will use the validator indirectly\n\t * (e.g. to validate SSL socket connections) and want to get the original \n\t * {@link ValidationError}, not the exception. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addValidationListener(ValidationErrorListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered validation listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeValidationListener(ValidationErrorListener listener);\n\t\n\t\n\t/**\n\t * Registers a listener which can react to errors found during refreshing \n\t * of the trust material: trusted CAs or CRLs. This method is useful only if\n\t * the implementation supports updating of CAs or CRLs, otherwise the listener\n\t * will not be invoked. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addUpdateListener(StoreUpdateListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered CA or CRL update listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeUpdateListener(StoreUpdateListener listener);\n}", "public void setSubject(String subj) {\n/* 296 */ getCOSObject().setString(COSName.SUBJ, subj);\n/* */ }", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public CertificateIssuer(String name) {\r\n\tsuper();\r\n\t\tthis.name = name;\r\n\t\tthis.hascert = false;\r\n\t}", "public AltsChannelBuilder withSecureNamingTarget(String targetName) {\n handshakerOptionsBuilder.setTargetName(targetName);\n return this;\n }", "private boolean verifyStudyName() {\n\t\t\n\t\tif (subjectNameTF.getText().isEmpty()) { \n\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: Subject Name\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\tsubjectNameTF.setBackground(Color.LIGHT_GRAY);\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}", "public static boolean isSubjectScoped()\n {\n return __s_SubjectScoped;\n }", "void setSubject(org.hl7.fhir.ResourceReference subject);", "public Optional<String> caCertFile() {\n return Codegen.stringProp(\"caCertFile\").config(config).get();\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static void installHostNameVerifierNotValidatingSSLHostname()\n {\n HostnameVerifier hv = new HostnameVerifier()\n {\n @Override\n public boolean verify(String urlHostName, SSLSession session)\n {\n return true;\n }\n };\n HttpsURLConnection.setDefaultHostnameVerifier(hv);\n }", "public void setSubject(String subject)\r\n {\r\n m_subject = subject;\r\n }", "public java.util.Collection<java.util.List<?>> getIssuerAlternativeNames() throws java.security.cert.CertificateParsingException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getIssuerAlternativeNames():java.util.Collection<java.util.List<?>>, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getIssuerAlternativeNames():java.util.Collection<java.util.List<?>>\");\n }", "private static void certprofileMultipleValuedRdn(String destFilename) {\n X509ProfileType profile = getBaseProfile(\"certprofile multiple-valued-rdn\",\n CertLevel.EndEntity, \"5y\");\n\n // Subject\n Subject subject = profile.getSubject();\n\n List<RdnType> rdnControls = subject.getRdns();\n rdnControls.add(createRdn(DN.C, 1, 1));\n rdnControls.add(createRdn(DN.O, 1, 1, null, null, null, \"group1\"));\n rdnControls.add(createRdn(DN.OU, 1, 1, null, null, null, \"group1\"));\n rdnControls.add(createRdn(DN.SN, 0, 1, REGEX_SN, null, null));\n rdnControls.add(createRdn(DN.CN, 1, 1));\n\n // Extensions\n // Extensions - general\n List<ExtensionType> list = profile.getExtensions();\n\n list.add(createExtension(Extension.subjectKeyIdentifier, true, false, null));\n list.add(createExtension(Extension.cRLDistributionPoints, false, false, null));\n list.add(createExtension(Extension.freshestCRL, false, false, null));\n\n // Extensions - basicConstraints\n list.add(createExtension(Extension.basicConstraints, true, true));\n\n // Extensions - AuthorityInfoAccess\n list.add(createExtension(Extension.authorityInfoAccess, true, false));\n last(list).setAuthorityInfoAccess(createAuthorityInfoAccess());\n\n // Extensions - AuthorityKeyIdentifier\n list.add(createExtension(Extension.authorityKeyIdentifier, true, false));\n\n // Extensions - keyUsage\n list.add(createExtension(Extension.keyUsage, true, true));\n last(list).setKeyUsage(createKeyUsage(\n new KeyUsage[]{KeyUsage.contentCommitment},\n null));\n\n marshall(profile, destFilename, true);\n }", "public interface X509Credential\n{\n\t/**\n\t * Returns the credential in a keystore.\n\t * @return the KeyStore\n\t */\n\tpublic KeyStore getKeyStore();\n\t\n\t/**\n\t * Returns a KeyManager which accompanies the KeyStore. \n\t * @return the KeyManager\n\t */\n\tpublic X509ExtendedKeyManager getKeyManager();\n\t\n\t/**\n\t * Returns a password which can be used to obtain PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method, \n\t * with the alias returned by the {@link #getKeyAlias()} method.\n\t * @return key password\n\t */\n\tpublic char[] getKeyPassword();\n\t\n\t/**\n\t * Returns an alias which can be used to obtain the PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method.\n\t * @return key alias\n\t */\n\tpublic String getKeyAlias();\n\t\n\t/**\n\t * Helper method to get private key from the underlying keystore\n\t * @return private key\n\t */\n\tpublic PrivateKey getKey();\n\n\t/**\n\t * Helper method to get certificate from the underlying keystore\n\t * @return certificate\n\t */\n\tpublic X509Certificate getCertificate();\n\n\t/**\n \t * Helper method to get certificate chain from the underlying keystore\n\t * @return certificate chain\n\t */\n\tpublic X509Certificate[] getCertificateChain();\n\t\n\t/**\n\t * @return RFC 2253 distinguished name of the certificate subject\n\t * @since 1.1.0\n\t */\n\tpublic String getSubjectName();\n}" ]
[ "0.79167914", "0.54129267", "0.5310958", "0.52111727", "0.5071971", "0.4955896", "0.48981452", "0.48864758", "0.48414978", "0.48264298", "0.47759333", "0.47759333", "0.4773259", "0.47537982", "0.47071618", "0.47030547", "0.4684535", "0.4672455", "0.4661796", "0.46422908", "0.46422908", "0.46123493", "0.4600603", "0.45849594", "0.45621115", "0.45492122", "0.45221952", "0.45102623", "0.4456126", "0.44541317", "0.44530255", "0.44528806", "0.44423747", "0.4422732", "0.44217426", "0.44113395", "0.44037056", "0.44020343", "0.4401307", "0.43846577", "0.43472534", "0.4312952", "0.4306036", "0.4306036", "0.43044913", "0.43006885", "0.42884085", "0.4285438", "0.42827168", "0.42671138", "0.42635658", "0.42610332", "0.4257397", "0.4255219", "0.4255219", "0.4250676", "0.42473805", "0.42452648", "0.42372906", "0.42366225", "0.42343944", "0.42298794", "0.42238608", "0.42235103", "0.4220645", "0.42185363", "0.42035702", "0.41994193", "0.41953182", "0.41861555", "0.41827905", "0.41700524", "0.41700524", "0.4165424", "0.41579524", "0.41549456", "0.4148218", "0.41480473", "0.41453838", "0.41449752", "0.41446924", "0.41415048", "0.4141385", "0.41392636", "0.41359472", "0.4128981", "0.4128981", "0.4125413", "0.41155517", "0.41107643", "0.410915", "0.41081485", "0.4100244", "0.40888932", "0.40888932", "0.40878794", "0.40876272", "0.40812984", "0.40806925", "0.4080375" ]
0.7901495
1
Sets the cfg as string.
public void setCfgAsString(String cfg) { this.cfg = new Cfg(cfg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@XmlAttribute(name=\"cfg\")\n\tpublic String getCfgAsString() {\n\t\tif(cfg != null)\n\t\t\treturn cfg.toString();\n\t\treturn null;\n\t}", "public void setComCfg(String s) {\n if (s == null) comCfg = \"\";\n else comCfg = s;\n }", "public String configString() {\n return this.configString;\n }", "private void setConfig(final String value) {\n\n config = StringUtils.trim(value);\n }", "public void setConfig(String config) {\n this.config = config;\n }", "public void setConfig(final String value) {\n\n config = StringUtils.trim(value);\n }", "public String getStringConfiguration()\r\n\t{\r\n\t\treturn config;\r\n\t}", "void setConfigFileName( String s );", "public void setConfig(String config)\n throws IOException\n {\n _config=config;\n _configResource=Resource.newResource(_config);\n loadConfig();\n \n }", "public String getStringConfiguration() {\n\t\treturn config;\n\t}", "public void\t\tsetConfiguration(Object obj);", "public void setString(String value) {\r\n\t\ttype(ConfigurationItemType.STRING);\r\n\t\tthis.stringValue = value;\r\n\t}", "public String toString() {\r\n\t\treturn configurationFileString;\r\n\t}", "public void setConfig (String str) { \n StringTokenizer st = new StringTokenizer(str, BundlesDT.DELIM);\n if (st.nextToken().equals(\"RTGraphPanel\") == false) throw new RuntimeException(\"setConfig(\" + str + \") - not a RTGraphPanel\");\n while (st.hasMoreTokens()) {\n StringTokenizer st2 = new StringTokenizer(st.nextToken(), \"=\");\n String type = st2.nextToken(), value = st2.hasMoreTokens() ? st2.nextToken() : \"\";\n\n if (type.equals(\"nodesize\")) nodeSize(Utils.decFmURL(value));\n else if (type.equals(\"nodecolor\")) nodeColor(Utils.decFmURL(value));\n else if (type.equals(\"linksize\")) linkSize(Utils.decFmURL(value));\n else if (type.equals(\"linkcolor\")) linkColor(Utils.decFmURL(value));\n else if (type.equals(\"linkcurves\")) linkCurves(value.toLowerCase().equals(\"true\"));\n else if (type.equals(\"linktrans\")) linksTransparent(value.toLowerCase().equals(\"true\"));\n else if (type.equals(\"arrows\")) drawArrows(value.toLowerCase().equals(\"true\"));\n else if (type.equals(\"timing\")) drawTiming(value.toLowerCase().equals(\"true\"));\n else if (type.equals(\"strict\")) strictMatches(value.toLowerCase().equals(\"true\"));\n else if (type.equals(\"dynlabels\")) dynamicLabels(value.toLowerCase().equals(\"true\"));\n else if (type.equals(\"nodelabels\")) nodeLabels(value.toLowerCase().equals(\"true\"));\n else if (type.equals(\"linklabels\")) linkLabels(value.toLowerCase().equals(\"true\"));\n else if (type.equals(\"nlabels\")) { if (!value.equals(\"\")) setJList(entity_label_list, commaDelimited(value)); }\n else if (type.equals(\"clabels\")) { if (!value.equals(\"\")) setJList(entity_color_list, commaDelimited(value)); }\n else if (type.equals(\"llabels\")) { if (!value.equals(\"\")) setJList(bundle_label_list, commaDelimited(value)); }\n else if (type.equals(\"relates\")) {\n if (!value.equals(\"\")) {\n st2 = new StringTokenizer(value, \",\");\n\t while (st2.hasMoreTokens()) active_relationships.add(Utils.decFmURL(st2.nextToken()));\n }\n } else throw new RuntimeException(\"Do Not Understand Type Value Pair \\\"\" + type + \"\\\" = \\\"\" + value + \"\\\"\");\n }\n\n // Apply the active_relationships\n newBundlesRoot(getRTParent().getRootBundles());\n }", "private String generateConfigurationString() {\n\t\tStringBuilder configuration = new StringBuilder();\n\t\tconfigurationHolder.entrySet().stream().forEach(line -> {\n\t\t\tconfiguration.append(line.getKey()+\"=\"+line.getValue()+\"\\n\");\n\t\t});\n\t\treturn configuration.toString();\n\t}", "public abstract void setConfig(String config) throws java.rmi.RemoteException;", "public void setConfig(C config)\n {\n this.config = config;\n fireConfigChanged();\n }", "public String getConfig() {\n\t\treturn(config);\n\t}", "public abstract String getConfig();", "public void setString(String key, String value) {\n overrideConfig.put(key, value);\n }", "public void setConfigurationFileString(String s) {\r\n\t\tthis.configurationFileString = s;\r\n\t}", "Config set(String path, Object value);", "public String getConfigString()\n {\n return debug ? \"debug\" : \"release\";\n }", "public void setConfig(ConfigurationHolder c) {\n this.cfg = c;\n }", "public void setConfig(@Nullable Config config) {\n cfg = config;\n if (config != null) {\n setMode(config.getInteger(CFG_KEY));\n }\n }", "public void setConfigurationValue(String name, String value);", "public String getConfigurationValue() {\n return newConfigValue;\n }", "@ReactMethod\n public void setConfig(String config) {\n\n ChirpError error = chirpConnect.setConfig(config);\n if (error.getCode() > 0) {\n onError(context, error.getMessage());\n }\n }", "@NotNull\n GitConfigCommand setValue(@Nullable String value);", "void setConfiguration();", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Incorrect Configuration: \"+super.toString();\r\n\t}", "@Test\n\tpublic void test_set_string_value() throws Exception{\n\t\tConfig.configFile = \"test_files/config_files/valid1.json\";\n\t\t\n\t\tConfig.clearConfig();\n\t\tConfig config = Config.getConfig();\n\t\t\n\t\tconfig.setStringValue(\"STUDENT_INPUT_FILE\", \"a value\");\n\t\tconfig.setStringValue(\"MATCHING_SOMETHING\", \"another value\");\n\t\tconfig.setStringValue(\"SUPERVISOR_INPUT_FILE\", \"a third value\");\n\t\t\n\t\tassertEquals(\"a value\", config.getStringValue(\"STUDENT_INPUT_FILE\"));\n\t\tassertEquals(\"another value\", config.getStringValue(\"MATCHING_SOMETHING\"));\n\t\tassertEquals(\"a third value\", config.getStringValue(\"SUPERVISOR_INPUT_FILE\"));\n\t\t\n\t\tconfig.setNonPersistantCache(\"STUDENT_INPUT_FILE\", \"overridin data\");\n\t\t\n\t\tassertEquals(\"overridin data\", config.getStringValue(\"STUDENT_INPUT_FILE\"));\n\t\t\n\t\tConfig.configFile = \"temp.json\";\n\t\tconfig.save(\"temp.json\");\n\t\t\n\t\tConfig.clearConfig();\n\t\t\n\t\tconfig = Config.getConfig();\n\n\t\tassertEquals(\"a value\", config.getStringValue(\"STUDENT_INPUT_FILE\"));\n\t\tassertEquals(\"another value\", config.getStringValue(\"MATCHING_SOMETHING\"));\n\t\tassertEquals(\"a third value\", config.getStringValue(\"SUPERVISOR_INPUT_FILE\"));\n\t\t\n\t\ttry {\n\t\t\tconfig.setStringValue(\"INPUT_FILE\", \"a value\");\n\t\t\tfail(\"Expected exception\");\n\t\t}catch (IllegalArgumentException e) {\n\t\t\t//pass\n\t\t}\n\t}", "public String getConfigToSave() {\n return configToSave;\n }", "public String getConfigToSave() {\n return configToSave;\n }", "public String getConfigToSave() {\n return configToSave;\n }", "public String getConfigToSave() {\n return configToSave;\n }", "public String getConfig();", "@JavascriptInterface\n public String config(String config) {\n String response = mManager.config(config);\n if (Log.isLoggable(HybridManager.TAG, Log.DEBUG)) {\n Log.d(HybridManager.TAG, \"config response is \" + response);\n }\n return response;\n }", "@Test\n\n public void testToString() {\n System.out.println(\"toString\");\n Setting.SETTING_TYPE stype;\n Setting instance = Setting.getSetting(\"test\");\n stype = instance.getStype();\n assertEquals(Setting.SETTING_TYPE.UND, stype);\n\n instance.setStype(Setting.SETTING_TYPE.TSTRING);\n instance.setValue(\"I am a String\");\n String result = instance.toString();\n String expected = \"test:TSTRING-I am a String\";\n assertEquals(expected, result);\n }", "private String fromConfig(final Config config) {\n\n final StringBuilder errorMsg = new StringBuilder();\n\n this.enabled = true;\n if(config.hasPath(\"enabled\")){\n this.enabled = config.getBoolean(\"enabled\");\n }\n\n this.goServerHost = \"\";\n if(config.hasPath(\"server-host\")){\n this.goServerHost = config.getString(\"server-host\");\n }else{\n fieldError(errorMsg, \"server-host\");\n }\n\n this.goLogin = null;\n if (config.hasPath(\"login\")) {\n this.goLogin = config.getString(\"login\");\n }\n\n this.goPassword = null;\n if (config.hasPath(\"password\")) {\n this.goPassword = config.getString(\"password\");\n }\n\n this.goAPIToken = null;\n if (config.hasPath(\"api-token\")) {\n this.goAPIToken = config.getString(\"api-token\");\n }\n\n this.apiMsTeamsHost = \"http://localhost\";\n if(config.hasPath(\"api-msteams-host\")){\n this.apiMsTeamsHost = config.getString(\"api-msteams-host\");\n }else {\n fieldError(errorMsg, \"api-msteams-host\");\n }\n\n if(config.hasPath(\"msteams\")){\n\n ConfigList teams = config.getList(\"msteams\");\n this.msTeamsConfigList = new ArrayList<>();\n\n for(Object team : teams.unwrapped()){\n //Add new team\n MsTeamsConfig teamsConfig = new MsTeamsConfig((Map<String, Object>) team, errorMsg);\n this.msTeamsConfigList.add(teamsConfig);\n }\n }else {\n fieldError(errorMsg, \"msteams\");\n }\n\n this.displayConsoleLogLinks = true;\n if (config.hasPath(\"display-console-log-links\")) {\n displayConsoleLogLinks = config.getBoolean(\"display-console-log-links\");\n }\n\n this.displayMaterialChanges = true;\n if (config.hasPath(\"displayMaterialChanges\")) {\n displayMaterialChanges = config.getBoolean(\"displayMaterialChanges\");\n }\n\n this.processAllRules = true;\n if (config.hasPath(\"process-all-rules\")) {\n processAllRules = config.getBoolean(\"process-all-rules\");\n }\n\n this.truncateChanges = true;\n if(config.hasPath(\"truncate-changes\")) {\n truncateChanges = config.getBoolean(\"truncate-changes\");\n }\n\n if (config.hasPath(\"proxy\")) {\n Config proxyConfig = config.getConfig(\"proxy\");\n if (proxyConfig.hasPath(\"hostname\") && proxyConfig.hasPath(\"port\") && proxyConfig.hasPath(\"type\")) {\n String hostname = proxyConfig.getString(\"hostname\");\n int port = proxyConfig.getInt(\"port\");\n String type = proxyConfig.getString(\"type\").toUpperCase();\n Proxy.Type proxyType = Proxy.Type.valueOf(type);\n this.proxy = new Proxy(proxyType, new InetSocketAddress(hostname, port));\n }\n }\n\n return errorMsg.toString();\n }", "public String configString() {\n \n String boardConfig = \"\";\n // adds each element in the array to the string with a space in between\n // condition is numPiles - 1 so last element does not print with a space afterwards\n \n for (int i = 0; i < numPiles - 1; i++){\n boardConfig += piles[i] + \" \";\n }\n boardConfig += piles[numPiles - 1] + \" \";\n \n //check if valid board still\n assert isValidSolitaireBoard();\n \n //return the current board configuration string\n return boardConfig;\n }", "private void config() {\n\t}", "public void set(String str) {\n\t setValueInternal(str);\n\t}", "public void writeSetting(pluginType plType, String pluginID,\n String settingName, String val) {\n if (settingName == null || settingName.equals(\"\")) return;\n if (plType == null) return;\n \n String prop = \"\";\n if (plType == pluginType.device) {\n if (pluginID == null || pluginID.equals(\"\")) return;\n // search for device\n for (int i = 0; i < devices.length; i++)\n if (settings.getProperty(\"device\"+i,\"\").equals(pluginID)) {\n prop = \"device\"+i+\".\";\n break;\n }\n } else prop = plType.toString();\n \n if (prop.equals(\"\")) return;\n prop += \".\" + settingName;\n \n settings.setProperty(prop, val);\n ArchLoader.writeConfig(schema.getConfigName(), settings);\n }", "protected String buildConfigString() {\n if (multicastAddress == null) {\n throw new IllegalStateException(\"'multcastAddress' is not set\");\n }\n\n if (multicastPort == null) {\n throw new IllegalStateException(\"'multcastPort' is not set\");\n }\n\n return \"UDP(mcast_addr=\"\n + multicastAddress\n + \";mcast_port=\"\n + multicastPort\n + \";ip_ttl=32):\"\n + \"PING(timeout=3000;num_initial_members=6):\"\n + \"FD(timeout=3000):\"\n + \"VERIFY_SUSPECT(timeout=1500):\"\n + \"pbcast.NAKACK(gc_lag=10;retransmit_timeout=600,1200,2400,4800):\"\n + \"pbcast.STABLE(desired_avg_gossip=10000):\"\n + \"FRAG:\"\n + \"pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;\"\n + \"shun=true;print_local_addr=false)\";\n }", "public void setConfig(Config config) {\n this.config = config;\n }", "private void saveConfiguration() {\n }", "@Override\n public String toString() {\n return \"ConfigReader{\" +\n \"\\nmySimType='\" + mySimType + '\\'' +\n \"\\nmyCellShape='\" + myCellShape + '\\'' +\n \"\\nneighborPolicy=\" + neighborPolicy +\n \"\\nedgePolicy=\" + edgePolicy +\n \"\\nisOutlined=\" + getIsOutlined() +\n \"\\ninitialConfig=\" + initialConfig +\n \"\\nmyNumStates=\" + myNumStates +\n \"\\nnumCols=\" + numCols +\n \"\\nnumRows=\" + numRows +\n \"\\ngridData=\" + gridData +\n '}';\n }", "public void setConfig(FCKEditorConfig value)\n {\n config = value;\n }", "public void setConfiguration(Properties props);", "public void setString(String val) {\n\t\tcp.setString(val);\n\t}", "public void setText(String text) {\n\t\tthis.text = text;\n\t\thandleConfig(\"text\", text);\n\t}", "public static String getImplementString()\n\t{\n\t\treturn \"ngat.message.ISS_INST.CONFIG\";\n\t}", "public void setConfig(WeberknechtConf conf, AreaPathResolver areaPathResolver);", "public void setConfigFile(String pConfigFile)\n {\n __m_ConfigFile = pConfigFile;\n }", "public static void set(ServerLoggingConfiguration config) {\r\n LogImplServer.config = config;\r\n }", "void configuration(String source, String name, String value);", "public java.lang.String getAnswerFileConfigString() {\r\n return answerFileConfigString;\r\n }", "protected static void setConfigured(boolean fConfig)\n {\n __s_Configured = fConfig;\n }", "public String getConfiguration(){\n\t\treturn this.config;\n\t}", "public void toConfig(StringBuilder cfg, String prefix) {\n cfg.append(prefix).append(\"name \").append(RoutingSpec.toConfigString(name)).append(\"\\n\");\n cfg.append(prefix).append(\"selector \").append(RoutingSpec.toConfigString(selector)).append(\"\\n\");\n if (ignoreResult) {\n cfg.append(prefix).append(\"ignoreresult true\\n\");\n }\n int numRecipients = recipients.size();\n if (numRecipients > 0) {\n cfg.append(prefix).append(\"recipient[\").append(numRecipients).append(\"]\\n\");\n for (int i = 0; i < numRecipients; ++i) {\n cfg.append(prefix).append(\"recipient[\").append(i).append(\"] \");\n cfg.append(RoutingSpec.toConfigString(recipients.get(i))).append(\"\\n\");\n }\n }\n }", "public void config(Session ses,String sender,String addr, String subject, String text) {\n\t\tthis.ses=ses;\n\t\tthis.sender=sender;\n\t\tthis.addr=addr;\n\t\tthis.subject=subject;\n\t\tthis.text=text;\n\t}", "void config(Config config);", "@Test\n public void testSetStype() {\n System.out.println(\"setStype\");\n Setting.SETTING_TYPE stype;\n Setting instance = Setting.getSetting(\"test\");\n stype = instance.getStype();\n assertEquals(Setting.SETTING_TYPE.UND, stype);\n\n instance.setStype(Setting.SETTING_TYPE.TSTRING);\n instance.setValue(\"I am a String\");\n String result = instance.toString();\n String expected = \"test:TSTRING-I am a String\";\n assertEquals(expected, result);\n\n }", "public String getConfig() {\n\n return config;\n }", "@Override\n public void setConf(Configuration conf) {\n }", "@Test\n public void testToJSONString() {\n System.out.println(\"toJSONString\");\n Setting s = Setting.factory();\n s.setStype(Setting.SETTING_TYPE.TPATH);\n s.setName(\"mytest\");\n String userFile = System.getProperty(\"user.dir\");\n\n s.setValue(Paths.get(userFile));\n String jResult = s.toJSONString();\n String jExpected = \"{\\\"stype\\\":\\\"TPATH\\\",\\\"name\\\":\\\"mytest\\\",\\\"value\\\":\\\"J:\\\\\\\\Java\\\\\\\\DBCUtilLib\\\"}\";\n assertEquals(jExpected, jResult);\n\n s.setValue(Setting.SETTING_TYPE.TPATH, Paths.get(userFile));\n jResult = s.toJSONString();\n assertEquals(jExpected, jResult);\n\n }", "public void printConfig();", "public void set(String s);", "void saveConfig() {\r\n\t\ttry {\r\n\t\t\tPrintWriter out = new PrintWriter(new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream(\"open-ig-mapeditor-config.xml\"), 64 * 1024), \"UTF-8\"));\r\n\t\t\ttry {\r\n\t\t\t\tout.printf(\"<?xml version='1.0' encoding='UTF-8'?>%n\");\r\n\t\t\t\tout.printf(\"<mapeditor-config>%n\");\r\n\t\t\t\tout.printf(\" <window x='%d' y='%d' width='%d' height='%d' state='%d'/>%n\", getX(), getY(), getWidth(), getHeight(), getExtendedState());\r\n\t\t\t\tout.printf(\" <language id='%s'/>%n\", ui.languageEn.isSelected() ? \"en\" : \"hu\");\r\n\t\t\t\tout.printf(\" <splitters main='%d' preview='%d' surfaces='%d'/>%n\", split.getDividerLocation(), toolSplit.getDividerLocation(), featuresSplit.getDividerLocation());\r\n\t\t\t\tout.printf(\" <editmode type='%s'/>%n\", ui.buildButton.isSelected());\r\n\t\t\t\tout.printf(\" <tabs selected='%d'/>%n\", propertyTab.getSelectedIndex());\r\n\t\t\t\tout.printf(\" <lights preview='%d' map='%s'/>%n\", alphaSlider.getValue(), Float.toString(alpha));\r\n\t\t\t\tout.printf(\" <filter surface='%s' building='%s'/>%n\", XML.toHTML(filterSurface.getText()), XML.toHTML(filterBuilding.getText()));\r\n\t\t\t\tout.printf(\" <allocation worker='%s' strategy='%d'/>%n\", ui.allocationPanel.availableWorkers.getText(), ui.allocationPanel.strategies.getSelectedIndex());\r\n\t\t\t\tout.printf(\" <view buildings='%s' minimap='%s' textboxes='%s' zoom='%s' standard-fonts='%s' placement-hints='%s'/>%n\", ui.viewShowBuildings.isSelected(), \r\n\t\t\t\t\t\tui.viewSymbolicBuildings.isSelected(), ui.viewTextBackgrounds.isSelected(), Double.toString(renderer.scale), ui.viewStandardFonts.isSelected()\r\n\t\t\t\t\t\t, ui.viewPlacementHints.isSelected());\r\n\t\t\t\tout.printf(\" <custom-surface-names>%n\");\r\n\t\t\t\tfor (TileEntry te : surfaceTableModel.rows) {\r\n\t\t\t\t\tout.printf(\" <tile id='%s' type='%s' name='%s'/>%n\", te.id, XML.toHTML(te.surface), XML.toHTML(te.name));\r\n\t\t\t\t}\r\n\t\t\t\tout.printf(\" </custom-surface-names>%n\");\r\n\t\t\t\tout.printf(\" <custom-building-names>%n\");\r\n\t\t\t\tfor (TileEntry te : buildingTableModel.rows) {\r\n\t\t\t\t\tout.printf(\" <tile id='%s' type='%s' name='%s'/>%n\", te.id, XML.toHTML(te.surface), XML.toHTML(te.name));\r\n\t\t\t\t}\r\n\t\t\t\tout.printf(\" </custom-building-names>%n\");\r\n\t\t\t\tout.printf(\" <recent>%n\");\r\n\t\t\t\tfor (int i = ui.fileRecent.getItemCount() - 1; i >= 2 ; i--) {\r\n\t\t\t\t\tout.printf(\" <entry file='%s'/>%n\", XML.toHTML(ui.fileRecent.getItem(i).getText()));\r\n\t\t\t\t}\r\n\t\t\t\tout.printf(\" </recent>%n\");\r\n\t\t\t\tout.printf(\"</mapeditor-config>%n\");\r\n\t\t\t} finally {\r\n\t\t\t\tout.close();\r\n\t\t\t}\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "@SuppressWarnings({ \"rawtypes\" })\r\n protected static void transfer(Map conf, Properties prop, String key, boolean toString) {\r\n if (null != conf.get(key)) {\r\n Object val = conf.get(key);\r\n if (toString) {\r\n val = val.toString();\r\n }\r\n prop.put(key, val);\r\n }\r\n }", "@IcalProperty(pindex = PropertyInfoIndex.POLL_MODE,\n vpollProperty = true\n )\n public void setPollMode(final String val) {\n replaceXproperty(BwXproperty.pollMode, val);\n }", "public void setConfig(ConfigurationManagement config) {\r\n\t\tthis.config = config;\r\n\t}", "public boolean setConfiguration(String[] strConfig) {\n if ( strConfig == null || strConfig.length == 0 ) {\n System.out.println(\"No configuration for TitanFileWriter\");\n\n // We take the current date and time as filename\n\t\t\tDate now = new Date();\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyyMMdd-HHmmss\");\n\t\t\tfilename = dateFormat.format(now) + \".txt\";\n\n return true;\n } else if ( strConfig.length > 1 ) {\n System.out.println(\"Wrong configuration for TitanFileWriter\");\n\t\t\treturn false;\n\t\t} \n\t\t\n\t\tfilename = strConfig[0].toString();\n\t\treturn true;\n\t}", "protected void setHMetisOutFile(final String str) {\n\t\tthis.hMetisOutFile = str;\n\t}", "public class_config(){\n\t\t\n\t\tformat_date=\"dd/MM/yyyy\";\n\t\tcurrency='€';\n\t\tdecimals=2;\n\t\tlanguage=\"eng\";\n\t\ttheme=\"Metal\";\n\t\tfile_format=\"json\";\n\t\t\n\t}", "public void setClan(String value);", "abstract public Config createConfigFromString(String data);", "public void setConfiguration(CodeGeneratorConfiguration config) {\n \t\tthis.config = config;\n \t}", "@Override\r\n protected void saveStrings() {\r\n \r\n settings.setProperty(\"mfile\" , mfile);\r\n settings.setProperty( \"rmode\", rmode);\r\n settings.setProperty( \"cmap\" , cmap );\r\n settings.setProperty(\"cmapMin\", Double.toString( cmapMin ) ); \r\n settings.setProperty(\"cmapMax\", Double.toString( cmapMax ) ); \r\n \r\n }", "void set_str(ThreadContext tc, RakudoObject classHandle, String Value);", "public void setConfig(KernelConfig config)\n {\n Kernel.checkConfigure();\n this.config = config;\n }", "@Test\n public void testDetectConfigurationString() throws Exception {\n\n Config config = ConfigFactory.load(\"componentTest\");\n\n PowerMockito.mockStatic(StreamsConfigurator.class);\n\n PowerMockito.when(StreamsConfigurator.getConfig())\n .thenReturn(config);\n\n ComponentConfigurator<ComponentConfiguration> configurator = new ComponentConfigurator<>(ComponentConfiguration.class);\n\n ComponentConfiguration testPojo = mapper.readValue(config.root().get(\"configuredComponent\").render(ConfigRenderOptions.concise()), ComponentConfiguration.class);\n\n assert(testPojo != null);\n\n ComponentConfiguration configuredPojo = configurator.detectConfiguration(\"configuredComponent\");\n\n assert(configuredPojo != null);\n\n Assert.assertEquals(configuredPojo,testPojo);\n }", "public String getConfigurationFileString() {\r\n\t\treturn configurationFileString;\r\n\t}", "public void setStr(java.lang.String str)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STR$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STR$0);\r\n }\r\n target.setStringValue(str);\r\n }\r\n }", "protected void storeTestConf(Properties props) throws IOException\n {\n ByteArrayOutputStream arrayOutputStream = new ByteArrayOutputStream();\n DataOutputStream dataStream = new DataOutputStream(arrayOutputStream); \n createJobConf().write(dataStream); \n dataStream.flush();\n props.setProperty(\"test.conf\", new String(Base64.encodeBase64(arrayOutputStream.toByteArray())));\n }", "@IcalProperty(pindex = PropertyInfoIndex.CALSUITE,\n jname = \"calSuite\",\n eventProperty = true,\n todoProperty = true,\n vpollProperty = true\n )\n @NoProxy\n public void setCalSuite(final String val) {\n replaceXproperty(BwXproperty.bedeworkCalsuite, val);\n }", "public void run() {\n WriteConfigJson(jsonString,path);\r\n }", "private static void setProperty(final GenericConfiguration config, final String key, final String value) {\n\t\t//Resolve system properties, so that they can be used in config values\n\t\tString val = CRUtil.resolveSystemProperties((String) value);\n\n\t\t//Set the property\n\t\tconfig.set(key, val);\n\t}", "@Override\n public String getString(String key) {\n \n if (overrideConfig.containsKey(key)) {\n return overrideConfig.get(key);\n }\n \n return ConfigurationFactory.getConfiguration().getString(key);\n }", "public void setTextAreaValue(String str){\n\t\tcenterPanel.setTextAreaValue(str);\n\t}", "private void m29115j(String str) {\n if (this.mContext.checkCallingOrSelfPermission(Constants.PERMISSION_WRITE_SETTINGS) == 0 && str != null) {\n m29114i(str);\n }\n }", "@Override\r\n\tpublic void config() {\n\t\tinter.setState(inter.getConfig());\r\n\t}", "public abstract CONFIG build();", "public GetConfigUseCase(@NotNull CommonRepository commonRepository, @NotNull String str) {\n super(commonRepository);\n Intrinsics.checkNotNullParameter(commonRepository, \"commonRepository\");\n Intrinsics.checkNotNullParameter(str, \"flowName\");\n this.b = str;\n }", "public void setConfig(final ConfigCommon val) {\n config = val;\n\n /* Set defaults */\n setMinIncrement(config.getMinIncrement());\n assignShowYearData(config.getShowYearData());\n }", "public void config(String msg) {\n log(CONFIG, msg);\n }", "public void setString(String parName, String parVal) throws HibException;", "public void config(String msg) {\n log(Level.CONFIG, msg, null);\n }", "String getConfigName();" ]
[ "0.67806304", "0.6168193", "0.61129814", "0.6010669", "0.59579945", "0.5777573", "0.5731543", "0.5714943", "0.57010514", "0.5611233", "0.5531891", "0.5494316", "0.54814637", "0.5450812", "0.54285103", "0.5404747", "0.5389753", "0.53369474", "0.5322123", "0.5284444", "0.52586615", "0.5258585", "0.52562046", "0.5240653", "0.5226302", "0.52192205", "0.5216883", "0.5214513", "0.5202857", "0.5171564", "0.5159113", "0.5153778", "0.51436263", "0.51436263", "0.51436263", "0.51436263", "0.5101892", "0.5101357", "0.50716186", "0.50704324", "0.5056773", "0.50513357", "0.5037103", "0.5029025", "0.5009493", "0.5005803", "0.4985159", "0.49842402", "0.498402", "0.4980568", "0.49727166", "0.49600363", "0.49247834", "0.49028963", "0.4895587", "0.48720625", "0.48651677", "0.4845171", "0.4842374", "0.48240432", "0.4815451", "0.48095772", "0.48081762", "0.4804328", "0.48028377", "0.47917786", "0.4790347", "0.47875434", "0.47844297", "0.47774878", "0.47691318", "0.4766473", "0.4763919", "0.47637728", "0.4745016", "0.4745008", "0.47436064", "0.47390404", "0.47379643", "0.47370204", "0.4719748", "0.47151873", "0.47135022", "0.46973187", "0.4694143", "0.46899363", "0.46721974", "0.46721417", "0.46705097", "0.4668327", "0.4657573", "0.4653907", "0.46445152", "0.46418718", "0.46398363", "0.46364552", "0.46356162", "0.4635178", "0.46266448", "0.46262145" ]
0.80526346
0
Gets the cfg as string.
@XmlAttribute(name="cfg") public String getCfgAsString() { if(cfg != null) return cfg.toString(); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getConfig() {\n\t\treturn(config);\n\t}", "public String configString() {\n return this.configString;\n }", "public String getConfig();", "public String getStringConfiguration()\r\n\t{\r\n\t\treturn config;\r\n\t}", "public String getConfigString()\n {\n return debug ? \"debug\" : \"release\";\n }", "public String getConfig() {\n\n return config;\n }", "public String toString() {\r\n\t\treturn configurationFileString;\r\n\t}", "public String getStringConfiguration() {\n\t\treturn config;\n\t}", "public String getConfiguration(){\n\t\treturn this.config;\n\t}", "public String configurationInfo();", "public abstract String getConfig();", "String getConfigName();", "public String getConfiguration()\r\n\t{\r\n\t\treturn _configuration; \r\n\t}", "public String getConfiguration() {\n return configuration;\n }", "private String generateConfigurationString() {\n\t\tStringBuilder configuration = new StringBuilder();\n\t\tconfigurationHolder.entrySet().stream().forEach(line -> {\n\t\t\tconfiguration.append(line.getKey()+\"=\"+line.getValue()+\"\\n\");\n\t\t});\n\t\treturn configuration.toString();\n\t}", "public String getConfiguration() {\n return this.configuration;\n }", "public String getConfiguration() {\r\n\t\treturn configuration;\r\n\t}", "public String getConfigName () {\n return this.configName;\n }", "public Config getConfig();", "public String configString() {\n \n String boardConfig = \"\";\n // adds each element in the array to the string with a space in between\n // condition is numPiles - 1 so last element does not print with a space afterwards\n \n for (int i = 0; i < numPiles - 1; i++){\n boardConfig += piles[i] + \" \";\n }\n boardConfig += piles[numPiles - 1] + \" \";\n \n //check if valid board still\n assert isValidSolitaireBoard();\n \n //return the current board configuration string\n return boardConfig;\n }", "public String getConfigToSave() {\n return configToSave;\n }", "public String getConfigToSave() {\n return configToSave;\n }", "public String getConfigToSave() {\n return configToSave;\n }", "public String getConfigToSave() {\n return configToSave;\n }", "public String getConfigurationFileString() {\r\n\t\treturn configurationFileString;\r\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getConfiguration() != null)\n sb.append(\"Configuration: \").append(getConfiguration()).append(\",\");\n if (getGrafanaVersion() != null)\n sb.append(\"GrafanaVersion: \").append(getGrafanaVersion()).append(\",\");\n if (getWorkspaceId() != null)\n sb.append(\"WorkspaceId: \").append(getWorkspaceId());\n sb.append(\"}\");\n return sb.toString();\n }", "public static Config getConfig() {\r\n\t\treturn cfg;\r\n\t}", "public java.lang.String getAnswerFileConfigString() {\r\n return answerFileConfigString;\r\n }", "public static String getDbConfig(){\n return properties.getProperty(\"dbconfig\");\n }", "public String getConfigType() {\n\t\treturn configType;\n\t}", "public String getConfigurationField() {\n return configField;\n }", "public static String Ipconfig(){\n StringBuilder sbuf = new StringBuilder();\n InetAddress ip;\n String hostname;\n // Inet6Address ipv6; *add a ipv6 to get the ipv6 address\n try {\n ip = InetAddress.getLocalHost();\n hostname = ip.getHostName();\n\n //NetworkInterface network = NetworkInterface.getByInetAddress(ip);\n NetworkInterface nif = NetworkInterface.getByName(\"localhost\");\n //InetAddress[] inet = InetAddress.getAllByName(ip.getHostName());\n //String address = getAddress(inet).getHostAddress();\n\n sbuf.append(\"Default gateway: \"+ip.getLocalHost());\n //fmt.format(\"MAc address:\" + nif.getHardwareAddress());\n sbuf.append(\"\\nCurrent Name : \" + ip.getHostName());\n sbuf.append(\"\\nCurrent IP address : \" + ip.getHostAddress());\n //System.out.println(\"Current IPv6 address : \"+ getByAddress(hostname,inet,nets));// + ipv6.getHostAddress());\n //System.out.println(\"Current IPv6 Temp address : \");// + ipv6.getHostAddress());\n sbuf.append(\"\\nCurrent IPv6 Local : \");// + ipv6.getHostAddress());\n \n } catch(Throwable se){\n se.printStackTrace();\n }\n return sbuf.toString();\n }", "String getConfigFileName();", "public String getConfigurationValue() {\n return newConfigValue;\n }", "public String getComCfg() {\n return comCfg;\n }", "public static String getTaskConfiguration(ScheduledTask task){\r\n\t\treturn task.getTaskConfiguration();\r\n\t}", "public Object getConfig() {\n return config;\n }", "private String getConfigInfo(boolean verbose) {\r\n StringBuilder builder = new StringBuilder();\r\n\r\n GridHubConfiguration config = getRegistry().getConfiguration();\r\n builder.append(\"<b>Config for the hub :</b><br/>\");\r\n builder.append(prettyHtmlPrint(config));\r\n\r\n if (verbose) {\r\n\r\n GridHubConfiguration tmp = new GridHubConfiguration();\r\n\r\n builder.append(\"<b>Config details :</b><br/>\");\r\n builder.append(\"<b>hub launched with :</b>\");\r\n builder.append(tmp.hubConfig);\r\n\r\n\r\n builder.append(\"<br/><b>the final configuration comes from :</b><br/>\");\r\n builder.append(\"<b>the default :</b><br/>\");\r\n builder.append(prettyHtmlPrint(tmp));\r\n\r\n builder.append(prettyHtmlPrint(tmp));\r\n }\r\n return builder.toString();\r\n }", "private String getAllConfigsAsXML() {\n StringBuilder configOutput = new StringBuilder();\n //getConfigParams\n configOutput.append(Configuration.getInstance().getXmlOutput());\n //getRocketsConfiguration\n configOutput.append(RocketsConfiguration.getInstance().getXmlOutput());\n //getCountries\n CountriesList countriesList = (CountriesList) AppContext.getContext().getBean(AppSpringBeans.COUNTRIES_BEAN);\n configOutput.append(countriesList.getListInXML());\n //getWeaponConfiguration\n configOutput.append(WeaponConfiguration.getInstance().getXmlOutput());\n //getPerksConfiguration\n configOutput.append(\"\\n\");\n configOutput.append(PerksConfiguration.getInstance().getXmlOutput());\n //getRankingRules\n ScoringRules scoreRules = (ScoringRules) AppContext.getContext().getBean(AppSpringBeans.SCORING_RULES_BEAN);\n configOutput.append(scoreRules.rankingRulesXml());\n\n configOutput.append(AchievementsConfiguration.getInstance().getXmlOutput());\n\n configOutput.append(\"\\n\");\n configOutput.append(AvatarsConfiguration.getInstance().getXmlOutput());\n\n\n return configOutput.toString();\n }", "public p getConfig() {\n return c.K();\n }", "public String getCurrentConfigSuffix() {\r\n return currentConfigSuffix;\r\n }", "protected String buildConfigString() {\n if (multicastAddress == null) {\n throw new IllegalStateException(\"'multcastAddress' is not set\");\n }\n\n if (multicastPort == null) {\n throw new IllegalStateException(\"'multcastPort' is not set\");\n }\n\n return \"UDP(mcast_addr=\"\n + multicastAddress\n + \";mcast_port=\"\n + multicastPort\n + \";ip_ttl=32):\"\n + \"PING(timeout=3000;num_initial_members=6):\"\n + \"FD(timeout=3000):\"\n + \"VERIFY_SUSPECT(timeout=1500):\"\n + \"pbcast.NAKACK(gc_lag=10;retransmit_timeout=600,1200,2400,4800):\"\n + \"pbcast.STABLE(desired_avg_gossip=10000):\"\n + \"FRAG:\"\n + \"pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;\"\n + \"shun=true;print_local_addr=false)\";\n }", "public String getConfigFile()\n {\n return __m_ConfigFile;\n }", "public String getUserConfig() {\n return userConfig;\n }", "public String getXMLConfiguration()\n {\n return this.XMLConfiguration;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getJsonConfiguration() != null)\n sb.append(\"JsonConfiguration: \").append(getJsonConfiguration()).append(\",\");\n if (getParquetConfiguration() != null)\n sb.append(\"ParquetConfiguration: \").append(getParquetConfiguration());\n sb.append(\"}\");\n return sb.toString();\n }", "public Configuration getCfg() {\n return cfg;\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Incorrect Configuration: \"+super.toString();\r\n\t}", "public DerivedFeatureConfig getConfig() {\n if (configBuilder_ == null) {\n return config_ == null ? DerivedFeatureConfig.getDefaultInstance() : config_;\n } else {\n return configBuilder_.getMessage();\n }\n }", "public static String getImplementString()\n\t{\n\t\treturn \"ngat.message.ISS_INST.CONFIG\";\n\t}", "public static String getConfigFileName() {\r\n\t\treturn configFileName;\r\n\t}", "@Override\n public String toString() {\n return \"ConfigReader{\" +\n \"\\nmySimType='\" + mySimType + '\\'' +\n \"\\nmyCellShape='\" + myCellShape + '\\'' +\n \"\\nneighborPolicy=\" + neighborPolicy +\n \"\\nedgePolicy=\" + edgePolicy +\n \"\\nisOutlined=\" + getIsOutlined() +\n \"\\ninitialConfig=\" + initialConfig +\n \"\\nmyNumStates=\" + myNumStates +\n \"\\nnumCols=\" + numCols +\n \"\\nnumRows=\" + numRows +\n \"\\ngridData=\" + gridData +\n '}';\n }", "public String getPropertyDACConfig()\n {\n return iPropertyDACConfig.getValue();\n }", "public C getConfig()\n {\n return config;\n }", "public String getTccConfigInstrument() {\n InstPhoenix inst = (InstPhoenix) _oe.getInstrument();\n PhoenixParams.Filter f = inst.getFilter();\n // See WDBA-37 - J\n return f == PhoenixParams.Filter.J9232 ? \"PHOENIX4_J\" : \"PHOENIX4\";\n }", "public String getConfig () { \n StringBuffer ar_sb = new StringBuffer();\n if (active_relationships.size() > 0) {\n ar_sb.append(Utils.encToURL(active_relationships.get(0)));\n for (int i=1;i<active_relationships.size();i++) ar_sb.append(\",\" + Utils.encToURL(active_relationships.get(i)));\n }\n\n return \"RTGraphPanel\" + BundlesDT.DELIM +\n \"nodesize=\" + Utils.encToURL(nodeSize()) + BundlesDT.DELIM +\n \"nodecolor=\" + Utils.encToURL(nodeColor()) + BundlesDT.DELIM +\n\t \"linksize=\" + Utils.encToURL(linkSize()) + BundlesDT.DELIM +\n\t \"linkcolor=\" + Utils.encToURL(linkColor()) + BundlesDT.DELIM +\n\t \"linkcurves=\" + Utils.encToURL(\"\" + linkCurves()) + BundlesDT.DELIM +\n\t \"linktrans=\" + Utils.encToURL(\"\" + linksTransparent()) + BundlesDT.DELIM +\n\t \"arrows=\" + Utils.encToURL(\"\" + drawArrows()) + BundlesDT.DELIM +\n\t \"timing=\" + Utils.encToURL(\"\" + drawTiming()) + BundlesDT.DELIM +\n\t \"strict=\" + Utils.encToURL(\"\" + strictMatches()) + BundlesDT.DELIM +\n\t \"dynlabels=\" + Utils.encToURL(\"\" + dynamicLabels()) + BundlesDT.DELIM +\n\t \"nodelabels=\" + Utils.encToURL(\"\" + nodeLabels()) + BundlesDT.DELIM +\n\t \"linklabels=\" + Utils.encToURL(\"\" + linkLabels()) + BundlesDT.DELIM +\n\t \"nlabels=\" + commaDelimited(nodeLabelsArray()) + BundlesDT.DELIM +\n\t \"clabels=\" + commaDelimited(colorLabelsArray()) + BundlesDT.DELIM +\n\t \"llabels=\" + commaDelimited(linkLabelsArray()) +\n\t (ar_sb.length() > 0 ? BundlesDT.DELIM + \"relates=\" + ar_sb.toString() : \"\");\n }", "public String getFuncConfig() {\n\t\treturn funcConfig;\n\t}", "private String gameBoardToString(){\n StringBuilder config = new StringBuilder();\n\n //length attribute gets the number of rows in a 2D array. length attribute on a row gets the number of columns in a\n // 2D array. We iterate through all the rows and columns and join all the characters in the array into a single\n // String config\n\n for (int i = 0; i < this.boardRows; i++){\n for (int j =0; j < this.boardColumns; j++){\n config.append(this.gameBoard[i][j]);\n }\n }\n\n // Returns String object representation of StringBuilder object\n return config.toString();\n\n }", "public Config getConfig() {\n return config;\n }", "private static String getConfigFile() {\n\n final String sPath = getUserFolder();\n\n return sPath + File.separator + \"sextante.settings\";\n\n }", "public String getConfigurationName() {\n return configurationName;\n }", "public WriterConfig getConfig() {\n return mConfig;\n }", "ConfigBlock getConfig();", "public String getString() {\r\n\t\ttype(ConfigurationItemType.STRING);\r\n\t\treturn stringValue;\r\n\t}", "public ConfigurationNode getConfig() {\n return this.configManager.getConfig();\n }", "@Override\n public String getString(String key) {\n \n if (overrideConfig.containsKey(key)) {\n return overrideConfig.get(key);\n }\n \n return ConfigurationFactory.getConfiguration().getString(key);\n }", "public String getConfigFile() {\n return configFile;\n }", "RootConfig getConfig();", "public ConfigurationHolder getConfiguration() {\n return this.cfg;\n }", "public JsonObject getConfig() {\n return config;\n }", "public String getDisplayName() {\n return configName;\n }", "@NonNull\n public String getString(String key) {\n return mConfigurations.optString(key, \"\");\n }", "public final String get_relay_mode_as_string () {\n\t\treturn RelayLink.get_relay_mode_as_string (relay_mode);\n\t}", "public String toString() {\n return \"appName=\" + _appName\n + \", readTimeout=\" + _readTimeout + \", poolSize=\" + _poolSize\n + \", numberOfOperations=\" + numOfOps + \", shutdown=\" + _shutdown;\n }", "public static Config getConfig(){\n return _Config;\n }", "public String getConfigurationValue(String name);", "public String getWechatConf() {\n\t\treturn wechatConf;\n\t}", "private static Path getConfig(String modName)\n\t{\n\t\treturn Paths.get(\"config\"+File.separator+modName+\".cfg\").toAbsolutePath();\n\t}", "public com.google.protobuf.Any getConfiguration() {\n if (configurationBuilder_ == null) {\n return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;\n } else {\n return configurationBuilder_.getMessage();\n }\n }", "public String getSimConfigFilename() {\n return simConfigFile;\n }", "public String getNomeConfigurazione() {\n return null;\r\n }", "protected Config getConfig () {\n return this.conf;\n }", "public String getConfigurationID() {\n return configurationID;\n }", "public static String getConfigFolder() {\n\t\tString progArg = System.getProperty(ConfigConstants.CONFIG_DIR_PROG_ARGUMENT);\n\t\tif (progArg != null) {\n\t\t\treturn progArg;\n\t\t} else {\n\t\t\treturn configFolder;\n\t\t}\n\t}", "@Override\n public String getConfigPath() {\n String fs = String.valueOf(File.separatorChar);\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"scan\").append(fs);\n sb.append(\"config\").append(fs);\n sb.append(\"mesoTableConfig\").append(fs);\n\n return sb.toString();\n }", "private static String getLocalConfigString(String name) {\n\t\ttry {\n\t\t\treturn (String) LOCAL_CONFIG_CLASS.getField(name).get(null);\n\t\t} catch (Exception e) {\n\t\t\tLog.e(LOG_TAG, \"No local configuration found with key \" + name);\n\t\t\treturn null;\n\t\t}\n\t}", "public final String get_configured_primary_as_string () {\n\t\treturn \"P\" + configured_primary;\n\t}", "public ConfigCommon getConfig() {\n return config;\n }", "public void printConfig();", "public Object\tgetConfiguration();", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getComment() != null)\n sb.append(\"Comment: \").append(getComment()).append(\",\");\n if (getName() != null)\n sb.append(\"Name: \").append(getName()).append(\",\");\n if (getHeadersConfig() != null)\n sb.append(\"HeadersConfig: \").append(getHeadersConfig()).append(\",\");\n if (getCookiesConfig() != null)\n sb.append(\"CookiesConfig: \").append(getCookiesConfig()).append(\",\");\n if (getQueryStringsConfig() != null)\n sb.append(\"QueryStringsConfig: \").append(getQueryStringsConfig());\n sb.append(\"}\");\n return sb.toString();\n }", "C getConfiguration();", "private String getPlaymeidFromConfig(){\n\t\tString playmeid = \"\";\n\t\ttry {\n\t\t\tString filePath = \"/system/etc/manufactory.conf\";\n\t\t\tFile file = new File(filePath);\n\t\t\tif (!file.isFile()) {\n\t\t\t\treturn playmeid;\n\t\t\t}\n\t\t\tFileInputStream fin = new FileInputStream(filePath);\n\t\t\tint length = fin.available();\n\t\t\tif(length == 32){\n\t\t\t\tbyte[] buffer = new byte[length];\n\t\t\t\tfin.read(buffer);\n//\t\t\t\tplaymeid = EncodingUtils.getString(buffer, \"UTF-8\");\n\t\t\t\tfin.close();\n\t\t\t\treturn new String(buffer);\n\t\t\t}\n\t\t\tfin.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn playmeid;\n\t}", "public String get(String key) {\n\t\tInstant start = Instant.now();\n\t\tString value = getConfig(key);\n\t\tLOGGER.debug(\"Access to config {} to get {} took {}\", uniqueInstance.instanceUUID, key, Duration.between(start, Instant.now()));\t\t\n\t\treturn value;\n\t}", "public DeviceConfig getConfig() {\n return config;\n }", "public String toString() {\n\t\t\tswitch(this) {\n\t\t\tcase INSERT_BSI_RESOURCES_BASE:{\n\t\t\t\treturn \"INSERT INTO lry.aut_bsi_prc_cfg_resources(CFG_ID, RSC_NAME, RSC_DESCRIPTION, RSC_LOCATION_INPUT, RSC_LOCATION_OUTPUT, RSC_ITEM, RSC_ITEM_KEY) VALUES(?,?,?,?,?,?,?);\";\n\t\t\t}\n\t\t\tcase SELECT_ALL_BSI_RESOURCES_BASE:{\n\t\t\t\treturn \"SELECT RSC_ID FROM lry.aut_bsi_prc_cfg_resources;\";\n\t\t\t}\n\t\t\tcase SELECT_BSI_RESOURCES_BASE_BY_CFG_BASE_ID:{\n\t\t\t\treturn \"SELECT RSC_ID FROM lry.aut_bsi_prc_cfg_resources WHERE CFG_ID=?;\";\n\t\t\t}\n\t\t\tdefault:{\n\t\t\t\treturn this.name();\n\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getCmfcSettings() != null)\n sb.append(\"CmfcSettings: \").append(getCmfcSettings()).append(\",\");\n if (getContainer() != null)\n sb.append(\"Container: \").append(getContainer()).append(\",\");\n if (getF4vSettings() != null)\n sb.append(\"F4vSettings: \").append(getF4vSettings()).append(\",\");\n if (getM2tsSettings() != null)\n sb.append(\"M2tsSettings: \").append(getM2tsSettings()).append(\",\");\n if (getM3u8Settings() != null)\n sb.append(\"M3u8Settings: \").append(getM3u8Settings()).append(\",\");\n if (getMovSettings() != null)\n sb.append(\"MovSettings: \").append(getMovSettings()).append(\",\");\n if (getMp4Settings() != null)\n sb.append(\"Mp4Settings: \").append(getMp4Settings()).append(\",\");\n if (getMpdSettings() != null)\n sb.append(\"MpdSettings: \").append(getMpdSettings()).append(\",\");\n if (getMxfSettings() != null)\n sb.append(\"MxfSettings: \").append(getMxfSettings());\n sb.append(\"}\");\n return sb.toString();\n }", "private String descFormat() {\n File f = cfg.getReadFromFile();\n if (f != null) {\n return f.getPath();\n }\n return StringUtils.defaultString(cfg.getName(), \"(unnamed)\");\n }", "public XmlElement getConfig()\n {\n return m_xml;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getClassification() != null) sb.append(\"Classification: \" + getClassification() + \",\");\n if (getConfigurations() != null) sb.append(\"Configurations: \" + getConfigurations() + \",\");\n if (getProperties() != null) sb.append(\"Properties: \" + getProperties() );\n sb.append(\"}\");\n return sb.toString();\n }" ]
[ "0.75712746", "0.75369734", "0.7381562", "0.7366328", "0.7348401", "0.7331786", "0.7308617", "0.72989136", "0.6998123", "0.69585115", "0.68960816", "0.6761752", "0.672786", "0.6700961", "0.66597396", "0.6635303", "0.66300887", "0.6595922", "0.6571733", "0.65595955", "0.6548585", "0.6548585", "0.6548585", "0.6548585", "0.64968985", "0.6350905", "0.6342836", "0.6292516", "0.62865925", "0.6260133", "0.62473404", "0.6217101", "0.62075675", "0.6162601", "0.61597824", "0.6138994", "0.61293817", "0.61202776", "0.61148983", "0.61116046", "0.61056894", "0.6105463", "0.6102835", "0.6095054", "0.60610086", "0.605113", "0.604093", "0.60230875", "0.5970852", "0.5967778", "0.5959608", "0.5958116", "0.59301066", "0.5912902", "0.5899041", "0.58986676", "0.5897266", "0.58970344", "0.5844138", "0.5840864", "0.5839031", "0.58216417", "0.58023787", "0.576968", "0.57636666", "0.57620627", "0.5756826", "0.57462204", "0.5740292", "0.57381004", "0.5728376", "0.5728076", "0.57168657", "0.5708728", "0.5703304", "0.568744", "0.56853145", "0.56810206", "0.56722355", "0.5668014", "0.565295", "0.564616", "0.5644917", "0.56386226", "0.5628138", "0.56264365", "0.5626294", "0.560341", "0.55981016", "0.5587062", "0.5586991", "0.55859137", "0.5581186", "0.5579936", "0.5578902", "0.55730796", "0.55724883", "0.5557131", "0.55485654", "0.55473626" ]
0.82404214
0
For use in UI settings.
public Object[][] buildProblemDataModel() { int clientNodes[] = TSProblemModel.getInstance().getAllProblemNodes(); Object[][] result = new Object[clientNodes.length][clientNodes.length]; for (int i = 0; i < clientNodes.length; i++) { int index = clientNodes[i]; result[i][0] = new Integer(index); // ID result[i][1] = new Integer(getClientDemand(index)); // Demand TimeWindow tw = getClientTimeWindow(index); // TW result[i][2] = new Double(tw.begin); result[i][3] = new Double(tw.end); result[i][4] = new Double(getTWClientServiceTime(index)); i++; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "@Override\n\tpublic void initSettings() {\n\n\t}", "Settings ()\n {\n }", "public SwitchYardSettingsPropertyPage() {\n super();\n noDefaultAndApplyButton();\n }", "public void settings() {\n btSettings().push();\n }", "private SizeModifierSettingsEditor() {\n\t\tinitComponents();\n\t\tsettings = SizeModifierSettings.getInstance();\n\t\tloadSettings();\n\t\tmainShell.pack();\n\t\tmainShell.setBounds(\n\t\t\tCrunch3.mainWindow.getShell().getBounds().x + Crunch3.mainWindow.getShell().getBounds().width / 2 - mainShell.getBounds().width / 2,\n\t\t\tCrunch3.mainWindow.getShell().getBounds().y + Crunch3.mainWindow.getShell().getBounds().height / 2 - mainShell.getBounds().height / 2,\n\t\t\tmainShell.getBounds().width,\n\t\t\tmainShell.getBounds().height);\n\t\tmainShell.open();\n\t}", "protected void setupUI() {\n\n }", "private void settings() {\n\t\tthis.setVisible(true);\n\t\tthis.setSize(800,200);\n\t}", "@Override\r\n\tprotected void initUI() {\n\r\n\t}", "@Override\n\tpublic void settings() {\n\t\tSystem.out.println(\"settings\");\n\t\tsize(800, 800);\n\t}", "public JpSetting() {\n initComponents();\n fillThongtin();\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tshowSettingDialog(msg.what);\n\t\t\t// super.handleMessage(msg);\n\t\t}", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "private void initValues()\n {\n this.viewToolBar.setSelected(\n ConfigurationUtils.isChatToolbarVisible());\n\n this.viewSmileys.setSelected(\n ConfigurationUtils.isShowSmileys());\n\n this.chatSimpleTheme.setSelected(\n ConfigurationUtils.isChatSimpleThemeEnabled());\n }", "private SettingsWindow() {\n loadData();\n createListeners();\n }", "private void changeUIdefaults() {\n\t\tUIManager.put(\"TaskPaneContainer.useGradient\", Boolean.FALSE);\n\t\tUIManager.put(\"TaskPaneContainer.background\",\n\t\t\t\tColors.LightGray.color(0.5f));\n\n\t\t// setting taskpane defaults\n\t\tUIManager.put(\"TaskPane.font\", new FontUIResource(new Font(\"Verdana\",\n\t\t\t\tFont.BOLD, 16)));\n\t\tUIManager.put(\"TaskPane.titleBackgroundGradientStart\",\n\t\t\t\tColors.White.color());\n\t\tUIManager.put(\"TaskPane.titleBackgroundGradientEnd\",\n\t\t\t\tColors.LightBlue.color());\n\t}", "private void onSettingClickEvent() {\n\t\tmBtnSetting.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\n//\t\t\t\tLog.d(TAG, \"onSettingClickEvent\");\n//\t\t\t\topenOptionsMenu();\n\t\t\t\tConfiguration config = getResources().getConfiguration();\n\t\t\t\tif ((config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) > Configuration.SCREENLAYOUT_SIZE_LARGE) {\n\t\t\t\t\tint originalScreenLayout = config.screenLayout;\n\t\t\t\t\tconfig.screenLayout = Configuration.SCREENLAYOUT_SIZE_LARGE;\n\t\t\t\t\topenOptionsMenu();\n\t\t\t\t\tconfig.screenLayout = originalScreenLayout;\n\t\t\t\t} else {\n\t\t\t\t\topenOptionsMenu();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "private void settings() {\n\t\tIntent intent = new Intent(this, ActivitySettings.class);\n\t\tstartActivity(intent);\n\t}", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@Override\r\n\tpublic void onNaviSetting() {\n\r\n\t}", "private void settingsParameters(){\n String settings = Settings.System.getString(context.getContentResolver(), this.watchface+\"Settings\");\n if (settings == null || settings.equals(\"\")) {settings = \"{}\";}\n\n // Extract data from JSON\n JSONObject json_settings;\n try {\n json_settings = new JSONObject(settings);\n\n // Circles Widget\n if (json_settings.has(\"battery\")) {this.batteryBool = json_settings.getBoolean(\"battery\");}\n if (json_settings.has(\"steps\")) {this.stepsBool = json_settings.getBoolean(\"steps\");}\n if (json_settings.has(\"todayDistance\")) {this.todayDistanceBool = json_settings.getBoolean(\"todayDistance\");}\n if (json_settings.has(\"totalDistance\")) {this.totalDistanceBool = json_settings.getBoolean(\"totalDistance\");}\n if (json_settings.has(\"batteryCircle\")) {this.batteryCircleBool = json_settings.getBoolean(\"batteryCircle\");}\n if (json_settings.has(\"stepsCircle\")) {this.stepCircleBool = json_settings.getBoolean(\"stepsCircle\");}\n if (json_settings.has(\"todayDistanceCircle\")) {this.todayDistanceCircleBool = json_settings.getBoolean(\"todayDistanceCircle\");}\n if(isCircles()){\n if(batteryBool){\n\n\n }\n\n }\n\n } catch (JSONException e) {\n //Settings.System.putString(getContentResolver(), this.watchface+\"Settings\", \"{}\");//reset wrong settings data\n }\n }", "public void viewOptions()\r\n {\r\n SetupScreen setupScreen = new SetupScreen();\r\n pushScreen(setupScreen);\r\n }", "private void tweakPlatformDefaults() {\n if (PlatformUtils.isAppCode()) {\n SHOW_MAIN_TOOLBAR = false;\n SHOW_ICONS_IN_MENUS = false;\n SHOW_MEMORY_INDICATOR = false;\n }\n }", "public abstract void initialSettings();", "private AppSettings() {\n /* =============== UI settings =============== */\n brightnessInNightModeOnly = false;\n fullScreen = false;\n showTitle = true;\n pageInTitle = true;\n pageNumberToastPosition = ToastPosition.Bottom;\n zoomToastPosition = ToastPosition.Bottom;\n showAnimIcon = false;\n linkHighlightColor = 0x80FFFF00;\n searchHighlightColor = 0x3F0000FF;\n currentSearchHighlightColor = 0x7F007F00;\n storeGotoHistory = false;\n storeLinkGotoHistory = false;\n storeOutlineGotoHistory = false;\n storeSearchGotoHistory = false;\n\n /* =============== Tap & Scroll settings =============== */\n tapsEnabled = true;\n scrollHeight = Dips.dpToPx(10);\n touchProcessingDelay = 50;\n animateScrolling = true;\n /* =============== Performance settings =============== */\n\n\t\tpagesInMemory = 2;\n decodingThreadPriority = Thread.NORM_PRIORITY; // 7\n drawThreadPriority = Thread.NORM_PRIORITY; // 6\n\n hwaEnabled = false;\n bitmapSize = 9;// 6-64,7-128,8-256,9-512,10-1024\n bitmapFileringEnabled = false;\n textureReuseEnabled = true;\n useBitmapHack = false;\n useEarlyRecycling = false;\n reloadDuringZoom = false;\n heapPreallocate = 0;// 0-256\n pdfStorageSize = 64;// 16-128\n\n /* =============== DjVU Format-specific settings =============== */\n djvuRenderingMode = 0;// 0-color,1-black,2 color only, 3 mask, 4 backgroud, 5 foreground\n }", "private void settings() {\n\n\t\tthis.addWindowListener(controller);\n\t\tthis.setVisible(true);\n\t\tthis.setSize(1000, 660);\n\t\tthis.validate();\n\t\tthis.repaint();\n\n\t}", "@Override \r\n \tprotected IDialogSettings getDialogSettings() {\n \t\tIDialogSettings temp = super.getDialogSettings();\t\r\n \t\treturn temp;\r\n \t}", "private void setModeUI(){\n\n if (this.inManualMode == true){ this.enableRadioButtons(); } // manual mode\n else if (this.inManualMode == false){ this.disableRadioButtons(); } // automatic mode\n }", "void getSettings(ControlsSettings settings);", "private static void customSettingWhenDisabled(){\n if (format == null) setFormat(false);\n if (!format.equals(\"\")) tick(false); // If the setting is not empty, then use our custom format\n }", "@Override\n public void overrideSettings(final String... keyvalues) {\n super.overrideSettings(keyvalues);\n if (mListMenuContainer == null || mListMenu == null) { // frankie, \n initializePopup();\n } else {\n overridePreferenceAccessibility();\n }\n mListMenu.overrideSettings(keyvalues);\n\n\t\t// frankie, 2017.08.15, add start \n\t\tif(AGlobalConfig.config_module_VIDEO_MODULE_use_new_settings_en) {\n\t if(mChusSettingsFragment == null) {\n\t createSettingFragment(); // fm.commitAllowingStateLoss -> __lifeCycleCallback.onCreate -> overridePreferenceAccessibility_i\n\t }\n\t\t\telse {\n\t\t\t\toverridePreferenceAccessibility_i();\n\t\t\t}\n\t\t\tif(mChusSettingsFragment != null) {\n\t\t\t\tmChusSettingsFragment.overrideSettings(keyvalues);\n\t\t\t}\n\t\t}\n\t\t// frankie, 2017.08.15, add end\n\t\t\n }", "public void settingsMenu() {\n /*\n * we need to create new settings scene because settings may be changed and\n * we need to show those changes\n */\n Game.stage.setScene(createSettingsMenuScene());\n Game.stage.show();\n }", "void openSettings() {\n\t}", "private void _getUpdatedSettings() {\n TextView sw1Label = findViewById(R.id.labelSwitch1);\n TextView sw2Label = findViewById(R.id.labelSwitch2);\n TextView sw3Label = findViewById(R.id.labelSwitch3);\n TextView sw4Label = findViewById(R.id.labelSwitch4);\n TextView sw5Label = findViewById(R.id.labelSwitch5);\n TextView sw6Label = findViewById(R.id.labelSwitch6);\n TextView sw7Label = findViewById(R.id.labelSwitch7);\n TextView sw8Label = findViewById(R.id.labelSwitch8);\n\n sw1Label.setText(homeAutomation.settings.switch1Alias);\n sw2Label.setText(homeAutomation.settings.switch2Alias);\n sw3Label.setText(homeAutomation.settings.switch3Alias);\n sw4Label.setText(homeAutomation.settings.switch4Alias);\n sw5Label.setText(homeAutomation.settings.switch5Alias);\n sw6Label.setText(homeAutomation.settings.switch6Alias);\n sw7Label.setText(homeAutomation.settings.switch7Alias);\n sw8Label.setText(homeAutomation.settings.switch8Alias);\n }", "protected String getSettingsDialogTitle() {\r\n return \"Server options\";\r\n }", "private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }", "public void options() {\n\n audio.playSound(LDSound.SMALL_CLICK);\n if (canViewOptions()) {\n Logger.info(\"HUD Presenter: options\");\n uiStateManager.setState(GameUIState.OPTIONS);\n }\n }", "@Override\n\tpublic void notifySettingChanged() {\n\t}", "@Override\n protected void windowInit ()\n {\n }", "public String getSettings();", "public void settings() {\r\n size(WIDTH, HEIGHT); // Set size of screen\r\n }", "private void showChangeSettings() {\n showedChangeSettings = true;\n if (this.getActivity() == null || PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).getBoolean(\"crumbyHasVisitedSettings\", false)) {\n return;\n }\n Toast toast = Toast.makeText((Context)this.getActivity(), (CharSequence)\"\", (int)1);\n toast.setGravity(17, 0, 0);\n TextView textView = (TextView)View.inflate((Context)this.getActivity(), (int)2130903119, (ViewGroup)null);\n textView.setText((CharSequence)\"Hint: settings are auto-saved!\");\n toast.setView((View)textView);\n toast.show();\n PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).edit().putBoolean(\"crumbyHasVisitedSettings\", true).commit();\n }", "public void settings() {\n size(640, 384);\n }", "public void settings() {\r\n size(750, 550);\r\n }", "public void settings() {\r\n\t\tthis.size(PlayGame.WIDTH,PlayGame.HEIGHT);\r\n\t}", "private void initUI() {\n }", "private void settingsScreenRender() {\n overlay.draw(batch, 0.5f);\n uiFont.draw(batch, scoreTxt, 0, HEIGHT - (scoreLayout.height));\n uiFont.draw(batch, healthTxt, WIDTH / 2, HEIGHT - (healthLayout.height));\n musicOn.draw(batch, 1);\n musicOff.draw(batch, 1);\n resume.draw(batch, 1);\n settingStage.draw();\n }", "public static void openSettingsForm(){\n\n }", "private void Settings(){\n setUndecorated(true); \r\n\t setSize(250,70);\r\n\t setLocationRelativeTo(null);\r\n setAlwaysOnTop(true);\r\n\t setVisible(true);\r\n \r\n addMouseListener(new HandleStatusDialog());\r\n addWindowListener(new HandleStatusDialog());\r\n }", "private void settingsBtnListener() {\n settingsBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new SettingsScreen(game));\n }\n });\n }", "private void setUIFields(){\n setImage();\n setTitle();\n setLocation();\n setRatingBar();\n setDate();\n setISBN();\n setDescription();\n setPageCount();\n setNumRatings();\n }", "public String getFxSettings() {\r\n return \"{}\";\r\n }", "private UserPrefernce(){\r\n\t\t\r\n\t}", "private void showSettingsMenu(final Cursor cursor) {\n Log.d(TAG, \"showSettingsMenu\");\n enableSettingsCursor(cursor);\n context.runOnGlThread(new Runnable() {\n @Override\n public void run()\n {\n new SettingsView(context,\n scene,\n CursorManager.this,\n cursor, new SettingsChangeListener()\n {\n @Override\n public void onBack(boolean cascading) {\n disableSettingsCursor();\n }\n\n @Override\n public void onDeviceChanged(SXRCursorController device)\n {\n // we are changing the io device on the settings cursor\n removeCursorFromScene(settingsCursor);\n SXRCursorController clickedDevice = getAvailableController(device);\n settingsCursor.setController(clickedDevice);\n addCursorToScene(settingsCursor);\n }\n });\n }\n });\n }", "private void showUserSettings() {\n\t\tSharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"\\n Send report:\"+ sharedPrefs.getBoolean(\"prefSendReport\", true));\n\t}", "@FXML\n\tprivate void onSaveBtn() {\n\t\tSettings settings = Settings.getSingleton();\n\t\t//Set rule setting\n\t\tif(ruleBox.getValue() == \"Standard\") {\n\t\t\tsettings.setRuleType(RuleType.STANDARD);\n\t\t} else {\n\t\t\tsettings.setRuleType(RuleType.CHALLENGE);\n\t\t}\n\t\t\n\t\t//Set number of walls setting\n\t\tsettings.setWalls(wallBox.getValue());\n\t\t//Set show label\n\t\tsettings.setShowLabels(indicateLabel.isSelected());\n\t\t//Set show ghost trails\n\t\t//settings.setShowTrail(ghostTrail.isSelected());\n\t\t\n\t\t//Set board height and width\n\t\tswitch(boardBox.getValue()) {\n\t\tcase \"7x7\":\n\t\t\tsettings.setBoardHeight(7);\n\t\t\tsettings.setBoardWidth(7);\t\t\t\n\t\t\tbreak;\n\t\tcase \"9x9\":\n\t\t\tsettings.setBoardHeight(9);\n\t\t\tsettings.setBoardWidth(9);\t\t\t\n\t\t\tbreak;\n\t\tcase \"11x11\":\n\t\t\tsettings.setBoardHeight(11);\n\t\t\tsettings.setBoardWidth(11);\t\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsettings.setBoardHeight(9);\n\t\t\t\tsettings.setBoardWidth(9);\n\t\t\t\tbreak;\n\t\t}\n\t\t//Set tile size\n\t\tsettings.setTileSize(tileBox.getValue());\n\t}", "private void showUserSettings() {\n\t\t\tSharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\tbuilder.append(\"\\n Send report:\"+ sharedPrefs.getBoolean(\"prefSendReport\", true));\n\t\t}", "private void configureUI() {\n viewBinding.sourceUrlTextInput.setTag(R.id.streamTypeClear, getString(R.string.defaultClearSourceUrl));\r\n viewBinding.sourceUrlTextInput.setTag(R.id.streamTypeProtected, getString(R.string.defaultProtectedSourceUrl));\r\n viewBinding.sourceUrlTextInput.setOnFocusChangeListener((view, hasFocus) -> onTextInputFocusChange((TextView) view));\r\n\r\n // Defining default licenses and its visibility constraints.\r\n viewBinding.licenseUrlTextInput.setTag(R.id.streamTypeProtected, getString(R.string.defaultProtectedLicenseUrl));\r\n viewBinding.licenseUrlTextInput.setOnFocusChangeListener((view, hasFocus) -> onTextInputFocusChange((TextView) view));\r\n\r\n // Checking default stream type and defining action on its change.\r\n viewBinding.streamTypesGroup.setOnCheckedChangeListener((group, checkedId) -> onStreamTypeChange(checkedId));\r\n viewBinding.streamTypesGroup.check(R.id.streamTypeClear);\r\n\r\n // Setting action on stream play request.\r\n viewBinding.playButton.setOnClickListener(playButton -> onPlay());\r\n }", "protected void onPref(String name, String value){}", "@Override\r\n protected boolean validateSystemSettings() {\n return true;\r\n }", "@SuppressLint(\"MissingPermission\")\n @AfterPermissionGranted(PERMISSION_LOCATION_ID)\n private void setMapUISettings() {\n map.getUiSettings().setZoomControlsEnabled(true);\n map.getUiSettings().setCompassEnabled(true);\n map.getUiSettings().setAllGesturesEnabled(true);\n\n map.setOnMyLocationClickListener(new GoogleMap.OnMyLocationClickListener() {\n @Override\n public void onMyLocationClick(@NonNull Location location) {\n\n }\n });\n\n map.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\n @Override\n public boolean onMyLocationButtonClick() {\n return false;\n }\n });\n\n if (EasyPermissions.hasPermissions(requireContext(), Manifest.permission.ACCESS_FINE_LOCATION))\n map.setMyLocationEnabled(true);\n else\n EasyPermissions.requestPermissions(this, \"Access fine location needed to get my location\", PERMISSION_LOCATION_ID, Manifest.permission.ACCESS_FINE_LOCATION);\n }", "private void viewSettings() {\n startActivity(new Intent(Main.this, Settings.class));\n }", "public SettingsWindow()\n {\n House.seed = System.currentTimeMillis();\n initWindow();\n showWindows();\n }", "private void initGui() {\n initSeekBar();\n initDateFormatSpinner();\n GuiHelper.defineButtonOnClickListener(view, R.id.settings_buttonSave, this);\n\n }", "public StartSettingsView() {\n\n super();\n super.setTitle(\"Settings\");\n\n this.createPatientsComboBox();\n this.createButtons();\n\n super.setLayouts(0.2f, 0.2f,0,0.6f);\n\n\t}", "@Override\n protected boolean isAppropriate() {\n return true; // always show\n }", "public void settingBtnClick() {\n\t}", "private void goalsConfigButton(){\n if(!goalsOpened){\n goalsUI = new GoalsUI(this, false);\n goalsOpened = true;\n }\n }", "private void configureUI() {\r\n // UIManager.put(\"ToolTip.hideAccelerator\", Boolean.FALSE);\r\n\r\n Options.setDefaultIconSize(new Dimension(18, 18));\r\n\r\n Options.setUseNarrowButtons(settings.isUseNarrowButtons());\r\n\r\n // Global options\r\n Options.setTabIconsEnabled(settings.isTabIconsEnabled());\r\n UIManager.put(Options.POPUP_DROP_SHADOW_ENABLED_KEY,\r\n settings.isPopupDropShadowEnabled());\r\n\r\n // Swing Settings\r\n LookAndFeel selectedLaf = settings.getSelectedLookAndFeel();\r\n if (selectedLaf instanceof PlasticLookAndFeel) {\r\n PlasticLookAndFeel.setPlasticTheme(settings.getSelectedTheme());\r\n PlasticLookAndFeel.setTabStyle(settings.getPlasticTabStyle());\r\n PlasticLookAndFeel.setHighContrastFocusColorsEnabled(\r\n settings.isPlasticHighContrastFocusEnabled());\r\n } else if (selectedLaf.getClass() == MetalLookAndFeel.class) {\r\n MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());\r\n }\r\n\r\n // Work around caching in MetalRadioButtonUI\r\n JRadioButton radio = new JRadioButton();\r\n radio.getUI().uninstallUI(radio);\r\n JCheckBox checkBox = new JCheckBox();\r\n checkBox.getUI().uninstallUI(checkBox);\r\n\r\n try {\r\n UIManager.setLookAndFeel(selectedLaf);\r\n } catch (Exception e) {\r\n System.out.println(\"Can't change L&F: \" + e);\r\n }\r\n\r\n }", "public JComponent getPreferenceUI() {\n\t\treturn null;\n\t}", "private void configureComponents() {\n save.setStyleName(ValoTheme.BUTTON_PRIMARY);\n save.setClickShortcut(ShortcutAction.KeyCode.ENTER);\n setVisible(false);\n }", "private void setupSettings() {\n add(announcementBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(currentGamesBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(chatRoomBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(friendsListBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(leaderboardBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n }", "public void setRefreshMenu() {\n }", "protected abstract void setGUIAttributesHelper();", "private void configuracoes() {\n setLocationRelativeTo(null);\n this.setIconImage(new ImageIcon(getClass().getResource(SystemMessage.IMAGE_URL)).getImage());\n this.setTitle(SystemMessage.SYSTEM_NAME + \" -\");\n }", "static Menu settings ()\r\n \t{\r\n \t\tfinal byte width = 45;\r\n \t\tOption ram, rightHanded, dumpState, trackTime, assembly, compression;\r\n \t\tString label [] = {\"Which settings field would you\",\r\n \t\t\"like to modify?\"};\r\n \t\tMenu settings = new Menu (label, \"Change program settings.\", width);\r\n \t\t\r\n \t\t//Initialising options:\r\n \t\tassembly = new Editor (Settings.assembly, \"Assembly Definitions\");\r\n \t\trightHanded = new Toggle (Settings.rightHanded, \"RAM select\", \"Right\", \"Left\"); //True stands for right;\r\n \t\t//False for left.\r\n \t\tdumpState = new Toggle (Settings.dumpState, \"Data Recording\");\r\n \t\ttrackTime = new Toggle (Settings.trackTime, \"Time Tracking\");\r\n \t\tram = new PickNumber (Settings.rAMallowed, \"RAM Allowed\", \"bytes\");\r\n \t\tcompression = new Toggle (Settings.compressNBT, \"Schematic compression\");\r\n \t\t\r\n \t\t//Adding options to setting menu:\r\n \t\tsettings.addOption(assembly);\r\n \t\tsettings.addOption(rightHanded);\r\n \t\tsettings.addOption(dumpState);\r\n \t\tsettings.addOption(trackTime);\r\n \t\tsettings.addOption(ram);\r\n \t\t//Settings menu will display these options in the order they are added here.\r\n \t\t\r\n \t\t//TODO option for program name, target and programming language settings.\r\n \t\t\r\n \t\treturn settings;\r\n \t}", "@Override\n public void initGUI() {\n\n }", "private Settings() {}", "@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}", "private void uIFeaturesSetting() {\n etDsrRefNum.setEnabled(false);\n etDsrRefNum.setFocusable(false);\n\n etDSRDate.setFocusable(false);\n etDSRDate.setEnabled(false);\n etDSRTime.setFocusable(false);\n etDSRTime.setEnabled(false);\n\n etDateReachedCustom.setEnabled(false);\n etDateReachedCustom.setFocusable(false);\n etTimeReachedCustom.setEnabled(false);\n etTimeReachedCustom.setFocusable(false);\n\n etLoadingDate.setEnabled(false);\n etLoadingDate.setFocusable(false);\n etLoadingTime.setEnabled(false);\n etLoadingTime.setFocusable(false);\n\n etETADate.setEnabled(false);\n etETADate.setFocusable(false);\n etETATime.setEnabled(false);\n etETATime.setFocusable(false);\n\n switch (action) {\n case \"edit\":\n /**************************************/\n spinnerListClientComp.setEnabled(false);\n spinnerListClientComp.setFocusable(false);\n\n etClientCompRefNum.setEnabled(false);\n etClientCompRefNum.setFocusable(false);\n\n spinnerListCustoms.setEnabled(false);\n spinnerListCustoms.setFocusable(false);\n\n tvNowDateTime.setVisibility(View.GONE);\n ivLoadingDate.setVisibility(View.GONE);\n ivLoadingTime.setVisibility(View.GONE);\n\n ivDSRDate.setVisibility(View.GONE);\n ivDSRTime.setVisibility(View.GONE);\n\n ivAddStatus.setVisibility(View.VISIBLE);\n\n ivAddLoadingPoint.setVisibility(View.GONE);\n\n ivAddDestinationPoint.setVisibility(View.GONE);\n\n// spinnerListLoadingPoint.setEnabled(false);\n// spinnerListLoadingPoint.setFocusable(false);\n\n autocompleteTVLoadingPoint.setEnabled(false);\n autocompleteTVLoadingPoint.setFocusable(false);\n\n autocompleteTVDestinationPoint.setEnabled(false);\n autocompleteTVDestinationPoint.setFocusable(false);\n\n etTT.setEnabled(false);\n etTT.setFocusable(false);\n\n lblStatusDSR.setVisibility(View.VISIBLE);\n spinnerListStatusDSR.setVisibility(View.VISIBLE);\n ivDateReachedCustom.setVisibility(View.GONE);\n ivTimeReachedCustom.setVisibility(View.GONE);\n btn_save_general_dsr.setVisibility(View.VISIBLE);\n\n /**************************************/\n break;\n\n case \"add\":\n spinnerListClientComp.setEnabled(true);\n spinnerListClientComp.setFocusable(true);\n\n// etCustoms.setEnabled(true);\n// etCustoms.setFocusable(true);\n spinnerListCustoms.setEnabled(true);\n spinnerListCustoms.setFocusable(true);\n\n seDSRStatusSelection(null);\n\n /* spinnerListStatusDSR.setEnabled(false);\n spinnerListStatusDSR.setFocusable(false);*/\n\n /**************************************/\n autocompleteTVLoadingPoint.setEnabled(true);\n autocompleteTVLoadingPoint.setFocusable(true);\n autocompleteTVDestinationPoint.setEnabled(true);\n autocompleteTVDestinationPoint.setFocusable(true);\n\n\n ivLoadingDate.setVisibility(View.VISIBLE);\n ivLoadingTime.setVisibility(View.VISIBLE);\n tvNowDateTime.setVisibility(View.VISIBLE);\n ivDSRDate.setVisibility(View.GONE);\n ivDSRTime.setVisibility(View.GONE);\n ivAddStatus.setVisibility(View.GONE);\n ivAddLoadingPoint.setVisibility(View.VISIBLE);\n ivAddDestinationPoint.setVisibility(View.VISIBLE);\n etTT.setEnabled(true);\n etTT.setFocusable(true);\n\n lblStatusDSR.setVisibility(View.GONE);\n spinnerListStatusDSR.setVisibility(View.GONE);\n ivDateReachedCustom.setVisibility(View.VISIBLE);\n ivTimeReachedCustom.setVisibility(View.GONE);\n btn_save_general_dsr.setVisibility(View.GONE);\n /**************************************/\n break;\n }\n\n }", "public static void showPreviousDefaults() {\r\n\t\tif (Main.skinIsIowa) IniSetup.skin.select(\"Iowa\");\r\n\t\tif (Main.skinIsIowaState) IniSetup.skin.select(\"ISU\");\r\n\t\tif (Main.skinIsNorthernIowa) IniSetup.skin.select(\"UNI\");\r\n\r\n\t\tIniSetup.winScore.setText(Main.winScore);\r\n\t\tIniSetup.loseScore.setText(Main.loseScore);\r\n\t\tIniSetup.enterSoundPath.setText(Main.soundDir);\r\n\t}", "private void config() {\n\t}", "public SettingsMenuPanel() {\n initComponents();\n changed.setVisible(false);\n }", "public void setGuiHashMap() {\n\n gameMap.setGetGuiHashMapParameter(\"author\",\"Default authorName\");\n gameMap.setGetGuiHashMapParameter(\"warn\",\"Default warning\");\n gameMap.setGetGuiHashMapParameter(\"image\",\"Default image\");\n gameMap.setGetGuiHashMapParameter(\"wrap\",\"Default wrapping\");\n gameMap.setGetGuiHashMapParameter(\"scroll\",\"Default scrolling\");\n }", "@Override\n public void setupPanel()\n {\n\n }", "@Override\r\n public void initControl() {\n \r\n }", "public Settings() {\n initComponents();\n }", "public Settings() {\n initComponents();\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(Ter.this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n\n }", "public SettingsSaver() {\n set[0] = advModeUnlocked;\n set[1] = LIM_NOTESPERLINE;\n set[2] = LIM_96_MEASURES;\n set[3] = LIM_VOLUME_LINE;\n set[4] = LIM_LOWA;\n set[5] = LIM_HIGHD;\n set[6] = LOW_A_ON;\n set[7] = NEG_TEMPO_FUN;\n set[8] = LIM_TEMPO_GAPS;\n set[9] = RESIZE_WIN;\n set[10] = ADV_MODE;\n }" ]
[ "0.70969355", "0.70030004", "0.68858176", "0.64556557", "0.6353677", "0.6303968", "0.6258191", "0.6240127", "0.619008", "0.6176072", "0.6142937", "0.6141441", "0.613262", "0.6118937", "0.61169267", "0.6106657", "0.6106657", "0.6106657", "0.6106657", "0.6106657", "0.6106657", "0.6106657", "0.6085727", "0.6056654", "0.6015126", "0.6012918", "0.60018295", "0.60018295", "0.59938633", "0.59795946", "0.5976468", "0.5975517", "0.59566647", "0.5941745", "0.5928919", "0.5927737", "0.59183437", "0.58937484", "0.5872977", "0.5854674", "0.58525", "0.58485264", "0.58348835", "0.58320045", "0.5831019", "0.5828964", "0.5827552", "0.5811802", "0.5802547", "0.5782156", "0.5776819", "0.57703054", "0.5757441", "0.5757351", "0.57439166", "0.5736126", "0.5718731", "0.56995946", "0.5693173", "0.5692632", "0.5691277", "0.567667", "0.56685245", "0.5662871", "0.56556296", "0.5648378", "0.5647756", "0.5632819", "0.56251776", "0.5624551", "0.5621934", "0.5619405", "0.5614902", "0.5612204", "0.56109536", "0.5604503", "0.5601657", "0.55981", "0.55870724", "0.5581", "0.5577789", "0.55755335", "0.55548996", "0.55508834", "0.55495244", "0.5549479", "0.5547443", "0.55456644", "0.5541501", "0.55327445", "0.5526704", "0.5524127", "0.5518778", "0.5517546", "0.550175", "0.550008", "0.54999053", "0.54978067", "0.54978067", "0.54969376", "0.54965734" ]
0.0
-1
For use in UI settings.
public Object[][] buildNewGraphDataModel() { resetDataStructures(); Graph g = UIFacade.getInstance().getGraph(); Object[][] result = new Object[g.getN()][5]; for (int i = 0; i < g.getN(); i++) { Node node = g.getNode(i); ComponentProperties cp = node.getProperties(); // ID result[i][0] = new Integer( ((ID)cp.getPropertyByName("ID")).getValue()); result[i][1] = new Integer(DEFAULT_CLIENT_DEMAND); // Demand result[i][2] = new Double(DEFAULT_CLIENT_TW_BEGIN); result[i][3] = new Double(DEFAULT_CLIENT_TW_END); result[i][4] = new Double(DEFAULT_CLIENT_TW_SERVICE); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "@Override\n\tpublic void initSettings() {\n\n\t}", "Settings ()\n {\n }", "public SwitchYardSettingsPropertyPage() {\n super();\n noDefaultAndApplyButton();\n }", "public void settings() {\n btSettings().push();\n }", "private SizeModifierSettingsEditor() {\n\t\tinitComponents();\n\t\tsettings = SizeModifierSettings.getInstance();\n\t\tloadSettings();\n\t\tmainShell.pack();\n\t\tmainShell.setBounds(\n\t\t\tCrunch3.mainWindow.getShell().getBounds().x + Crunch3.mainWindow.getShell().getBounds().width / 2 - mainShell.getBounds().width / 2,\n\t\t\tCrunch3.mainWindow.getShell().getBounds().y + Crunch3.mainWindow.getShell().getBounds().height / 2 - mainShell.getBounds().height / 2,\n\t\t\tmainShell.getBounds().width,\n\t\t\tmainShell.getBounds().height);\n\t\tmainShell.open();\n\t}", "protected void setupUI() {\n\n }", "private void settings() {\n\t\tthis.setVisible(true);\n\t\tthis.setSize(800,200);\n\t}", "@Override\r\n\tprotected void initUI() {\n\r\n\t}", "@Override\n\tpublic void settings() {\n\t\tSystem.out.println(\"settings\");\n\t\tsize(800, 800);\n\t}", "public JpSetting() {\n initComponents();\n fillThongtin();\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tshowSettingDialog(msg.what);\n\t\t\t// super.handleMessage(msg);\n\t\t}", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "private void initValues()\n {\n this.viewToolBar.setSelected(\n ConfigurationUtils.isChatToolbarVisible());\n\n this.viewSmileys.setSelected(\n ConfigurationUtils.isShowSmileys());\n\n this.chatSimpleTheme.setSelected(\n ConfigurationUtils.isChatSimpleThemeEnabled());\n }", "private SettingsWindow() {\n loadData();\n createListeners();\n }", "private void changeUIdefaults() {\n\t\tUIManager.put(\"TaskPaneContainer.useGradient\", Boolean.FALSE);\n\t\tUIManager.put(\"TaskPaneContainer.background\",\n\t\t\t\tColors.LightGray.color(0.5f));\n\n\t\t// setting taskpane defaults\n\t\tUIManager.put(\"TaskPane.font\", new FontUIResource(new Font(\"Verdana\",\n\t\t\t\tFont.BOLD, 16)));\n\t\tUIManager.put(\"TaskPane.titleBackgroundGradientStart\",\n\t\t\t\tColors.White.color());\n\t\tUIManager.put(\"TaskPane.titleBackgroundGradientEnd\",\n\t\t\t\tColors.LightBlue.color());\n\t}", "private void onSettingClickEvent() {\n\t\tmBtnSetting.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\n//\t\t\t\tLog.d(TAG, \"onSettingClickEvent\");\n//\t\t\t\topenOptionsMenu();\n\t\t\t\tConfiguration config = getResources().getConfiguration();\n\t\t\t\tif ((config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) > Configuration.SCREENLAYOUT_SIZE_LARGE) {\n\t\t\t\t\tint originalScreenLayout = config.screenLayout;\n\t\t\t\t\tconfig.screenLayout = Configuration.SCREENLAYOUT_SIZE_LARGE;\n\t\t\t\t\topenOptionsMenu();\n\t\t\t\t\tconfig.screenLayout = originalScreenLayout;\n\t\t\t\t} else {\n\t\t\t\t\topenOptionsMenu();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "private void settings() {\n\t\tIntent intent = new Intent(this, ActivitySettings.class);\n\t\tstartActivity(intent);\n\t}", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@Override\r\n\tpublic void onNaviSetting() {\n\r\n\t}", "private void settingsParameters(){\n String settings = Settings.System.getString(context.getContentResolver(), this.watchface+\"Settings\");\n if (settings == null || settings.equals(\"\")) {settings = \"{}\";}\n\n // Extract data from JSON\n JSONObject json_settings;\n try {\n json_settings = new JSONObject(settings);\n\n // Circles Widget\n if (json_settings.has(\"battery\")) {this.batteryBool = json_settings.getBoolean(\"battery\");}\n if (json_settings.has(\"steps\")) {this.stepsBool = json_settings.getBoolean(\"steps\");}\n if (json_settings.has(\"todayDistance\")) {this.todayDistanceBool = json_settings.getBoolean(\"todayDistance\");}\n if (json_settings.has(\"totalDistance\")) {this.totalDistanceBool = json_settings.getBoolean(\"totalDistance\");}\n if (json_settings.has(\"batteryCircle\")) {this.batteryCircleBool = json_settings.getBoolean(\"batteryCircle\");}\n if (json_settings.has(\"stepsCircle\")) {this.stepCircleBool = json_settings.getBoolean(\"stepsCircle\");}\n if (json_settings.has(\"todayDistanceCircle\")) {this.todayDistanceCircleBool = json_settings.getBoolean(\"todayDistanceCircle\");}\n if(isCircles()){\n if(batteryBool){\n\n\n }\n\n }\n\n } catch (JSONException e) {\n //Settings.System.putString(getContentResolver(), this.watchface+\"Settings\", \"{}\");//reset wrong settings data\n }\n }", "public void viewOptions()\r\n {\r\n SetupScreen setupScreen = new SetupScreen();\r\n pushScreen(setupScreen);\r\n }", "private void tweakPlatformDefaults() {\n if (PlatformUtils.isAppCode()) {\n SHOW_MAIN_TOOLBAR = false;\n SHOW_ICONS_IN_MENUS = false;\n SHOW_MEMORY_INDICATOR = false;\n }\n }", "public abstract void initialSettings();", "private AppSettings() {\n /* =============== UI settings =============== */\n brightnessInNightModeOnly = false;\n fullScreen = false;\n showTitle = true;\n pageInTitle = true;\n pageNumberToastPosition = ToastPosition.Bottom;\n zoomToastPosition = ToastPosition.Bottom;\n showAnimIcon = false;\n linkHighlightColor = 0x80FFFF00;\n searchHighlightColor = 0x3F0000FF;\n currentSearchHighlightColor = 0x7F007F00;\n storeGotoHistory = false;\n storeLinkGotoHistory = false;\n storeOutlineGotoHistory = false;\n storeSearchGotoHistory = false;\n\n /* =============== Tap & Scroll settings =============== */\n tapsEnabled = true;\n scrollHeight = Dips.dpToPx(10);\n touchProcessingDelay = 50;\n animateScrolling = true;\n /* =============== Performance settings =============== */\n\n\t\tpagesInMemory = 2;\n decodingThreadPriority = Thread.NORM_PRIORITY; // 7\n drawThreadPriority = Thread.NORM_PRIORITY; // 6\n\n hwaEnabled = false;\n bitmapSize = 9;// 6-64,7-128,8-256,9-512,10-1024\n bitmapFileringEnabled = false;\n textureReuseEnabled = true;\n useBitmapHack = false;\n useEarlyRecycling = false;\n reloadDuringZoom = false;\n heapPreallocate = 0;// 0-256\n pdfStorageSize = 64;// 16-128\n\n /* =============== DjVU Format-specific settings =============== */\n djvuRenderingMode = 0;// 0-color,1-black,2 color only, 3 mask, 4 backgroud, 5 foreground\n }", "private void settings() {\n\n\t\tthis.addWindowListener(controller);\n\t\tthis.setVisible(true);\n\t\tthis.setSize(1000, 660);\n\t\tthis.validate();\n\t\tthis.repaint();\n\n\t}", "@Override \r\n \tprotected IDialogSettings getDialogSettings() {\n \t\tIDialogSettings temp = super.getDialogSettings();\t\r\n \t\treturn temp;\r\n \t}", "private void setModeUI(){\n\n if (this.inManualMode == true){ this.enableRadioButtons(); } // manual mode\n else if (this.inManualMode == false){ this.disableRadioButtons(); } // automatic mode\n }", "void getSettings(ControlsSettings settings);", "private static void customSettingWhenDisabled(){\n if (format == null) setFormat(false);\n if (!format.equals(\"\")) tick(false); // If the setting is not empty, then use our custom format\n }", "@Override\n public void overrideSettings(final String... keyvalues) {\n super.overrideSettings(keyvalues);\n if (mListMenuContainer == null || mListMenu == null) { // frankie, \n initializePopup();\n } else {\n overridePreferenceAccessibility();\n }\n mListMenu.overrideSettings(keyvalues);\n\n\t\t// frankie, 2017.08.15, add start \n\t\tif(AGlobalConfig.config_module_VIDEO_MODULE_use_new_settings_en) {\n\t if(mChusSettingsFragment == null) {\n\t createSettingFragment(); // fm.commitAllowingStateLoss -> __lifeCycleCallback.onCreate -> overridePreferenceAccessibility_i\n\t }\n\t\t\telse {\n\t\t\t\toverridePreferenceAccessibility_i();\n\t\t\t}\n\t\t\tif(mChusSettingsFragment != null) {\n\t\t\t\tmChusSettingsFragment.overrideSettings(keyvalues);\n\t\t\t}\n\t\t}\n\t\t// frankie, 2017.08.15, add end\n\t\t\n }", "public void settingsMenu() {\n /*\n * we need to create new settings scene because settings may be changed and\n * we need to show those changes\n */\n Game.stage.setScene(createSettingsMenuScene());\n Game.stage.show();\n }", "void openSettings() {\n\t}", "private void _getUpdatedSettings() {\n TextView sw1Label = findViewById(R.id.labelSwitch1);\n TextView sw2Label = findViewById(R.id.labelSwitch2);\n TextView sw3Label = findViewById(R.id.labelSwitch3);\n TextView sw4Label = findViewById(R.id.labelSwitch4);\n TextView sw5Label = findViewById(R.id.labelSwitch5);\n TextView sw6Label = findViewById(R.id.labelSwitch6);\n TextView sw7Label = findViewById(R.id.labelSwitch7);\n TextView sw8Label = findViewById(R.id.labelSwitch8);\n\n sw1Label.setText(homeAutomation.settings.switch1Alias);\n sw2Label.setText(homeAutomation.settings.switch2Alias);\n sw3Label.setText(homeAutomation.settings.switch3Alias);\n sw4Label.setText(homeAutomation.settings.switch4Alias);\n sw5Label.setText(homeAutomation.settings.switch5Alias);\n sw6Label.setText(homeAutomation.settings.switch6Alias);\n sw7Label.setText(homeAutomation.settings.switch7Alias);\n sw8Label.setText(homeAutomation.settings.switch8Alias);\n }", "protected String getSettingsDialogTitle() {\r\n return \"Server options\";\r\n }", "private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }", "public void options() {\n\n audio.playSound(LDSound.SMALL_CLICK);\n if (canViewOptions()) {\n Logger.info(\"HUD Presenter: options\");\n uiStateManager.setState(GameUIState.OPTIONS);\n }\n }", "@Override\n\tpublic void notifySettingChanged() {\n\t}", "@Override\n protected void windowInit ()\n {\n }", "public String getSettings();", "public void settings() {\r\n size(WIDTH, HEIGHT); // Set size of screen\r\n }", "public void settings() {\n size(640, 384);\n }", "private void showChangeSettings() {\n showedChangeSettings = true;\n if (this.getActivity() == null || PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).getBoolean(\"crumbyHasVisitedSettings\", false)) {\n return;\n }\n Toast toast = Toast.makeText((Context)this.getActivity(), (CharSequence)\"\", (int)1);\n toast.setGravity(17, 0, 0);\n TextView textView = (TextView)View.inflate((Context)this.getActivity(), (int)2130903119, (ViewGroup)null);\n textView.setText((CharSequence)\"Hint: settings are auto-saved!\");\n toast.setView((View)textView);\n toast.show();\n PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).edit().putBoolean(\"crumbyHasVisitedSettings\", true).commit();\n }", "public void settings() {\r\n size(750, 550);\r\n }", "public void settings() {\r\n\t\tthis.size(PlayGame.WIDTH,PlayGame.HEIGHT);\r\n\t}", "private void initUI() {\n }", "private void settingsScreenRender() {\n overlay.draw(batch, 0.5f);\n uiFont.draw(batch, scoreTxt, 0, HEIGHT - (scoreLayout.height));\n uiFont.draw(batch, healthTxt, WIDTH / 2, HEIGHT - (healthLayout.height));\n musicOn.draw(batch, 1);\n musicOff.draw(batch, 1);\n resume.draw(batch, 1);\n settingStage.draw();\n }", "public static void openSettingsForm(){\n\n }", "private void settingsBtnListener() {\n settingsBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new SettingsScreen(game));\n }\n });\n }", "private void Settings(){\n setUndecorated(true); \r\n\t setSize(250,70);\r\n\t setLocationRelativeTo(null);\r\n setAlwaysOnTop(true);\r\n\t setVisible(true);\r\n \r\n addMouseListener(new HandleStatusDialog());\r\n addWindowListener(new HandleStatusDialog());\r\n }", "private void setUIFields(){\n setImage();\n setTitle();\n setLocation();\n setRatingBar();\n setDate();\n setISBN();\n setDescription();\n setPageCount();\n setNumRatings();\n }", "public String getFxSettings() {\r\n return \"{}\";\r\n }", "private UserPrefernce(){\r\n\t\t\r\n\t}", "private void showSettingsMenu(final Cursor cursor) {\n Log.d(TAG, \"showSettingsMenu\");\n enableSettingsCursor(cursor);\n context.runOnGlThread(new Runnable() {\n @Override\n public void run()\n {\n new SettingsView(context,\n scene,\n CursorManager.this,\n cursor, new SettingsChangeListener()\n {\n @Override\n public void onBack(boolean cascading) {\n disableSettingsCursor();\n }\n\n @Override\n public void onDeviceChanged(SXRCursorController device)\n {\n // we are changing the io device on the settings cursor\n removeCursorFromScene(settingsCursor);\n SXRCursorController clickedDevice = getAvailableController(device);\n settingsCursor.setController(clickedDevice);\n addCursorToScene(settingsCursor);\n }\n });\n }\n });\n }", "@FXML\n\tprivate void onSaveBtn() {\n\t\tSettings settings = Settings.getSingleton();\n\t\t//Set rule setting\n\t\tif(ruleBox.getValue() == \"Standard\") {\n\t\t\tsettings.setRuleType(RuleType.STANDARD);\n\t\t} else {\n\t\t\tsettings.setRuleType(RuleType.CHALLENGE);\n\t\t}\n\t\t\n\t\t//Set number of walls setting\n\t\tsettings.setWalls(wallBox.getValue());\n\t\t//Set show label\n\t\tsettings.setShowLabels(indicateLabel.isSelected());\n\t\t//Set show ghost trails\n\t\t//settings.setShowTrail(ghostTrail.isSelected());\n\t\t\n\t\t//Set board height and width\n\t\tswitch(boardBox.getValue()) {\n\t\tcase \"7x7\":\n\t\t\tsettings.setBoardHeight(7);\n\t\t\tsettings.setBoardWidth(7);\t\t\t\n\t\t\tbreak;\n\t\tcase \"9x9\":\n\t\t\tsettings.setBoardHeight(9);\n\t\t\tsettings.setBoardWidth(9);\t\t\t\n\t\t\tbreak;\n\t\tcase \"11x11\":\n\t\t\tsettings.setBoardHeight(11);\n\t\t\tsettings.setBoardWidth(11);\t\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsettings.setBoardHeight(9);\n\t\t\t\tsettings.setBoardWidth(9);\n\t\t\t\tbreak;\n\t\t}\n\t\t//Set tile size\n\t\tsettings.setTileSize(tileBox.getValue());\n\t}", "private void showUserSettings() {\n\t\tSharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"\\n Send report:\"+ sharedPrefs.getBoolean(\"prefSendReport\", true));\n\t}", "private void showUserSettings() {\n\t\t\tSharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\tbuilder.append(\"\\n Send report:\"+ sharedPrefs.getBoolean(\"prefSendReport\", true));\n\t\t}", "protected void onPref(String name, String value){}", "private void configureUI() {\n viewBinding.sourceUrlTextInput.setTag(R.id.streamTypeClear, getString(R.string.defaultClearSourceUrl));\r\n viewBinding.sourceUrlTextInput.setTag(R.id.streamTypeProtected, getString(R.string.defaultProtectedSourceUrl));\r\n viewBinding.sourceUrlTextInput.setOnFocusChangeListener((view, hasFocus) -> onTextInputFocusChange((TextView) view));\r\n\r\n // Defining default licenses and its visibility constraints.\r\n viewBinding.licenseUrlTextInput.setTag(R.id.streamTypeProtected, getString(R.string.defaultProtectedLicenseUrl));\r\n viewBinding.licenseUrlTextInput.setOnFocusChangeListener((view, hasFocus) -> onTextInputFocusChange((TextView) view));\r\n\r\n // Checking default stream type and defining action on its change.\r\n viewBinding.streamTypesGroup.setOnCheckedChangeListener((group, checkedId) -> onStreamTypeChange(checkedId));\r\n viewBinding.streamTypesGroup.check(R.id.streamTypeClear);\r\n\r\n // Setting action on stream play request.\r\n viewBinding.playButton.setOnClickListener(playButton -> onPlay());\r\n }", "@Override\r\n protected boolean validateSystemSettings() {\n return true;\r\n }", "@SuppressLint(\"MissingPermission\")\n @AfterPermissionGranted(PERMISSION_LOCATION_ID)\n private void setMapUISettings() {\n map.getUiSettings().setZoomControlsEnabled(true);\n map.getUiSettings().setCompassEnabled(true);\n map.getUiSettings().setAllGesturesEnabled(true);\n\n map.setOnMyLocationClickListener(new GoogleMap.OnMyLocationClickListener() {\n @Override\n public void onMyLocationClick(@NonNull Location location) {\n\n }\n });\n\n map.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\n @Override\n public boolean onMyLocationButtonClick() {\n return false;\n }\n });\n\n if (EasyPermissions.hasPermissions(requireContext(), Manifest.permission.ACCESS_FINE_LOCATION))\n map.setMyLocationEnabled(true);\n else\n EasyPermissions.requestPermissions(this, \"Access fine location needed to get my location\", PERMISSION_LOCATION_ID, Manifest.permission.ACCESS_FINE_LOCATION);\n }", "private void viewSettings() {\n startActivity(new Intent(Main.this, Settings.class));\n }", "public SettingsWindow()\n {\n House.seed = System.currentTimeMillis();\n initWindow();\n showWindows();\n }", "private void initGui() {\n initSeekBar();\n initDateFormatSpinner();\n GuiHelper.defineButtonOnClickListener(view, R.id.settings_buttonSave, this);\n\n }", "public StartSettingsView() {\n\n super();\n super.setTitle(\"Settings\");\n\n this.createPatientsComboBox();\n this.createButtons();\n\n super.setLayouts(0.2f, 0.2f,0,0.6f);\n\n\t}", "@Override\n protected boolean isAppropriate() {\n return true; // always show\n }", "public void settingBtnClick() {\n\t}", "private void goalsConfigButton(){\n if(!goalsOpened){\n goalsUI = new GoalsUI(this, false);\n goalsOpened = true;\n }\n }", "private void configureUI() {\r\n // UIManager.put(\"ToolTip.hideAccelerator\", Boolean.FALSE);\r\n\r\n Options.setDefaultIconSize(new Dimension(18, 18));\r\n\r\n Options.setUseNarrowButtons(settings.isUseNarrowButtons());\r\n\r\n // Global options\r\n Options.setTabIconsEnabled(settings.isTabIconsEnabled());\r\n UIManager.put(Options.POPUP_DROP_SHADOW_ENABLED_KEY,\r\n settings.isPopupDropShadowEnabled());\r\n\r\n // Swing Settings\r\n LookAndFeel selectedLaf = settings.getSelectedLookAndFeel();\r\n if (selectedLaf instanceof PlasticLookAndFeel) {\r\n PlasticLookAndFeel.setPlasticTheme(settings.getSelectedTheme());\r\n PlasticLookAndFeel.setTabStyle(settings.getPlasticTabStyle());\r\n PlasticLookAndFeel.setHighContrastFocusColorsEnabled(\r\n settings.isPlasticHighContrastFocusEnabled());\r\n } else if (selectedLaf.getClass() == MetalLookAndFeel.class) {\r\n MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());\r\n }\r\n\r\n // Work around caching in MetalRadioButtonUI\r\n JRadioButton radio = new JRadioButton();\r\n radio.getUI().uninstallUI(radio);\r\n JCheckBox checkBox = new JCheckBox();\r\n checkBox.getUI().uninstallUI(checkBox);\r\n\r\n try {\r\n UIManager.setLookAndFeel(selectedLaf);\r\n } catch (Exception e) {\r\n System.out.println(\"Can't change L&F: \" + e);\r\n }\r\n\r\n }", "public JComponent getPreferenceUI() {\n\t\treturn null;\n\t}", "private void configureComponents() {\n save.setStyleName(ValoTheme.BUTTON_PRIMARY);\n save.setClickShortcut(ShortcutAction.KeyCode.ENTER);\n setVisible(false);\n }", "private void setupSettings() {\n add(announcementBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(currentGamesBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(chatRoomBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(friendsListBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(leaderboardBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n }", "public void setRefreshMenu() {\n }", "private void configuracoes() {\n setLocationRelativeTo(null);\n this.setIconImage(new ImageIcon(getClass().getResource(SystemMessage.IMAGE_URL)).getImage());\n this.setTitle(SystemMessage.SYSTEM_NAME + \" -\");\n }", "protected abstract void setGUIAttributesHelper();", "static Menu settings ()\r\n \t{\r\n \t\tfinal byte width = 45;\r\n \t\tOption ram, rightHanded, dumpState, trackTime, assembly, compression;\r\n \t\tString label [] = {\"Which settings field would you\",\r\n \t\t\"like to modify?\"};\r\n \t\tMenu settings = new Menu (label, \"Change program settings.\", width);\r\n \t\t\r\n \t\t//Initialising options:\r\n \t\tassembly = new Editor (Settings.assembly, \"Assembly Definitions\");\r\n \t\trightHanded = new Toggle (Settings.rightHanded, \"RAM select\", \"Right\", \"Left\"); //True stands for right;\r\n \t\t//False for left.\r\n \t\tdumpState = new Toggle (Settings.dumpState, \"Data Recording\");\r\n \t\ttrackTime = new Toggle (Settings.trackTime, \"Time Tracking\");\r\n \t\tram = new PickNumber (Settings.rAMallowed, \"RAM Allowed\", \"bytes\");\r\n \t\tcompression = new Toggle (Settings.compressNBT, \"Schematic compression\");\r\n \t\t\r\n \t\t//Adding options to setting menu:\r\n \t\tsettings.addOption(assembly);\r\n \t\tsettings.addOption(rightHanded);\r\n \t\tsettings.addOption(dumpState);\r\n \t\tsettings.addOption(trackTime);\r\n \t\tsettings.addOption(ram);\r\n \t\t//Settings menu will display these options in the order they are added here.\r\n \t\t\r\n \t\t//TODO option for program name, target and programming language settings.\r\n \t\t\r\n \t\treturn settings;\r\n \t}", "@Override\n public void initGUI() {\n\n }", "private Settings() {}", "@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}", "private void uIFeaturesSetting() {\n etDsrRefNum.setEnabled(false);\n etDsrRefNum.setFocusable(false);\n\n etDSRDate.setFocusable(false);\n etDSRDate.setEnabled(false);\n etDSRTime.setFocusable(false);\n etDSRTime.setEnabled(false);\n\n etDateReachedCustom.setEnabled(false);\n etDateReachedCustom.setFocusable(false);\n etTimeReachedCustom.setEnabled(false);\n etTimeReachedCustom.setFocusable(false);\n\n etLoadingDate.setEnabled(false);\n etLoadingDate.setFocusable(false);\n etLoadingTime.setEnabled(false);\n etLoadingTime.setFocusable(false);\n\n etETADate.setEnabled(false);\n etETADate.setFocusable(false);\n etETATime.setEnabled(false);\n etETATime.setFocusable(false);\n\n switch (action) {\n case \"edit\":\n /**************************************/\n spinnerListClientComp.setEnabled(false);\n spinnerListClientComp.setFocusable(false);\n\n etClientCompRefNum.setEnabled(false);\n etClientCompRefNum.setFocusable(false);\n\n spinnerListCustoms.setEnabled(false);\n spinnerListCustoms.setFocusable(false);\n\n tvNowDateTime.setVisibility(View.GONE);\n ivLoadingDate.setVisibility(View.GONE);\n ivLoadingTime.setVisibility(View.GONE);\n\n ivDSRDate.setVisibility(View.GONE);\n ivDSRTime.setVisibility(View.GONE);\n\n ivAddStatus.setVisibility(View.VISIBLE);\n\n ivAddLoadingPoint.setVisibility(View.GONE);\n\n ivAddDestinationPoint.setVisibility(View.GONE);\n\n// spinnerListLoadingPoint.setEnabled(false);\n// spinnerListLoadingPoint.setFocusable(false);\n\n autocompleteTVLoadingPoint.setEnabled(false);\n autocompleteTVLoadingPoint.setFocusable(false);\n\n autocompleteTVDestinationPoint.setEnabled(false);\n autocompleteTVDestinationPoint.setFocusable(false);\n\n etTT.setEnabled(false);\n etTT.setFocusable(false);\n\n lblStatusDSR.setVisibility(View.VISIBLE);\n spinnerListStatusDSR.setVisibility(View.VISIBLE);\n ivDateReachedCustom.setVisibility(View.GONE);\n ivTimeReachedCustom.setVisibility(View.GONE);\n btn_save_general_dsr.setVisibility(View.VISIBLE);\n\n /**************************************/\n break;\n\n case \"add\":\n spinnerListClientComp.setEnabled(true);\n spinnerListClientComp.setFocusable(true);\n\n// etCustoms.setEnabled(true);\n// etCustoms.setFocusable(true);\n spinnerListCustoms.setEnabled(true);\n spinnerListCustoms.setFocusable(true);\n\n seDSRStatusSelection(null);\n\n /* spinnerListStatusDSR.setEnabled(false);\n spinnerListStatusDSR.setFocusable(false);*/\n\n /**************************************/\n autocompleteTVLoadingPoint.setEnabled(true);\n autocompleteTVLoadingPoint.setFocusable(true);\n autocompleteTVDestinationPoint.setEnabled(true);\n autocompleteTVDestinationPoint.setFocusable(true);\n\n\n ivLoadingDate.setVisibility(View.VISIBLE);\n ivLoadingTime.setVisibility(View.VISIBLE);\n tvNowDateTime.setVisibility(View.VISIBLE);\n ivDSRDate.setVisibility(View.GONE);\n ivDSRTime.setVisibility(View.GONE);\n ivAddStatus.setVisibility(View.GONE);\n ivAddLoadingPoint.setVisibility(View.VISIBLE);\n ivAddDestinationPoint.setVisibility(View.VISIBLE);\n etTT.setEnabled(true);\n etTT.setFocusable(true);\n\n lblStatusDSR.setVisibility(View.GONE);\n spinnerListStatusDSR.setVisibility(View.GONE);\n ivDateReachedCustom.setVisibility(View.VISIBLE);\n ivTimeReachedCustom.setVisibility(View.GONE);\n btn_save_general_dsr.setVisibility(View.GONE);\n /**************************************/\n break;\n }\n\n }", "public static void showPreviousDefaults() {\r\n\t\tif (Main.skinIsIowa) IniSetup.skin.select(\"Iowa\");\r\n\t\tif (Main.skinIsIowaState) IniSetup.skin.select(\"ISU\");\r\n\t\tif (Main.skinIsNorthernIowa) IniSetup.skin.select(\"UNI\");\r\n\r\n\t\tIniSetup.winScore.setText(Main.winScore);\r\n\t\tIniSetup.loseScore.setText(Main.loseScore);\r\n\t\tIniSetup.enterSoundPath.setText(Main.soundDir);\r\n\t}", "private void config() {\n\t}", "public SettingsMenuPanel() {\n initComponents();\n changed.setVisible(false);\n }", "public void setGuiHashMap() {\n\n gameMap.setGetGuiHashMapParameter(\"author\",\"Default authorName\");\n gameMap.setGetGuiHashMapParameter(\"warn\",\"Default warning\");\n gameMap.setGetGuiHashMapParameter(\"image\",\"Default image\");\n gameMap.setGetGuiHashMapParameter(\"wrap\",\"Default wrapping\");\n gameMap.setGetGuiHashMapParameter(\"scroll\",\"Default scrolling\");\n }", "@Override\r\n public void initControl() {\n \r\n }", "@Override\n public void setupPanel()\n {\n\n }", "public SettingsSaver() {\n set[0] = advModeUnlocked;\n set[1] = LIM_NOTESPERLINE;\n set[2] = LIM_96_MEASURES;\n set[3] = LIM_VOLUME_LINE;\n set[4] = LIM_LOWA;\n set[5] = LIM_HIGHD;\n set[6] = LOW_A_ON;\n set[7] = NEG_TEMPO_FUN;\n set[8] = LIM_TEMPO_GAPS;\n set[9] = RESIZE_WIN;\n set[10] = ADV_MODE;\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(Ter.this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n\n }", "public Settings() {\n initComponents();\n }", "public Settings() {\n initComponents();\n }" ]
[ "0.70968914", "0.70009583", "0.68842125", "0.64532983", "0.6353074", "0.63027024", "0.62568706", "0.6240321", "0.6186956", "0.61745864", "0.6141157", "0.6139885", "0.61327636", "0.61177933", "0.61157554", "0.61033875", "0.61033875", "0.61033875", "0.61033875", "0.61033875", "0.61033875", "0.61033875", "0.6085251", "0.60551834", "0.6013461", "0.60123485", "0.6001399", "0.6001399", "0.59940374", "0.5977943", "0.5976491", "0.5974912", "0.59561825", "0.5939577", "0.592932", "0.5926514", "0.5916724", "0.58924514", "0.58716345", "0.58515733", "0.5850964", "0.5847006", "0.5833837", "0.583139", "0.5830152", "0.58269763", "0.5825519", "0.58122927", "0.5801606", "0.5781142", "0.5775465", "0.57703304", "0.5757475", "0.57566017", "0.57437086", "0.57361674", "0.571744", "0.56986475", "0.5691232", "0.5690634", "0.56904185", "0.56765443", "0.56662947", "0.56631774", "0.5654463", "0.56476384", "0.56470144", "0.563155", "0.5624764", "0.5623337", "0.56214166", "0.5618686", "0.56144357", "0.56103265", "0.5609827", "0.56023663", "0.5600988", "0.55980337", "0.55868936", "0.557783", "0.5575341", "0.5573583", "0.5553026", "0.5550151", "0.55489904", "0.55480987", "0.55452913", "0.5544594", "0.55411893", "0.55312425", "0.5526603", "0.5523924", "0.5519754", "0.55148196", "0.55013937", "0.54994154", "0.5498647", "0.5496157", "0.5495864", "0.5495369", "0.5495369" ]
0.0
-1
infalte the item Layout
@Override public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.rowlayout, parent, false); MyViewHolder vh = new MyViewHolder(v); // pass the view to View Holder return vh; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void layout() {\n\n\n _abortButton= makeAbortButton();\n _abortButton.addStyleName(\"download-group-abort\");\n _content.addStyleName(\"download-group-content\");\n _detailUI= new DetailUIInfo[getPartCount(_monItem)];\n layoutDetails();\n }", "public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }", "protected abstract void iniciarLayout();", "@Override\n public void onGlobalLayout() {\n\n if (!isFirstLayout) {\n isFirstLayout = true;\n ListAdapter adapter=new MeAdapter(getActivity(),gv.getHeight()/2,resIds,names);\n gv.setAdapter(adapter);\n\n }\n }", "@Override\n public void layout() {\n // TODO: not implemented\n }", "public void setupLayout() {\n // left empty for subclass to override\n }", "private void initLayout() {\n ListView<PropertyWrapper> attributes = new ListView<PropertyWrapper>(\"attributes\", createAttributesModel()) {\n\n @Override\n protected void populateItem(ListItem<PropertyWrapper> listItem) {\n populateListItem(listItem);\n\n if (!showEmptyProperties && isEmpty(listItem)) {\n listItem.setVisible(false);\n }\n }\n };\n add(attributes);\n\n //todo remove !!!\n final MultiLineLabel label = new MultiLineLabel(\"debug\", new AbstractReadOnlyModel<String>() {\n\n @Override\n public String getObject() {\n return showStatus();\n }\n });\n label.add(new AjaxEventBehavior(\"onClick\") {\n\n @Override\n protected void onEvent(AjaxRequestTarget target) {\n target.add(label);\n }\n });\n add(label);\n }", "protected abstract int getItemLayoutId();", "public void setLayout() {\n\t\tpersonenListe.getItems().addAll(deck.getPersonenOrdered());\n\t\tpersonenListe.setValue(\"Täter\");\n\t\twaffenListe.getItems().addAll(deck.getWaffenOrdered());\n\t\twaffenListe.setValue(\"Waffe\");\n\t\t// zimmerListe.getItems().addAll(deck.getZimmerOrdered());\n\t\tzimmerListe.setValue(\"Raum\");\n\n\t\tanklage.setMinSize(80, 120);\n\t\tanklage.setMaxSize(80, 120);\n\t\tanklage.setTextFill(Color.BLACK);\n\t\tanklage.setStyle(\"-fx-background-color: #787878;\");\n\n\t\twurfel.setMinSize(80, 120);\n\t\twurfel.setMaxSize(80, 120);\n\t\twurfel.setTextFill(Color.BLACK);\n\t\twurfel.setStyle(\"-fx-background-color: #787878;\");\n\n\t\tgang.setMinSize(80, 120);\n\t\tgang.setMaxSize(80, 120);\n\t\tgang.setTextFill(Color.BLACK);\n\t\tgang.setStyle(\"-fx-background-color: #787878;\");\n\n\t\ttop = new HBox();\n\t\ttop.setSpacing(1);\n\t\ttop.setAlignment(Pos.CENTER);\n\n\t\tbuttons = new HBox();\n\t\tbuttons.setSpacing(20);\n\t\tbuttons.setAlignment(Pos.CENTER);\n\t\tbuttons.getChildren().addAll(anklage, wurfel, gang);\n\n\t\tbottom = new HBox();\n\t\tbottom.setSpacing(150);\n\t\tbottom.setAlignment(Pos.CENTER);\n\t\tbottom.getChildren().addAll(close);\n\n\t\tfenster = new BorderPane();\n\t\tfenster.setStyle(\"-fx-background-image: url('media/ZugFensterResized.png');\");\n\t\tfenster.setTop(top);\n\t\tfenster.setCenter(buttons);\n\t\tfenster.setBottom(bottom);\n\t}", "@Override\n protected int getNormalLayoutResId() {\n return itemCommonBinder.layout;\n }", "public void finishLayout() {\n\t\tsetTypeState(ir_type_state.layout_fixed);\n\t}", "public void onFinishInflate() {\n super.onFinishInflate();\n bringChildToFront(this.menuButton);\n this.buttonsCount = getChildCount();\n createLabels();\n }", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tl = 0;\n\t\tt = 0;\n\t\tr = getWidth();\n\t\tb = getHeight();\n\n\t\tif (header != null) {\n\t\t\theader.layout(l, t, r, header.getMeasuredHeight());\n\t\t\titem.layout(l, header.getMeasuredHeight(), r, b);\n\t\t} else if (divider != null) {\n\t\t\tdivider.setBounds(l, t, r, dividerHeight);\n\t\t\titem.layout(l, dividerHeight, r, b);\n\t\t} else {\n\t\t\titem.layout(l, t, r, b);\n\t\t}\n\t}", "public abstract void doLayout();", "private void initializeLayout(){\n String title = mStrInfo;\n String subtitle = mClientItem.clientName;\n mHomeToolbar.setGymRatToolbarTitle(title, subtitle);\n\n //initialize maids\n initializeMaid();\n\n //initialize bottom navigation\n initializeBottomNavigation();\n }", "private void buildLayout() {\n HorizontalLayout actions = new HorizontalLayout(filter, newPart);\n actions.setWidth(\"100%\"); //what portion of screen to take\n filter.setWidth(\"100%\"); //what portion filter textbox takes\n actions.setExpandRatio(filter, 1); //expand (leaves no gaps)\n\n VerticalLayout left = new VerticalLayout(actions, partList);\n left.setSizeFull();\n partList.setSizeFull();\n left.setExpandRatio(partList, 1);\n\n HorizontalLayout mainLayout = new HorizontalLayout(left, partForm);\n mainLayout.setSizeFull();\n mainLayout.setExpandRatio(left, 1);\n\n // Split and allow resizing\n setContent(mainLayout);\n }", "public ItemsControl() {\t\t\t\t\n\t\tlistListener = new SourceListChangeListener();\n\n\t\tBoxLayout boxLayout = new BoxLayout(this, BoxLayout.Y_AXIS);\n\t\tsetLayout(boxLayout);\t\t\t\t\n\t\tif (Beans.isDesignTime()) {\t\t\t\n\t\t\tJLabel designTimeCaptionLbl = new JLabel(\"<ItemsControl>\");\t\t\t\t\t\t\n\t\t\tthis.add(designTimeCaptionLbl);\n\t\t}\n\t}", "public void a() {\n this.f25458d.a(this.f25457c);\n this.f25457c.a(this);\n Context context = getContext();\n LinearLayout linearLayout = new LinearLayout(context);\n linearLayout.setOrientation(1);\n addView(linearLayout, new ViewGroup.LayoutParams(-1, -2));\n d a2 = ShopAssistantItemView_.a(context);\n a2.a(R.drawable.ic_myproducts, R.string.sp_my_products, 0);\n a2.setTag(\"PRODUCT\");\n a2.setMinimumHeight(this.f25455a);\n linearLayout.addView(a2, new FrameLayout.LayoutParams(-1, -2));\n d a3 = ShopAssistantItemView_.a(context);\n a3.a(R.drawable.ic_mycustomers, R.string.sp_my_customers, 2);\n linearLayout.addView(a3, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a4 = ShopAssistantItemView_.a(context);\n a4.a(R.drawable.ic_shopprofile, R.string.sp_label_shop_profile, 6);\n linearLayout.addView(a4, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a5 = ShopAssistantItemView_.a(context);\n a5.a(R.drawable.img_shopsettings, R.string.sp_shop_settings, 4);\n linearLayout.addView(a5, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a6 = ShopAssistantItemView_.a(context);\n a6.a(R.drawable.ic_categories, R.string.sp_my_shop_categories, 8);\n a6.setSubtitle(this.f25461g.getCategoriesPath());\n linearLayout.addView(a6, new FrameLayout.LayoutParams(-1, this.f25455a));\n View view = new View(context);\n view.setBackgroundColor(b.a(R.color.background));\n linearLayout.addView(view, new FrameLayout.LayoutParams(-1, b.a.k));\n View view2 = new View(context);\n view2.setBackgroundColor(com.garena.android.appkit.tools.b.a(R.color.black06));\n linearLayout.addView(view2, new FrameLayout.LayoutParams(-1, b.a.f7690a));\n View inflate = ((LayoutInflater) context.getSystemService(\"layout_inflater\")).inflate(R.layout.seller_center, (ViewGroup) null);\n ((TextView) inflate.findViewById(R.id.url)).setText(\"http://seller\" + i.f7042e);\n int b2 = com.garena.android.appkit.tools.b.b() - b.a.m;\n w.a(getContext()).a((int) R.drawable.sellercentre_banner).b(b2, (int) (((float) b2) / 1.886f)).e().f().a((ImageView) inflate.findViewById(R.id.banner));\n FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-1, -2);\n inflate.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n g.this.f25459e.V();\n }\n });\n linearLayout.addView(inflate, layoutParams);\n this.f25457c.e();\n this.f25457c.f();\n }", "@Override\n\tpublic void onFinishLayout(View lay) {\n\t}", "private void initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }", "private void emptyLayout() {\n mTvEmpty.setText(R.string.text_receive_list_empty);\n mIvEmpty.setImageResource(R.drawable.ic_money_payment);\n mIvEmpty.setContentDescription(getString(R.string.descr_hand_money_empty));\n mListView.setEmptyView(mEmptyView);\n }", "private void init() {\r\n\t\tthis.panel.setLayout(new BoxLayout(this.panel, BoxLayout.PAGE_AXIS));\r\n\t\tthis.labelTitle = new JLabel(\"Edit your weapons\");\r\n\t\tthis.labelTitle.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\tthis.initFilter();\r\n\t\tthis.initList();\r\n\t\tthis.list.setSelectedIndex(0);\r\n\t\tthis.initInfo();\r\n\t\tthis.initButton();\r\n\r\n\t\tJPanel panelWest = new JPanel();\r\n\t\tpanelWest.setLayout(new BoxLayout(panelWest, BoxLayout.PAGE_AXIS));\r\n\t\tJPanel panelCenter = new JPanel();\r\n\t\tpanelCenter.setLayout(new BoxLayout(panelCenter, BoxLayout.LINE_AXIS));\r\n\r\n\t\tpanelWest.add(this.panelFilter);\r\n\t\tpanelWest.add(Box.createRigidArea(new Dimension(0, 5)));\r\n\t\tpanelWest.add(this.panelInfo);\r\n\t\tpanelCenter.add(panelWest);\r\n\t\tpanelCenter.add(Box.createRigidArea(new Dimension(10, 0)));\r\n\t\tthis.panelList.setPreferredSize(new Dimension(300, 150));\r\n\t\tpanelCenter.add(this.panelList);\r\n\r\n\t\tthis.panel.add(this.labelTitle);\r\n\t\tthis.panel.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panel.add(panelCenter);\r\n\t\tthis.panel.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panel.add(this.panelButton);\r\n\r\n\t}", "private void castLayoutElements() {\n linlaHeaderProgress = (LinearLayout) view.findViewById(R.id.linlaHeaderProgress);\n listPrinters = (RecyclerView) view.findViewById(R.id.listPrinters);\n linlaEmpty = (LinearLayout) view.findViewById(R.id.linlaEmpty);\n \n /* CONFIGURE THE RECYCLERVIEW */\n listPrinters.setHasFixedSize(true);\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n listPrinters.setLayoutManager(llm);\n }", "public void initLayouts() {\n\t\tJPanel p_header = (JPanel) getComponentByName(\"p_header\");\n\t\tJPanel p_container = (JPanel) getComponentByName(\"p_container\");\n\t\tJPanel p_tree = (JPanel) getComponentByName(\"p_tree\");\n\t\tJPanel p_commands = (JPanel) getComponentByName(\"p_commands\");\n\t\tJPanel p_execute = (JPanel) getComponentByName(\"p_execute\");\n\t\tJPanel p_buttons = (JPanel) getComponentByName(\"p_buttons\");\n\t\tJPanel p_view = (JPanel) getComponentByName(\"p_view\");\n\t\tJPanel p_info = (JPanel) getComponentByName(\"p_info\");\n\t\tJPanel p_chooseFile = (JPanel) getComponentByName(\"p_chooseFile\");\n\t\tJButton bt_apply = (JButton) getComponentByName(\"bt_apply\");\n\t\tJButton bt_revert = (JButton) getComponentByName(\"bt_revert\");\n\t\tJTextArea ta_header = (JTextArea) getComponentByName(\"ta_header\");\n\t\tJLabel lb_icon = (JLabel) getComponentByName(\"lb_icon\");\n\t\tJLabel lb_name = (JLabel) getComponentByName(\"lb_name\");\n\t\tJTextField tf_name = (JTextField) getComponentByName(\"tf_name\");\n\n\t\tBorder etched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);\n\n\t\tp_header.setBorder(etched);\n\t\tp_container.setBorder(etched);\n\t\tp_commands.setBorder(etched);\n\t\t// p_execute.setBorder(etched);\n\t\t// p_view.setBorder(etched);\n\t\t// p_buttons.setBorder(etched);\n\n\t\tp_buttons.setLayout(new FlowLayout(FlowLayout.LEFT, 25, 2));\n\t\tp_chooseFile.setLayout(new FlowLayout(FlowLayout.LEFT, 6, 1));\n\t\tp_view.setLayout(new BorderLayout(0, 0));\n\t\tp_info.setLayout(null);\n\n\t\t// GroupLayout for main JFrame\n\t\t// If you want to change this, use something like netbeans or read more\n\t\t// into group layouts\n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\n\t\tgroupLayout\n\t\t\t\t.setHorizontalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t225,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_execute,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t957,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t957,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_header,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1188,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgroupLayout\n\t\t\t\t.setVerticalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_header,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, 57,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t603,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t549,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_execute,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t48,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\n\t\tGroupLayout gl_p_container = new GroupLayout(p_container);\n\t\tgl_p_container\n\t\t\t\t.setHorizontalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_view,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t955,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_apply)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_revert))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlb_name)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttf_name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t893,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_p_container\n\t\t\t\t.setVerticalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttf_name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lb_name))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_view,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t466, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_revert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_apply))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)));\n\t\tp_container.setLayout(gl_p_container);\n\n\t\t// GroupLayout for p_header\n\n\t\tGroupLayout gl_p_header = new GroupLayout(p_header);\n\t\tgl_p_header.setHorizontalGroup(gl_p_header.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tAlignment.TRAILING,\n\t\t\t\tgl_p_header\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(ta_header, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t1069, Short.MAX_VALUE).addGap(18)\n\t\t\t\t\t\t.addComponent(lb_icon).addGap(4)));\n\t\tgl_p_header\n\t\t\t\t.setVerticalGroup(gl_p_header\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGap(6)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tta_header,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t44,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lb_icon))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tp_header.setLayout(gl_p_header);\n\n\t\tGroupLayout gl_p_commands = new GroupLayout(p_commands);\n\t\tgl_p_commands\n\t\t\t\t.setHorizontalGroup(gl_p_commands\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_tree,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t211,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_buttons,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_p_commands.setVerticalGroup(gl_p_commands.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_p_commands\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(p_buttons, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(p_tree, GroupLayout.DEFAULT_SIZE, 558,\n\t\t\t\t\t\t\t\tShort.MAX_VALUE).addContainerGap()));\n\t\tp_commands.setLayout(gl_p_commands);\n\n\t\tgetContentPane().setLayout(groupLayout);\n\t}", "@Override\n\tpublic void showItems(JZMatchBean bean, LinearLayout parent_layout) {\n\t\t\n\t}", "public OrganizeItemsPanel() {\n initComponents();\n// lastIndeks = catalogProducts.size();\n }", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tmainLayout.setWidth(\"100.0%\");\r\n\t\tmainLayout.setHeight(\"100.0%\");\r\n\t\t\r\n\t\t// label\r\n\t\tlabel = new Label();\r\n\t\tlabel.setImmediate(false);\r\n\t\tlabel.setWidth(\"-1px\");\r\n\t\tlabel.setHeight(\"-1px\");\r\n\t\tlabel.setValue(\"Stellvertreter ernennen\");\r\n\t\tlabel.setStyleName(Runo.LABEL_H1);\r\n\t\tmainLayout.addComponent(label, \"top:25.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// benutzer\r\n\t\tbenutzer = new ListSelect();\r\n\t\tbenutzer.setImmediate(false);\r\n\t\tbenutzer.setWidth(\"46.0%\");\r\n\t\tbenutzer.setHeight(\"70.0%\");\r\n\t\tmainLayout.addComponent(benutzer, \"top:35.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// ok\r\n\t\tok = new Button();\r\n\t\tok.setCaption(\"Stellvertreter ernennen\");\r\n\t\tok.setImmediate(false);\r\n\t\tok.setWidth(\"25%\");\r\n\t\tok.setHeight(\"-1px\");\r\n\t\tok.addListener(this);\r\n\t\tmainLayout.addComponent(ok, \"top:83.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// delete\r\n\t\tdelete = new Button();\r\n\t\tdelete.setCaption(\"Stellvertreter löschen\");\r\n\t\tdelete.setImmediate(false);\r\n\t\tdelete.setWidth(\"25%\");\r\n\t\tdelete.setHeight(\"-1px\");\r\n\t\tdelete.addListener(this);\r\n\t\tmainLayout.addComponent(delete, \"top:88.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// logout\r\n\t\tlogout = new Button();\r\n\t\tlogout.setCaption(\"logout\");\r\n\t\tlogout.setImmediate(false);\r\n\t\tlogout.setWidth(\"-1px\");\r\n\t\tlogout.setHeight(\"-1px\");\r\n\t\tlogout.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tlogout.addListener(this);\r\n\t\tmainLayout.addComponent(logout, \"top:97.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// back\r\n\t\tback = new Button();\r\n\t\tback.setCaption(\"Startseite\");\r\n\t\tback.setImmediate(true);\r\n\t\tback.setWidth(\"-1px\");\r\n\t\tback.setHeight(\"-1px\");\r\n\t\tback.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tback.addListener(this);\r\n\t\tmainLayout.addComponent(back, \"top:94.0%;left:35.0%;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }", "public void onFinishInflate() {\n AppMethodBeat.i(103009);\n if (getChildCount() > 0) {\n View childAt = getChildAt(0);\n if (!(childAt instanceof RadarSpecialTableLayout)) {\n childAt = null;\n }\n this.pCL = (RadarSpecialTableLayout) childAt;\n }\n AppMethodBeat.o(103009);\n }", "private void layoutControls()\n {\n getChildren().addAll(\n new Label(\"Abfahrt\"),\n departureTimeField,\n new Label(\"Bahnhof\"),\n destinationField\n );\n }", "private void setLayout() {\n\tHorizontalLayout main = new HorizontalLayout();\n\tmain.setMargin(true);\n\tmain.setSpacing(true);\n\n\t// vertically divide the right area\n\tVerticalLayout left = new VerticalLayout();\n\tleft.setSpacing(true);\n\tmain.addComponent(left);\n\n\tleft.addComponent(openProdManager);\n\topenProdManager.addListener(new Button.ClickListener() {\n\t public void buttonClick(ClickEvent event) {\n\t\tCustomerWindow productManagerWin = new CustomerWindow(CollectorManagerApplication.this);\n\t\tproductManagerWin.addListener(new Window.CloseListener() {\n\t\t public void windowClose(CloseEvent e) {\n\t\t\topenProdManager.setEnabled(true);\n\t\t }\n\t\t});\n\n\t\tCollectorManagerApplication.this.getMainWindow().addWindow(productManagerWin);\n\t\topenProdManager.setEnabled(false);\n\t }\n\t});\n\n\t\n\tsetMainWindow(new Window(\"Sistema de Cobranzas\", main));\n\n }", "@Override\r\n\tpublic void layoutContainer(Container arg0) {\n\t\t\r\n\t}", "private void InitView() {\n\t\tmLinearLayout = new LinearLayout(getContext());\n\t\t//mLinearLayout.setBackgroundResource(MusicApplication.getInstance().getBgResource());\n\t\t\n\t\t//Modify by LiYongNam 2012.9.19_start\n\t\tMusicUtil.setBackgroundOfView ( mLinearLayout, getContext() );\t\t\t\t\n\t\t//Modify by LiYongNam 2012.9.19_end\n\t\t\n\t\tmLinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tmLinearLayout.setPadding(1, 1, 1, Util.dipTopx(getContext(), 60));\n\t\t// 导航条\n\t\taddTitleBar(-1, \"编辑列表\", R.drawable.check_off, R.drawable.title_bar);\n\n\t\tmControlBar = new ControlBar(getContext());\n\t\tmControlBar.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\tUtil.dipTopx(getContext(), 60)));\n\n//\t\taddControlButton(\"全选\", CONTROL1, 0);\n\t\taddControlButton(\"播放\", CONTROL2, 1);\n\t\taddControlButton(\"加入\", CONTROL3, 2);\n\t\taddControlButton(\"删除\", CONTROL4, 3);\n\n\t}", "@Override\n public int itemLayoutRes()\n {\n return R.layout.recommendlist_item;\n }", "@AutoGenerated\n\tprivate HorizontalLayout buildInfo_container() {\n\t\tinfo_container = new HorizontalLayout();\n\t\tinfo_container.setImmediate(false);\n\t\tinfo_container.setWidth(\"100.0%\");\n\t\tinfo_container.setHeight(\"-1px\");\n\t\tinfo_container.setMargin(false);\n\t\t\n\t\t// nativeButton_upVote\n\t\tnativeButton_upVote = new NativeButton();\n\t\tnativeButton_upVote.setCaption(\"Up Vote\");\n\t\tnativeButton_upVote.setImmediate(false);\n\t\tnativeButton_upVote.setWidth(\"-1px\");\n\t\tnativeButton_upVote.setHeight(\"-1px\");\n nativeButton_upVote.setStyleName(\"vote-button\");\n\t\tinfo_container.addComponent(nativeButton_upVote);\n\t\t\n\t\t// nativeButton_downVote\n\t\tnativeButton_downVote = new NativeButton();\n\t\tnativeButton_downVote.setCaption(\"Down Vote\");\n\t\tnativeButton_downVote.setImmediate(false);\n\t\tnativeButton_downVote.setWidth(\"-1px\");\n\t\tnativeButton_downVote.setHeight(\"-1px\");\n nativeButton_downVote.setStyleName(\"vote-button\");\n\t\tinfo_container.addComponent(nativeButton_downVote);\n\n //nativeButton_accept\n nativeButton_accept = new NativeButton();\n nativeButton_accept.setCaption(\"Accept\");\n nativeButton_accept.setVisible(false);\n nativeButton_accept.setStyleName(\"accept-button\");\n info_container.addComponent(nativeButton_accept);\n\n //label_date\n label_date = new Label();\n label_date.setStyleName(\"date-label\");\n label_date.setWidth(\"-1px\");\n label_date.setHeight(\"-1px\");\n info_container.addComponent(label_date);\n info_container.setExpandRatio(label_date, 1.0f);\n info_container.setComponentAlignment(label_date, Alignment.MIDDLE_RIGHT);\n\t\t\n\t\t// label_user\n\t\tlabel_user = new Label();\n\t\tlabel_user.setImmediate(false);\n\t\tlabel_user.setWidth(\"-1px\");\n\t\tlabel_user.setHeight(\"-1px\");\n\t\tlabel_user.setValue(\"By \");\n label_user.setStyleName(\"user-label\");\n\t\tinfo_container.addComponent(label_user);\n//\t\tinfo_container.setExpandRatio(label_user, 1.0f);\n\t\tinfo_container.setComponentAlignment(label_user, new Alignment(34));\n\t\t\n\t\treturn info_container;\n\t}", "int getItemViewLayoutId();", "private void initUI(){\n\t\tfooterView = getLayoutInflater().inflate(R.layout.ent_refresh_footer,null);\n\t\tlistView = (ListView) findViewById(R.id.check_list);\n\t\tlistView.addFooterView(footerView);\n\t\tfooterView.setVisibility(View.GONE);\n\t\tlistView.setOnScrollListener(new ScrollListener());\n\t\tlistView.setOnItemClickListener(this);\n\t\tbtn_cricle_edit = (ImageButton) findViewById(R.id.btn_cricle_edit);\n\t\tbtn_cricle_option = (ImageButton) findViewById(R.id.btn_cricle_option);\n\t\tbtn_cricle_edit.setVisibility(View.INVISIBLE);\n\t\tbtn_cricle_option.setVisibility(View.GONE);\n\t\tactivity_bar_title = (TextView) findViewById(R.id.activity_bar_title);\n\t\tactivity_bar_title.setText(\"我的申请记录\");\n\t\tpbHelper = new ProgressBarHelper(this, findViewById(R.id.ll_data_loading));\n\t}", "private void setLayout(){\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar1);\n setSupportActionBar(toolbar);\n\n drawerLayoutgesamt = (DrawerLayout) findViewById(R.id.drawerlayoutgesamt);\n drawerToggle = new ActionBarDrawerToggle(MenueDrawer.this,drawerLayoutgesamt,R.string.auf, R.string.zu);\n drawerLayoutgesamt.addDrawerListener(drawerToggle);\n }", "protected void onLoadLayout(View view) {\n }", "private void initLayout(){\r\n\t\t\r\n\t\tlabelSalvar.setLayoutX(((pane.getWidth() - labelSalvar.getWidth()) / 2) - 332);\r\n\t\tlabelSalvar.setLayoutY(60);\r\n\t\ttxSalvar.setLayoutX(((pane.getWidth() - txSalvar.getWidth()) / 2) - 100);\r\n\t\ttxSalvar.setPrefWidth(500);\r\n\t\ttxSalvar.setLayoutY(60);\r\n\t\t\r\n\t\tlabelArquivoRTF.setLayoutX(((pane.getWidth() - labelArquivoRTF.getWidth()) / 2) - 325);\r\n\t\tlabelArquivoRTF.setLayoutY(100);\r\n\t\ttxArquivoRTF.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 100);\r\n\t\ttxArquivoRTF.setPrefWidth(500);\r\n\t\ttxArquivoRTF.setLayoutY(100);\r\n\t\t\r\n\t\tlabelLinhaInicio.setLayoutX(((pane.getWidth() - labelLinhaInicio.getWidth()) / 2) - 145);\r\n\t\tlabelLinhaInicio.setLayoutY(140);\r\n\t\ttxLinhaInicio.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 10);\r\n\t\ttxLinhaInicio.setPrefWidth(50);\r\n\t\ttxLinhaInicio.setLayoutY(140);\r\n\t\t\r\n\t\tlabelLinhaFim.setLayoutX(((pane.getWidth() - labelLinhaFim.getWidth()) / 2) + 220);\r\n\t\tlabelLinhaFim.setLayoutY(140);\r\n\t\ttxLinhaFinal.setLayoutX(((pane.getWidth() - txLinhaFinal.getWidth()) / 2) + 350);\r\n\t\ttxLinhaFinal.setPrefWidth(50);\r\n\t\ttxLinhaFinal.setLayoutY(140);\r\n\t\t\r\n\t\tbtnExecutar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 80);\r\n\t\tbtnExecutar.setLayoutY(210);\r\n\t\t\r\n\t\tprogressBar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 260);\r\n\t\tprogressBar.setLayoutY(280);\r\n\t\t\r\n\t\tlabelBy.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) - 350);\r\n\t\tlabelBy.setScaleY(0.5);\r\n\t\tlabelBy.setScaleX(0.5);\r\n\t\tlabelBy.setLayoutY(280);\r\n\t\t\r\n\t}", "private void setupGUI(){\r\n\t\t\r\n\t\tfinal GUIFactory guifactory = GUIFactory.instance();\r\n\t\tfinal MTApplication app = (MTApplication)item.getView().getRenderer();\r\n\t\tfinal float leftiness = app.getWidth()*5/6;\r\n\t\tfinal float xPos = leftiness + 5;\r\n\t\t\r\n\t\t\r\n\t\toverlay = new MTOverlayContainer( app);\r\n\t\titem.getView().getRoot().addChild( overlay);\r\n\t\t\r\n\t\t// _THE_ PANEL \r\n\t\t\r\n\t\tpnlPanel = guifactory.createPanel( leftiness, 0, app.getWidth()-leftiness, app.getHeight(),\"pnlPanel\", overlay);\t\t\t\r\n\t\t\r\n\t\t// INTERACTION PANEL\r\n\t\t\r\n\t\tpnlInteraction = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlInteraction\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlInteraction.setNoFill( true);\r\n\t\t\r\n\t\t// EDIT PANEL\r\n\t\t\r\n\t\tpnlEdit = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlEdit\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlEdit.setVisible( false);\r\n\t\tpnlEdit.setNoFill( true);\r\n\t\t\r\n\t\t\r\n\t\t// ITEM NAME TEXTAREA\r\n\t\t\r\n\t\tString itemName = item.getName();\r\n\t\tif(itemName == null || itemName.equals( \"\"))\r\n\t\t\titemName = item.getID();\r\n\t\ttxtItemName = guifactory.createTextArea(itemName, \"txtItemName\", pnlPanel);\r\n\t\ttxtItemName.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getY() + 10\t\r\n\t\t\t\t));\r\n\r\n\r\n\t\t// PANEL PICTURE\r\n\r\n\t\tVector3D pnlInteractionPos = pnlInteraction.getPosition( TransformSpace.GLOBAL);\r\n\t\tpnlPicture = guifactory.createPanel( pnlInteractionPos.getX()+50, pnlInteractionPos.getY()+50, 100, 100, \"pnlPicture\", pnlInteraction);\r\n\t\tpnlPicture.setAnchor( PositionAnchor.CENTER);\r\n\t\tpnlPicture.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\tpnlInteractionPos.getX() + pnlInteraction.getWidthXY( TransformSpace.GLOBAL)/2,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 50 + pnlPicture.getHeightXY( TransformSpace.GLOBAL)/2\r\n\t\t\t\t));\r\n\t\tpnlPicture.setTexture( GUITextures.instance().getByDevice( DeviceType.getDeviceType( device)));\r\n\t\t\r\n\t\t\r\n\t\t// POWER USAGE TEXTAREA\r\n\t\t\r\n\t\tString powerUsage = \"n/a\";\r\n\t\tif( device.getPowerUsage() != null && device.getPowerUsage().getValue() != null){\r\n\t\t\tpowerUsage = device.getPowerUsage().getValue().toString();\r\n\t\t}\r\n\t\t\r\n\t\ttxtPowerUsage = guifactory.createTextArea( \"Power usage: \" + powerUsage + \" Watts\", \"txtPowerUsage\", pnlInteraction);\r\n\t\ttxtPowerUsage.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 140\t\t\r\n\t\t\t\t\t\t));\r\n\t\ttxtPowerUsage.setVisible( false);\r\n\t\t\r\n\t\t\r\n\t\t// ON/OFF BUTTON\r\n\t\t\r\n\t\tbtnOnOff = guifactory.createButton( \"Turn device On/Off\", \"btnOnOff\", pnlInteraction);\r\n\t\tbtnOnOff.setPosition( txtPowerUsage.getPosition( TransformSpace.GLOBAL));\r\n\t\tbtnOnOff.addGestureListener( TapProcessor.class, new BtnOnOffListener());\r\n\t\t\r\n\t\t\r\n\t\t// SUBDEVICE BUTTON PANEL\r\n\t\t\r\n\t\tpnlSubDeviceButtons = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getX(),\r\n\t\t\t\tbtnOnOff.getVectorNextToComponent( 10, false).getY(),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tdevice.getSubDevice().size() * (btnOnOff.getHeight()+10),\r\n\t\t\t\t\"pnlSubDeviceButtons\",\r\n\t\t\t\tpnlInteraction);\r\n\t\t\r\n\t\t// SUB DEVICE BUTTONS\r\n\t\t\r\n\t\tsubDeviceButtons = new LinkedList<MTButton>();\r\n\t\tfor( int i = 0; i < device.getSubDevice().size(); i++){\r\n\t\t\t\r\n\t\t\tPhysicalDevice subDevice = device.getSubDevice().get( i);\r\n\t\t\t\r\n\t\t\t// get button's caption\r\n\t\t\tString caption = subDevice.getName();\r\n\t\t\tif(caption == null || caption.equals( \"\"))\r\n\t\t\t\tcaption = subDevice.getId();\r\n\t\t\t\r\n\t\t\tMTButton btnSubDevice = guifactory.createButton( caption, \"btnSubDevice_\" + subDevice.getId(), pnlSubDeviceButtons);\r\n\t\t\tbtnSubDevice.setPosition(\r\n\t\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\t\r\n\t\t\t\t\t\tpnlSubDeviceButtons.getPosition( TransformSpace.GLOBAL).getY() + i*(btnSubDevice.getHeight() + 10)\r\n\t\t\t\t\t));\r\n\t\t\t\r\n\t\t\tsubDeviceButtons.add( btnSubDevice);\r\n\t\t\tbtnSubDevice.addGestureListener( TapProcessor.class, new BtnSubDeviceListener( subDevice));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// EDIT BUTTON\r\n\t\t\r\n\t\tbtnEdit = guifactory.createButton( \"Edit\", \"btnEdit\", pnlInteraction);\r\n\t\tbtnEdit.setPosition( new Vector3D( xPos, app.getHeight() - 2*btnEdit.getHeight() - 30));\r\n\t\tbtnEdit.addGestureListener( TapProcessor.class, new BtnEditListener());\r\n\t\t\r\n\t\t\r\n\t\t// BUTTON HIDE\r\n\t\t\r\n\t\tbtnHide = guifactory.createButton( \"Hide menu\", \"btnHide\", pnlPanel);\r\n\t\tbtnHide.setPosition( new Vector3D( xPos, app.getHeight() - btnHide.getHeight() - 20));\r\n\t\tbtnHide.addGestureListener( TapProcessor.class, new BtnHideListener());\r\n\t\t\r\n\t\t\r\n\t\t///// EDIT-ELEMENTS /////\r\n\r\n\t\tchkMovePlanar = guifactory.createCheckButton( \"Move planar\", \"chkMovePlanar\", pnlEdit);\r\n\t\tchkMovePlanar.setPosition(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\ttxtItemName.getPosition( TransformSpace.GLOBAL).getY() + txtItemName.getHeightXY( TransformSpace.GLOBAL)+ 20\t\r\n\t\t\t\t));\r\n\t\tchkMovePlanar.addGestureListener( TapProcessor.class, new ChkMovePlanarListener());\r\n\r\n\t\t\r\n\t\tchkMoveY = guifactory.createCheckButton( \"Move up/down\", \"chkMoveY\", pnlEdit);\r\n\t\tchkMoveY.setPosition( chkMovePlanar.getVectorNextToComponent( 10, false));\r\n\t\tchkMoveY.addGestureListener( TapProcessor.class, new ChkMoveYListener());\r\n\r\n\t\t\r\n\t\tchkRotate = guifactory.createCheckButton( \"Rotate\", \"chkRotate\", pnlEdit);\r\n\t\tchkRotate.setPosition( chkMoveY.getVectorNextToComponent( 10, false));\r\n\t\tchkRotate.addGestureListener( TapProcessor.class, new ChkRotateListener());\r\n\r\n\t\t\r\n\t\tchkScale = guifactory.createCheckButton( \"Scale\", \"chkScale\", pnlEdit);\r\n\t\tchkScale.setPosition( chkRotate.getVectorNextToComponent( 10, false));\r\n\t\tchkScale.addGestureListener( TapProcessor.class, new ChkScaleListener());\r\n\r\n\t\t\r\n\t\tbtnChangeVisualisation = guifactory.createButton( \"Change Style\", \"btnChangeVisualisation\", pnlEdit);\r\n\t\tbtnChangeVisualisation.setPosition( chkScale.getVectorNextToComponent( 10, false));\r\n\t\tbtnChangeVisualisation.addGestureListener( TapProcessor.class, new BtnChangeVisualisationListener());\r\n\t\t\r\n\t\t\r\n\t\tbtnSave = guifactory.createButton( \"Save\", \"btnSave\", pnlEdit);\r\n\t\tbtnSave.setPosition( btnEdit.getPosition());\r\n\t\tbtnSave.addGestureListener( TapProcessor.class, new BtnSaveListener());\r\n\t}", "void initLayout() {\n\t\t/* Randomize the number of rows and columns */\n\t\tNUM = Helper.randomizeNumRowsCols();\n\n\t\t/* Remove all the children of the gridContainer. It will be added again */\n\t\tpiecesGrid.removeAllViews();\n\t\t\n\t\t/* Dynamically calculate the screen positions and sizes of the individual pieces\n\t * Store the starting (x,y) of all the pieces in pieceViewLocations */\n\t\tpieceViewLocations = InitDisplay.initialize(getScreenDimensions(), getRootLayoutPadding());\n\t\t\n\t\t/* Create an array of ImageViews to store the individual piece images */\n\t\tcreatePieceViews();\n\t\t\n\t\t/* Add listeners to the ImageViews that were created above */\n\t\taddImageViewListeners();\n\t}", "private void layout() {\n \n // Disable redrawing\n toolbar.setRedraw(false);\n\n // Fix rendering issues on MacOS Catalina\n // This seems to enforce an otherwise lost redraw\n labelAttribute.setText(labelAttribute.getText());\n labelTransformations.setText(labelTransformations.getText());\n labelApplied.setText(labelApplied.getText());\n labelSelected.setText(labelSelected.getText());\n labelAttribute.pack();\n labelTransformations.pack();\n labelApplied.pack();\n labelSelected.pack();\n \n // Adjust size of items and composite\n Rectangle bounds = toolbar.getBounds();\n int remaining = toolbar.getBounds().width;\n for (final ToolItem item : toolitems) {\n remaining -= item.getBounds().width;\n }\n remaining -= OFFSET;\n infoComposite.setSize(remaining, bounds.height);\n infoItem.setWidth(remaining);\n int locationY = (infoComposite.getBounds().height - labelSelected.getBounds().height)/2;\n\n // Layout label\n int locationX = remaining - labelApplied.getSize().x;\n labelApplied.setLocation(locationX, locationY);\n if (locationX < 0) labelApplied.setVisible(false);\n else labelApplied.setVisible(true);\n \n // Layout label\n locationX -= labelSelected.getSize().x + OFFSET;\n labelSelected.setLocation(locationX, locationY);\n if (locationX < 0) labelSelected.setVisible(false);\n else labelSelected.setVisible(true);\n\n // Layout label\n locationX -= labelTransformations.getSize().x + OFFSET;\n labelTransformations.setLocation(locationX, locationY);\n if (locationX < 0) labelTransformations.setVisible(false);\n else labelTransformations.setVisible(true);\n \n\n // Layout label\n locationX -= labelAttribute.getSize().x + OFFSET;\n labelAttribute.setLocation(locationX, locationY);\n if (locationX < 0) labelAttribute.setVisible(false);\n else labelAttribute.setVisible(true);\n \n // Redraw\n toolbar.setRedraw(true);\n toolbar.redraw();\n \n // Fix rendering issues on MacOS Catalina\n // This seems to enforce an otherwise lost redraw\n infoComposite.pack(true);\n }", "public void forgetLayout()\r\n\t{\n\t}", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "private void buildMainLayout(IAuthorizationContext pContext)\r\n throws UnauthorizedAccessAttemptException, IOException {\r\n\r\n createObjectEntry();\r\n\r\n if (parent.getParentUI().siteName.equals(parent.getParentUI().siteNameCVMA)) {\r\n defineInfoLayoutCVMA();\r\n } else {\r\n defineInfoLayoutStandard();\r\n }\r\n\r\n thumbLayout = new VerticalLayout();\r\n thumbLayout.setSizeFull();\r\n thumbLayout.setSpacing(false);\r\n thumbLayout.setMargin(false);\r\n thumbLayout.setStyleName(\"white\");\r\n thumbLayout.setHeight(\"150px\");\r\n thumbLayout.setWidth(\"161px\");\r\n\r\n // initialize thumbnail field and button\r\n setThumbButton();\r\n\r\n // build content layout\r\n buttonLayout = new VerticalLayout();\r\n buttonLayout.setSizeFull();\r\n buttonLayout.setSpacing(false);\r\n buttonLayout.setMargin(false);\r\n buttonLayout.setStyleName(\"white\");\r\n buttonLayout.setHeight(\"150px\");\r\n buttonLayout.setWidth(\"161px\");\r\n\r\n // set download button\r\n setDownloadButton();\r\n\r\n // set metadata viewer button\r\n setMetadataViewerButton();\r\n\r\n // download button\r\n setImageDownloadButton();\r\n\r\n // map button\r\n setMapButton();\r\n\r\n // build content layout\r\n contentLayout = new HorizontalLayout();\r\n contentLayout.setSizeFull();\r\n contentLayout.setMargin(false);\r\n contentLayout.setMargin(new MarginInfo(false, false, true, false));\r\n contentLayout.setStyleName(\"white\");\r\n contentLayout.addComponent(thumbLayout);\r\n contentLayout.addComponent(infoLayout);\r\n contentLayout.addComponent(buttonLayout);\r\n contentLayout.setComponentAlignment(thumbLayout, Alignment.TOP_LEFT);\r\n contentLayout.setComponentAlignment(infoLayout, Alignment.TOP_CENTER);\r\n contentLayout.setComponentAlignment(buttonLayout, Alignment.TOP_RIGHT);\r\n contentLayout.setExpandRatio(infoLayout, 11f);\r\n }", "public void createLayout() {\n\t\tpersons = createPersonGuessPanel();\t\t\n\t\tweapons = createWeaponGuessPanel();\n\t\trooms = createRoomGuessPanel();\n\t\t\n\t\tpersonCheckList = createPeoplePanel();\n\t\tweaponCheckList =createWeaponsPanel(); \n\t\troomCheckList = createRoomsPanel();\n\t\t\n\t\tJPanel completed = new JPanel();\n\t\tcompleted.setLayout(new GridLayout(3, 2));\n\t\tadd(completed, BorderLayout.CENTER);\n\t\tcompleted.add(personCheckList);\n\t\tcompleted.add(persons);\n\t\tcompleted.add(weaponCheckList);\n\t\tcompleted.add(weapons);\n\t\tcompleted.add(roomCheckList);\n\t\tcompleted.add(rooms);\n\t}", "@JsOverlay\n public final void layout() {\n Dagre.get().layout(this);\n }", "public void makeLayout() {\n\t\tgl_layout.setHorizontalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(150)\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 400, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 98, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 106, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t)\n\t\t);\n\t\tgl_layout.setVerticalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\t\t\t\t\t\t\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t);\n\t\tthis.setLayout(gl_layout);\t\t\n\t}", "private void setLayout() {\n if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n recyclerView.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL));\n\n } else if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n recyclerView.setLayoutManager(new LinearLayoutManager(getApplicationContext()));\n }\n }", "@Override\n protected void onFinishInflate() {\n super.onFinishInflate();\n mTitleContent = (TextView) findViewById(R.id.title_content);\n mLeftTv = (TextView) findViewById(R.id.title_left_tv);\n mRightTv = (TextView) findViewById(R.id.title_right_tv);\n mRightImg = (ImageView) findViewById(R.id.title_right_img);\n mMessageView = (RelativeLayout) findViewById(R.id.toolbar_message_view);\n mUnReadImg = (ImageView) findViewById(R.id.toolbar_message_unread_img);\n }", "public void onFinishInflate() {\n super.onFinishInflate();\n this.mIconView = (ImageView) findViewById(R.id.icon);\n this.mTitleView = (TextView) findViewById(R.id.title);\n this.mSummaryView = (TextView) findViewById(R.id.summary);\n this.mSlidingButton = findViewById(R.id.sliding_button);\n }", "@PostConstruct\n void init() {\n\n\t\tfieldGroup = m_maduraSessionManager.createMaduraFieldGroup();\n\t\tfieldGroup.setReadOnly(true);\n\n\t\tfinal VerticalLayout verticalLayout = new VerticalLayout();\n verticalLayout.setMargin(true);\n verticalLayout.setSpacing(true);\n addComponent(verticalLayout);\n \n orderForm = new VerticalLayout();\n \n final HorizontalLayout horizontalLayout = new HorizontalLayout();\n horizontalLayout.setSpacing(true);\n horizontalLayout.setMargin(true);\n\n\t\torderStatusLabel = new Label();\n\t\thorizontalLayout.addComponent(orderStatusLabel);\n\t\tfieldGroup.bind(orderStatusLabel,\"orderStatus\");\n\t\t\n\t\torderAmountLabel = new Label();\n\t\thorizontalLayout.addComponent(orderAmountLabel);\n\t\tfieldGroup.bind(orderAmountLabel,\"amount\");\n\t\t\n\t\tverticalLayout.addComponent(orderForm);\n\t\torderForm.addComponent(horizontalLayout);\n\t\n\t\tHorizontalLayout actions = new HorizontalLayout();\n\t\tButton addItem = fieldGroup.createButton(\"button.addItem\", new ClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\tPizza pizza = new Pizza();\n\t\t\t\tpizza.setId(System.currentTimeMillis());\n\t\t\t\tm_pizzaWindow.load(pizza);\n\t\t\t\t\n\t\t\t}});\n\t\tactions.addComponent(addItem);\n\t\tverticalLayout.addComponent(actions);\n\t\tgetEventRouter().addListener(AddItemEvent.class, this, \"addItem\");\n\t\tm_itemsTable = new FormattingTable();\n\t\tm_itemsTable.setImmediate(false);\n\t\tm_itemsTable.setWidth(\"500px\");\n\t\tm_itemsTable.setHeight(\"240px\");\n\t\tContainer indexed = new BeanItemContainer<Pizza>(Pizza.class, new ArrayList<Pizza>());\n\t\tm_itemsTable.setContainerDataSource(indexed,NATURAL_COL_ORDER,ENGLISH_COL_ORDER,m_maduraSessionManager.getMessageSource());\n\t\tverticalLayout.addComponent(m_itemsTable);\n\t\tm_itemsTable.addItemClickListener(new ItemClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void itemClick(ItemClickEvent event) {\n\t\t\t\tm_pizzaWindow.load((Pizza)event.getItemId());\n\t\t\t}});\n }", "private void InitData() {\n\t\tmOptList = new HashMap<Integer, PlaylistEntry>();\n\t\tplaylist = new Playlist();\n\t\tmAdapter = new MusicAdapter(getContext());\n\n\t\tmListView = new ListView(getContext());\n\t\tmListView.setDividerHeight(0);\n\t\tmListView.setCacheColorHint(0x00000000);\n\t\tmListView.setFadingEdgeLength(0);\n\t\tmListView.setFastScrollEnabled(true);\n\t\tmListView.setFooterDividersEnabled(true);\n\t\tmListView.setSelector(R.drawable.press_list_sum);\n\t\tmListView.setOnItemClickListener(mOnItemClickListener);\n\t\tmListView.setPadding(1, 1, 1, 1);\n\n\t\t// 设置最后一个View\n\t\tView mFooterView = new View(getContext());\n\t\tmFooterView.setLayoutParams(new ListView.LayoutParams(\n\t\t\t\tLayoutParams.FILL_PARENT, Util.dipTopx(getContext(), 1)));// 以前是66\n\t\tmListView.addFooterView(mFooterView);\n\t\tmListView.setAdapter(mAdapter);\n\t\tmLinearLayout.addView(mListView);\n\n\t\tLinearLayout mLayout = new LinearLayout(getContext());\n\t\t// mLayout.setPadding(2, 0, 2, Util.dipTopx(getContext(), 13));\n\t\tmLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tmLayout.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\tLayoutParams.FILL_PARENT));\n\n\t\tView mView = new View(mLayout.getContext());\n\t\tmView.setLayoutParams(new LinearLayout.LayoutParams(\n\t\t\t\tLayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 1));\n\n\t\tmLayout.addView(mView);\n\t\tmLayout.addView(mControlBar);\n\n\t\tthis.addView(mLinearLayout);\n\t\tthis.addView(mLayout);\n\t}", "private void setLayout() {\n if (!mImageFragment.isAdded()) {\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(\n MATCH_PARENT, MATCH_PARENT));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT));\n } else {\n if (getResources().getConfiguration().orientation\n == Configuration.ORIENTATION_LANDSCAPE){\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n\n else {\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT,\n MATCH_PARENT));\n }\n }\n }", "private void inizia() throws Exception {\n this.setLayoutRef(new GridBagLayout());\n }", "public void onGlobalLayout() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n llItems.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n } else {\n llItems.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n }\n int centerPosition = 0;\n\n // measure your views here\n int totalChildren = llItems.getChildCount();\n\n for (int i = 0; i < totalChildren - 1; i++) {\n ItemView firstItem = (ItemView) llItems.getChildAt(i);\n ItemView secondItem = (ItemView) llItems.getChildAt(i + 1);\n\n if (i == 0) {\n int paddingLeft = firstItem.getPaddingLeft();\n\n View radioButton = firstItem.findViewById(R.id.rb__choice);\n centerPosition = paddingLeft + radioButton.getWidth() / 2;\n }\n\n View lineView = inflater.inflate(R.layout.item_vertical_line, null);\n llLines.addView(lineView);\n lineView.setTag(\"LINE_\" + i);\n\n View line = lineView.findViewById(R.id.v__line);\n LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) line.getLayoutParams();\n\n int topSpace = 0;\n if (i == 0) {\n topSpace = firstItem.getHeight() / 2 + firstItem.rbChoice.getHeight() / 2;\n } else {\n topSpace = firstItem.rbChoice.getHeight();\n }\n\n params.setMargins(centerPosition - 1, topSpace, 0, 0);\n\n int height = firstItem.getHeight() + secondItem.getTopRadio() - firstItem.getBottomRadio();\n Log.i(\"TRUNGNTH\", \"Height: \" + height + \" secondItem.getTopRadio(): \" + secondItem.getTopRadio() + \" | firstItem.getBottomRadio(): \" + firstItem.getBottomRadio());\n params.height = height;\n line.setLayoutParams(params);\n }\n }", "private void initBaseLayout()\n {\n add(viewPaneWrapper, BorderLayout.CENTER);\n \n currentLayoutView = VIEW_PANE;\n currentSearchView = SEARCH_PANE_VIEW;\n showMainView(VIEW_PANE);\n showSearchView(currentSearchView);\n }", "void LienaDivisoria(){\r\n \t\r\n VerticalLayout LayoutLineaDivisoria = new VerticalLayout();\r\n LayoutLineaDivisoria.setWidth(\"1024px\");\r\n LayoutLineaDivisoria.setHeight(\"5px\");\r\n LayoutLineaDivisoria.setStyleName(EstiloCSS + \"LayoutLineaDicisoria\");\r\n layout.addComponent(LayoutLineaDivisoria, \"left: 0px; top: 450px;\"); \r\n\r\n }", "public void setSoundBoardLayout() {\n\n soundBoardList = new SoundBoardListType();\n soundBoardList = db.getAllSoundboards();\n soundBoardNames = new ArrayList();\n\n for (int i = 0; i < soundBoardList.getSoundBoardList().size(); i++) {\n soundBoardNames.add(soundBoardList.getSoundBoardList().get(i).getSoundBoardName());\n }\n\n soundBoardNames.add(\"+\");\n setContentView(R.layout.main_grid);\n GridView gridView = (GridView) findViewById(R.id.soundboardgrid);\n\n soundBoardListAdapter = new ArrayAdapter<String>(this, R.layout.main_sbrowtext, soundBoardNames);\n gridView.setAdapter(soundBoardListAdapter);\n gridView.setOnItemClickListener(openSoundBoardListener);\n gridView.setOnItemLongClickListener(editSoundBoardListener);\n gridView.setBackgroundColor(Color.BLACK);\n gridView.setStretchMode(GridView.STRETCH_COLUMN_WIDTH);\n gridView.getSelector().setAlpha(100);\n\n }", "private void init() {\n mainll = new LinearLayout(getContext());\n mainll.setId(View.generateViewId());\n mainll.setLayoutParams(new ActionBar.LayoutParams(ActionBar.LayoutParams.MATCH_PARENT, ActionBar.LayoutParams.WRAP_CONTENT));\n mainll.setOrientation(LinearLayout.VERTICAL);\n\n map = new HashMap<>();\n\n RelativeLayout mainrl = new RelativeLayout(getContext());\n RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(ActionBar.LayoutParams.MATCH_PARENT,\n ActionBar.LayoutParams.WRAP_CONTENT);\n\n params.addRule(RelativeLayout.BELOW, mainll.getId());\n\n save = new Button(getContext());\n\n save.setLayoutParams(params);\n save.setText(\"save\");\n\n mainrl.addView(mainll);\n mainrl.addView(save);\n addView(mainrl);\n }", "private void positionItems()\n\t{\n\t\t// Log.v(TAG, \".positionItems\");\n\n\t\tint left = 0;\n\n\t\t// Find what should be the \"left\" value of the first child displayed.\n\t\t// This is needed in order to know how much to offset the first item\n\t\t// to the left when it started before the grid's starting time.\n\t\t// So, we find the time difference from the start in minutes,\n\t\t// and convert it to pixels.\n\t\tTimeBasedRelativeLayout firstChild = (TimeBasedRelativeLayout) getChildAt(0);\n\t\tif (firstChild != null)\n\t\t{\n\t\t\tProgram firstProgram = (Program) _adapter.getItem(_firstItemPosition);\n\n\t\t\tint firstChildWidth = firstChild.getMeasuredWidth();\n\t\t\tint thisWidth = getWidth();\n\n\t\t\tif (firstChildWidth > thisWidth)\n\t\t\t{\n\t\t\t\t// This is needed so that programs that are too long to fit the\n\t\t\t\t// visible area of the grid are resized to the grid's width.\n\t\t\t\t// Thus, the program title remains visible to the user at all\n\t\t\t\t// times even during horizontal pagination.\n\n\t\t\t\tfirstChild.setDesiredWidth(thisWidth);\n\t\t\t\tfirstChild.measure(MeasureSpec.AT_MOST, MeasureSpec.EXACTLY);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlong deltaMillis = _gridStartTimeMillis - firstProgram.getStartTime().getTimeInMillis();\n\t\t\t\tdouble roundingOffset = deltaMillis > 0 ? 0.5 : -0.5;\n\t\t\t\tlong deltaMin = (long) (deltaMillis / 60000.0 + roundingOffset);\n\t\t\t\tleft = -(int) (deltaMin * firstChild.getPixelsPerOneMinute());\n\t\t\t}\n\t\t}\n\n\t\tint top = 0;\n\n\t\tint childCount = getChildCount();\n\t\tfor (int index = 0; index < childCount; index++)\n\t\t{\n\t\t\tView child = getChildAt(index);\n\n\t\t\tint width = child.getMeasuredWidth();\n\t\t\tint height = child.getMeasuredHeight();\n\n\t\t\tchild.layout(left, top, left + width, top + height);\n\t\t\tleft += width;\n\t\t}\n\t}", "@Override\n\tprotected int getLayoutRes() {\n\t\treturn R.layout.holiday_meals_item_layout;\n\t}", "private void manageItemButtonHandler() {\n\t\tTitledBorder border = new TitledBorder(\" MANAGE ITEM\");\n\t\tborder.setTitleFont(new Font(\"TimesNewRoman\", Font.BOLD, 12));\n\t\tdisplayPanel.setBorder(border);\n\t\t\n\t\tdisplayPanel.removeAll();\n\t\tdisplayPanel.add(new ManageItemPanel(rmos, itemManager));\n\t\tdisplayPanel.revalidate();\n\t\tdisplayPanel.repaint();\n\t}", "@Override\n\t\t\tpublic int getLayoutResource() {\n\t\t\t\treturn R.layout.mylogist_itemes; //mylogistical_item\n\t\t\t}", "private void initMainComponentsLayout() {\r\n VerticalPanel selectDatasetLayout = new VerticalPanel();\r\n selectDatasetLayout.setWidth(\"300px\");\r\n selectDatasetLayout.setHeight(\"40px\");\r\n selectDatasetList = new ListBox();\r\n selectDatasetList.getElement().setAttribute(\"style\", \"border: 1px solid gray;height: 24px;font-weight: bold;width: 300px;border-radius: 5px;\");\r\n selectDatasetList.setWidth(\"300px\");\r\n selectDatasetList.addItem(\"Select Dataset\");\r\n selectDatasetLayout.add(selectDatasetList);\r\n selectDatasetList.setVisible(false);\r\n\r\n selectSubDatasetList = new ListBox();\r\n selectSubDatasetList.getElement().setAttribute(\"style\", \"border: 1px solid gray;height: 24px;font-weight: bold;width: 300px;border-radius: 5px;\");\r\n selectSubDatasetList.setWidth(\"300px\");\r\n selectSubDatasetList.addItem(\"Select Sub-Dataset\");\r\n selectSubDatasetList.setVisible(false);\r\n selectDatasetLayout.add(selectSubDatasetList);\r\n\r\n tempSelectDatasetList = new ListBox();\r\n tempSelectDatasetList.addItem(\"Select Dataset\");\r\n\r\n tempSelectDatasetList.setWidth(\"300px\");\r\n tempSelectDatasetList.setHeight(\"24px\");\r\n\r\n getDatasetsList(\"\");//get available dataset names\r\n RootPanel.get(\"dropdown_select\").add(selectDatasetLayout);\r\n selectDatasetList.addChangeHandler(this);\r\n selectSubDatasetList.addChangeHandler(this);\r\n\r\n tempSelectDatasetList.addChangeHandler(this);\r\n tempSelectDatasetList.addChangeHandler(this);\r\n Window.addResizeHandler(new ResizeHandler() {\r\n\r\n @Override\r\n public void onResize(ResizeEvent event) {\r\n if (masterWidth != Page.getScreenWidth() || masterHeight != Page.getScreenHeight()) {\r\n BooleanCallback ok = new BooleanCallback() {\r\n\r\n @Override\r\n public void execute(Boolean value) {\r\n if (value) {\r\n Window.Location.reload();\r\n }\r\n }\r\n };\r\n SC.confirm(\"You have changed the screen size the application need to reload the page press OK to proceed or close and back to the old screen\", ok);\r\n }\r\n }\r\n });\r\n\r\n initHomePage();\r\n welcomePage.setStyleName(\"welcomepagelayout\");\r\n RootPanel.get(\"welcomediva\").add(welcomePage);\r\n if (!oldIE) {\r\n initMiddleBodyLayout();\r\n }\r\n }", "private void setUpFooter(){\n JButton newItem = new JButton();\n JTextField name = new JTextField();\n DatePicker date = new DatePicker();\n ColorPicker priority = ColorPicker.createColorPicker(4,Color.RED);\n newItem.setText(\"+\");\n newItem.addActionListener(e -> {\n Tasks tasks = new Tasks();\n JPanel list = this.getPanelForList();\n boolean allFiled = true;\n if(!name.getText().isEmpty()) {\n tasks.setName(name.getText());\n name.setText(null);\n }else {\n this.emptyTextFieldPopUp(\"name\");\n allFiled = false;\n }\n if(!date.getDate().isEmpty()) {\n tasks.setDeadline(DateHandler.getDateFromString(date.getDate()));\n date.resetDate();\n }else {\n this.emptyTextFieldPopUp(\"deadline\");\n allFiled = false;\n }\n tasks.setPriority(ColorPriorityHandler.getPriority(priority.getColor()));\n tasks.setItems_id(currentList);\n tasks.setStatus(0);\n JPanel taskList = (JPanel)((JViewport)((JScrollPane)list.getComponent(1)).getComponent(0)).getComponent(0);\n if(allFiled) {\n this.addTask(taskList,tasks);\n priority.setColor(currentList.getColor());\n }\n });\n footer.setLayout(new GridLayout(2,4));\n footer.add(new JLabel(\"Add new\"));\n footer.add(new JLabel(\"Name:\"));\n footer.add(new JLabel(\"Date:\"));\n footer.add(new JLabel(\"Priority:\"));\n footer.add(newItem);\n footer.add(name);\n footer.add(date);\n footer.add(priority);\n }", "@Override\r\n\tint setLayout() {\n\t\treturn R.layout.product_bigimg;\r\n\t}", "private void doLayout()\n \t{\n \t\tModel model = doc.getModel();\n \t\tExtendedLayoutModel sbase = (ExtendedLayoutModel)model.getExtension(LayoutConstants.namespaceURI);\n \t\tif (sbase != null)\n \t\t{\n \t\t\tfor (Layout l : sbase.getListOfLayouts())\n \t\t\t{\n \t\t\t\t// TODO: list of compartment glyphs, text glyphs, etc...\n \t\t\t\tfor (SpeciesGlyph g : l.getListOfSpeciesGlyphs())\n \t\t\t\t{\n \t\t\t\t\tString sid = g.getSpecies();\n \t\t\t\t\tPeerSpecies sbr = getSpeciesPeer(sid);\n \t\t\t\t\tif (sbr != null) {\n \t\t\t\t\t\tsbr.setSpeciesGlyph(g);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "private void makeContainer(){\n Container X = (Container) ((SpringGridLayout) headlineContainer.getLayout()).getChild(1, 0);\n if (!(X == null)) headlineContainer.removeChild(X);\n\n Container sub = new Container(new SpringGridLayout(Axis.X,Axis.Y,FillMode.Last,FillMode.None));\n sub.setBackground(null); // just in case style sets an bg here\n Container sub1 = new Container();\n sub1.setBackground(null);\n Container sub2 = new Container();\n sub2.setBackground(null);\n Container sub3 = new Container();\n sub3.setBackground(null);\n\n sub.addChild(sub1);\n sub.addChild(sub2);\n sub.addChild(sub3);\n\n headlineContainer.addChild(sub ,1,0);\n/*\n sub2.setName(\"TEST\");\n sub3.setBackground(new QuadBackgroundComponent(ColorRGBA.Pink));\n\n // sub1.setPreferredSize(new Vector3f(25,50,0));\n sub1.setBackground(new QuadBackgroundComponent(ColorRGBA.Green));\n */\n }", "private void initial() {\n\t\tsetTitleTxt(getString(R.string.choose_game));\n\t\tLinearLayout contentView = (LinearLayout) findViewById(R.id.contentView);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\n\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n\t\tview = View.inflate(this, R.layout.user_choose_game, null);\n\t\tcontentView.addView(view, params);\n\t\tgameGrid = (GridView) view.findViewById(R.id.game_list);\n\t\tgameContent = (LinearLayout) view.findViewById(R.id.game_list_info);\n\t\tview.setVisibility(View.GONE);\n\t}", "@Override\n\tpublic void viewItem() {\n\t\t\n\t}", "private void setViewLayout() {\n\t\tthis.setBorder(new EmptyBorder(15, 15, 15, 15));\n\t\tthis.setLayout(new GridLayout(2, 2, 15, 15));\n\t}", "protected abstract void createItemsForAddedObjects(Layout layout,\r\n boolean doLayout);", "private void initViews() {\n removeAllViews();\n this.setOrientation(HORIZONTAL);\n this.setOnTouchListener(this);\n\n TextView textView;\n ImageView imageView;\n for (PickerItem pickerItem : items) {\n if (pickerItem.hasDrawable()) {\n imageView = new ImageView(getContext());\n imageView.setImageResource(pickerItem.getDrawable());\n imageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE);\n initStyle(imageView);\n this.addView(imageView);\n } else {\n if (pickerItem.getText() != null) {\n textView = new TextView(getContext());\n textView.setGravity(Gravity.CENTER);\n textView.setText(pickerItem.getText());\n initStyle(textView);\n this.addView(textView);\n }\n }\n }\n }", "private void milestonesLayoutHandler() {\n layoutMilestones = (LinearLayout) findViewById(R.id.layoutMilestones);\n txtViewMilestonesCountToday = (AutoResizeTextView) findViewById(R.id.txtViewMilestonesCountToday);\n txtMilestonesYesterdayValue = (TextView) findViewById(R.id.txtMilestonesYesterdayValue);\n\n layoutMilestones.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Toast.makeText(context, \"Coming soon\", Toast.LENGTH_SHORT).show();\n }\n });\n\n txtViewMilestonesCountToday.setText(String.valueOf(userSharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY, 0)));\n txtMilestonesYesterdayValue.setText(\"-\");\n }", "@Override\n public int getLayout(int position) {\n return R.layout.school_contact_item;\n }", "protected void setupView(Context context, final ViewGroup parent) {\n\n LayoutInflater inflater = (LayoutInflater) context\n .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n View v = inflater.inflate(R.layout.balloon_overlay, parent);\n title = (TextView) v.findViewById(R.id.balloon_item_title);\n snippet = (TextView) v.findViewById(R.id.balloon_item_snippet);\n image = (ImageView) v.findViewById(R.id.balloon_item_image);\n\n ImageView close = (ImageView) v.findViewById(R.id.balloon_close);\n close.setOnClickListener(new OnClickListener() {\n public void onClick(View v) {\n parent.setVisibility(GONE);\n // parent.removeAllViews();\n }\n });\n }", "@Override\n public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {\n try{\n super.onLayoutChildren(recycler, state);\n }catch (IndexOutOfBoundsException e){\n }\n\n }", "protected void directUpdateLayout() {\n updateLayout();\n }", "private void updateUI() {\n swipeRefreshLayout.setRefreshing(false);\n adapter.clearItems();\n itemList.addAll(DatabaseController.getInstance(getApplicationContext()).getItems());\n if (itemList.size() > 0){\n emptyTextView.setVisibility(View.GONE);\n adapter.notifyDataSetChanged();\n } else {\n emptyTextView.setVisibility(View.VISIBLE);\n }\n }", "@Override\n public void onGlobalLayout() {\n if (right == 0) {\n imgStepsLast.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n right = imgStepsLast.getRight();\n }\n showHelpView(layoutInflater);\n\n }", "void fillInnerParts() {\n // TODO: change the method to get each category panel\n adminPanel = new CategoryPanel(logic.getUiTaskList().getAdminList(), \"Admin\");\n categoryPanelPlaceholder.getChildren().add(adminPanel.getRoot());\n topicPanel = new CategoryPanel(logic.getUiTaskList().getTopicList(), \"Topic\");\n categoryPanelPlaceholder.getChildren().add(topicPanel.getRoot());\n ipPanel = new CategoryPanel(logic.getUiTaskList().getIpList(), \"Ip\");\n categoryPanelPlaceholder.getChildren().add(ipPanel.getRoot());\n tpPanel = new CategoryPanel(logic.getUiTaskList().getTpList(), \"Tp\");\n categoryPanelPlaceholder.getChildren().add(tpPanel.getRoot());\n refreshTitle();\n\n int currentWeekNumber = AppUtil.getCurrentWeekNumber().getWeekValueInt();\n Double num = (double) currentWeekNumber / (double) 13;\n progressBar.setProgress(num);\n\n weekDisplay = new WeekDisplay(currentWeekNumber);\n\n weekDisplayPlaceholder.getChildren().add(weekDisplay.getRoot());\n\n feedbackBox = new FeedbackBox();\n feedbackBoxPlaceholder.getChildren().add(feedbackBox.getRoot());\n CommandBox commandBox = new CommandBox(this::executeCommand); // bottom of Ace CS2103/T\n commandBoxPlaceholder.getChildren().add(commandBox.getRoot());\n }", "private void setupChildFragmentLayout() {\n VerticalGridView containerList = mRowsFragment.getVerticalGridView();\n setVerticalGridViewLayout(containerList);\n }", "private void InitializeUI(){\n\t\t//Set up the menu items, which are differentiated by their IDs\n\t\tArrayList<MenuItem> values = new ArrayList<MenuItem>();\n\t\tMenuItem value = new MenuItem();\n\t\tvalue.setiD(0); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(1); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(2); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(3); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(4); values.add(value);\n\n MenuAdapter adapter = new MenuAdapter(this, R.layout.expandable_list_item3, values);\n \n // Assign adapter to List\n setListAdapter(adapter);\n \n //Set copyright information\n Calendar c = Calendar.getInstance();\n\t\tString year = String.valueOf(c.get(Calendar.YEAR));\n\t\t\n\t\t//Set up the copyright message which links to the author's linkedin page\n TextView lblCopyright = (TextView)findViewById(R.id.lblCopyright);\n lblCopyright.setText(getString(R.string.copyright) + year + \" \");\n \n TextView lblName = (TextView)findViewById(R.id.lblName);\n lblName.setText(Html.fromHtml(\"<a href=\\\"http://uk.linkedin.com/in/lekanbaruwa/\\\">\" + getString(R.string.name) + \"</a>\"));\n lblName.setMovementMethod(LinkMovementMethod.getInstance());\n\t}", "@Override \r\n\tprotected void onLayout(boolean changed, int left, int top, int right, int bottom)\r\n\t{\n\t\tif(changed)\r\n\t\t{\r\n\t\t\tthis.calculateChildViewLayoutParams();\r\n\t\t}\r\n\t\t\r\n\t\t// Set the layout position for the menu and content\r\n\t\tthis.m_listView.layout(left, top, right, bottom);\r\n\t\tthis.m_playerInfo.layout(left, (top - this.m_currentInfoOffset), right, (bottom - this.m_currentInfoOffset));\r\n\t\tthis.m_playerControls.layout(left, (top - this.m_currentControlsOffset), right, (bottom - this.m_currentControlsOffset));\r\n\t\tthis.m_banner.layout(left, top, right, bottom);\r\n\t\t\r\n\t}", "@Override\n\tpublic void doLayout() {\n\t\tthis.transitionsPanel.setBounds(0, 0, this.getWidth(), this.getHeight());\n\t\t//this.timersButton.setBounds(this.getWidth()-2*50, 0, 50, 50);\n\t\t//this.countersButton.setBounds(this.getWidth()-50, 0, 50, 50);\n\t\t//this.salirButton.setBounds(this.getWidth()-40,0,40, 40);\n\t\tsuper.doLayout();\n\t}", "private void initUI() {\r\n\t\tthis.verticalLayout = new XdevVerticalLayout();\r\n\t\tthis.verticalLayout2 = new XdevVerticalLayout();\r\n\t\r\n\t\tthis.setSpacing(false);\r\n\t\tthis.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout.setSpacing(false);\r\n\t\tthis.verticalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout2.setMargin(new MarginInfo(false));\r\n\t\r\n\t\tthis.verticalLayout2.setSizeFull();\r\n\t\tthis.verticalLayout.addComponent(this.verticalLayout2);\r\n\t\tthis.verticalLayout.setComponentAlignment(this.verticalLayout2, Alignment.MIDDLE_CENTER);\r\n\t\tthis.verticalLayout.setExpandRatio(this.verticalLayout2, 20.0F);\r\n\t\tthis.verticalLayout.setSizeFull();\r\n\t\tthis.addComponent(this.verticalLayout);\r\n\t\tthis.setComponentAlignment(this.verticalLayout, Alignment.MIDDLE_CENTER);\r\n\t\tthis.setExpandRatio(this.verticalLayout, 10.0F);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.addContextClickListener(event -> this.this_contextClick(event));\r\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tmLayout.requestLayout();\r\n\t\t\t}", "@Override\r\n protected void onFinishInflate() {\r\n initComponents();\r\n }", "public void InitLayout() {\n SetBackground(R.drawable.can_dfqc_ac_bg);\n this.mTvA = AddText(121, 173, 203, 25);\n this.mTvP = AddText(121, 212, KeyDef.RKEY_RADIO_6S, 25);\n this.mTvMode = AddText(121, Can.CAN_FLAT_RZC, 203, 25);\n this.mTvC = AddText(121, 295, 139, 25);\n this.mTvWind = AddText(121, KeyDef.RKEY_AVIN, 53, 25);\n initValue();\n }", "@Override\n public void createInitialLayout(IPageLayout layout) {\n defineActions(layout);\n defineLayout(layout);\n }", "@Override\r\n protected void layoutChildren () {\r\n /* Custom children positioning */\r\n super.layoutChildren();\r\n\r\n if (noDataIcon.isVisible()) {\r\n noDataIcon.relocate((getWidth() - noDataIcon.getLayoutBounds().getWidth()) / 2,\r\n (getHeight() - noDataIcon.getLayoutBounds().getHeight()) / 2);\r\n }\r\n\r\n if (innerContainer != null) {\r\n innerContainer.relocate((getWidth() - innerContainer.getLayoutBounds().getWidth()) / 2,\r\n (getHeight() - innerContainer.getLayoutBounds().getHeight()) / 2);\r\n }\r\n\r\n if (currentIcon != null) {\r\n currentIcon.relocate(\r\n suffixLabel.getBoundsInParent().getMinX() + innerContainer.getBoundsInParent().getMinX(),\r\n suffixLabel.getBoundsInParent().getMinY() + innerContainer.getBoundsInParent().getMinY()\r\n - currentIcon.getLayoutBounds().getHeight() + 2);\r\n }\r\n\r\n }", "private void layoutBar() {\n this.setVisible(false);\n final SpringLayout layout = (SpringLayout) this.getLayout();\n final int numComponents = this.getComponentCount() - 1;\n \n SpringLayout.Constraints constraints;\n \n layout.putConstraint(SpringLayout.WEST, getComponent(0),\n Spring.constant(0), SpringLayout.WEST, this);\n layout.putConstraint(SpringLayout.EAST, getComponent(0),\n Spring.constant(-SMALL_BORDER), SpringLayout.WEST, getComponent(1));\n constraints = layout.getConstraints(getComponent(0));\n constraints.setHeight(Spring.constant(20));\n \n for (int i = 1; i < numComponents; i++) {\n layout.putConstraint(SpringLayout.EAST, getComponent(i),\n Spring.constant(-SMALL_BORDER), SpringLayout.WEST,\n getComponent(i + 1));\n constraints = layout.getConstraints(getComponent(i));\n constraints.setHeight(Spring.constant(20));\n constraints.setWidth(constraints.getWidth());\n }\n \n layout.putConstraint(SpringLayout.EAST, getComponent(numComponents),\n Spring.constant(0), SpringLayout.EAST, this);\n constraints = layout.getConstraints(getComponent(numComponents));\n constraints.setHeight(Spring.constant(20));\n constraints.setWidth(constraints.getWidth());\n this.setVisible(true);\n }", "@Override\r\n\tprotected void onLayout(boolean paramBoolean, int paramInt1, int paramInt2,\r\n\t\t\tint paramInt3, int paramInt4) {\n\t\tint j = paramInt3 - paramInt1;\r\n\t\tint k = paramInt4 - paramInt2;\r\n\t\tif (this.navBar != null) {\r\n\t\t\tint i = this.navBar.getMeasuredHeight();\r\n\t\t\tthis.navBar.layout(0, 0, j, i);\r\n\t\t\tthis.mainContent.layout(0, i, j, k);\r\n\t\t}\r\n\t\tif (this.spinnerView != null)\r\n\t\t\tthis.spinnerView.layout(0, 0, j, k);\r\n\t}", "private void initInfo() {\r\n\t\tthis.panelInfo = new JPanel();\r\n\t\tthis.panelInfo.setLayout(new BoxLayout(this.panelInfo,\r\n\t\t\t\tBoxLayout.PAGE_AXIS));\r\n\t\tJPanel filterInfoPanel = new JPanel();\r\n\t\tfilterInfoPanel.setLayout(new GridLayout(4, 2, 10, 10));\r\n\t\tJLabel labelInformation = new JLabel(\"Information\");\r\n\t\tif (dlm.getSize() > 0) {\r\n\t\t\tWeapon weapon = this.tableWeapon.getWeapon((String) this.list\r\n\t\t\t\t\t.getSelectedValue());\r\n\r\n\t\t\tlabelInformation.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\t\tJLabel labelName = new JLabel(\"Name\");\r\n\t\t\tJLabel labelNameInfo = new JLabel(weapon.getName());\r\n\t\t\tJLabel labelDamage = new JLabel(\"Damages\");\r\n\t\t\tJLabel labelDamageInfo = new JLabel(String.valueOf(weapon\r\n\t\t\t\t\t.getDamagesMinimum())\r\n\t\t\t\t\t+ \" - \"\r\n\t\t\t\t\t+ String.valueOf(weapon.getDamagesMaximum()));\r\n\t\t\tJLabel labelPrice = new JLabel(\"Price\");\r\n\t\t\tJLabel labelPriceInfo = new JLabel(\r\n\t\t\t\t\tString.valueOf(weapon.getPrice()));\r\n\t\t\tJLabel labelType = new JLabel(\"Types\");\r\n\t\t\tJLabel labelTypeInfo = new JLabel(\r\n\t\t\t\t\t(String) this.comboBoxType.getSelectedItem());\r\n\t\t\tfilterInfoPanel.add(labelName);\r\n\t\t\tfilterInfoPanel.add(labelNameInfo);\r\n\t\t\tfilterInfoPanel.add(labelDamage);\r\n\t\t\tfilterInfoPanel.add(labelDamageInfo);\r\n\t\t\tfilterInfoPanel.add(labelPrice);\r\n\t\t\tfilterInfoPanel.add(labelPriceInfo);\r\n\t\t\tfilterInfoPanel.add(labelType);\r\n\t\t\tfilterInfoPanel.add(labelTypeInfo);\r\n\r\n\t\t} else {\r\n\r\n\t\t\tlabelInformation.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\t\tJLabel labelName = new JLabel(\"Name\");\r\n\t\t\tJLabel labelNameInfo = new JLabel();\r\n\t\t\tJLabel labelDamage = new JLabel(\"Damages\");\r\n\t\t\tJLabel labelDamageInfo = new JLabel();\r\n\t\t\tJLabel labelPrice = new JLabel(\"Price\");\r\n\t\t\tJLabel labelPriceInfo = new JLabel();\r\n\t\t\tJLabel labelType = new JLabel(\"Types\");\r\n\t\t\tJLabel labelTypeInfo = new JLabel();\r\n\t\t\tfilterInfoPanel.add(labelName);\r\n\t\t\tfilterInfoPanel.add(labelNameInfo);\r\n\t\t\tfilterInfoPanel.add(labelDamage);\r\n\t\t\tfilterInfoPanel.add(labelDamageInfo);\r\n\t\t\tfilterInfoPanel.add(labelPrice);\r\n\t\t\tfilterInfoPanel.add(labelPriceInfo);\r\n\t\t\tfilterInfoPanel.add(labelType);\r\n\t\t\tfilterInfoPanel.add(labelTypeInfo);\r\n\t\t}\r\n\r\n\t\tthis.panelInfo.add(labelInformation);\r\n\t\tthis.panelInfo.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panelInfo.add(filterInfoPanel);\r\n\t\tthis.panelInfo.add(Box.createRigidArea(new Dimension(0, 3)));\r\n\t\tthis.panelInfo.setBorder(BorderFactory.createLineBorder(Color.black));\r\n\t}", "private HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"-1px\");\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setSpacing(true);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100%\");\r\n\t\tsetHeight(\"100%\");\r\n\t\t\r\n\t\t// panelImg\r\n\t\tpanelImg = buildPanelImg();\r\n\t\tmainLayout.addComponent(panelImg);\r\n\t\t\r\n\t\t// gridInfo\r\n\t\tgridInfo = buildGridInfo();\r\n\t\tmainLayout.addComponent(gridInfo);\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public void generarLinearLayoutV() {\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n\n rvMascotas.setLayoutManager(llm);//le entrego el layout a mi lista\n\n }", "@Override\n protected int[] getChildViewIds() {\n return new int[] {\n R.id.feed_item_root,\n R.id.feed_item_avatar_layout,\n R.id.feed_item_avatar,\n R.id.feed_item_nickname,\n R.id.feed_item_createtime,\n R.id.feed_expand_text_view,\n R.id.feed_item_desc_image_layout,\n R.id.feed_item_desc_image,\n R.id.feed_support_count,\n R.id.feed_post_layout,\n R.id.feed_post_container_layout,\n R.id.feed_support_layout,\n R.id.feed_item_image_grid,\n R.id.feed_item_share,\n R.id.feed_item_support,\n R.id.feed_item_post,\n R.id.feed_item_support_text,\n R.id.feed_item_default_delete_button,\n R.id.feed_item_delete_layout,\n R.id.feed_prize_layout,\n R.id.feed_prize_text,\n R.id.feed_badge_layout,\n R.id.feed_prize_and_support_and_post_layout,\n\n R.id.item_divider,\n\n //empty\n R.id.list_empty_layout,\n R.id.list_empty_text\n };\n }", "@Override\n protected void onLayout(boolean b, int left, int top, int right, int bottom) {\n int childCount = this.getChildCount();\n for(int i = 0; i < childCount; i++) {\n View child = this.getChildAt(i);\n LayoutParams lp = (LayoutParams) child.getLayoutParams();\n child.layout(lp.x, lp.y, lp.x + child.getMeasuredWidth(), lp.y + child.getMeasuredHeight());\n }\n\n }", "private void setupLayout() {\n this.setLayout(new BorderLayout());\n\t\tthis.setupConstraints();\n\n\t\tJPanel titleAuthorFields = new JPanel(new GridBagLayout());\n\t\ttitleAuthorFields.add(Pirex.inputField(titleLabel, titleTextField, null), cTitleField);\n\t\ttitleAuthorFields.add(Pirex.inputField(authorLabel, authorTextField, null), cAuthorField);\n\n\t\tJPanel inputFields = new JPanel(new GridLayout(3, 0));\n\t\tinputFields.add(Pirex.inputField(fileLabel, fileTextField, fileBrowseButton));\n\t\tinputFields.add(Pirex.inputField(fileTypeLabel, fileTypeComboBox, null));\n\t\tinputFields.add(titleAuthorFields);\n\t\tinputFields = Pirex.borderLayoutWrap(null, null, inputFields, null, separator);\n\n\t\tJPanel leftAlignedProcessButton = Pirex.leftAlign(processButton);\n\t\tJPanel processPanel = Pirex.borderLayoutWrap(leftAlignedProcessButton, null, summaryScrollPanel, null, null);\n\t\tJPanel loadTabPanel = Pirex.borderLayoutWrap(inputFields, null, processPanel, null, null);\n\n\t\tthis.add(Pirex.withBorder(loadTabPanel), BorderLayout.CENTER);\n\n }" ]
[ "0.7255202", "0.7166232", "0.6757847", "0.6723138", "0.67204124", "0.6638912", "0.65264904", "0.65208465", "0.64987856", "0.64455706", "0.63868976", "0.63819724", "0.63784546", "0.6330461", "0.6296194", "0.62819713", "0.6274178", "0.6236497", "0.6223347", "0.6182675", "0.6159537", "0.6154279", "0.6152088", "0.6136827", "0.6112018", "0.61059105", "0.6081143", "0.60705525", "0.6053126", "0.60523665", "0.60310143", "0.6029538", "0.599847", "0.598017", "0.5979189", "0.59740037", "0.59732324", "0.5966374", "0.5957404", "0.59555554", "0.5914888", "0.58991975", "0.5897561", "0.588987", "0.5883548", "0.58816487", "0.5871146", "0.5839818", "0.5830517", "0.58217907", "0.5818986", "0.58153296", "0.5811769", "0.58080155", "0.5807611", "0.58051133", "0.57976717", "0.5790981", "0.5786447", "0.5783627", "0.577151", "0.5770841", "0.5768475", "0.5766731", "0.576555", "0.5765454", "0.5765095", "0.5764515", "0.57622", "0.5761475", "0.57613707", "0.57583565", "0.5756234", "0.57476944", "0.574423", "0.57411253", "0.5739065", "0.57389057", "0.5738024", "0.5737139", "0.5734825", "0.57337594", "0.57305294", "0.57162994", "0.5711106", "0.5710285", "0.570877", "0.57078224", "0.57055825", "0.5704848", "0.5702456", "0.5696628", "0.56952256", "0.5694121", "0.5678421", "0.5677804", "0.56733555", "0.5660719", "0.56598586", "0.56597275", "0.5649395" ]
0.0
-1
set the data in items
@Override public void onBindViewHolder(MyViewHolder holder, final int position) { if(updateStatusList.get(position).equals("yes")){ holder.updateStatus.setVisibility(View.VISIBLE); }else if(updateStatusList.get(position).equals("no")){ holder.updateStatus.setVisibility(View.GONE); } holder.treeName.setText(treeNameList.get(position)); // holder.inMemoryOf.setText(treeRelationList.get(position)); // holder.NoOfTrees.setText(treeCountList.get(position)); holder.treeAddress.setText(treeAddressList.get(position)); holder.plantDate.setText(plantDateList.get(position)); //new ImageLoadTask(treeImageList.get(position), holder.treeImage,holder.imageBar).execute(); loadImage(treeImageList.get(position),holder.imageBar,holder.treeImage); // implement setOnClickListener event on item view. holder.itemView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { // display a toast with person name on item click Intent intent = new Intent(context.getApplicationContext(), UpdateTreeDetails.class); intent.putExtra("treeName",treeNameList.get(position)); intent.putExtra("treeAddress",treeAddressList.get(position)); intent.putExtra("plantDate",plantDateList.get(position)); intent.putExtra("updatedDate",updatedDateList.get(position)); intent.putExtra("updateStatus",updateStatusList.get(position)); intent.putExtra("treeImage",treeImageList.get(position)); intent.putExtra("treeId",treeIdList.get(position)); intent.putExtra("treeRelation",treeRelationList.get(position)); intent.putExtra("treeCount",treeCountList.get(position)); context.startActivity(intent); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setData(Item i)\r\n\t{\r\n\t\ttheItem = i;\r\n\t}", "private void setData() {\n\n if (id == NO_VALUE) return;\n MarketplaceItem item = ControllerItems.getInstance().getModel().getItemById(id);\n if (item == null) return;\n\n ControllerAnalytics.getInstance().logItemView(id, item.getTitle());\n\n if (item.getPhotos() != null\n && item.getPhotos().size() > 0 &&\n !TextUtils.isEmpty(item.getPhotos().get(0).getSrc_big(this)))\n Picasso.with(this).load(item.getPhotos().get(0).getSrc_big(this)).into((ImageView) findViewById(R.id.ivItem));\n else if (!TextUtils.isEmpty(item.getThumb_photo()))\n Picasso.with(this).load(item.getThumb_photo()).into((ImageView) findViewById(R.id.ivItem));\n\n adapter.updateData(item, findViewById(R.id.rootView));\n }", "public void setItems(){\n }", "public void setData(GenericItemType data) {\n this.data = data;\n }", "public void setItems(Item[] itemsIn)\n {\n items = itemsIn;\n }", "private void setItems()\n {\n sewers.setItem(rope); \n promenade.setItem(rope);\n bridge.setItem(potion);\n tower.setItem(potion);\n throneRoomEntrance.setItem(potion);\n depths.setItem(shovel);\n crypt.setItem(shovel);\n }", "public void setItems(Item items) {\n this.items = items;\n }", "private void setItem(){\n item = new String[4];\n item[0] = title;\n item[1] = DueDate;\n item[2] = Description;\n item[3] = \"incomplete\";\n }", "public void setItem(Item item) {\n this.item = item;\n }", "public void setItems(ItemList items) {\r\n this.items = items;\r\n }", "private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}", "public void set(List<Item> items) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(items);\n }\n\n //first collapse all items\n getFastAdapter().collapse();\n\n //get sizes\n int newItemsCount = items.size();\n int previousItemsCount = mItems.size();\n int itemsBeforeThisAdapter = getFastAdapter().getItemCount(getOrder());\n\n //make sure the new items list is not a reference of the already mItems list\n if (items != mItems) {\n //remove all previous items\n if (!mItems.isEmpty()) {\n mItems.clear();\n }\n\n //add all new items to the list\n mItems.addAll(items);\n }\n\n //map the types\n mapPossibleTypes(items);\n\n //now properly notify the adapter about the changes\n if (newItemsCount > previousItemsCount) {\n if (previousItemsCount > 0) {\n getFastAdapter().notifyAdapterItemRangeChanged(itemsBeforeThisAdapter, previousItemsCount);\n }\n getFastAdapter().notifyAdapterItemRangeInserted(itemsBeforeThisAdapter + previousItemsCount, newItemsCount - previousItemsCount);\n } else if (newItemsCount > 0 && newItemsCount < previousItemsCount) {\n getFastAdapter().notifyAdapterItemRangeChanged(itemsBeforeThisAdapter, newItemsCount);\n getFastAdapter().notifyAdapterItemRangeRemoved(itemsBeforeThisAdapter + newItemsCount, previousItemsCount - newItemsCount);\n } else if (newItemsCount == 0) {\n getFastAdapter().notifyAdapterItemRangeRemoved(itemsBeforeThisAdapter, previousItemsCount);\n } else {\n getFastAdapter().notifyAdapterDataSetChanged();\n }\n }", "public void setItem (Object anObject)\r\n {\r\n // TODO: implement (?)\r\n }", "public void setItems(String items)\n {\n _items = items;\n }", "public void setItem (Item item)\n\t{\n\t\tthis.item = item;\n\t}", "public void setItem(T item) {\n this.item = item;\n }", "protected abstract void fillData(View itemView, T data);", "public void setItem(Item[] param) {\r\n validateItem(param);\r\n\r\n localItemTracker = true;\r\n\r\n this.localItem = param;\r\n }", "public void setDataAndRefresh(List<T> data) {\n this.data = data;\n// views = new ArrayList<>(data.size());\n// // builder data set of all item view\n// for (int i = 0; i < data.size(); i++) {\n// int itemLayoutId = getItemLayoutId();\n// LayoutInflater inflater = LayoutInflater.from(getContext());\n// View itemView = inflater.inflate(itemLayoutId, null);\n// fillData(itemView, data.get(i));\n// // add item titleView\n// views.add(itemView);\n// }\n notifyDataSetChanged();\n }", "public void setData(Post item) {\n a.setText(points + \" points\");\n this.dataItem = item;\n title.setText(item.getTitle());\n desc.setText(item.getDesc());\n upvoted.setEnabled(!item.isUpvoted());\n downvoted.setEnabled(!item.isDownvoted());\n // Picasso.with(itemView.getContext()).load(item.getImg()).into(img);\n // Picasso.with(itemView.getContext()).load(item.getImg()).into(img);\n\n\n\n }", "public void setDataItem(Object value) {\n this.dataItem = value;\n }", "public void setNewList(List<Item> items) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(items);\n }\n mItems = new ArrayList<>(items);\n mapPossibleTypes(mItems);\n getFastAdapter().notifyAdapterDataSetChanged();\n }", "public void setItem(Item item) {\n\t\tthis.item = item;\n\t}", "public void setItem(Item item) {\n\t\tthis.item = item;\n\t}", "@Override\r\n\tprotected void setData(Object data) {\n\t\t\r\n\t}", "private void setRecyclerViewData() {\n\n itemList = new ArrayList<ListItem>();\n itemList.add(new RememberCardView(\"Du musst 12€ zahlen\"));\n itemList.add(new DateCardItem(\"Mo\", \"29.07.\", \"Training\", \"20:00\", \"21:45\"));\n itemList.add(new VoteCardItem(\"Welche Trikotfarbe ist besser?\"));\n }", "public void setData(java.util.List data) {\r\n this.data = data;\r\n }", "public void setItem(Object item, int i)\n {\n items.setElementAt(item, i);\n }", "private void setItems(Set<T> items) {\n Assertion.isNotNull(items, \"items is required\");\n this.items = items;\n }", "public void setData(Item item) {\n layout.setVisibility(VISIBLE);\n setBalloonData(item, layout);\n }", "void setData(Object data);", "public void setItems(ArrayList<Item> items) {\n\t\tthis.items = items;\n\t}", "public void setData() {\n tVShortTitle.setText(mCurrencyShortForm);\n tVCount.setText(mCountTitle.concat(String.valueOf(mMainListForActions.size())));\n tVFirstCurrency.setText(mFirstCurrencyTitle);\n tVChosenOrganizationPurchase.setText(getInfoString(mPurchaseTitle + \": \", mPurchaseValue));\n tVChosenOrganizationSale.setText(getInfoString(mSaleTitle + \": \", mSaleValue));\n tVChosenOrganizationDate.setText(mDate.substring(0, 10));\n if (mAction.equals(ConstantsManager.CONVERTER_ACTION_SALE)) {\n tVChosenAction.setText(mSaleTitle.toUpperCase());\n } else {\n tVChosenAction.setText(mPurchaseTitle.toUpperCase());\n }\n mTextWatcherAdapter.setActionForFirst(false);\n mTextWatcherAdapter.setActionForSecond(false);\n convertValue();\n }", "public void setItem(ItemType item) {\n\t this.item = item;\n\t}", "public void setItem(ItemType item) {\n\t this.item = item;\n\t}", "public void setData(E data){\n\t\t\tthis.data = data;\n\t\t}", "void setData (Object data);", "private void setData() {\n\n }", "public void setData(Object data) {\r\n this.data = data;\r\n }", "public void setData(E data) {\r\n\t\tthis.data = data;\r\n\t}", "public void setItems() {\n if (partSelected instanceof OutSourced) { // determines if part is OutSourced\n outSourcedRbtn.setSelected(true);\n companyNameLbl.setText(\"Company Name\");\n OutSourced item = (OutSourced) partSelected;\n idTxt.setText(Integer.toString(item.getPartID()));\n idTxt.setEditable(false);\n nameTxt.setText(item.getPartName());\n invTxt.setText(Integer.toString(item.getPartInStock()));\n costTxt.setText(Double.toString(item.getPartPrice()));\n maxTxt.setText(Integer.toString(item.getMax()));\n minTxt.setText(Integer.toString(item.getMin()));\n idTxt.setText(Integer.toString(item.getPartID()));\n companyNameTxt.setText(item.getCompanyName());\n }\n if (partSelected instanceof InHouse) { // determines if part Is InHouse\n inHouseRbtn.setSelected(true);\n companyNameLbl.setText(\"Machine ID\");\n InHouse itemA = (InHouse) partSelected;\n idTxt.setText(Integer.toString(itemA.getPartID()));\n idTxt.setEditable(false);\n nameTxt.setText(itemA.getPartName());\n invTxt.setText(Integer.toString(itemA.getPartInStock()));\n costTxt.setText(Double.toString(itemA.getPartPrice()));\n maxTxt.setText(Integer.toString(itemA.getMax()));\n minTxt.setText(Integer.toString(itemA.getMin()));\n idTxt.setText(Integer.toString(itemA.getPartID()));\n companyNameTxt.setText(Integer.toString(itemA.getMachineID()));\n\n }\n }", "private void setData() {\n populateInterfaceElements();\n }", "public void setItems(List<T> items) {\n log.debug(\"set items called\");\n synchronized (listsLock){\n filteredList = new ArrayList<T>(items);\n originalList = null;\n updateFilteringAndSorting();\n }\n }", "public abstract void setCustomData(Object data);", "private static void setValues( String name, Integer number, Item item ) {\n\t\titem.getItemProperty( \"name\" ).setValue( name );\n\t\titem.getItemProperty( \"number\" ).setValue( number );\n\t\titem.getItemProperty( \"id\" ).setValue( itemId );\n\t\titem.getItemProperty( \"id\" ).setReadOnly( true );\n\t\titemId++;\n\t}", "public void setData(E data)\n {\n this.data = data;\n }", "@Override\r\n\tpublic void setData(E data) {\n\t\tthis.data=data;\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\tint numOfItems = loader.getNumOfItems();\r\n\t\tsetStoreSize(numOfItems);\r\n\r\n\t\tfor (int i = 0; i < numOfItems; i++) {\r\n DrinksStoreItem item = (DrinksStoreItem) loader.getItem(i);\r\n\t\t\tStoreObject brand = item.getContent();\r\n\t\t\tStoreObject existingBrand = findObject(brand.getName());\r\n\t\t\tif (existingBrand != null) {\r\n\t\t\t item.setContent(existingBrand);\r\n\t\t\t}\r\n\t\t\taddItem(i, item);\t\r\n\t\t}\r\n\t}", "public void setData(Object data) {\n this.data = data;\n }", "@Override\n\tpublic void setData() {\n\n\t}", "public abstract void setList(List<T> items);", "@Override\n public void setChanged() {\n set(getItem());\n }", "public void initAttributes(ObservableList<Item> items) {\n this.items = items;\n }", "public void setItem(ArrayOfItem param) {\r\n localItemTracker = param != null;\r\n\r\n this.localItem = param;\r\n }", "@Override\n public void setItemsResponse(Context context) {\n // Load string from the given all.json file.\n String jsonString = JSONUtils.loadJSONFromAsset(context, DATA_FILE_NAME);\n\n try {\n // Create JSONObject of the response.\n JSONObject jsonObject = new JSONObject(jsonString);\n\n // Retrieve \"result\" and \"data\" from the response.\n String result = jsonObject.getString(\"result\");\n\n JSONArray dataArray = jsonObject.getJSONArray(\"data\");\n List<Item> dataList = new ArrayList<>();\n\n for (int i = 0; i < dataArray.length(); ++i) {\n JSONObject object = dataArray.getJSONObject(i);\n Item item = new Item(\n object.getString(\"id\"),\n object.getString(\"name\"),\n object.getLong(\"num_likes\"),\n object.getLong(\"num_comments\"),\n object.getLong(\"price\"),\n object.getString(\"photo\"),\n object.getString(\"status\")\n );\n dataList.add(item);\n }\n\n // Instantiate the response object with the \"result\" and \"data\".\n mItemsResponse = new Response(result, dataList);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "void setData(T data) {\n\t\tthis.data = data;\n\t}", "public void setItems(List<PickerItem> items) {\n this.items = items;\n initViews();\n selectChild(-1);\n }", "public void setAdditionalData(ObservableList<MapItemData> data) {\n\n\t\tthis.additionalData = data;\n\n\t}", "public void setData(Data data) {\n this.data = data;\n }", "private void setRecyclerViewData() {\n }", "@Override\n public void setItems(List<ExplanationOrReadingItem> items) {\n progressDialog.dismiss();\n mlist.setAdapter(new ExplanationOrReadingAdapter(items));\n mlist.setOnItemClickListener(this);\n }", "public void setItem(BudgetItemModel item) { model= item;}", "public void setData(List<Emergency> data) {\n this.data = data;\n notifyDataSetChanged();\n }", "public void setITEM(int value) {\r\n this.item = value;\r\n }", "public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_volvo_cysjysz, R.string.can_volvo_zdsm, R.string.can_door_unlock, R.string.can_volvo_zdhsj, R.string.can_volvo_qxzchsj, R.string.can_volvo_qxychsj, R.string.can_volvo_fxplsz, R.string.can_volvo_dstc, R.string.can_volvo_csaq, R.string.can_volvo_hfqcsz};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.TITLE};\n this.mPopValueIds[2] = new int[]{R.string.can_door_unlock_key2, R.string.can_door_unlock_key1};\n this.mPopValueIds[6] = new int[]{R.string.can_ac_low, R.string.can_ac_mid, R.string.can_ac_high};\n this.mSetData = new CanDataInfo.VolvoXc60_CarSet();\n }", "public void setData(Object data) {\n\t\tthis.data = data;\n\t}", "public void setData(Object[] data) {\n itsWidget.setReady(true);\n Slot slot = itsWidget.getKB().getSlot((String) data[0]);\n itsModel.initialize(listToStringArray(new ArrayList(slot.getAllowedValues())));\n return;\n }", "public void setData( E data ) {\n\t\tthis.data = data;\n\t}", "public void setData(IData data) {\n this.data = data;\n }", "public void setData(T data){\n this.data = data;\n }", "private void initializeData() {\n lblItem.setText(product.getName());\n txtReference.setText(product.getTransaction().getReferenceNumber());\n txtItem.setText(product.getName());\n txtDescription.setText(product.getDescription());\n txtBrand.setText(product.getBrand());\n txtModel.setText(product.getModel());\n txtQuantity.setText(String.valueOf(product.getQuantity()));\n txtUnit.setText(product.getUnit());\n txtProductDate.setDate(product.getProduct_date());\n txtOrigPrice.setText(String.valueOf(product.getOriginalPrice()));\n txtAgent.setText(product.getAgent());\n txtContactPerson.setText(product.getContactPerson());\n try { \n txtSupplier.setText(((Supplier)product.getSuppliers().toArray()[0]).getName());\n } catch(ArrayIndexOutOfBoundsException ex) {\n System.out.println(ex.toString());\n }\n }", "public void setItems(Object[] newItems)\n {\n items = new Vector(newItems.length);\n for (int i=0; i < newItems.length; i++)\n {\n items.addElement(newItems[i]);\n }\n }", "private void initData() {\n contents.clear();\n images.clear();\n contents.add(\"荣誉殿堂\");\n contents.add(getResources().getString(R.string.mine_item1));\n contents.add(getResources().getString(R.string.mine_item2));\n contents.add(getResources().getString(R.string.mine_item4));\n contents.add(getResources().getString(R.string.mine_item3));\n\n String sex = SPHelper.getDetailMsg(getActivity(), Cons.USER_INFO, getString(R.string.appsex_man));\n images.add(BGHelper.setButtonSetting(getActivity(), sex));\n images.add(BGHelper.setButtonNotify(getActivity(), sex));\n images.add(BGHelper.setButtonReport(getActivity(), sex));\n images.add(sex.equals(\"M\") ? R.drawable.ioc_mine_que_blue : R.drawable.ioc_mine_que_red);\n images.add(BGHelper.setButtonSetting(getActivity(), sex));\n\n\n adapter = new MineAdapter(getActivity(), contents, images, this);\n lv_mine.setAdapter(adapter);\n }", "@Override\n public void setListData() {}", "public void setAdapterData(List<CommentUploadListInfo.LstFileBean> data) {\n this.itemData = data;\n\n if (itemData.size() == 0) {\n rl_no_data.setVisibility(View.VISIBLE);\n return;\n } else {\n rl_no_data.setVisibility(View.GONE);\n }\n if (sfAdapter == null){\n sfAdapter = new SwitchFileAdapter(context, itemData);\n sfAdapter.setAdpterClick(new IAdapterClickListener() {\n @Override\n public void adapterClick(int id, int position) {\n EventBus.getDefault().post(new ChangeFileEvent(itemData.get(position)));\n dismiss();\n }\n });\n rv_switchfile_list.setAdapter(sfAdapter);\n }else{\n sfAdapter.setItemData(itemData);\n }\n }", "@DebugLog\n public void setItems(ArrayList<Update> items) {\n if (items != null) {\n for (Update item : items) {\n mItems.add(new OverviewItem(item));\n }\n }\n notifyDataSetChanged();\n //Remove the isloading\n if (getBasicItemCount() <= 0) return;\n try {\n OverviewItem overviewItem = mItems.get(getBasicItemCount() - items.size() - 1);\n if (overviewItem.isLoadingItem) {\n mItems.remove(getBasicItemCount() - items.size() - 1);\n notifyDataSetChanged();\n }\n }catch(ArrayIndexOutOfBoundsException e)\n {\n //theres no loading overview\n return;\n }\n\n }", "public void setItem(Item item) {\n\t\tthis.item = item;\n\n\t\tif (item.getDate() == null)\n\t\t\tdateField.setText(DateUtil.format(LocalDate.now()));\n\t\telse\n\t\t\tdateField.setText(DateUtil.format(item.getDate()));\n\n\t\tdateField.setPromptText(\"dd.mm.yyyy\");\n\t\tif (item.getCategory() == null)\n\t\t\tcategoryField.getSelectionModel().select(\"Lebensmittel\");\n\t\telse \n\t\t\tcategoryField.getSelectionModel().select(item.getCategory());\n\t\tuseField.setText(item.getUse());\n\t\tamountField.setText(Double.toString(item.getAmount()).replace(\".\", \",\"));\n\t\tif (item.getDistributionKind() == null)\n\t\t\tdistributionKindField.setText(\"Giro\");\n\t\telse\n\t\t\tdistributionKindField.setText(item.getDistributionKind());\n\n\t\tif (useField.getText() == null) {\n\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tuseField.requestFocus();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "public void setData(Map<E, String> data) {\n\t\tthis.data = data;\n\t}", "public void changeDataSet(List<Movie> items){\n //deleting old movies\n mValues.clear();\n lastClicked = INITIAL_POSITION;\n mValues.addAll(items);\n notifyDataSetChanged();\n }", "void setData (Object newData) { /* package access */ \n\t\tdata = newData;\n\t}", "public void addAll(List<ImageContent> items) {\n _data = items;\n }", "public void InitData() {\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE};\n this.mItemTitleIds = new int[]{R.string.can_dlxdcgz, R.string.can_gybjd, R.string.can_dczjysxgz, R.string.can_zcbjd, R.string.can_djgzzsd, R.string.can_djxtgr, R.string.can_igbt_wdzt, R.string.can_zkbgz, R.string.can_zbzt, R.string.can_cdszzt, R.string.can_dcdc, R.string.can_dlxdcqd, R.string.can_fzdcdl};\n this.mWarn = new CanDataInfo.DT_V80_BMS_WARN();\n }", "public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_rvs_camera, R.string.can_ccaqyxfz};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH};\n this.mPopValueIds[0] = new int[]{R.string.can_hjyxfzxt, R.string.can_dccsyxfzxt};\n this.mCarData = new CanDataInfo.LuxgenOd_SetData();\n }", "private void populateItems (ObservableList<Item> itemList) throws ClassNotFoundException {\n\t\ttblResult.setItems(itemList);\n\t}", "public void setList(List<ListItem> list) {\n this.items = list;\n\n Log.d(\"ITEMs\",items+\"\");\n }", "public void setItemList(String item)\n {\n this.itemLinkedList.add(new Item(item));\n }", "public void setData(List<Event> data) {\n this.data = data;\n }", "public void setData(WeatherItem item) {\n\t\tlayout.setVisibility(VISIBLE);\n\t\tsetBalloonData(item, layout);\n\t}", "public void addDataSet(List<Movie> items){\n mValues.addAll(items);\n notifyDataSetChanged();\n }", "public void setRandomItems(ArrayList<RandomItem> items);", "public void setEditedItem(Object item) {editedItem = item;}", "public void refershData(ArrayList<SquareLiveModel> contents) {\n\t\tlistData = contents;\n\t\tnotifyDataSetChanged();\n\t}", "public void populate() {\n populate(this.mCurItem);\n }", "public void setData(V data){\n\t\tthis.data = data;\n\t}", "protected void putItems() {\n\t\tlevelSetup[0][5].putItem(new Dynamite());\n\t\tlevelSetup[6][6].putItem(new Flint());\n\t\tlevelSetup[6][3].putItem(new ManaPotion());\n\t\tlevelSetup[5][0].putItem(new ManaPotion());\n\t\tlevelSetup[2][1].putItem(new HealthPotion());\n\t\tlevelSetup[3][6].putItem(new HealthPotion());\n\t\tlevelSetup[4][2].putItem(new Spinach());\n\t}", "public void setItem(Item item) throws Exception {\n\t\tfor(int i = 0; i < last; ++i)\n\t\t\tif(list[i].getCode() == item.getCode()) {\n\t\t\t\tlist[i].increment(item.getCount());\n\t\t\t\treturn;\n\t\t\t}\n\t\tif(last < size)\n\t\t\tlist[last++] = item;\n\t\telse\n\t\t\tthrow new Exception(\"list full\");\n\t}", "public void setItemCollection(HashMap<String, Item> copy ){\n \titemCollection.putAll(copy);\r\n }", "@RequestMapping(method=RequestMethod.PUT, value = \"/item\", produces = \"application/json\")\n public void setItems(ArrayList<Item> itemsToSet)\n {\n this.itemRepository.setItems(itemsToSet);\n }", "private void setValues() {\n for (int i = 0; i < name.length; i++) {\n TagViewDetailsModel listModel = new TagViewDetailsModel();\n listModel.setItemImage(image[i]);\n listModel.setItemName(name[i]);\n listModel.setDistance(distance[i]);\n listModel.setTags(tags[i]);\n listModel.setRating(rating[i]);\n savedListModels.add(listModel);\n }\n savedListAdapter = new TagViewDetailsAdapter(TagViewDetailsActivity.this, savedListModels);\n rvTagViewDetails.setAdapter(savedListAdapter);\n }", "@Override\n public void updateItem(P_CK t) {\n \n }", "private void setItems(DataRelationModelDto dto, List<DataRelationModelItemDto> itemDtos) {\n\t\tList<String> dpdNameList = new ArrayList<>();\n\t\tList<String> targetDpdNameList = new ArrayList<>();\n\t\tfor (DataRelationModelItemDto itemDto : itemDtos) {\n\t\t\tdpdNameList.add(itemDto.getDpd().getDpdName());\n\t\t\ttargetDpdNameList.add(itemDto.getTargetDpd().getDpdName());\n\t\t}\n\t\tdto.setDpdNameList(dpdNameList);\n\t\tdto.setTargetDpdNameList(targetDpdNameList);\n\t}" ]
[ "0.78740144", "0.7720645", "0.7329612", "0.7304706", "0.7225539", "0.7155425", "0.71149504", "0.70138943", "0.6968174", "0.6891728", "0.68739337", "0.6849631", "0.6844574", "0.6837697", "0.6821487", "0.68165916", "0.6747048", "0.67453855", "0.67262304", "0.6640031", "0.6637875", "0.6627987", "0.65980893", "0.65980893", "0.65418476", "0.65338326", "0.6512698", "0.6495863", "0.64830184", "0.64743257", "0.646747", "0.64454013", "0.6442001", "0.6438364", "0.6438364", "0.6406369", "0.6385554", "0.63740224", "0.63711107", "0.6348213", "0.6342684", "0.6341324", "0.63413", "0.6333436", "0.63188314", "0.63168645", "0.63138074", "0.6293885", "0.6285599", "0.6282207", "0.6269235", "0.6261383", "0.62498623", "0.62485313", "0.62445664", "0.6241406", "0.62407106", "0.62190807", "0.6215274", "0.62092555", "0.62061733", "0.6200472", "0.6187614", "0.61813", "0.61724895", "0.6163337", "0.6162956", "0.61560297", "0.615144", "0.61500674", "0.6130535", "0.6124801", "0.61171925", "0.6109219", "0.610415", "0.6097444", "0.60960555", "0.6081582", "0.6071675", "0.6060176", "0.6059048", "0.60541683", "0.6054164", "0.6043257", "0.6033717", "0.603296", "0.60289294", "0.6028317", "0.60184336", "0.60095376", "0.6008061", "0.6007623", "0.60054606", "0.59956896", "0.5980036", "0.59728885", "0.59693503", "0.59670657", "0.59588", "0.5956679", "0.5956203" ]
0.0
-1
display a toast with person name on item click
@Override public void onClick(View view) { Intent intent = new Intent(context.getApplicationContext(), UpdateTreeDetails.class); intent.putExtra("treeName",treeNameList.get(position)); intent.putExtra("treeAddress",treeAddressList.get(position)); intent.putExtra("plantDate",plantDateList.get(position)); intent.putExtra("updatedDate",updatedDateList.get(position)); intent.putExtra("updateStatus",updateStatusList.get(position)); intent.putExtra("treeImage",treeImageList.get(position)); intent.putExtra("treeId",treeIdList.get(position)); intent.putExtra("treeRelation",treeRelationList.get(position)); intent.putExtra("treeCount",treeCountList.get(position)); context.startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position,\n long id) {\n Toast.makeText(getApplicationContext(), actorsList.get(position).getName(), Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t\n\t\t\t\tnameoffriend = sp.getItemAtPosition(position).toString();\n\t\t\t\tToast.makeText(getApplicationContext(), nameoffriend, Toast.LENGTH_SHORT).show();\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Selected Text Is...\"+names[arg2]+\":\"+phones[arg2], 5000).show();\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Toast.makeText(Cardio.this,cardios.get(position).getTitle(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(context, \"You Clicked \" + titles.get(position), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Log.i(\"Tag\", myfamily.get(position));\n\n Toast.makeText(MainActivity.this, \"Hello \"+myfamily.get(position), Toast.LENGTH_SHORT).show();\n }", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n \tToast.makeText(this, item.getTitle(), Toast.LENGTH_LONG).show();\n \treturn true;\n }", "@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\tToast.makeText(getBaseContext(), list.get(arg2),\n\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t}", "@Override\n public void onClick(View v) {\n Toast.makeText(context, \"You Clicked \" + result[position], Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tToast.makeText(getActivity(), listAdapter.getItem(position), Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\tString text = listview.getItemAtPosition(position)+\"\";\n\t\t\n\t\tToast.makeText(context, \"position=\"+position+\" text=\"+text, Toast.LENGTH_SHORT).show();\n\t}", "@Override\n public void onItemClick(AdapterView< ? > parent, View view, int position, long id) {\n Intent intent = new Intent(ReadUserList.this, ShowUser.class);\n intent.putExtra(\"NAME-ID\", ((TextView) view).getText());\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Selected Text Is...\"+names[arg2]+\":\"+phones[arg2], 5000).show();\n\t\t\t}", "@Override\n public void onClick(View v) {\n\n String s = v.getTag().toString();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, s, duration);\n toast.show();\n }", "@Override\n public void onClick(View v) {\n\n if (item.getId() != 1) {\n\n name.setText(item.getName());\n\n }\n\n if (item.getId() == 2) {\n\n // name.setText(item.getName());\n\n }\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Intent intent = new Intent(ChatList.this, ChatPage.class);\n intent.putExtra(\"NAME\", myNames.get(position));\n intent.putExtra(\"UID\", userUID.get(position));\n intent.putExtra(\"MY_NAME\", name);\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1,\n int position, long arg3) {\n Toast.makeText(getApplicationContext(), strs[location][position], Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemClick(AdapterView<?> av, View v, int pos,\n long id)\n {\n Toast.makeText(getActivity(), data.get(pos).get(\"Player\"), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String SlectedCountry = countryName[+position];\n Toast.makeText(getApplicationContext(), SlectedCountry, Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onItemClicked(RecyclerView recyclerView, int position, View v) {\n Toast.makeText(getApplicationContext(), znamkyItemList.get(position).popis, Toast.LENGTH_LONG).show();\n\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tString text=listview.getItemAtPosition(position)+\"\";\n\t\tToast tipsToast=Toast.makeText(this, \"position+\"+position+\"text=\"+text, Toast.LENGTH_SHORT);\n\t\ttipsToast.show();\n\t}", "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tToast.makeText(this, String.format(\"Clicked on item #%d with text %s\",\n\t\t\tposition, mAdapter.getItem(position)), Toast.LENGTH_SHORT).show();\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String names = mgetlist.get(position).getUsername();\n int userids = mgetlist.get(position).getId();\n String picurl = mgetlist.get(position).getPicture();\n Log.d(TAG, \"onItemClick: names of respected list items\"+names);\n startActivity(new Intent(view.getContext(), SingleChat.class).putExtra(\"name\",names).putExtra(\"userid\",userids).putExtra(\"picture\",picurl));\n }", "@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tSystem.out.println(userName);\n\t\t\t}", "@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\tToast.makeText(MainActivity.this, \"我被点击了\", 0).show();\n\t\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> av, View v, int pos,\n long id) {\n\n Toast.makeText(getActivity(), data.get(pos).get(\"Player\"), Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String SlectedCountry = countryNameThree[+position];\n Toast.makeText(getApplicationContext(), SlectedCountry, Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1,\n int position, long arg3) {\n Toast.makeText(getApplicationContext(), strs[location][position], Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String message = String.valueOf(guardiansName.get(position));\n clickedGuardian = new String[]\n {String.valueOf(guardiansPhone.get(position)),\n String.valueOf(guardiansName.get(position)),};\n snackbar = Snackbar.make(getActivity().findViewById(R.id.myCoordinatorLayout), message, Snackbar.LENGTH_LONG);\n snackbar.setAction(R.string.Update, new UpdateGuardian());\n snackbar.show();\n }", "public void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t((TextView) view).getText() + \" is an awesome prof!\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Toast.makeText(this, \"ITEM CLICKED\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n Toast.makeText(getActivity(), \"You Clicked \"+position+\" item. Wait For Coming Functions\",\n Toast.LENGTH_LONG).show();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n TextView channelTitle = (TextView) view.findViewById(R.id.channel_name);\n Toast.makeText(getActivity(), getString(R.string.click_on_channel_message)\n + \" \" + channelTitle.getText() + \"! :-)\", Toast.LENGTH_LONG).show();\n }", "public void onClick(View view){\n\n String name = mNameField.getText().toString();\n Toast.makeText(this,\"Hello There\"+name, Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(mContext, \"You Clicked \" + position, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n clickListener.onItemClick(getAdapterPosition(), v, st_name.getText().toString(),\n st_phone.getText().toString());\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n\t\tToast.makeText(this, \"Selected=\"+data[position], Toast.LENGTH_SHORT).show();\n\t}", "@Override\n public void onClick(View v) {\n Toast.makeText(ct,\" Blood Group \"+bloodgroup[position], Toast.LENGTH_LONG).show();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String SlectedCountry = countryNameTwo[+position];\n Toast.makeText(getApplicationContext(), SlectedCountry, Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n TextView text = (TextView) view;\n //Saves the name of the recipient\n chosenName = (String) text.getText();\n //Checks if the button should be enabled\n checkIfEnable();\n }", "public void onItemClick(AdapterView<?> parent, View view, int position, long id){\n Aliment al= (Aliment) parent.getItemAtPosition(position);\r\n Toast.makeText(getApplicationContext(),\r\n \"Nom aliment : \"+al.getNom(), Toast.LENGTH_LONG).show();\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(context, \"You Clicked \"+imageId[position], Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\n public void onItemClick(View view, int position) {\n Toast.makeText(getContext(), \"You clicked \" + adapter.getItem(position) + \" on row number \" + position, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemClick(AdapterView<?> a, View v, int position, long id) {\n Toast.makeText(getApplicationContext(), \"Selected :\" + \" \" + listData.get(position), Toast.LENGTH_LONG).show();\n }", "public void onItemClick(AdapterView<?> parent, View view, int position, long id){\n Aliment al= (Aliment) parent.getItemAtPosition(position);\r\n Toast.makeText(getApplicationContext(),\r\n \"Nom aliment : \"+al.getNom(), Toast.LENGTH_LONG).show();\r\n }", "@Override\r\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"个人中心\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t}", "@Override\n public void onClick(View v) {\n \tSystem.out.println(\"ss1ss\");\n //Toast.makeText(ListViewActivity.this, title[mPosition], Toast.LENGTH_SHORT).show();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n Toast.makeText(this, item.getTitle(), Toast.LENGTH_SHORT).show();\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void onCardAppeared(View view, int position) {\n TextView tv = view.findViewById(R.id.item_name);\n Log.d(TAG, \"onCardAppeared: \" + position + \", name: \" + tv.getText());\n }", "@Override\r\n public void onItemClick(AdapterView<?> parent, View view,\r\n int position, long id) {\n String Slecteditem = itemname[+position];\r\n Toast.makeText(getApplicationContext(), Slecteditem, Toast.LENGTH_SHORT).show();\r\n startActivity(new Intent(unlogin.this, product.class));\r\n }", "@Override\n\t\t\tpublic boolean onItemLongClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Selected Text Is...\"+names[arg2]+\":\"+phones[arg2], 5000).show();\n\t\t\t\treturn true;\n\t\t\t}", "public void onItemClick(AdapterView arg0, View arg1, int arg2, long arg3) {\n\t \tgroupID = messages.get(arg2).getid();\n\t \tselfriend.setText(messages.get(arg2).getname());\n\t popupWindow.dismiss();\n\t \t//myfriends.setText(messages.get(arg2).getname());\n\t // popupWindow.dismiss(); \n\t // popupWindow = null; \n\t }", "public void showToast(Boolean usernameTaken) {\n String action = \"\";\n if (usernameTaken) {\n action = \"Username is already taken\";\n } else {\n action = \"An error has occurred. Please try again.\";\n }\n Toast t = Toast.makeText(this, action,\n Toast.LENGTH_SHORT);\n t.setGravity(Gravity.TOP, Gravity.CENTER, 150);\n t.show();\n }", "@Override\n\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\t\tlong id) {\n\t\t\t\n\t\t\tIntent i= new Intent(FriendlistClass.this,ListviewAct.class);\n\t\t\ti.putExtra(\"name\", App.friendusername.get(position));\n\t\t\tstartActivity(i);\n\t\t\t\n\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n /*AdapterView ? represent the generic view it can be listview,gridview etc.\n parent is same as muListView which is tabbed\n the view which is actually tabbed on list actually its represent row\n position N id is the same which is tabbed the order number\n\n *\n */\n\n Log.i(\"Person Tabbed\", myFamily.get(position));\n Toast.makeText(getApplicationContext(),\"Hello \" + myFamily.get(position),Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onItemClick(AdapterView<?> adapter, View view, int position, long id) {\n cursor.moveToPosition(position);\n final String name = cursor.getString(NAME_COLUMN);\n final CharSequence phoneNumber = cursor.getString(PHONE_NUMBER_COLUMN);\n \n // Display a dialog to call or text the contact\n new AlertDialog.Builder(this)\n .setMessage(\"Would you like to text or call \" + name + \n \" (\" + phoneNumber + \") \" + \" ?\")\n .setPositiveButton(\"Call\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n makeCall(phoneNumber);\n }\n })\n .setNeutralButton(\"Text\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n makeText(phoneNumber);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n })\n .show();\n }", "@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n City item = (City) parent.getItemAtPosition(position);\r\n Toast.makeText(MainActivity.this, \"\"+item.getName(), Toast.LENGTH_SHORT).show();\r\n\r\n Intent i = new Intent (MainActivity.this, DistrictActivity.class);\r\n i.putExtra(\"city_name\", item.getName());\r\n startActivity(i);\r\n }", "private void giveFeedbackonitemClick() {\n ListView list = (ListView)findViewById(R.id.listView_data);\n //setting onclick listener to listen if any row is clicked\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n TextView tv = (TextView) view;\n String message = \"You clicked \"+ position + \"which is \" + tv.getText().toString();\n Toast.makeText(MainActivity.this,message, Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\r\n public void onClick(View view) {\r\n Toast.makeText(context, \"satu\" +list_data.get(getAdapterPosition()), Toast.LENGTH_SHORT).show();\r\n\r\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3)\n\t\t\t{\n\t\t\t\tString str = ((TextView) arg1\n\t\t\t\t\t\t.findViewById(R.id.search_item_name)).getText()\n\t\t\t\t\t\t.toString();\n\t\t\t\tintent.putExtra(\"name\", str);\n\t\t\t\tintent.setClass(SearchView.this.getActivity(),\n\t\t\t\t\t\tDetailInfoActivity.class);\n\t\t\t\tSearchView.this.startActivity(intent);\n\t\t\t}", "public void showToast(View clickedButton) {\n String greetingText = getString(R.string.greeting_text);\n Toast tempMessage\n = Toast.makeText(this, greetingText,\n Toast.LENGTH_SHORT);\n tempMessage.show();\n }", "public MovieInfo onItemClick(View view, int position) {\n //String movieInfoToastTest = \"You clicked movie \" + getItemTitle(position) + \", which is at cell position \" + position;\n return getItem(position);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n if (view.getId()== position){\n Intent intent = new Intent(MainActivity.this, Details.class);\n intent.putExtra(\"name\", \"bangladesh\");\n startActivity(intent);\n }\n }", "@Override\n protected void onListItemClick(ListView l, View v, int position, long id)\n {\n String selection = l.getItemAtPosition(position).toString();\n Toast.makeText(this, selection, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onResponse(String s) {\n Log.d(TAG, \"Form Response: \" + s);\n // create new toast to confirm user about demand generation\n Toast.makeText(context, context.getResources().getString(R.string.demand_generation) + itemName,\n Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Student student = (Student) adapter.getItem(position);\n //Toast.makeText(getActivity(), movie.originalName, Toast.LENGTH_SHORT).show();\n startActivity(new Intent(getApplicationContext(), MultipleFragmentsActivity.class));\n }", "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tString selection = l.getItemAtPosition(position).toString();\n\t\tToast.makeText(this, selection, Toast.LENGTH_LONG).show();\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View v, int position, long id) {\n long current_click=System.currentTimeMillis();\n if((current_click-lastclick)>DOUBLE_CLICK_TIME_DELTA){\n username=getnames(position);\n //eroor in query\n Cursor c=db.getuserData(username);\n if (c.getCount() == 0) {\n showMessage(\"Error\", \"No Data Entry Found\",null,null,null);\n //Toast.makeText(MainActivity.this, \"No Data Entry Found\", Toast.LENGTH_SHORT).show();\n return;\n }\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n // buffer.append(\"id :\" + c.getString(0) + \"\\n\");\n buffer.append(\"Name: \" + c.getString(1) + \"\\n\");\n buffer.append(\"email: \" + c.getString(2) + \"\\n\");\n buffer.append(\"uname: \" + c.getString(3) + \"\\n\\n\");\n\n }\n lastclick=current_click;\n showMessage(\"Friend's Profile\", buffer.toString(),db.getfullname(username),db.getemail(username),username);\n }\n else lastclick=current_click;\n }", "@Override\n\tpublic boolean onContextItemSelected(MenuItem item) {\n\t\t\n\t\tif(item.getTitle()==\"Ahmedabad\")\n\t\t{\n\t\t\tToast.makeText(MainActivity.this, \"Ahmedabad\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t\t\n\t\t}\n\t\t\n\t\tif(item.getTitle()==\"Baroda\")\n\t\t{\n\t\t\tToast.makeText(MainActivity.this, \"Baroda\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t\t\n\t\t}\n\t\t\n\t\tif(item.getTitle()==\"Rajkot\")\n\t\t{\n\t\t\tToast.makeText(MainActivity.this, \"Rajkot\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t\t\n\t\t}\n\t\tif(item.getTitle()==\"Bhavnagar\")\n\t\t{\n\t\t\tToast.makeText(MainActivity.this, \"Bhavnagar\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\treturn super.onContextItemSelected(item);\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(MainActivity.this, MenuActivity.class);\n String name = (String) parent.getItemAtPosition(position);\n intent.putExtra(\"name\", name);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t((MainActivity)getActivity()).showFriend(arg2,friends);\n\t\t\t}", "@Override\n public void onClick(View v) {\n String toastText = \"Hello World\";\n\n // This is how long we want to show the toast\n int duration = Toast.LENGTH_SHORT;\n\n // Get the context\n Context context = getApplicationContext();\n\n // Create the toast\n Toast toast = Toast.makeText(context, toastText, duration);\n\n // Show the toast\n toast.show();\n }", "private void toastmessage(String message){\n Toast.makeText(Accountinfo.this,message,Toast.LENGTH_SHORT).show();\n }", "@Override\r\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n int id_To_Search = arg2 + 1;\r\n String name = (String) arg0.getItemAtPosition(arg2);\r\n\r\n Bundle dataBundle = new Bundle();\r\n dataBundle.putString(\"name\", name);\r\n dataBundle.putInt(\"id\", id_To_Search);\r\n\r\n Intent intent = new Intent(getApplicationContext(),DisplayCreatedRecipes.class);\r\n intent.putExtras(dataBundle);\r\n startActivity(intent);\r\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n itemname = parent.getItemAtPosition(position).toString();\n }", "@Override\n\t\t \t public void onItemClick(AdapterView<?> arg0, View arg1,int position, long arg3) {\n\t\t \t \n\t\t \t Toast.makeText(getApplicationContext(), \"Clicked at Position\"+position, Toast.LENGTH_SHORT).show();\n\t\t \t }", "void onItemClick(Patient patient);", "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\n\t\tif(position != 1) {\n\t\t\ttry{\n\t\t\t\tClass openedClass = Class.forName(\"com.cmpe137.StudentSocial.\" + classes[position]);\n\t\t\t\tIntent openedIntent = new Intent(Menu.this, openedClass);\n\t\t\t\tstartActivity(openedIntent);\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//Create a person object then send it off into the intent\n\t\telse {\n\t\t\tPerson currentUser = new Person(username);\n\t\t\ttry{\n\t\t\t\tClass openedClass = Class.forName(\"com.cmpe137.StudentSocial.\" + classes[position]);\n\t\t\t\tIntent personIntent = new Intent(Menu.this, openedClass);\n\t\t\t\tBundle b = new Bundle();\n\t\t\t\tb.putSerializable(\"name\", currentUser);\n\t\t\t\tpersonIntent.putExtras(b);\n\t\t\t\tstartActivity(personIntent);\n\t\t\t}\n\t\t\tcatch(ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t}\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n Intent intent = new Intent(getContext(), ResultActivity.class);\n String namefood = (String) lv_foodList.getItemAtPosition(position);\n intent.putExtra(\"namefood\", namefood);\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n \n \tfinal Chore chore = (Chore) parent.getItemAtPosition(position);\n \tIntent intent = new Intent(getActivity(), ChoreCardActivity.class);\n \tintent.putExtra(getResources().getString(R.string.card_activity_extra1_name) ,chore);\n \tif(_userName == null){\n \t\tif(ParseUser.getCurrentUser() == null){\n \t\t\ttry {\n \t\t\t\t\t\t\tthrow new UserNotLoggedInException(\"User is not logged in\");\n \t\t\t\t\t\t} catch (UserNotLoggedInException e) {\n \t\t\t\t\t\t\t// TODO Auto-generated catch block\n \t\t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t\t}\n \t\t}\n \t_userName = ParseUser.getCurrentUser().getUsername();\n \t}\n \tintent.putExtra(getResources().getString(R.string.card_activity_extra2_name) , IsThisTheUser(chore.getAssignedTo(), _userName));\n \tstartActivity(intent);\n }", "@Override\n public void onItemClick(View view, String data) {\n }", "public void onClickNom(Personne item, int position);", "private void displayToast(String message) {\n Toast.makeText(OptionActivity.this, message, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemClick(View view, int position) {\n Log.e(\"You Clicked\", mapRecyclerAdapter.getItem(position).getLocationName());\n }", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();\n try {\n // condition for edit\n if (item.getItemId() == R.id.edit) {\n Toast.makeText(this, \"Edit \" + name[info.position], Toast.LENGTH_SHORT).show(); // show toast when context item selected\n }\n // condition for call\n else if (item.getItemId() == R.id.call) {\n Toast.makeText(this, \"Call to \" + name[info.position], Toast.LENGTH_SHORT).show(); // show toast when context item selected\n }\n // condition for sms\n else if (item.getItemId() == R.id.sms) {\n Toast.makeText(this, \"SMS to \" + name[info.position], Toast.LENGTH_SHORT).show(); // show toast when context item selected\n }\n return true;\n } catch (Exception e) {//if false catch exception\n return true;\n }\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n switch (view.getId()) {\n case R.id.id_contact_title:\n LinearLayout ll = (LinearLayout) view.findViewById(R.id.id_contact_title);\n Log.i(TAG, \"Clicked : \" + ll.getTag());\n break;\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n Intent i = new Intent(CRA.this,\n SingleItemView.class);\n // Pass data \"name\" followed by the position\n i.putExtra(\"name\", ob.get(position).getString(\"name\")\n .toString());\n // Open SingleItemView.java Activity\n startActivity(i);\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n Intent intent = new Intent(getActivity(), DetailsActivity.class);\n intent.putExtra(\"info\", mContactList.get(position));\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tItemDetails itemDetails = (ItemDetails) list.getAdapter()\n\t\t\t\t\t\t.getItem(arg2);\n\n\t\t\t\tnew AlertDialog.Builder(FindAProductActivity.this)\n\t\t\t\t\t\t.setTitle(\"Information:\")\n\t\t\t\t\t\t.setMessage(\"\" + itemDetails.getName())\n\t\t\t\t\t\t.setIcon(android.R.drawable.ic_dialog_info)\n\t\t\t\t\t\t.setNeutralButton(\"OK\", null).show();\n\n\t\t\t\t// Bundle bundle = new Bundle();\n\t\t\t\t// bundle.putSerializable(\"ItemDetails\", itemDetails);\n\t\t\t\t// i.putExtras(bundle);\n\t\t\t\t// startActivity(i);\n\t\t\t}", "@Override\n public void onClick(View v) {\n Context context = getApplicationContext();\n // When the Hello button on the app is pressed this line of code will show *Hello, how are you?!\"\n Toast toast = Toast.makeText(context,\n \"Contact details for the college are - \" +\n \"\\n\\t CSN College, Tramore Road, Co.Cork\" +\n \"\\n\\t Phone number: 021-4961020\" +\n \"\\n\\t Email: [email protected]\", Toast.LENGTH_LONG);\n // This is for the toast message to show.\n toast.show();\n\n }", "@Override\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\n\t\t\tcase 1:\n\t\t\t\t//Toast msg = Toast.makeText(orgDetails.this, \"Menu 1\", Toast.LENGTH_LONG);\n\t\t\t\t//msg.show();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}", "@Override\n public void onClick(View v) {\n CustomToast.show(getContext(),\"Service will be available Soon\");\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tToast.makeText(mContext, \"购物\", Toast.LENGTH_SHORT).show();\n\t\t\t}", "void showToast(String value);", "@Override\n public void onItemClick(AdapterView arg0, View arg1, int arg2,\n long arg3) {\n ListView listView = (ListView) arg0;\n getAlertDialog(\"Word\",listView.getItemAtPosition(arg2).toString()).show();\n\n }", "@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Coming soon.\", Toast.LENGTH_SHORT);\n toast.show();\n\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n switch (item.getItemId()) {\n case R.id.new_team:\n // generate new team\n newTeamRequested=true;\n getTeam();\n LayoutInflater inflater = getLayoutInflater();\n\n View layout = inflater.inflate(R.layout.toast, (ViewGroup) findViewById(R.id.toast_layout));\n\n Toast toast = new Toast(getApplicationContext());\n\n toast.setGravity(Gravity.BOTTOM, 0, 0);\n\n toast.setView(layout);\n\n toast.show();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tListAdapter ca = (ListAdapter) arg0\n\t\t\t\t\t\t.getAdapter();\n\t\t\t\tList ls = (List) ca.getItem(arg2);\n\t\t\t\t\n\n\t\t\t\t Intent intent = new Intent(main.this, ProfileActivity.class);\n\t\t\t\t intent.putExtra(\"member_srl\", String.valueOf(ls.getTag()));\n\t\t\t\t\tstartActivity(intent);\n\n\t\t\t}", "private void sendToCatTheater()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Theater'\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n // add friend's data into intent\n Intent Message = new Intent(getBaseContext(), MessagingPage.class);\n Message.putExtra(\"friend_name\", friends.get(i).getUsername());\n Message.putExtra(\"friend_id\", friends.get(i).getId());\n Message.putExtra(\"friend_image\", friends.get(i).getImagePath ());\n startActivity(Message);\n finish();\n }" ]
[ "0.77970254", "0.7404997", "0.7357686", "0.7332293", "0.7181698", "0.71733034", "0.6988026", "0.6970021", "0.69622314", "0.69353986", "0.69174385", "0.6886065", "0.68721557", "0.6858729", "0.6834184", "0.6806614", "0.6774737", "0.6771008", "0.67618704", "0.67592764", "0.6757231", "0.6729138", "0.67237574", "0.6719625", "0.6711416", "0.6708426", "0.6707532", "0.66914046", "0.668285", "0.6681417", "0.6650524", "0.6636201", "0.6635326", "0.66146255", "0.65786195", "0.6569412", "0.6569098", "0.65617806", "0.653233", "0.6525699", "0.6524374", "0.6515279", "0.6510298", "0.64751536", "0.64746857", "0.6456616", "0.64501673", "0.6445431", "0.6444753", "0.6443071", "0.64382267", "0.640941", "0.6407201", "0.63666224", "0.6358029", "0.6343251", "0.6318366", "0.63035476", "0.62967634", "0.62949574", "0.62944996", "0.62820613", "0.627343", "0.626577", "0.6250969", "0.6246902", "0.62433517", "0.6242138", "0.62307227", "0.6217622", "0.6184163", "0.61795837", "0.6178532", "0.616873", "0.6148367", "0.61430085", "0.6136822", "0.61306185", "0.6126086", "0.6122886", "0.6117761", "0.6109985", "0.61020017", "0.60959196", "0.60844743", "0.6078138", "0.6077507", "0.6074362", "0.6070525", "0.60685265", "0.6068311", "0.6062859", "0.6057915", "0.60404176", "0.603936", "0.60388184", "0.6037514", "0.6034951", "0.60301936", "0.6028698", "0.60270363" ]
0.0
-1
Limpa os campos input e atualiza a lista de pressaoArterials cadastrados
private void atualizarTela() { System.out.println("\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela PressaoArterial\n"); pressaoArterial = new PressaoArterial(); listaPressaoArterial = pressaoArterialService.buscarTodos(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void LimpiarCampos() {\n\n txtIdAsignarPer.setText(\"\");\n txtNombreusu.setText(\"\");\n pswConfCont.setText(\"\");\n combPerf.setSelectedItem(\"\");\n pswContra.setText(\"\");\n txtDocumento.setText(\"\");\n }", "private void limpaCampos() {\n txtNome.setText(\"\");\n txtRG.setText(\"\");\n txtFCpf.setText(\"\");\n txtFNascimento.setText(\"\");\n txtEmail.setText(\"\");\n txtFCelular.setText(\"\");\n txtFTelefone.setText(\"\");\n txtRua.setText(\"\");\n txtComplemento.setText(\"\");\n txtFCep.setText(\"\");\n txtBairro.setText(\"\");\n txtCidade.setText(\"\");\n }", "private void limpiarCampos() {\n\t\tthis.campoClave.setText(\"\");\n\t\tthis.campoClaveNueva.setText(\"\");\n\t\tthis.campoClaveRepita.setText(\"\");\n\t}", "private void limpaCampos() {\r\n\t\tnome.setText(\"\");\r\n\t\tsituacao.setSelectedIndex(0);\r\n\t\tidade.setText(\"\");\r\n\t\terroNome.setText(\"\");\r\n\t\terroIdade.setText(\"\");\r\n\t}", "public void LimpaTodosOsCampos(){\n JTextField todosOsCampos[] = todosCampos();\n txtDescricao.setText(null);\n for(int i = 0; i<todosOsCampos.length; i++){\n todosOsCampos[i].setText(null);\n }\n JLabel labels[] = todasLabels();\n for(int i = 0; i<labels.length; i++){\n labels[i].setText(null);\n }\n }", "private void limpiarCampos() {\n campoNombre.setText(\"\");\n campoNumLibro.setText(\"\");\n campoNumPagina.setText(\"\");\n }", "private void LimpiarCampos(){\n \n txtClave.setText(null);\n txtNombre.setText(null);\n txtPaterno.setText(null);\n txtMaterno.setText(null);\n txtTelefono.setText(null);\n txtCorreo.setText(null);\n cbxGenero.setSelectedIndex(0);\n cbxRol.setSelectedIndex(0);\n }", "private void limparCampos() {\n\t\ttxtCidade.setText(\"\");\n\t\tlblId.setText(\"0\");\n\t\tcboEstado.getSelectionModel().select(0);\n\t}", "private void prepareUserFields(String fieldInput) throws AutomicException {\n String[] fields = fieldInput.split(\",\");\n userInputFields = new ArrayList<String>(fields.length);\n uniqueFields = new HashSet<String>(fields.length);\n for (String field : fields) {\n String temp = field.trim();\n if (CommonUtil.checkNotEmpty(temp)) {\n userInputFields.add(temp);\n uniqueFields.add(temp.toLowerCase());\n }\n }\n if (uniqueFields.isEmpty()) {\n throw new AutomicException(String.format(\"Invalid Fields have been provided [%s] \", fieldInput));\n }\n }", "public void limparCampos() {\n\t\tcodigoField.setText(\"\");\n\t\tdescricaoField.setText(\"\");\n\t\tcodigoField.setEditable(true);\n\t\tBorder border = BorderFactory.createLineBorder(Color.RED);\n\t\tcodigoField.setBorder(border);\n\t\tcodigoField.requestFocus();\n\t\tBorder border1 = BorderFactory.createLineBorder(Color.BLACK);\n\t\tdescricaoField.setBorder(border1);\n\t\t\n\t\t\n\t}", "public void limparCamposInput(){\n txtDisciplina.setText(\"\");\n txtAssunto.setText(\"\");\n txtDescricao.setText(\"\");\n imagemEnunciado.setImage(imageDefault);\n imagemResposta.setImage(imageDefault);\n }", "public void limparCampos() {\n\n // Limpa todos formularios.\n textoNome.setText(\"\");\n textoCPF.setText(\"\");\n comboGenero.setSelectedIndex(0);\n textoDataDeNascimento.setText(\"\");\n textoEnderecoLogradouro.setText(\"\");\n textoBairro.setText(\"\");\n textoComplemento.setText(\"\");\n textoNumero.setText(\"\");\n textoEmail.setText(\"\");\n textoTelefone.setText(\"\");\n textoCelular.setText(\"\");\n textoCEP.setText(\"\");\n textoDD_Celular.setText(\"\");\n textoDD_Telefone.setText(\"\");\n Icon imagemPerfil = new ImageIcon(\"src\\\\br\\\\com\\\\Grupo07\\\\Imagens\\\\perfil.jpg\");\n imagemCliente.setIcon(imagemPerfil);\n\n }", "public void limpiarCampos()\n {\n jtfNumero.setText(\"\");\n jtfNombre.setText(\"\");\n jtfSaldo.setText(\"\");\n this.jbEliminar.setEnabled(false);\n }", "private void deshabilitarCamposCrear() {\n txtCodBockFoto.setEnabled(false);\n txtCodBockFoto.setText(\"\");\n\n txtCodPromotor.setEnabled(false);\n txtCodPromotor.setText(\"\");\n txtDNIPromotor.setText(\"\");\n\n //limpiarListaCrear();\n }", "private void vaciarCampos() {\n\t\t// TODO Auto-generated method stub\n\t\ttxtCedula.clear();\n\t\ttxtNombre.clear();\n\t\ttxtApellidos.clear();\n\t\ttxtTelefono.clear();\n\t\ttxtCorreo.clear();\n\t\ttxtDireccion.clear();\n\t\ttxtUsuario.clear();\n\t\ttxtContrasenia.clear();\n\t}", "private void fillInputCombo(){\n//\t\tmyInput.actionPerformed(null);\n//\t\tmyInput.setAction(null);\n\t\tfillingCombo = true;\n\t\tmyInput.removeAllItems();\n\t\tfor(int i=0;i<distinctRules.length;i++){\n\t\t\tif(distinctRules[i][0].equals(currentRule)){\n\t\t\t\tString allValue[] = distinctRules[i][1].split(\",\");\n\t\t\t\tfor(int j=0;j<allValue.length;j++){\n//\t\t\t\t\tmyInput.actionPerformed(null);\n\t\t\t\t\tmyInput.addItem(allValue[j].toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfillingCombo = false;\n\t}", "public void limpiarCampos() {\n jtCargo.setText(\"\");\n jtCiudadNacimiento.setText(\"\");\n jtCorreo.setText(\"\");\n jtDepartamento.setText(\"\");\n jtDireccion.setText(\"\");\n jtDocumento.setText(\"\");\n jtMovil.setText(\"\");\n jtPrimerApellido.setText(\"\");\n jtPrimerNombre.setText(\"\");\n jtProfesion.setText(\"\");\n jtSegundoApellido.setText(\"\");\n jtSegundoNombre.setText(\"\");\n jtTelefono.setText(\"\");\n jtDocumento.setEnabled(true);\n jdFechaContratacion.setEnabled(true);\n jcTipoDocumento.setSelectedIndex(0);\n jcTipoSangre.setSelectedIndex(0);\n jcTipoContrato.setSelectedIndex(0);\n cjFactorRH.setSelectedIndex(0);\n jdFechaNacimiento.setDate(null);\n jdFechaTitulacion.setDate(null);\n jdFechaContratacion.setDate(null);\n\n repaint();\n }", "public void inicializaEntradas(){\n\t\tentrada = TipoMotivoEntradaEnum.getList();\n\t\tentrada.remove(0);\n\t}", "public void limpiarCampos() {\n\t\ttema = new Tema();\n\t\ttemaSeleccionado = new Tema();\n\t\tmultimedia = new Multimedia();\n\t}", "private void limpiarCampos(){\n\ntxtId.setText(\"\");\ntxtCosto.setText(\"\");\ntxtDestino.setText(\"\");\ntxtKilom.setText(\"\");\ntxtMatricula.setText(\"\");\n\n\n\n}", "void fillInputBox() {\n\t\tBox inputs = Box.createVerticalBox();\n\n\t\tfor (int i = 0; i < overviewRule.listOfParametersNeeded.size(); i++) {\n\t\t\tJLabel input = new JLabel(overviewRule.listOfParametersNeeded.get(i));\n\t\t\tinputs.add(input);\n\t\t}\n\n\t\tinputBox.add(inputLabel);\n\n\t\tinputBox.add(inputs);\n\t}", "private void processInputs( Map inputs ) {\n\n\t\tINPUTS = new CommandInputParameter[ inputs.size() ];\n\n\t\tint counter = 0;\n\n\t\tfor( Object attribute : inputs.keySet() ){\n\n\t\t\tINPUTS[ counter ] = new CommandInputParameter();\n\n\t\t\tif ( attribute.equals(\"id\") ) {\n\t\t\t\tINPUTS[counter].setid( (String) inputs.get( attribute ) );\n\t\t\t}\n\n\t\t\tif ( attribute.equals(\"type\") ) {\n\t\t\t\tINPUTS[counter].settype( (String) inputs.get( attribute ) );\n\t\t\t}\n\n\t\t}\n\t}", "public void limpacampos() {\n textFieldMarca.setText(null);\n textFieldModelo.setText(null);\n jtcor.setText(null);\n jfano.setText(null);\n comboBoxCombustivel.setSelectedIndex(-1);\n textFormattedValor.setText(null);\n comboBoxPortas.setSelectedIndex(-1);\n textFieldChassi.setText(null);\n jfplaca.setText(null);\n textFormattedPlaca.setText(null);\n textFieldTipo.setSelectedIndex(-1);\n textFieldStatus.setText(\"Disponível\");\n }", "private void Limpiar() {\n txtEnunciado.setText(\"\");\n txtOpcionNumerica.setText(\"\");\n txtOpcionNominal.setText(\"\");\n controladorAgrePreguntas.limpiarArray();\n x = 0;\n }", "private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }", "public static void limparCampos(JTextComponent... campos) {\n String vazio = \"\";\n for (JTextComponent c : campos) {\n c.setText(vazio);\n }\n }", "public void validar_campos(){\r\n\t\tfor(int i=0;i<fieldNames.length-1;++i) {\r\n\t\t\tif (jtxt[i].getText().length() > 0){\r\n\t\t\t}else{\r\n\t\t\t\tpermetir_alta = 1;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif((CmbPar.getSelectedItem() != null) && (Cmbwp.getSelectedItem() != null) && (CmbComp.getSelectedItem() != null) && (jdc1.getDate() != null) && (textdescripcion.getText().length() > 1) && (textjustificacion.getText().length() > 1)){\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tpermetir_alta = 1;\r\n\t\t}\r\n\t\t\r\n\t}", "protected String inicializarCamposComunes() {\r\n\t\tString listCamposFiltro = \"\";\r\n\r\n\t\tif(getId() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Id\").concat(\", \");\r\n\t\t}\r\n\t\tif(getObservaciones() != null && getObservaciones().length() >0){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Observaciones\").concat(\", \");\r\n\t\t}\r\n\t\tif(getActivo() != null && getActivo().length() > 0){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Activo [\").concat(getActivo()).concat(\"], \");\r\n\t\t}\r\n\t\tif(getFechaBajaDesde() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Fecha Baja Desde\").concat(\", \");\r\n\t\t}\r\n\t\tif(getFechaBajaHasta() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Fecha Baja Hasta\").concat(\", \");\r\n\t\t}\r\n\t\tif(getFechaAltaDesde() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Fecha Alta Desde\").concat(\", \");\r\n\t\t}\r\n\t\tif(getFechaAltaHasta() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Fecha Alta Hasta\").concat(\", \");\r\n\t\t}\r\n\r\n\t\treturn listCamposFiltro;\r\n\t}", "private void populateFields() {\n pedidos = pdao.listaTodos();\n cCliente = new HashSet();\n cEstado = new HashSet();\n cCidade = new HashSet();\n cFornecedor = new HashSet();\n\n for (int i = 0; i < pedidos.size(); i++) {\n cCliente.add(pedidos.get(i).getCliente().getNome());\n cEstado.add(pedidos.get(i).getCliente().getEstado());\n cCidade.add(pedidos.get(i).getCliente().getCidade());\n for (int j = 0; j < pedidos.get(i).getItens().size(); j++) {\n cFornecedor.add(pedidos.get(i).getItens().get(j).getProduto().getFornecedor().getNome());\n }\n }\n\n clientes = new ArrayList<>(cCliente);\n fornecedores = new ArrayList<>(cFornecedor);\n\n Iterator i = cCliente.iterator();\n while (i.hasNext()) {\n jCBCliente.addItem(i.next());\n }\n\n i = null;\n i = cEstado.iterator();\n while (i.hasNext()) {\n jCBEstado.addItem(i.next());\n }\n\n i = null;\n i = cCidade.iterator();\n while (i.hasNext()) {\n jCBCidade.addItem(i.next());\n }\n i = null;\n i = cFornecedor.iterator();\n while (i.hasNext()) {\n jCBFornecedor.addItem(i.next());\n }\n\n }", "private void limparcampos() {\n tfarea.setText(\"\");\n tfbairro.setText(\"\");\n tfcgc.setText(\"\");\n tfemail.setText(\"\");\n tfendereco.setText(\"\");\n tffone.setText(\"\");\n tfincra.setText(\"\");\n tfnomefan.setText(\"\");\n tfnomefan.setText(\"\");\n tfnomefan.setText(\"\");\n tfproprietario.setText(\"\");\n tfrazao.setText(\"\");\n combocidade.setSelectedItem(\"\");\n combounimedida.setSelectedItem(\"\");\n\n }", "private void botaoLimparFormulariosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botaoLimparFormulariosMouseClicked\n\n // Chama funcao para limpar os campos.\n limparCampos();\n\n }", "public void limpaTextFields() {\n tfMatricula.setText(\"\");\n tfNome.setText(\"\");\n tfDataNascimento.setText(\"\");\n tfTelefone.setText(\"\");\n tfSalario.setText(\"\");\n }", "public void limpiarCampos(){\n\n\t\tcampoInicio.setText(\"yyyy-mm-dd\");\n\t\tcampoInicio.setForeground(new Color(111,111,111));\n\t\tcampoFinal.setText(\"yyyy-mm-dd\");\n\t\tcampoFinal.setForeground(new Color(111,111,111));\n\n\t}", "private void limpiarCampos() {\n datoCriterio1.setText(\"\");\n ((DefaultTableModel)this.jTable1.getModel()).setRowCount(0);\n jBConcretarAccion.setEnabled(false);\n jBCancelar.setEnabled(false);\n jLObjetoSeleccionado.setText(\"\");\n this.unObjetoSeleccionado = null;\n }", "private static void cadastroProduto() {\n\n\t\tString nome = Entrada(\"PRODUTO\");\n\t\tdouble PrecoComprado = Double.parseDouble(Entrada(\"VALOR COMPRA\"));\n\t\tdouble precoVenda = Double.parseDouble(Entrada(\"VALOR VENDA\"));\n String informacaoProduto = Entrada(\"INFORMAÇÃO DO PRODUTO\");\n String informacaoTecnicas = Entrada(\"INFORMAÇÕES TÉCNICAS\");\n\n\t\tProduto produto = new Produto(nome, PrecoComprado, precoVenda, informacaoProduto,informacaoTecnicas);\n\n\t\tListaDProduto.add(produto);\n\n\t}", "public void LimpiarCampos(){\n txtNombre.setText(\"\");\n txtCantidad.setText(\"0\");\n txtMora.setText(\"0\");\n txtDescuento.setText(\"0\");\n this.IDactual=0;\n this.modo=\"agregar\";\n }", "public void cargarNotas() {\n\n notas.add(null);\n notas.add(null);\n notas.add(null);\n\n int nota, cont = 0;\n for (int i = 0; i <= 2; i++) {\n\n System.out.println(\"Indique nota \" + (i + 1));\n nota = leer.nextInt();\n notas.set(cont, nota);\n cont++;\n\n }\n\n cont = 0;\n\n }", "private void setFieldsEmpty(){\n nameInput.setText(\"\");\n frontTrackInput.setText(\"\");\n cornerWeightFLInput.setText(\"\");\n cornerWeightRLInput.setText(\"\");\n rearTrackInput.setText(\"\");\n cornerWeightRRInput.setText(\"\");\n cornerWeightFRInput.setText(\"\");\n cogInput.setText(\"\");\n frontRollDistInput.setText(\"\");\n wheelBaseInput.setText(\"\");\n }", "private void validarCampos() {\n }", "private void limpiarCampos() {\n Component[] componentes = this.getContentPane().getComponents();\n \n for (Component componente : componentes) {\n if(componente instanceof JTextField) {\n ((JTextField) componente).setText(\"\");\n }\n }\n }", "private void preencherCampos(){\n if (!TextUtils.isEmpty(usuario.getPhotoUrl())){\n Picasso.with(EditarUsuarioPerfilActivity.this).load(usuario.getPhotoUrl()).transform(new CircleTransform()).into(imgPerfilUser);\n }else{\n Picasso.with(EditarUsuarioPerfilActivity.this).load(R.drawable.ic_empresa_new).transform(new CircleTransform()).into(imgPerfilUser);\n }\n\n\n editNome.setText(usuario.getNome());\n editEmail.setText(usuario.getEmail());\n editrelefoneCel.setText(usuario.getTelefoneCel());\n editTelefoneResidencial.setText(usuario.getTelefoneResidencial());\n textUserEditHabilidades.setText(textUserEditHabilidades.getText().toString());\n editCEP.setText(usuario.getCEP());\n editPais.setText(usuario.getPais());\n editEstado.setText(usuario.getEstado());\n editCidade.setText(usuario.getCidade());\n editBairro.setText(usuario.getBairro());\n editRua.setText(usuario.getRua());\n editNumero.setText(usuario.getNumero());\n editComplemento.setText(usuario.getComplemento());\n }", "private void limpiarCajas(JPasswordField pws, JTextField txtDNI, JTextField txtNombre, JTextField txtApellidos,\n JTextField txtTelef, JTextField txtCorreo, JComboBox cbx, RSDateChooser dt) {\n txtDNI.setText(null);\n pws.setText(null);\n txtNombre.setText(null);\n txtApellidos.setText(null);\n dt.setDatoFecha(new Date());\n txtCorreo.setText(null);\n txtTelef.setText(null);\n mostrarUsuarios(cbx);\n }", "private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}", "protected abstract void resetInputFields();", "private void setPromptFields()\n\t{\n\t\tpromptFields = new JTextField[promptNum];\n\t\tfor(int i = 0; i < promptFields.length; i++)\n\t\t{\n\t\t\tpromptFields[i] = new JTextField(20);\n\t\t}\n\t}", "void onPrepareForSubmit() {\n\t\t// Create the same list as was rendered.\n\t\t// Loop will write its input field values into the list's objects.\n\n\t\tcreatePersonsList();\n\n\t\t// Prepare to take a copy of each field.\n\n\t\trowNum = -1;\n\t\tfirstNameFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t\tlastNameFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t\tregionFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t\tstartDateFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t}", "public void limpiarCamposFormBusqueda() {\n\t}", "public JTextField[] camposCliente(){\n JTextField campos [] = new JTextField[]{txtCliCNPJ, txtCliDDD, \n txtCliDDDTel2, txtCliNFant, txtCliResp,\n txtCliRz, txtCliTel, txtCliTel2};\n \n return campos;\n }", "public void setInputs() {\n\t\tCIVLTable tbl_inputTable = (CIVLTable) getComponentByName(\"tbl_inputTable\");\n\t\tDefaultTableModel inputModel = (DefaultTableModel) tbl_inputTable\n\t\t\t\t.getModel();\n\t\tArrayList<CIVL_Input> inputList = currConfig.getInputs();\n\t\tinputList.clear();\n\t\tGMCSection gmcs = currConfig.getGmcConfig().getAnonymousSection();\n\t\tfor (int j = 0; j < inputModel.getRowCount(); j++) {\n\t\t\tString name = (String) inputModel.getValueAt(j, 0);\n\t\t\tString type = inputModel.getValueAt(j, 1).toString();\n\t\t\tObject value = inputModel.getValueAt(j, 2);\n\t\t\tString init = \"\";\n\n\t\t\tif (inputModel.getValueAt(j, 3) != null) {\n\t\t\t\tinit = inputModel.getValueAt(j, 3).toString();\n\t\t\t}\n\n\t\t\tCIVL_Input input = new CIVL_Input(name, type);\n\t\t\tinput.setValue(value);\n\t\t\tinput.setInitializer(init);\n\t\t\tinputList.add(input);\n\n\t\t\t// Add the inputs to the value map in GMCSection\n\t\t\tif (!value.toString().equals(\"\")) {\n\t\t\t\tgmcs.putMapEntry(CIVLConstants.inputO, input.getName(),\n\t\t\t\t\t\tinput.getValue());\n\t\t\t}\n\t\t}\n\n\t}", "private void setInputParams(InputCommand input) throws InvalidCommand {\n if (input.getParams().length < 2) throw new InvalidCommand(\"Please enter car registration no. followed by color\");\n try {\n carRegNo = input.getParams()[0].toUpperCase();\n carColor = input.getParams()[1].toUpperCase();\n } catch (NumberFormatException e) {\n throw new InvalidCommand(\"Something went wrong.\\nMake sure the command is of the format: 'park KA-01-HH-9999 White'\");\n }\n }", "public void saveInput() \n {\n for (int i = 0; i < 10; i++) \n userInput[i] = textFields[i].getText(); \n }", "public void limpiarCamposCita() {\r\n try {\r\n visitaRealizada = false;\r\n fechaNueva = null;\r\n observacionReasignaCita = \"\";\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".limpiarCamposCita()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public static void criaListaCandidatos() {\n\t\tScanner sc = new Scanner(System.in);\t\n\t\tString id, numCandidatos, nomePessoa, nomeLista, tipoLista;\n\t\tArrayList<Pessoa> listaCandidatos = new ArrayList<>();\n\t\tint check = 0, num, i;\n\t\t\n\t\tSystem.out.println(\"\\nInsira o id da eleicao a qual pretende adicionar uma lista de candidatos:\");\n\t\tid = sc.nextLine();\n\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira numero de elementos (Min. 2):\");\n\t\t\tnumCandidatos = sc.nextLine();\n\t\t\tif(verificarNumeros(numCandidatos)) {\n\t\t\t\tif (Integer.parseInt(numCandidatos) >= 2) {\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO numero so pode conter digitos\");\n\t\t\t}\n\t\t}while(check==0);\n\t\tnum = Integer.parseInt(numCandidatos);\n\t\tcheck = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o nome da lista:\");\n\t\t\tnomeLista = sc.nextLine();\n\t\t\tif(verificarLetras(nomeLista) && nomeLista.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nEm que tipo se insere a lista?\\n(1) Estudantes (2) Funcionarios (3) Docentes\");\n\t\t\ttipoLista = sc.nextLine();\n\t\t\tif(verificarNumeros(tipoLista)) {\n\t\t\t\tif ( (tipoLista.equals(\"1\")) || (tipoLista.equals(\"2\")) || (tipoLista.equals(\"3\")) ) {\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"\\nA opcao so pode conter digitos de 1 a 3\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nA opcao so pode conter digitos\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o nome do presidente:\");\n\t\t\tnomePessoa = sc.nextLine();\n\t\t\tif(verificarLetras(nomePessoa) && nomePessoa.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\tPessoa p = new Pessoa(nomePessoa);\n\t\tlistaCandidatos.add(p);\t\n\t\tnum--;\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o nome do vice-presidente:\");\n\t\t\tnomePessoa = sc.nextLine();\n\t\t\tif(verificarLetras(nomePessoa) && nomePessoa.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\tPessoa novap = new Pessoa(nomePessoa);\n\t\tlistaCandidatos.add(novap);\t\n\t\tnum--;\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tfor (i=0; i<num;i++) {\n\t\t\tdo {\n\t\t\t\tSystem.out.println(\"\\nInsira o nome do elemento seguinte:\");\n\t\t\t\tnomePessoa = sc.nextLine();\n\t\t\t\tif(verificarLetras(nomePessoa) && nomePessoa.length()>0) {\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t\t}\n\t\t\t}while(check==0);\n\t\t\tPessoa novaPessoa = new Pessoa(nomePessoa);\n\t\t\tlistaCandidatos.add(novaPessoa);\n\t\t\tcheck = 0;\n\t\t}\n\t\t\n\t\tString msgServer = \"\";\n\t\t\n\t\tcheck = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tmsgServer = rmiserver.criaLista(id, tipoLista, nomeLista, listaCandidatos);\n\t\t\t\tSystem.out.println(msgServer);\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI alteraFac\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\t}", "private void enviarRequisicaoPalpite() {\n if (servidor.verificarPalpitar(nomeJogador)) {\n String palpite = NomeDialogo.nomeDialogo(null, \"Informe o seu palpite\", \"Digite o seu palpite:\", false);\n if (palpite != null && !servidor.palpitar(nomeJogador, Integer.parseInt(palpite))) {\n JanelaAlerta.janelaAlerta(null, \"Este palpite já foi dado!\", null);\n }\n }\n }", "public static void processInputNames() {\r\n\t\tif (!IniSetup.enterNames.getText().equals(\"\")) {\r\n\t\t\tnames.add((String) IniSetup.enterNames.getText());\r\n\t\t}\r\n\t}", "private void rellenarCampos() {\n\t\tjfad.lbModCurso.setVisible(true);\n\t\tper = modelo.obtenerPeriodo(\n\t\t\t\tInteger.parseInt(jfad.tPeriodos.getValueAt(jfad.tPeriodos.getSelectedRow(), 0).toString()));\n\t\tjfad.dPDiaIniMod.setDate(per.getDia_inicio());\n\t\tjfad.dPDiaFinMod.setDate(per.getDia_fin());\n\t\tjfad.tPHoraInicioMod.setTime(per.getHora_inicio());\n\t\tjfad.tPHoraFinMod.setTime(per.getHora_fin());\n\t\tString intervalo = per.getIntervalo().toString();\n\t\tSystem.out.println(intervalo);\n\t\tint intervalo2 = Integer.parseInt(intervalo.substring(3));\n\t\tjfad.spIntervaloMod.setValue(intervalo2);\n\t\tif (per.getHabilitado())\n\t\t\tjfad.checkHabilitado.setSelected(true);\n\t}", "private void fillMandatoryFields() {\n\n }", "public void clean()\r\n {\r\n this.mostrarVuelta = null;\r\n this.mostrarVueltaValueList = null;\r\n this.mostrarVueltaLabelList = null;\r\n this.titulo = null;\r\n this.tituloValueList = null;\r\n this.tituloLabelList = null;\r\n this.busquedaSimpleAvanzada = null;\r\n this.busquedaSimpleAvanzadaValueList = null;\r\n this.busquedaSimpleAvanzadaLabelList = null;\r\n this.identificadorODE = null;\r\n this.identificadorODEValueList = null;\r\n this.identificadorODELabelList = null;\r\n this.idioma = null;\r\n this.idiomaValueList = null;\r\n this.idiomaLabelList = null;\r\n this.tipoLayoutBuscador = null;\r\n this.tipoLayoutBuscadorValueList = null;\r\n this.tipoLayoutBuscadorLabelList = null;\r\n this.formato = null;\r\n this.formatoValueList = null;\r\n this.formatoLabelList = null;\r\n this.tipoBusqueda = null;\r\n this.tipoBusquedaValueList = null;\r\n this.tipoBusquedaLabelList = null;\r\n }", "private void preparaForm(String opcao) {\n switch(opcao){\n case \"fill\": { preparaFill(); break; }\n case \"novo\": { preparaNovo(); break; }\n case \"alterar\": { preparaAlterar(); break; }\n case \"cancelar\": { preparaCancelar(); break; }\n case \"salvar\": { preparaSalvar(); break; }\n }\n }", "@Override\n\tpublic Value[] getInputValues() {\n\t\treturn null;\n\t}", "public void setar_campos()\n {\n int setar = tblCliNome.getSelectedRow();\n txtCliId.setText(tblCliNome.getModel().getValueAt(setar, 0).toString());\n txtCliNome.setText(tblCliNome.getModel().getValueAt(setar, 1).toString());\n txtCliRua.setText(tblCliNome.getModel().getValueAt(setar, 2).toString());\n txtCliNumero.setText(tblCliNome.getModel().getValueAt(setar, 3).toString());\n txtCliComplemento.setText(tblCliNome.getModel().getValueAt(setar, 4).toString());\n txtCliBairro.setText(tblCliNome.getModel().getValueAt(setar, 5).toString());\n txtCliCidade.setText(tblCliNome.getModel().getValueAt(setar, 6).toString());\n txtCliUf.setText(tblCliNome.getModel().getValueAt(setar, 7).toString());\n txtCliFixo.setText(tblCliNome.getModel().getValueAt(setar, 8).toString());\n txtCliCel.setText(tblCliNome.getModel().getValueAt(setar, 9).toString());\n txtCliMail.setText(tblCliNome.getModel().getValueAt(setar, 10).toString());\n txtCliCep.setText(tblCliNome.getModel().getValueAt(setar, 11).toString());\n \n // A LINHA ABAIXO DESABILITA O BOTÃO ADICIONAR PARA QUE O CADASTRO NÃO SEJA DUPLICADO\n btnAdicionar.setEnabled(true);\n \n }", "public static void main(String[] args) {\n\t\tScanner citire=new Scanner(System.in);\n\t\tArrayList<Integer> lista=new ArrayList<Integer>();\n\t\tint n, val_caut;\n\t\tSystem.out.println(\"Valoarea cautata : \");\n\t\tval_caut=citire.nextInt();\n\t\tSystem.out.println(\"Nr de elemente din lista :\");\n\t\tn=citire.nextInt();\n\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tlista.add(i,citire.nextInt());\n\t\t}\n\t\t\n\t\tSystem.out.println(Cautare(lista,val_caut));\n\t\t\n\n\t}", "public static void main(String[] args) {\n String asNombres[]=new String[TAMA];\r\n //CAPTURAR 5 NNOMBRES \r\n Scanner sCaptu = new Scanner (System.in);\r\n for (int i = 0; i < TAMA; i++) {\r\n System.out.println(\"Tu nombre :\");\r\n asNombres[i]=sCaptu.nextLine();\r\n }\r\n for (String asNombre : asNombres) {\r\n System.out.println(\"Nombre: \" + asNombre);\r\n \r\n }\r\n //CREAR UNA COPIA DEL ARREGLO\r\n /*String asCopia[]=asNombre;//Esto no funciona\r\n asNombre[0]=\"HOLA MUNDO\";\r\n System.out.println(asCopia[0]);*/\r\n \r\n String asCopia[]=new String[TAMA];\r\n for (int i = 0; i < TAMA; i++) {\r\n asCopia[i]=asNombres[i];\r\n \r\n }\r\n asNombres[0]=\"HOLA MUNDO\";\r\n System.out.println(\"Nombre = \" + asNombres[0]);\r\n System.out.println(\"Copia = \" + asCopia[0]);\r\n }", "public void pulisciInput(){\n nomeVarTextField.setText(\"\");\n tipoVarComboBox.setSelectedIndex(-1);\n if(modalita == TRIGGER) triggerComboBox.setSelectedIndex(-1); \n else proceduraComboBox.setSelectedIndex(-1);\n }", "private void cargarAutos() {\n Auto autos[]={\n new Auto(\"Bocho\",\"1994\"),\n new Auto(\"Jetta\",\"1997\"),\n new Auto(\"Challenger\",\"2011\"),\n new Auto(\"Ferrari\",\"2003\")\n };\n for (Auto auto : autos) {\n cboAutos.addItem(auto);\n \n }\n spnIndice.setModel(new SpinnerNumberModel(0, 0, autos.length-1, 1));\n }", "public GestorAtracciones()\n {\n gestor_trabajadores = new GestorTrabajadores();\n atracciones = new ArrayList<>();\n lectura = new Scanner(System.in);\n crearAtracciones();\n calculoTipoAtraccion();\n calculoPersonal();\n }", "private static void addInputs() {\n\t\tinput.put('A',\"All pixels, three LSB\");\n\t\tinput.put('B', \"All pixels, two LSB\");\n\t\tinput.put('C', \"Every even pixel, three LSB\");\n\t\tinput.put('D', \"Every odd pixel, three LSB\");\n\t\tinput.put('E', \"Every pixel, one LSB\");\n\t\tinput.put('F', \"Every even pixel, two LSB\");\n\t\tinput.put('G', \"Every odd pixel, two LSB\");\n\t\tinput.put('H', \"Every third pixel, three LSB\");\n\t\tinput.put('I', \"Every third pixel, two LSB\");\n\t\tinput.put('J', \"Every even pixel, one LSB\");\n\t\tinput.put('K', \"Every odd pixel, one LSB\");\n\t\tinput.put('L', \"Every third pixel, one LSB\");\n\t\tinput.put('M', \"Every prime-numbered pixel, three LSB\");\n\t\tinput.put('N', \"Every prime-numbered pixel, two LSB\");\n\t\tinput.put('O', \"Every prime-numbered pixel, one LSB\");\n\t}", "private void enviarRequisicaoAdicionar() {\n servidor.adicionarPalito(nomeJogador);\n atualizarPalitos();\n }", "public void editarArtista() {\n\t\tArrayList<String> listString = new ArrayList<>();\r\n\t\tArrayList<ArtistaMdl> listArtista = new ArrayList<>();\r\n\t\tString[] possibilities = pAController.getArtista();\r\n\t\tfor (String s : possibilities) {\r\n\t\t\tString text = s.replaceAll(\".*:\", \"\");\r\n\t\t\tlistString.add(text);\r\n\t\t\tif (s.contains(\"---\")) {\r\n\t\t\t\tArtistaMdl artista = new ArtistaMdl();\r\n\t\t\t\tartista.setNome(listString.get(1));\r\n\t\t\t\tlistArtista.add(artista);\r\n\t\t\t\tlistString.clear();\r\n\t\t\t}\r\n\t\t}\r\n\t\tString[] possibilities2 = new String[listArtista.size()];\r\n\t\tfor (int i = 0; i < listArtista.size(); i++) {\r\n\t\t\tpossibilities2[i] = listArtista.get(i).getNome();\r\n\t\t}\r\n\t}", "private void getUserInput() {\n getUserTextInput();\n getUserPhotoChoice();\n getUserRoomChoice();\n getUserBedroomsChoice();\n getUserBathroomsChoice();\n getUserCoownerChoice();\n getUserIsSoldChoice();\n getUserTypeChoice();\n mAmenitiesInput = Utils.getUserAmenitiesChoice(mBinding.chipGroupAmenities.chipSchool,\n mBinding.chipGroupAmenities.chipShop, mBinding.chipGroupAmenities.chipTransport,\n mBinding.chipGroupAmenities.chipGarden);\n }", "public void clean()\r\n {\r\n this.idiomaDestinatario = null;\r\n this.idiomaDestinatarioValueList = null;\r\n this.idiomaDestinatarioLabelList = null;\r\n this.tipoRecurso = null;\r\n this.tipoRecursoValueList = null;\r\n this.tipoRecursoLabelList = null;\r\n this.titulo = null;\r\n this.tituloValueList = null;\r\n this.tituloLabelList = null;\r\n this.usuario = null;\r\n this.usuarioValueList = null;\r\n this.usuarioLabelList = null;\r\n this.arboles = null;\r\n this.arbolesValueList = null;\r\n this.arbolesLabelList = null;\r\n this.identificador = null;\r\n this.identificadorValueList = null;\r\n this.identificadorLabelList = null;\r\n this.edad = null;\r\n this.edadValueList = null;\r\n this.edadLabelList = null;\r\n this.descripcion = null;\r\n this.descripcionValueList = null;\r\n this.descripcionLabelList = null;\r\n this.idioma = null;\r\n this.idiomaValueList = null;\r\n this.idiomaLabelList = null;\r\n this.contexto = null;\r\n this.contextoValueList = null;\r\n this.contextoLabelList = null;\r\n this.procesoCognitivo = null;\r\n this.procesoCognitivoValueList = null;\r\n this.procesoCognitivoLabelList = null;\r\n }", "public void setValues() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor (int count = 0; count < data.size(); count++) {\n\t\t\tSystem.out.println(\"Enter an integer for grade #\" + (count+1) );\n\t\t\tdata.set(scan.nextInt(), count);\n\t\t}\n\t}", "public String[] camposDivididos3(String[] vars){\r\nString[] args=vars;\r\nreturn args;\r\n}", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "public void populateMenuFields(){\n\t\t\t\n\t\t\tif (restaurant.getMenu().getItems().size()!=0)\n\t\t\t{\n\t\t\t\tfor(int i=0;i<restaurant.getMenu().getItems().size();i++)\n\t\t\t\t{\n\t\t\t\t\tlistOfItemNames.add(restaurant.getMenu().getItemAt(i).getItemName());\n\t\t\t\t\tlistOfDescription.add(restaurant.getMenu().getItemAt(i).getItemDescription());\n\t\t\t\t\tlistOfPrice.add(restaurant.getMenu().getItemAt(i).getItemPrice()+\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void getDadosDosCampos2() {\n EditText campoModeloCelular = findViewById(R.id.CampoModeloCelular);\n RadioButton campoNumeroChip1 = findViewById(R.id.radioButtonNumChip1);\n RadioButton campoNumeroChip2 = findViewById(R.id.radioButtonNumChip2);\n EditText numeroDoChip1 = findViewById(R.id.EditTextNumChip1);\n EditText numeroDoChip2 = findViewById(R.id.EditTextNumChip2);\n EditText campoIMEI1 = findViewById(R.id.campoIMEI1);\n EditText campoIMEI2 = findViewById(R.id.campoIMEI2);\n\n //instanciando o celular\n Celular novoCelular = new Celular();\n\n novoCelular.setModelo(campoModeloCelular.getText().toString());\n novoCelular.setChip1(campoNumeroChip1.getText().toString());\n novoCelular.setChip2(campoNumeroChip2.getText().toString());\n novoCelular.setImei1(campoIMEI1.getText().toString());\n novoCelular.setImei2(campoIMEI2.getText().toString());\n\n CelularDAO daoC = new CelularDAO();\n\n CelularDAO.Cel_cadastrado = novoCelular;\n\n UsuarioDAO.user_cadastrado.setCelularP(novoCelular);\n\n UsuarioDAO.dao.inserir(UsuarioDAO.user_cadastrado);\n\n\n\n }", "public void marcarTodos() {\n for (InputCheckbox checkbox : l_campos)\n {\n checkbox.setChecked(false);\n }\n }", "public static void llenarListaProcesados() {\n List<String> lista = Datos.getInstance().getDocumentos();\n if (lista == null) {\n return;\n }\n modelProcesados.clear();\n for (String s : lista) {\n modelProcesados.addElement(s);\n }\n\n }", "private void fillMandatoryFields_custom() {\n\n }", "public void carregarAno() {\n\t\tif (usuario.getOrganizacaoMilitar().toString().equals(\"AMAN\")){\n\t\t\tano.addAll(Arrays.asList(Ano.values()));\n\t\t}\n\t\telse if (usuario.getOrganizacaoMilitar().toString().equals(\"ECEME\")){\n\t\t\tano.addAll(Arrays.asList(Ano.values()));\n\t\t\tano.remove(Ano.TERCEIRO);\n\t\t\tano.remove(Ano.QUARTO);\n\t\t}\n\t\telse{\n\t\t\tcarregarRegistroDoPrimeiroAno();\n\t\t}\n\t}", "@Override\n\tpublic void input() {\n\t\t// TODO Auto-generated method stub\n\t\tSystem.out.println(\"=================\");\n\t\tSystem.out.println(\"매입 매출 등록\");\n\t\tSystem.out.println(\"-----------------\");\n\t\tString pname = null;\n\t\twhile (true) {\n\t\t\tSystem.out.print(\"상품명(QUIET:입력중단)>>\");\n\t\t\tpname = scan.nextLine();\n\t\t\tif (pname.equals(\"QUIET\")) {\n\t\t\t\treturn;\n\t\t\t} else if (pname.equals(\"\")) {\n\t\t\t\tSystem.out.println(\"상품명은 반드시 입력해야합니다\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\tSystem.out.print(\"거래일자(yyyy-mm-dd)\");\n\t\tString date = scan.next();\n\n\t\tSystem.out.print(\"거래처 명 >>\");\n\t\tString dname = scan.next();\n\n\t\tSystem.out.print(\"매입매출구분>>\");\n\t\tString iout = scan.next();\n\n\t\tSystem.out.print(\"수량>>\");\n\t\tInteger qty = scan.nextInt();\n\t\tInteger iprice = this.inputPrice(\"매입\");\n\t\tif (iprice == null) {\n\t\t\treturn;\n\t\t}\n\t\tInteger oprice = this.inputPrice(\"매출\");\n\t\tif (oprice == null) {\n\t\t\treturn;\n\t\t}\n\t\tIolistVO VO = new IolistVO();\n\t\tVO.setPname(pname);\n\t\tVO.setDate(date);\n\t\tVO.setDname(dname);\n\t\tVO.setInout(iout);\n\t\tVO.setIprice(iprice);\n\t\tVO.setOprice(oprice);\n\t\tVO.setQty(qty);\n\t\tiolist.add(VO);\n\t}", "private String[] getFields(){\n String[] fields = new String[entry.get(0).size()];\n\n for (int i = 0; i < entry.get(0).size(); i++){\n fields[i] = spinners[i].getSelectedItem().toString();\n }\n\n return fields;\n }", "public static void IngresoDatos(){\n int IFila=0,ICol=0;\n int INota;\n for(IFila=0;IFila<10;IFila++)\n {\n StrNotas[IFila][0]=JOptionPane.showInputDialog(null, \"Ingrse nombre del alumno:\");\n INota=LlenadoRandom(0,100);\n StrNotas[IFila][1]=Integer.toString(INota);\n if(INota<61)\n StrNotas[IFila][2]=\"Perdio\";\n else\n StrNotas[IFila][2]=\"gano\";\n }\n }", "private void cargaLista() {\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Aclaracion\", \"Aclaracion\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revision\", \"Revision\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revocatoria\", \"Revocatoria\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Subsidiaria\", \"Subsidiaria\"));\n \n }", "public static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\tScanner inInt = new Scanner(System.in);\n\t\t\n\t\t\n\t\tString opcion = \"\";\n\t\tString categoria = \"\";\n\t\tString descripcion = \"\";\n\t\tString beneficio = \"\";\n\t\tString nombreABuscar = \"\";\n\t\tint posicion = 0;\n\t\tString nombre = \"\";\n\t\t\n\t\tPoliza listaPoliza[] = new Poliza[50];\n\t\t\n\t\n\t\tdo {\n\t\t\tSystem.out.println(\"Elija una Opcion: \");\n\t\t\tSystem.out.println(\"1. Ingresar Poliza \");\n\t\t\tSystem.out.println(\"2. Buscar Poliza \");\n\t\t\tSystem.out.println(\"3. SALIR \");\n\t\t\topcion = in.nextLine();\n\n\t\t\tswitch (opcion) {\n\n\t\t\tcase \"1\":\n\t\t\t\tSystem.out.println(\"****************************\");\n\t\t\t\tSystem.out.println(\"Ingresar Nombre: \");\n\t\t\t\tnombre = in.nextLine();\n\t\t\t\tSystem.out.println(\"Ingrese la Categoria: \");\n\t\t\t\tSystem.out.println(\"1. Economico\");\n\t\t\t\tSystem.out.println(\"2. DE Vida\");\n\t\t\t\tcategoria = in.nextLine();\n\t\t\t\tif (categoria.equals(\"1\")) {\n\t\t\t\t\tSystem.out.println(\"Ingrese Codigo de Descuento: \");\n\t\t\t\t\tString descuento = in.next();\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Ingrese Codigo de Salud: \");\n\t\t\t\t\tString codigo = in.next();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"3. Ingrese descripcion: \");\n\t\t\t\tdescripcion = in.next();\n\t\t\t\tSystem.out.println(\"4. Ingresar el beneficio: \");\n\t\t\t\tbeneficio = in.nextLine();\n\t\t\t\tSystem.out.println(\"****************************\");\n\n\t\t\t\tPoliza poliza1 = new Poliza(\"nombre=\" + nombre + \", categoria=\" + categoria + \", descripcion=\"\n\t\t\t\t\t\t+ descripcion + \", beneficio=\" + beneficio);\n\t\t\t\tpoliza1.setNombre(nombre);\n\t\t\t\tpoliza1.setCategoria(categoria);\n\t\t\t\tpoliza1.setDescripcion(descripcion);\n\t\t\t\tpoliza1.setBeneficio(beneficio);\n\n\t\t\t\tlistaPoliza[posicion] = poliza1;\n\t\t\t\tposicion++;\n\t\t\t\tSystem.out.println(Arrays.toString(listaPoliza));\n\t\t\t\tSystem.out.println(\"La informacion ha sido guardada exitosamente\");\n\t\t\t\tbreak;\n\n\t\t\tcase \"2\":\n\t\t\t\tSystem.out.println(\"****************************\");\n\t\t\t\tSystem.out.println(\"Ingresar el nombre: \");\n\t\t\t\tnombreABuscar = in.nextLine();\n\t\t\t\tfor (int i = 0; i<50; i++) {\n\t\t\t\t\tPoliza poliza = listaPoliza[i];\n\t\t\t\t\t\n\t\t\t\t\tnombreABuscar.equals(nombre);\n\t\t\t\t\t\n\t\t\t\tboolean resultado = poliza.contains(nombreABuscar);\n\t\t\t\tSystem.out.println(\"Poliza Encontrada: \" + Arrays.toString(listaPoliza));\n\t\t\t\t\n//\t\t\t\t\tif(nombreABuscar.equals(listaPoliza)){\n//\t\t\t\t\t\tSystem.out.println(\"Poliza Encontrada: \");\n//\t\t\t\t\t\tSystem.out.println(Arrays.toString(listaPoliza));\n//\t\t\t\t\n//\t\t\t\t\t\t}else {\n//\t\t\t\t\t\t\tSystem.out.println(\"Nombre no encontrado\");\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t}while(!opcion.equals(\"3\"));\n\t\tSystem.out.println(\"Usted ha salido del sistema\");\n\t\tSystem.out.println(\"BUEN DIA\");\n\t\t\n\t\t}", "private void buildFields() {\r\n buildField(txtPizzaName, GUIResource.getLabel(DIALOG, NAME_PIZZA), 0);\r\n buildField(txtCustomerName, GUIResource.getLabel(DIALOG, NAME_CUSTOMER), 1);\r\n buildField(txtPhone, GUIResource.getLabel(DIALOG, PHONE), 2);\r\n buildField(txtEmail, GUIResource.getLabel(DIALOG, EMAIL), 3);\r\n }", "public void setar_campos() {\n int setar = tblEmpresas.getSelectedRow();\n txtEmpId.setText(tblEmpresas.getModel().getValueAt(setar, 0).toString());\n txtEmpNome.setText(tblEmpresas.getModel().getValueAt(setar, 1).toString());\n txtEmpCNPJ.setText(tblEmpresas.getModel().getValueAt(setar, 2).toString());\n txtEmpEnd.setText(tblEmpresas.getModel().getValueAt(setar, 3).toString());\n txtEmpTel.setText(tblEmpresas.getModel().getValueAt(setar, 4).toString());\n txtEmpEmail.setText(tblEmpresas.getModel().getValueAt(setar, 5).toString());\n\n // a linha abaixo desabilita o botao add\n btnAdicionar.setEnabled(false);\n }", "public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tIDISFICHA=\"\";\n\t\tNOTAS=\"\";\n\t\tANOTACIONES=\"\";\n\t\tNOTAS_EJERCICIOS=\"\";\n\t}", "public void prepararDados() {\n\t\tatribuiPrimeiroAnoCasoAnoEstejaNulo();\n\t\t\n\t\tsalvarOuAtualizar(alunosMilitarPraca);\n\t\tsalvarOuAtualizar(alunosMilitarOficial);\n\t\t\n\t\tinit();\n\t\thabilitaBotao=false;\n\t}", "public Object[] getInitArgs(String[] input){\n Object result[] = new Object[input.length];\n for (int i = 0; i < input.length; i++){\n if (isNumeric(input[i])){\n result[i] = Integer.parseInt(input[i]);\n }else{\n result[i] = input[i];\n }\n }\n return result;\n }", "public void DesativaCamposCliente(){\n JTextField[] campos = camposCliente();\n \n for(int i = 0; i<campos.length; i++){\n campos[i].setEnabled(false);\n }\n \n \n }", "List<String> getListInput(String fieldName);", "private void inicializaValores(){\n /**\n * Reinicia los valores de las variables.\n */\n ce.setVariables();\n valorA.setText(null);\n valorB.setText(null);\n valorC.setText(null);\n x1.setText(null);\n x2.setText(null);\n \n }", "private void initializeData() {\n ListaOfertas.removeAll(ListaOfertas);\n for(Articulo listaJuegos: ArticuloRepository.getListArticulo()){\n if(listaJuegos.getOferta().contains(\"S\")){\n listaJuegos.setValorDescuento(String.valueOf(listaJuegos.getPrecioArticulo()-(listaJuegos.getPrecioArticulo()*listaJuegos.getPorcentajeDescuento()/100)));\n ListaOfertas.add(listaJuegos);\n }\n\n }\n }", "public void limpar() {\n\t\talunosMilitarPraca.setId(null);\n\t\talunosMilitarPraca.setMasculino(null);\n\t\talunosMilitarPraca.setFeminino(null);\n\t\t\n\t\talunosMilitarOficial.setId(null);\n\t\talunosMilitarOficial.setMasculino(null);\n\t\talunosMilitarOficial.setFeminino(null);\n\t}", "public void pesquisarArtista() {\n\t\t\r\n\t\tpAController = new ArtistaCtrl();\r\n\t\tObject[] possibilities = pAController.getArtista();\r\n\t\tString s = (String) JOptionPane.showInputDialog(frmAcervo, \"Escolha o artista:\\n\", \"Pesquisar o Artista\",\r\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE, null, possibilities, possibilities[0]);\r\n\t\tif (s != null && s.length() > 0) {\r\n\t\t\tnomeArtista.setText(s);\r\n\t\t\tartistaNome = s;\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}", "public static void main(String[] args) {\n Locale.setDefault(Locale.US);\n Scanner sc = new Scanner(System.in);\n \n System.out.println(\"Entre com total de quartos\"); \n int n = sc.nextInt();\n String nome;\n String email;\n Integer quarto;\n \n aluguel[] vect = new aluguel[n];\n \n for (int i=0; i<3; i++) { \n System.out.println(\"\"); \n System.out.println(\"Entre com os dados da locatario: Nome, e-mail e número do quarto:\");\n System.out.println(\"\");\n System.out.println(\"Nome:\");\n \n nome = sc.next();\n System.out.println(\"\");\n System.out.println(\"E-mail:\"); \n email = sc.next();\n System.out.println(\"\");\n System.out.println(\"Quarto:\");\n\n quarto = sc.nextInt();\n \n vect[quarto] = new aluguel(nome,email,quarto);\n }\n \n System.out.println(\"\");\n System.out.println(\"Quartos ocupados:\");\n System.out.println(\"\");\n for (int i=0; i<vect.length; i++) {\n\t \n\t if (vect[i] != null) {\n\t\t System.out.println(\"\");\n\t\t System.out.println(Integer.toString(i)+\" - \" + vect[i].getNome()+\", \"+vect[i].getEmail());\n\t\t \n\t }\n }\n sc.close();\t\t\n\t}", "private void populateForm() {\n Part selectedPart = (Part) PassableData.getPartData();\n partPrice.setText(String.valueOf(selectedPart.getPrice()));\n partName.setText(selectedPart.getName());\n inventoryCount.setText(String.valueOf(selectedPart.getStock()));\n partId.setText(String.valueOf(selectedPart.getId()));\n maximumInventory.setText(String.valueOf(selectedPart.getMax()));\n minimumInventory.setText(String.valueOf(selectedPart.getMin()));\n\n if (PassableData.isOutsourced()) {\n Outsourced part = (Outsourced) selectedPart;\n variableTextField.setText(part.getCompanyName());\n outsourced.setSelected(true);\n\n } else if (!PassableData.isOutsourced()) {\n InHouse part = (InHouse) selectedPart;\n variableTextField.setText(String.valueOf(part.getMachineId()));\n inHouse.setSelected(true);\n }\n\n\n }", "public void limpiar() {\r\n\t\t\t\tid.setText(\"\");\r\n\t\t\t\ttitulo.setText(\"\");\r\n\t\t\t\tdirector.setText(\"\");\r\n\t\t\t\tidCliente.setText(\"\");\r\n\t\t\t}", "private void recogerDatos() {\n\t\ttry {\n\t\t\tusuSelecc.setId(etId.getText().toString());\n\t\t\tusuSelecc.setName(etNombre.getText().toString());\n\t\t\tusuSelecc.setFirstName(etPApellido.getText().toString());\n\t\t\tusuSelecc.setLastName(etSApellido.getText().toString());\n\t\t\tusuSelecc.setEmail(etCorreo.getText().toString());\n\t\t\tusuSelecc.setCustomFields(etAuth.getText().toString());\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n\t\t\tmostrarException(e.getMessage());\n\t\t}\n\t}" ]
[ "0.6698045", "0.65128106", "0.6432771", "0.6424166", "0.64070565", "0.63730145", "0.62359303", "0.61982286", "0.6160783", "0.60720086", "0.59877735", "0.5961505", "0.5948339", "0.59116757", "0.5843703", "0.58249", "0.580689", "0.5743765", "0.5727059", "0.57146", "0.5669178", "0.56359357", "0.5604876", "0.55653703", "0.5531099", "0.5525741", "0.55245507", "0.5516263", "0.55073065", "0.54975325", "0.54737025", "0.54696137", "0.54616195", "0.5452896", "0.5439993", "0.5439788", "0.54015046", "0.53974825", "0.5392159", "0.53836745", "0.53824174", "0.5374611", "0.5371163", "0.5363394", "0.53582054", "0.53551966", "0.53519404", "0.5335511", "0.533493", "0.53280604", "0.5323736", "0.5303351", "0.5283317", "0.528246", "0.52673763", "0.5263089", "0.5255416", "0.52511185", "0.5248618", "0.5231739", "0.52132535", "0.52018404", "0.5196127", "0.51914835", "0.5179606", "0.5172834", "0.5162457", "0.5161462", "0.5150025", "0.5121046", "0.5117377", "0.51168245", "0.51112586", "0.51013327", "0.51006746", "0.50888", "0.5078099", "0.5074522", "0.50686806", "0.50673246", "0.50594264", "0.5050388", "0.50478804", "0.50448465", "0.50277674", "0.502714", "0.50188893", "0.5015485", "0.5013088", "0.50094354", "0.5008189", "0.4995898", "0.49952844", "0.49902582", "0.49894458", "0.49754518", "0.4972505", "0.49712187", "0.49651867", "0.495576", "0.49473786" ]
0.0
-1
Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object. Returns the converted object.
@Override public PvCard read(JsonReader in) throws IOException { try { return readPvCard(in); //or // return readPvCardViaTypeToken(in); // getting a PvCard object , use {@Link TypeToken} } finally { in.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object readJSON() throws JSONException\n {\n switch(read(3))\n {\n case zipObject:\n return readObject();\n case zipArrayString:\n return readArray(true);\n case zipArrayValue:\n return readArray(false);\n case zipEmptyObject:\n return new JSONObject();\n case zipEmptyArray:\n return new JSONArray();\n case zipTrue:\n return Boolean.TRUE;\n case zipFalse:\n return Boolean.FALSE;\n default:\n return JSONObject.NULL;\n }\n }", "protected static Object getObjectFromValue(Value value)\n {\n switch (value.getDataType())\n {\n case Boolean:\n return value.getBoolean();\n case Integer:\n return value.getInteger();\n case Long:\n return value.getLong();\n case Double:\n return value.getDouble();\n default:\n return value.getString();\n }\n }", "public <V> V readValue(Reader reader, Type valueType) throws JsonException {\n try (JsonReader jsonReader = Json.createReader(reader)) {\n return toJavaObject(jsonReader.readValue(), valueType);\n } catch (JsonException e) {\n throw e;\n } catch (Exception e) {\n throw new JsonException(\"Unable to read value from json\", e);\n }\n }", "T fromJson(Object source);", "public <V> V readValue(byte[] bytes, Type valueType) throws JsonException {\n try (ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes);\n JsonReader jsonReader = Json.createReader(inputStream)) {\n return toJavaObject(jsonReader.readValue(), valueType);\n } catch (JsonException e) {\n throw e;\n } catch (Exception e) {\n throw new JsonException(\"Unable to read value from json\", e);\n }\n }", "public native Object parse( Object json );", "ValueType getJsonValueType();", "public Object parseJSONVal(Object val) {\n\t\tif(!(val instanceof JSONObject) && !(val instanceof JSONArray))\n\t\t{\n\t\t\tif(JSONObject.NULL.equals(val))\n\t\t\t\tval = null;\n\t\t}\n\t\t\n\t\treturn val;\n\t}", "public @NotNull T read(@NotNull final JsonObject object) throws JsonException;", "Object decodeObject(Object value);", "private <T> T getObjectFromJsonObject(JSONObject j, Class<T> clazz) throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n T t = null;\n t = mapper.readValue(j.toString(), clazz);\n\n return t;\n }", "@SuppressWarnings(\"unchecked\")\n public <V> V toJavaObject(JsonValue jsonValue, Type valueType) {\n Objects.requireNonNull(jsonValue);\n Objects.requireNonNull(valueType);\n if (valueType instanceof Class && JsonValue.class.isAssignableFrom((Class<?>) valueType)) {\n return (V) jsonValue;\n }\n Map.Entry<Class<?>, Class<?>> typeArguments = getTypeArguments(valueType);\n return toJavaObject(jsonValue, (Class<V>) typeArguments.getValue(), typeArguments.getKey());\n }", "private static Object toJavaObject(Value value) throws RepositoryException {\n switch (value.getType()) {\n case PropertyType.DECIMAL:\n return value.getDecimal();\n case PropertyType.BINARY:\n return new LazyInputStream(value);\n case PropertyType.BOOLEAN:\n return value.getBoolean();\n case PropertyType.DATE:\n return value.getDate();\n case PropertyType.DOUBLE:\n return value.getDouble();\n case PropertyType.LONG:\n return value.getLong();\n case PropertyType.NAME: // fall through\n case PropertyType.PATH: // fall through\n case PropertyType.REFERENCE: // fall through\n case PropertyType.STRING: // fall through\n case PropertyType.UNDEFINED: // not actually expected\n default: // not actually expected\n return value.getString();\n }\n }", "public <T> T getObjectValue(Object object, Class<T> valueType) {\n\t\tlong time = System.currentTimeMillis();\n\t\ttry {\n\t\t\tif (object == null) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn mapper.convertValue(object, valueType);\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"Error getting object from the given json: \", ex);\n\t\t} finally {\n\t\t\tlogger.debug(\"Got object from JSON in \" + (System.currentTimeMillis() - time) + \" ms.\");\n\t\t}\n\t\treturn null;\n\t}", "Object readValue();", "public static JCardValue single(Object value) {\n\t\treturn new JCardValue(new JsonValue(value));\n\t}", "private static Object valueFromBytes(ByteBuffer bytes) throws JSONException{\n\t\tbyte type = bytes.get();\n\t\t//System.out.println(\"From value: \" + new Integer(type).toString());\n\t\tswitch(type){\n\t\tcase MAP_INDICATOR:\n\t\t\t//System.out.println(\"MAP!\");\n\t\t\treturn mapFromBytes(bytes);\n\t\tcase ARRAY_INDICATOR:\n\t\t\treturn arrayFromBytes(bytes);\n\t\tcase STRING_INDICATOR:\n\t\t\t//System.out.println(\"STRING!\");\n\t\t\tint length = bytes.getInt();\n\t\t\tbyte[] stringBytes = new byte[length];\n\t\t\tbytes.get(stringBytes, 0, length);\n\t\t\treturn new String(stringBytes);\n\t\tcase INTEGER_INDICATOR:\n\t\t\treturn bytes.getInt();\n\t\tcase LONG_INDICATOR:\n\t\t\treturn bytes.getLong();\n\t\tcase DOUBLE_INDICATOR:\n\t\t\treturn bytes.getDouble();\n\t\tcase FLOAT_INDICATOR:\n\t\t\treturn bytes.getFloat();\n\t\tcase BOOLEAN_INDICATOR:\n\t\t\treturn bytes.get() == 1 ? 1: 0;\n\t\tdefault:\n\t\t\tthrow new JSONException(\"Tried to decode unknown type from byte array!\");\n\t\t}\n\t\t\n\t\t\t\n\t\t\t\n\t}", "<T> T parseToObject(Object json, Class<T> classObject);", "public <T> T toObject(Class<T> c) {\n if (JsonSerializable.class.isAssignableFrom(c) || String.class.isAssignableFrom(c)\n || Number.class.isAssignableFrom(c) || Boolean.class.isAssignableFrom(c)) {\n throw new IllegalArgumentException(\"c can only be a POJO class or JSONObject\");\n }\n if (JSONObject.class.isAssignableFrom(c)) {\n // JSONObject\n if (JSONObject.class != c) {\n throw new IllegalArgumentException(\"We support JSONObject but not its sub-classes.\");\n }\n return c.cast(this.propertyBag);\n } else {\n // POJO\n JsonSerializable.checkForValidPOJO(c);\n try {\n return this.getMapper().readValue(this.toJson(), c);\n } catch (IOException e) {\n throw new IllegalStateException(\"Failed to get POJO.\", e);\n }\n }\n }", "Object getConvertedValue() throws ConversionException;", "<T> T fromJson(String source, JavaType type);", "public T read(JsonReader in) throws IOException {\n\t return null;\n\t }", "private static <T> T getObjectFromJson(JsonNode dataJson) {\n Object object=null;\n if(!dataJson.has(CLASS_FIELD)) {\n return null;\n }\n /** Determine class of object and return with cast*/\n String classField=dataJson.get(CLASS_FIELD).asText();\n\n /** Lists -> All lists are converted into ArrayLists*/\n if(classField.startsWith(LIST_CLASS)) {\n try {\n String[] listType=classField.split(SEPERATOR);\n if(listType.length<2) {\n return (T) new ArrayList<>();\n }\n Class type=Class.forName(listType[1]);\n String json=dataJson.get(DATA_FIELD).toString();\n List<Object> list=new ArrayList<>();\n ArrayNode array=(ArrayNode) mapper.readTree(json);\n for(JsonNode item : array) {\n Object o=mapper.readValue(item.toString(), type);\n list.add(o);\n }\n return (T) list;\n }\n catch(JsonProcessingException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n }\n /** Single objects*/\n else {\n Class type=null;\n try {\n type=Class.forName(classField);\n /** Read primitive types (String,Integer,...)*/\n if(dataJson.has(PRIMITIVE_FIELD)) {\n object=mapper.readValue(dataJson.get(PRIMITIVE_FIELD).toString(), type);\n }\n else {\n object=mapper.readValue(dataJson.toString(), type);\n }\n return (T) object;\n }\n catch(ClassNotFoundException | JsonProcessingException e) {\n e.printStackTrace();\n }\n }\n return null;\n }", "@Override\n\tpublic JSONObject readFrom(Class<JSONObject> arg0, Type arg1, Annotation[] arg2, MediaType arg3,\n\t\t\tMultivaluedMap<String, String> arg4, InputStream arg5) throws IOException, WebApplicationException {\n\t\ttry {\n\t\t\treturn new JSONObject(IOUtils.toString(arg5));\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "protected static Value getValue(Object obj)\n {\n Value v = new Value();\n\n switch(getDataTypeFromObject(obj))\n {\n case Boolean:\n return v.setBoolean((Boolean) obj);\n case Integer:\n return v.setInteger((java.lang.Integer) obj);\n case Long:\n return v.setLong((java.lang.Long) obj);\n case Double:\n return v.setDouble((java.lang.Double) obj);\n default:\n return v.setString((java.lang.String) obj);\n }\n }", "private TsPrimitiveType readOneValue() {\n switch (dataType) {\n case BOOLEAN:\n return new TsBoolean(valueDecoder.readBoolean(valueInputStream));\n case INT32:\n return new TsInt(valueDecoder.readInt(valueInputStream));\n case INT64:\n return new TsLong(valueDecoder.readLong(valueInputStream));\n case FLOAT:\n return new TsFloat(valueDecoder.readFloat(valueInputStream));\n case DOUBLE:\n return new TsDouble(valueDecoder.readDouble(valueInputStream));\n case TEXT:\n return new TsBinary(valueDecoder.readBinary(valueInputStream));\n default:\n break;\n }\n throw new UnSupportedDataTypeException(\"Unsupported data type :\" + dataType);\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static<T> T createObjectFromJSON(final JSONObject json) throws JSONException {\n\t\tif(json.has(\"type\")) {\n\t\t\treturn (T) Helper.createItemFromJSON(json);\n\t\t} else if(json.has(\"triple_pattern\")) {\n\t\t\treturn (T) Helper.createTriplePatternFromJSON(json);\n\t\t} else if(json.has(\"histogram\")) {\n\t\t\treturn (T) Helper.createVarBucketFromJSON(json);\n\t\t} else {\n\t\t\tSystem.err.println(\"lupos.distributed.operator.format.Helper.createObjectFromJSON(...): Unknown type stored in JSON object, returning null!\");\n\t\t\treturn null;\n\t\t}\n\t}", "private <T> T convert(String json, Type resultObject) {\n\t\tGson gson = new GsonBuilder().create();\n\t\treturn gson.fromJson(json, resultObject);\n\t}", "protected T _deserializeFromSingleValue(JsonParser p, DeserializationContext ctxt)\n throws IOException\n {\n final JsonDeserializer<?> valueDes = _valueDeserializer;\n final TypeDeserializer typeDeser = _valueTypeDeserializer;\n final JsonToken t = p.getCurrentToken();\n\n final Object value;\n\n if (t == JsonToken.VALUE_NULL) {\n if (_skipNullValues) {\n return _createEmpty(ctxt);\n }\n value = _nullProvider.getNullValue(ctxt);\n } else if (typeDeser == null) {\n value = valueDes.deserialize(p, ctxt);\n } else {\n value = valueDes.deserializeWithType(p, ctxt, typeDeser);\n }\n return _createWithSingleElement(ctxt, value);\n\n }", "public static <T> T convertJsonStringToObject(String json,\n\t\t\tClass<T> valueType) {\n\t\ttry {\n\t\t\treturn mapper.readValue(json, valueType);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(\"Error converting Json String [\" + json\n\t\t\t\t\t+ \"] to [\" + valueType.getCanonicalName() + \"]\", e);\n\t\t}\n\t}", "public <T> T readValue() {\n return readObject();\n }", "@Override\r\n public Object fromBinaryJava(byte[] bytes, Class<?> clazz) {\r\n return JSON.parseObject(bytes, clazz);\r\n }", "public <V> V readValue(String jsonString, Type valueType) throws JsonException {\n try (StringReader reader = new StringReader(jsonString)) {\n return readValue(reader, valueType);\n }\n }", "public static Object objectForJSON(final Object value) {\n if (value == null) return null;\n\n if (value instanceof Map) {\n JSONObject dest = new JSONObject();\n\n @SuppressWarnings(\"unchecked\")\n final Map<String, Object> map = (Map<String, Object>) value;\n\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n safePut(dest, entry.getKey(), objectForJSON(entry.getValue()));\n }\n return dest;\n } else if (value instanceof Object[]) {\n final JSONArray dest = new JSONArray();\n\n final Object[] array = (Object[]) value;\n for (Object val : array) {\n dest.put(objectForJSON(val));\n }\n return dest;\n } else if (value instanceof List) {\n final JSONArray dest = new JSONArray();\n\n final List list = (List) value;\n for (Object val : list) {\n dest.put(objectForJSON(val));\n }\n return dest;\n } else {\n return value;\n }\n }", "public abstract Object deserialize(Object object);", "@Override\n public Object convertJsonToObject(String content) {\n try {\n Map<String, EventDataValue> data = reader.readValue(content);\n\n return convertEventDataValuesMapIntoSet(data);\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n }", "abstract Object read(@NonNull JsonReader reader) throws IOException;", "private Object _getJSONTextValue() {\r\n if (_textValue != null) {\r\n switch (_type.getValue()) {\r\n case Type.BOOLEAN:\r\n return Boolean.valueOf(_textValue);\r\n case Type.NUMBER:\r\n return Double.valueOf(_textValue);\r\n default:\r\n return _textValue;\r\n }\r\n }\r\n return JSONNull.getInstance().toString();\r\n }", "public static final <V> V toObject(String json, Type type) {\n return gson.fromJson(json, type);\n }", "protected Object getObjectValue(IRI propertyIRI, Literal object) {\n IRI datatype = object.getDatatype();\n if (datatype.equals(XMLSchema.STRING) || datatype.equals(RDF.LANGSTRING)) {\n final Optional<String> language = object.getLanguage();\n if (parserConfig.getLanguageFilter() == null || !language.isPresent() || parserConfig\n .getLanguageFilter().equals(language.get())) {\n return object.stringValue() + (\n parserConfig.getGraphConf().isKeepLangTag() && language.isPresent() ? \"@\"\n + language.get()\n : \"\");\n } else {\n //filtered by lang\n return null;\n }\n } else if (typeMapsToLongType(datatype)) {\n return object.longValue();\n } else if (typeMapsToDouble(datatype)) {\n return object.doubleValue();\n } else if (datatype.equals(XMLSchema.BOOLEAN)) {\n return object.booleanValue();\n } else if (datatype.equals(XMLSchema.DATETIME)) {\n try {\n return ZonedDateTime.parse(object.stringValue());\n }catch(DateTimeParseException dtpe){\n try{\n //formatter to support the format shown int the cypher refcard (timezone but no offset)\n DateTimeFormatter neo4jZonedDateFormat = new DateTimeFormatterBuilder()\n .appendPattern(\"yyyy-MM-dd'T'HH:mm:ss\")\n .appendFraction(ChronoField.MILLI_OF_SECOND, 0, 9, true)\n .appendPattern(\"'['\").appendZoneId().appendPattern(\"']'\").toFormatter();\n return ZonedDateTime.parse(object.stringValue(), neo4jZonedDateFormat);\n }catch(DateTimeParseException dtpe2){\n try {\n return DateUtils.parseDateTime(object.stringValue());\n } catch (IllegalArgumentException e) {\n //if date cannot be parsed we return string value\n return object.stringValue();\n }\n }\n }\n }else if (datatype.equals(vf.createIRI(GEOSPARQL_NS, WKTLITERAL))) {\n try {\n return PointValue.parse(wktToCartesian(object.stringValue()));\n } catch (InvalidArgumentException e) {\n //if pointvalue cannot be parsed we return string value\n return object.stringValue();\n }\n } else if (datatype.equals(XMLSchema.DATE)) {\n try {\n return DateUtils.parseDate(object.stringValue());\n } catch (IllegalArgumentException e) {\n //if date cannot be parsed we return string value\n return object.stringValue();\n }\n } else {\n //it's a custom data type\n if (parserConfig.getGraphConf().isKeepCustomDataTypes() && !(\n parserConfig.getGraphConf().getHandleVocabUris() == GRAPHCONF_VOC_URI_IGNORE\n || parserConfig.getGraphConf().getHandleVocabUris() == GRAPHCONF_VOC_URI_MAP)) {\n //keep custom type as long as property is not absent from customDT list\n if (parserConfig.getGraphConf().getCustomDataTypePropList() == null || parserConfig\n .getGraphConf().getCustomDataTypePropList()\n .contains(propertyIRI.stringValue())) {\n return getValueWithDatatype(datatype, object.stringValue());\n } else {\n return object.stringValue();\n }\n }\n }\n // default\n return object.stringValue();\n }", "public static <T> T mapJsonToObject(String json, Class<T> classType) {\n\t\tT obj = null;\n\t\tif (StringUtils.isBlank(json)) {\n\t\t\treturn null;\n\t\t}\n\t\ttry {\n\t\t\tobj = jsonMapper.readValue(json, classType);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"error mapJsonToObject: \" + e.getMessage());\n\t\t}\n\t\treturn obj;\n\t}", "public Map<String,Object> parseSingleJSON(Object jObj) {\n\t\tMap<String,Object> map = new HashMap<>();\n\t\t\n\t\tif(jObj instanceof JSONObject)\n\t\t\tparseJSON(map, \"\", (JSONObject) jObj);\n\t\telse if(jObj instanceof JSONArray)\n\t\t\tparseJSON(map, \"\", (JSONArray) jObj);\n\t\telse\n\t\t\tmap.put(jObj.toString(), parseJSONVal(jObj));\n\t\t\n\t\treturn map;\n\t}", "public static <T> T string2Object(String source, Class<T> type){\n\t\treturn JSON.parseObject(source, type);\n\t}", "public Object getValue() {\n Object o = null; \n if (type == \"string\") { o = svalue; }\n if (type == \"int\" ) { o = ivalue; }\n return o;\n }", "<T> T fromJson(String source, Class<T> type);", "public static Object fromJSON(quark.reflect.Class cls, Object result, io.datawire.quark.runtime.JSONObject json) {\n if (((json)==(null) || ((Object)(json) != null && ((Object) (json)).equals(null))) || ((json).isNull())) {\n return null;\n }\n Integer idx = 0;\n if ((result)==(null) || ((Object)(result) != null && ((Object) (result)).equals(null))) {\n if (((cls).name)==(\"quark.String\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.String\"))) {\n String s = (json).getString();\n return s;\n }\n if (((cls).name)==(\"quark.float\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.float\"))) {\n Double flt = (json).getNumber();\n return flt;\n }\n if (((cls).name)==(\"quark.int\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.int\"))) {\n Integer i = ((int) Math.round((json).getNumber()));\n return i;\n }\n if (((cls).name)==(\"quark.bool\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.bool\"))) {\n Boolean b = (json).getBool();\n return b;\n }\n result = (cls).construct(new java.util.ArrayList(java.util.Arrays.asList(new Object[]{})));\n }\n if (((cls).name)==(\"quark.List\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.List\"))) {\n java.util.ArrayList<Object> list = (java.util.ArrayList<Object>) (result);\n while ((idx) < ((json).size())) {\n (list).add(Functions.fromJSON(((cls).getParameters()).get(0), null, (json).getListItem(idx)));\n idx = (idx) + (1);\n }\n return list;\n }\n java.util.ArrayList<quark.reflect.Field> fields = (cls).getFields();\n while ((idx) < ((fields).size())) {\n quark.reflect.Field f = (fields).get(idx);\n idx = (idx) + (1);\n if (Boolean.valueOf(((f).name).startsWith(\"_\"))) {\n continue;\n }\n if (!(((json).getObjectItem((f).name)).isNull())) {\n ((io.datawire.quark.runtime.QObject) (result))._setField((f).name, Functions.fromJSON((f).getType(), null, (json).getObjectItem((f).name)));\n }\n }\n return result;\n }", "public JsonObject getObject(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.OBJECT)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), JsonObject.class);\n\t\treturn (JsonObject)value.value;\n\t}", "public Object readInternal(Class<? extends Object> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException {\n return JSON.parseObject(inputMessage.getBody(), this.fastJsonConfig.getCharset(), (Type) clazz, this.fastJsonConfig.getFeatures());\n }", "Object convertDBValueToJavaValue(Object value, Class<?> javaType);", "<T> T fromJson(String json, Class<T> type);", "public Object convertPayload(final String payload) {\n JsonValueBuilder b = SpinValues.jsonValue(payload);\n ;\n final JsonValue jsonValue = b.create();\n return jsonValue;\n }", "public static <T> T getObject(final String json, final TypeReference<T> typeReference)\n\t{\n\t\tT obj = null;\n\t\ttry\n\t\t{\n\t\t\tobj = new ObjectMapper().readValue(json, typeReference);\n\t\t}\n\t\tcatch (final Exception exception)\n\t\t{\n\t\t\tLOG.error(\"Exception occured when converting string into object. Exception message: \", exception);\n\t\t}\n\t\treturn obj;\n\t}", "Object convertJavaValueToDBValue(Object value, Class<?> javaType);", "ObjectValue createObjectValue();", "public interface Value {\n Word asWord();\n\n int toSInt();\n\n BigInteger toBInt();\n\n short toHInt();\n\n byte toByte();\n\n double toDFlo();\n\n float toSFlo();\n\n Object toArray();\n\n Record toRecord();\n\n Clos toClos();\n\n MultiRecord toMulti();\n\n boolean toBool();\n\n char toChar();\n\n Object toPtr();\n\n Env toEnv();\n\n <T> T toJavaObj();\n\n public class U {\n static public Record toRecord(Value value) {\n if (value == null)\n return null;\n else\n return value.toRecord();\n }\n\n public static Value fromBool(boolean b) {\n return new Bool(b);\n }\n\n public static Value fromSInt(int x) {\n return new SInt(x);\n }\n\n public static Value fromArray(Object x) {\n return new Array(x);\n }\n\n public static Value fromBInt(BigInteger x) {\n return new BInt(x);\n }\n\n public static Value fromPtr(Object o) {\n return new Ptr(o);\n }\n\n public static Value fromSFlo(float o) {\n return new SFlo(o);\n }\n\n public static Value fromDFlo(double o) {\n return new DFlo(o);\n }\n\n public static Value fromChar(char o) {\n return new Char(o);\n }\n\n public static Value fromByte(byte o) {\n return new Byte(o);\n }\n\n public static Value fromHInt(short o) {\n return new HInt(o);\n }\n\n\tpublic static <T> Value fromJavaObj(T obj) {\n\t return new JavaObj<T>(obj);\n\t}\n }\n}", "private @NotNull Val finishReadingValue(@NotNull Tag tag) throws IOException, JsonFormatException {\n\n DatumType type = tag.type;\n @NotNull JsonToken token = currentToken();\n // null?\n if (token == JsonToken.VALUE_NULL) return type.createValue(null);\n // error?\n final @Nullable String firstFieldName;\n if (token == JsonToken.START_OBJECT) { // can be a record or an error\n firstFieldName = nextFieldName(); // advances to next token (field name or end object - in valid cases)\n if (JsonFormat.ERROR_CODE_FIELD.equals(firstFieldName)) return type.createValue(finishReadingError());\n } else firstFieldName = null;\n // datum\n final @NotNull Datum datum = finishReadingDatum(token, firstFieldName, type);\n return datum.asValue();\n }", "public Object decodeValue (final String value) throws EncodingException {\n\n final Object object;\n\n try {\n\n // might throw an EncodingException;\n final String valueString = this.unmarkEncodingString(value);\n\n // might throw an IllegalArgument-, IO-, Security- or\n // ClassNotFoundException;\n object = this.string2Object(valueString);\n\n } catch (final Exception ex) {\n\n final String message = String.format(\n ObjectStringConverter.ERROR_DECODING_FAILED,\n value,\n ex.getMessage());\n\n throw new EncodingException(message);\n }\n\n return object;\n }", "public Object parseJsonToObject(String response, Class<?> modelClass) {\n\n try {\n return gson.fromJson(response, modelClass);\n } catch (Exception ex) {\n ex.printStackTrace();\n return null;\n }\n }", "public <T> T getObject(String propertyName, Class<T> c) {\n if (this.propertyBag.has(propertyName) && !this.propertyBag.isNull(propertyName)) {\n Object jsonObj = this.propertyBag.get(propertyName);\n if (Number.class.isAssignableFrom(c) || String.class.isAssignableFrom(c)\n || Boolean.class.isAssignableFrom(c) || Object.class == c) {\n // Number, String, Boolean\n return c.cast(jsonObj);\n } else if (Enum.class.isAssignableFrom(c)) {\n try {\n return c.cast(c.getMethod(\"valueOf\", String.class).invoke(null, String.class.cast(jsonObj)));\n } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException\n | NoSuchMethodException | SecurityException | JSONException e) {\n throw new IllegalStateException(\"Failed to create enum.\", e);\n }\n } else if (JsonSerializable.class.isAssignableFrom(c)) {\n try {\n return c.getConstructor(String.class).newInstance(jsonObj.toString());\n } catch (InstantiationException | IllegalAccessException | IllegalArgumentException\n | InvocationTargetException | NoSuchMethodException | SecurityException e) {\n throw new IllegalStateException(\"Failed to instantiate class object.\", e);\n }\n } else {\n // POJO\n JsonSerializable.checkForValidPOJO(c);\n try {\n return this.getMapper().readValue(jsonObj.toString(), c);\n } catch (IOException e) {\n throw new IllegalStateException(\"Failed to get POJO.\", e);\n }\n }\n }\n\n return null;\n }", "public interface JsonConverter {\n\n String toJson(Object o) throws IOException;\n\n String toJsonIgnoreException(Object o);\n\n <T> T fromJson(String json, Class<T> type) throws IOException;\n\n <T> T fromJson(String json, TypeData<T> typeData) throws IOException;\n\n <T> T convert(Object o, TypeData<T> typeData) throws IOException;\n}", "public interface JsonConverter {\n /** Deserializes a JSON string into a Java object.\n * @param source JSON string.\n * @param type Class type.\n * @param <T> type of class to return.\n * @return A Java object representing the same information as found in the JSON string.\n */\n <T> T fromJson(String source, Class<T> type);\n\n /** Deserializes a JSON string into a Java object.\n * @param source JSON string.\n * @param type JavaType class type.\n * @param <T> type of class to return.\n * @return A Java object representing the same information as found in the JSON string.\n */\n <T> T fromJson(String source, JavaType type);\n\n /** Serializes a Java object into a JSON string.\n * @param source A Java object.\n * @param <T> type of class of the source.\n * @return A JSON string representing the data represented in the Java object.\n */\n <T> String toJson(T source);\n}", "public static <T> T getJSONObject(final String json, final Class<T> typeReference)\n\t{\n\t\tT obj = null;\n\t\ttry\n\t\t{\n\t\t\tobj = new ObjectMapper().readValue(json, typeReference);\n\t\t}\n\t\tcatch (final Exception exception)\n\t\t{\n\t\t\tLOG.error(\"Exception occured when converting string into object. Exception message: \", exception);\n\t\t}\n\t\treturn obj;\n\t}", "public Object read();", "public VerificationType read(JsonReader jsonReader) {\n String nextString;\n kotlin.jvm.internal.i.f(jsonReader, \"reader\");\n if (jsonReader.peek() != JsonToken.NULL) {\n nextString = jsonReader.nextString();\n } else {\n jsonReader.skipValue();\n nextString = null;\n }\n return VerificationType.Companion.fromServerValue(nextString);\n }", "Object convert(Object source, TypeToken<?> targetTypeToken);", "@SuppressWarnings(\"unchecked\")\n @Override\n public T deserialize(JsonParser p, DeserializationContext ctxt)\n throws IOException\n {\n if (p.isExpectedStartArrayToken()) {\n return _deserializeContents(p, ctxt);\n }\n // But may support implicit arrays from single values?\n if (ctxt.isEnabled(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY)) {\n return _deserializeFromSingleValue(p, ctxt);\n }\n return (T) ctxt.handleUnexpectedToken(_valueClass, p);\n }", "private static Object parseStringValue(String value) {\n // Boolean (Boolean.parseBoolean() only detects 'true' properly).\n if (value.equalsIgnoreCase(\"true\")) {\n return Boolean.TRUE;\n }\n if (value.equalsIgnoreCase(\"false\")) {\n return Boolean.FALSE;\n }\n\n // Long.\n try {\n return Long.valueOf(value);\n } catch (NumberFormatException e) {\n }\n\n // Double.\n try {\n return Double.valueOf(value);\n } catch (NumberFormatException e) {\n }\n\n // Fallback to String.\n return value;\n }", "private static Object parseStringToObject(String text, Class ObjectType) {\n if (ObjectType == Integer.class) return Integer.parseInt(text);\n else if (ObjectType == Float.class) return Float.parseFloat(text);\n else if (ObjectType == Double.class) return Double.parseDouble(text);\n return null;\n }", "@Test\n public void readSystemObjectClassDoctorFeedback() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"DoctorFeedback\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return DoctorFeedback properly\", object.getClass(), actual.getClass());\n }", "public static Object toJson(Object nativeObject) throws Exception\n { \n \tObject out = null;\n \tif(nativeObject instanceof String){\n \t\tout = nativeObject.toString();\n \t}\n \telse if(nativeObject instanceof ConsString){\n \t\tout = nativeObject.toString();\n \t}\n \telse if(nativeObject instanceof Integer){\n \t\tout = nativeObject;\n \t}\n \telse if(nativeObject instanceof Boolean){\n \t\tout = nativeObject;\n \t}\n \telse if(nativeObject instanceof Double){\n \t\tout = nativeObject;\n \t}\n \telse if (nativeObject instanceof NativeArray) \n { \n out = new JSONArray(nativeArrayToJSONString((NativeArray)nativeObject)); \n } \n else if (nativeObject instanceof NativeObject) \n { \n \tString kkkk = nativeObjectToJSONString((NativeObject)nativeObject);\n \ttry {\n out = new JSONObject(kkkk); \n \t}\n \tcatch(Throwable e) {\n \t\te.printStackTrace();\n \t\tSystem.out.println(kkkk);\n// \t\tthrow e;\n \t}\n }\n else if(nativeObject instanceof Function){\n \tout = new HAPFunctionType(Context.toString(nativeObject));\n }\n else if(nativeObject instanceof NativeJavaObject){\n \tObject javaObj = ((NativeJavaObject)nativeObject).unwrap();\n \tout = toJson(javaObj);\n \tif(out==null){\n \tString jsonStr = HAPSerializeManager.getInstance().toStringValue(javaObj, HAPSerializationFormat.JSON);\n \tif(javaObj instanceof List || javaObj instanceof Set) out = new JSONArray(jsonStr);\n \telse out = new JSONObject(jsonStr);\n \t}\n }\n else if(nativeObject instanceof Undefined) {\n// \tthrow new HAPCommonException(\"Undefined Value!!!!\");\n }\n \treturn out; \n }", "public static JinyouTestOne fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, JinyouTestOne.class);\n }", "@Test\n public void readSystemObjectClassAppointment() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Appointment\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Appointment properly\", object.getClass(), actual.getClass());\n }", "public static <T> T parseJSON(final String jsonString, Class<T> type) {\r\n\t\tT retObject = null;\r\n\t\ttry {\r\n\t\t\tretObject = PARSER.parse(jsonString, type);\r\n\t\t} catch (ParseException ex) {\r\n\t\t\tLOGGER.log(Level.WARNING, \"JSON_UTIL:Error in de-serializing to object\", ex);\r\n\t\t\tretObject = null;\r\n\t\t}\r\n\t\treturn retObject;\r\n\t}", "public JsonValue toJsonValue(Object value) throws JsonException {\n return toJsonValue(value, null);\n }", "JSONConverter getDefaultConverter();", "public Object read() throws IOException {\n int code = 1;\n try {\n code = in.readUnsignedByte();\n } catch (EOFException eof) {\n return null;\n }\n if (code == Type.BYTES.code) {\n return new Buffer(readBytes());\n } else if (code == Type.BYTE.code) {\n return readByte();\n } else if (code == Type.BOOL.code) {\n return readBool();\n } else if (code == Type.INT.code) {\n return readInt();\n } else if (code == Type.LONG.code) {\n return readLong();\n } else if (code == Type.FLOAT.code) {\n return readFloat();\n } else if (code == Type.DOUBLE.code) {\n return readDouble();\n } else if (code == Type.STRING.code) {\n return readString();\n } else if (code == Type.VECTOR.code) {\n return readVector();\n } else if (code == Type.LIST.code) {\n return readList();\n } else if (code == Type.MAP.code) {\n return readMap();\n } else if (code == Type.MARKER.code) {\n return null;\n } else if (50 <= code && code <= 200) { // application-specific typecodes\n return new Buffer(readBytes());\n } else {\n throw new RuntimeException(\"unknown type\");\n }\n }", "public static <T> T pasarAObjeto(String json, Class<T> tipo) {\r\n try {\r\n ObjectMapper mapper = getBuilder().build();\r\n return mapper.readValue(json, tipo);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "public static Object convert(Object value, Class<?> clazz){\n if(clazz.equals(String.class))\n return String.valueOf(value);\n if(clazz.equals(Boolean.class) || \"Boolean\".equals(clazz.getName()))\n return Boolean.valueOf(String.valueOf(value));\n if(clazz.equals(Integer.class) || \"int\".equals(clazz.getName()))\n return NumberUtils.toInt(String.valueOf(value),0);\n if(clazz.equals(Long.class) || \"long\".equals(clazz.getName()))\n return NumberUtils.toLong(String.valueOf(value),0);\n if(clazz.equals(Double.class) || \"double\".equals(clazz.getName()))\n return NumberUtils.toDouble(String.valueOf(value),0);\n if(clazz.equals(Float.class) || \"float\".equals(clazz.getName()))\n return NumberUtils.toFloat(String.valueOf(value),0);\n if(clazz.equals(BigInteger.class))\n return NumberUtils.toInt(String.valueOf(value),0);\n if(clazz.equals(Date.class)) return new java.util.Date(((Date) value).getTime());\n return value;\n }", "@Test\n public void readSystemObjectClassAppointmentRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AppointmentRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AppointmentRequest properly\", object.getClass(), actual.getClass());\n }", "@Override\n public T deserialize(JsonParser p, DeserializationContext ctxt)\n throws JacksonException\n {\n if (ctxt.isEnabled(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY)) {\n return deserializeFromSingleValue(p, ctxt);\n }\n // if not deserialize the normal way\n return deserializeContents(p, ctxt);\n }", "public Object jsonToObject(Class<?> clazz, JSONObject jsonObject) throws ClassNotFoundException, SecurityException,\n\t\t\tIllegalAccessException, InvocationTargetException, InstantiationException, JSONException {\n\n\t\tObject object = clazz.newInstance();\n\n\t\tField[] fields = clazz.getDeclaredFields();\n\n\t\tfor (Field field : fields) {\n\n\t\t\tfield.setAccessible(true);\n\n\t\t\tClass<?> typeClazz = field.getType();\n\n\t\t\tif (typeClazz.isPrimitive()) {\n\t\t\t\t/*\n\t\t\t\t * field.set(object,jsonObject.get(field.getName()));\n\t\t\t\t * \n\t\t\t\t */\n\t\t\t} else {\n\n\t\t\t\tif (String.class.isAssignableFrom(field.getType())) {\n\t\t\t\t\t\n\t\t\t\t\tfield.set(object, jsonObject.get(field.getName()));\n\n\t\t\t\t} else if (field.getType().isArray()\n\t\t\t\t\t\t&& (String.class.isAssignableFrom(field.getType().getComponentType()))) {\n\n\t\t\t\t\tJSONArray jArray = jsonObject.getJSONArray(field.getName());\n\t\t\t\t\tint len = jArray.length();\n\t\t\t\t\tString[] array = new String[len];\n\t\t\t\t\tfor (int i = 0; i < len; i++) {\n\n\t\t\t\t\t\tarray[i] = jArray.getString(i);\n\t\t\t\t\t}\n\t\t\t\t\tfield.set(object, array);\n\n\t\t\t\t} else {\n\n\t\t\t\t\tfield.set(object, jsonToObject(typeClazz, jsonObject.getJSONObject(field.getName())));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn object;\n\t}", "public final JSONNode value() throws RecognitionException {\n JSONNode node = null;\n\n ValueNode literal5 = null;\n\n ArrayNode array6 = null;\n\n ObjectNode object7 = null;\n\n\n try {\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:32:3: ( literal | array | object )\n int alt4=3;\n switch ( input.LA(1) ) {\n case STRING:\n case NUMBER:\n case FPNUMBER:\n case TRUE:\n case FALSE:\n case NULL:\n {\n alt4=1;\n }\n break;\n case ARRAY:\n {\n alt4=2;\n }\n break;\n case OBJECT:\n {\n alt4=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 4, 0, input);\n\n throw nvae;\n }\n\n switch (alt4) {\n case 1 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:32:5: literal\n {\n pushFollow(FOLLOW_literal_in_value132);\n literal5=literal();\n\n state._fsp--;\n\n node = literal5;\n\n }\n break;\n case 2 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:33:5: array\n {\n pushFollow(FOLLOW_array_in_value140);\n array6=array();\n\n state._fsp--;\n\n node = array6;\n\n }\n break;\n case 3 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:34:5: object\n {\n pushFollow(FOLLOW_object_in_value148);\n object7=object();\n\n state._fsp--;\n\n node = object7;\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return node;\n }", "private static FluidIngredient deserializeObject(JsonObject json) {\n if (json.entrySet().isEmpty()) {\n return EMPTY;\n }\n\n // fluid match\n if (json.has(\"name\")) {\n // don't set both, obviously an error\n if (json.has(\"tag\")) {\n throw new JsonSyntaxException(\"An ingredient entry is either a tag or an fluid, not both\");\n }\n\n // parse a fluid\n return FluidMatch.deserialize(json);\n }\n\n // tag match\n if (json.has(\"tag\")) {\n return TagMatch.deserialize(json);\n }\n\n throw new JsonSyntaxException(\"An ingredient entry needs either a tag or an fluid\");\n }", "public Object elConvertType(Object value);", "public abstract T parse(Object valueToParse, Type type);", "public abstract <T> T readObject();", "public Object decode(Object value) {\n\t\treturn decode(value, null, this.filter);\n\t}", "Object getValueFrom();", "public static AsonValue CreateFrom(InputStream inputStream) throws java.io.IOException {\n class MIS extends InputStream {\n InputStream is;\n int firstByte;\n boolean firstRead = true;\n MIS(InputStream is) throws java.io.IOException { this.is = is; firstByte=is.read(); }\n @Override\n public int read() throws IOException { if(firstRead){firstRead=false;return firstByte;} return is.read(); }\n public byte getFirstByte() { return (byte)(firstByte&0xFF); }\n }\n MIS is = new MIS(inputStream);\n if((is.getFirstByte()&0x80)!=0) return new AsonParser().parse(is);\n return new JsonParser().parse(is);\n }", "public void deserialize(JsonObject src);", "public JSONType(Object aVal, int aType){\n\t\t\tswitch(aType) {\n\t\t\t\tcase 0:\n\t\t\t\t\t//strVal = (String)aVal;\n\t\t\t\t\tval = (String)aVal;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\t//iVal = (Integer)aVal;\n\t\t\t\t\tval = (Integer)aVal;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\t//dVal = (Double)aVal;\n\t\t\t\t\tval = (Double)aVal;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\t//System.out.println(\"JSONTtype got boolean in [\" + aVal + \"]\");\n\t\t\t\t\tval = (Boolean) aVal;\n\t\t\t\t\t//bVal = (Boolean) aVal;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t}\n\t\t\ttype = aType;\n\t\t}", "@Override\n\tpublic JSON parse(String in) throws IOException {\n\t\tMyJSON js = new MyJSON();\n\t\t//count brackets make sure they match\n\t\tif(!syntaxOkay(in)){\n\t\t\tthrow new IllegalStateException(\"Mismatched brackets error\");\n\t\t}\n\t\t//get rid of spaces to make things easier\n\t\tString withoutSpaces = remove(in, ' ');\n\t\t//handles edge case of an empty object\n\t\tString withoutBraces = remove(withoutSpaces, '{');\n\t\twithoutBraces = remove(withoutBraces, '}');\n\t\tif(withoutBraces.length() == 0){\n\t\t\treturn js;\n\t\t}\n\t\tint colonIndex = in.indexOf(\":\");\n\t\tString key = in.substring(0, colonIndex);\n\t\tString value = in.substring(colonIndex + 1);\n\n\t\tif(value.contains(\":\")){\n\t\t\t//this means the value is an object so we figure out how many strings to add to the object\n\t\t\tString[] values = value.split(\",\");\n\t\t\t//creates a temp for the new object\n\t\t\tMyJSON temp = new MyJSON();\n\t\t\tfillObject(values, temp);\n\t\t\tkey = removeOutsides(key);\n\t\t\tjs.setObject(key, temp);\n\t\t}else{\n\t\t\t//the base case that actually puts things as a JSON object\n\t\t\tkey = removeOutsides(key);\n\t\t\tvalue = removeOutsides(value);\n\t\t\tjs.setString(key, value);\n\t\t}\n\n\t\treturn js;\n\t}", "public @Nullable <T> T fromJson(@NonNull Reader reader, @NonNull Class<T> clazz) {\n return gson.fromJson(reader, clazz);\n }", "public static Object read(Object obj) {\n if (obj instanceof byte[] byteArray) {\n return SafeEncoder.encode(byteArray);\n }\n if (obj instanceof List) {\n return ((List<?>) obj).stream().map(Jupiter::read).toList();\n }\n\n return obj;\n }", "public interface ApiObject {\n\n String toJson();\n\n Object fromJson(JsonObject json);\n}", "@Test\n public void readSystemObjectClassPrescription() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Prescription\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Prescription properly\", object.getClass(), actual.getClass());\n }", "@Override\n public final Object readFrom(final Class<Object> type,\n final Type genericType, final Annotation[] annotations,\n final MediaType mediaType,\n final MultivaluedMap<String, String> httpHeaders,\n final InputStream entityStream) throws IOException {\n InputStreamReader streamReader = new InputStreamReader(entityStream,\n \"UTF-8\");\n try {\n Type jsonType;\n if (type.equals(genericType)) {\n jsonType = type;\n } else {\n jsonType = genericType;\n }\n return getGson().fromJson(streamReader, jsonType);\n } finally {\n try {\n if (streamReader != null) {\n streamReader.close();\n }\n } catch (IOException e) {\n // ignore, nothing to be done here anyway\n }\n }\n }", "public static <T> T fromJson(Reader readerFile, Class<T> valueType) {\n\t\tif(gson == null) {\n\t\t\tgson = new Gson();\n\t\t}\n\t\treturn gson.fromJson(readerFile, valueType);\n\t}", "protected abstract Object read ();", "Object read(Object inputObject, Settings settings);", "String parseObjectToJson(Object obj);" ]
[ "0.68539685", "0.6503606", "0.6403792", "0.6392023", "0.6314745", "0.6290231", "0.6286489", "0.6245574", "0.61739874", "0.6161861", "0.60357916", "0.6004063", "0.59998596", "0.5974485", "0.59424406", "0.59375024", "0.5934141", "0.5933719", "0.5919", "0.59109455", "0.5838963", "0.5792145", "0.5790537", "0.57809216", "0.5774973", "0.5767029", "0.5747811", "0.5740759", "0.5723557", "0.57226807", "0.5711128", "0.56788605", "0.559338", "0.55656695", "0.5563797", "0.55522996", "0.5544247", "0.5543782", "0.54926467", "0.5485236", "0.548357", "0.5482468", "0.54815453", "0.5474403", "0.54030085", "0.53963876", "0.53916556", "0.5365072", "0.53628105", "0.53588307", "0.5353945", "0.5344797", "0.53403205", "0.5338038", "0.53209746", "0.5320107", "0.53094304", "0.5295049", "0.52925295", "0.5291971", "0.5289683", "0.52449363", "0.524435", "0.52395296", "0.5234397", "0.52288735", "0.5224124", "0.5223613", "0.52200156", "0.5205087", "0.5200696", "0.51890194", "0.5182695", "0.5175625", "0.5166441", "0.51612586", "0.5147082", "0.51289207", "0.5128333", "0.51261467", "0.5107975", "0.510529", "0.5095249", "0.50811625", "0.5074467", "0.5069669", "0.50652415", "0.50588197", "0.5025295", "0.50240326", "0.50164753", "0.50126123", "0.5006664", "0.49989074", "0.49904492", "0.4989148", "0.49887303", "0.49840406", "0.49788997", "0.49737096", "0.49666974" ]
0.0
-1
Service class defines all the methods
public List <Student> getAllStudents();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void service() {\n\t}", "public interface Service {\n // Service-specific methods go here\n }", "public Service(){\n\t\t\n\t}", "Service newService();", "private static interface Service {}", "private Service() {}", "public void doService() {\n }", "public interface ProcesoVENService extends Service {\n\n\t/**\n\t * Ejecuta procedimiento generico\n\t * @param nombreExecute\n\t * @param criteria\n\t */\n\tpublic void executeGenerico(String nombreExecute, Map criteria) ;\n\t\n\t/**Actualiza calensarios\n\t * @param calendario\n\t * @param usuario\n\t */\n\tpublic void updateCalendario(Calendario calendario, Usuario usuario);\n\t\n\t/**devuelve lista de calendarios\n\t * @param criteria\n\t * @return\n\t */\n\tpublic List getCalendarios(Map criteria);\n\t\n\t/**\n\t * devuelve el calendario\n\t * @param criteria\n\t * @return\n\t */\n\tpublic Calendario getCalendario(Map criteria);\n\t\n /**\n * devuelve los feriados d euna zona\n * @param criteria\n * @return\n */\n public List getFeriadoZona(Map criteria);\n\t\n\t/**\n\t * Actualiza feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void updateFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * Inserta los feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * elimina los feriados d euna zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void deleteFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\n\t/**\n\t * Metodo que trae las zonas de una region\n\t * @param feriadoRegion\n\t * @return\n\t */\n\tpublic List getZonasRegion(String feriadoRegion);\n\n\t/**\n\t * Retorna el indicador de habilitacion RUV\n\t * @param criteria\n\t * @return\n\t */\n\tpublic String getIndicadorHabilitacionRuv(Map criteria);\n\n\t/**\n\t * Genera la informacion para el reporte RUV\n\t * @param map\n\t */\n\tpublic void executeGeneracionReporteRUV(Map map);\n\t\n\t/**\n\t * Genera los archivos de libro de ventas - detalles SII\n\t * @param map\n\t */\n\tpublic void executeGenerarArchivosLibroVentasDetalleSII(Map map);\n\t\n}", "public interface Service {\n\n}", "public interface Service {\n\n}", "public ServiceCompte() {\n\t\tsuper();\n\t}", "public void service_INIT(){\n }", "public interface Service {\n\t/**\n\t * Method stub to get the service appointment.\n\t *\n\t * @return The service appointment.\n\t */\n\tabstract public Date getServiceAppointment();\n\n\t/**\n\t * Method stub to get the servicing interval.\n\t *\n\t * @return The servicing interval.\n\t */\n\tabstract public int getServiceInterval();\n\n\t/**\n\t * Method stub to set the service appointment.\n\t *\n\t * @param serviceAppointment The service appointment as Date object.\n\t */\n\tabstract public void setServiceAppointment(Date serviceAppointment);\n\n\t/**\n\t * Method stub to set the servicing interval.\n\t *\n\t * @param serviceIntervalDays Servicing interval in days.\n\t */\n\tabstract public void setServiceInterval(int serviceIntervalDays);\n}", "Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}", "public interface SerService {\n\n List<SService> findwithPageInfo(Integer pageNo, Integer pageSize);\n\n PageInfo<SService> getPageInfo(Integer pageSize);\n\n SService findById(Integer id);\n\n void modi(SService sService);\n\n void add(SService sService, String samePasswd);\n\n void setStateS(Integer id);\n\n void delS(Integer id);\n\n\n List<SService> findS(String osUsername, String unixHost, String status, Integer accountId);\n\n void updateCost(SService sService);\n}", "public interface SeService extends PubService {\n\t/**\n\t * 查询项目日志列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeDayNote(Map<String,String> m , Page p);\n\tpublic DataTableBean querySeDayNote(DataTableBean dtb);\n\t/**\n\t * 保存项目日志\n\t * @param obj 项目日志对象\n\t */\n\tpublic void saveSeDayNote(SeDayNote obj) ;\n\t/**\n\t * 更新项目日志\n\t * @param obj 项目日志对象\n\t */\n\tpublic void updateSeDayNote(SeDayNote obj);\n\t/**\n\t * 根据主键查询项目日志对象\n\t * @param pk 主键\n\t */\n\tpublic SeDayNote querySeDayNoteById(java.lang.String pk);\n\t/**\n\t * 删除项目日志对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeDayNoteById(java.lang.String pk);\n\t/**\n\t * 批量删除项目日志对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeDayNoteByIds(String ids);\n\t\n\t/**\n\t * 查询矩阵属性列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceKey(Map<String,String> m , Page p);\n\t/**\n\t * 用于ajax查找某个矩阵树功能\n\t * Method Description : ########\n\t * @param m\n\t * @param p\n\t * @return\n\t */\n\tpublic List traceFileter(String key);\n\t/**\n\t * 保存矩阵属性\n\t * @param obj 矩阵属性对象\n\t */\n\tpublic void saveSeTraceKey(SeTraceKey obj) ;\n\t/**\n\t * 更新矩阵属性\n\t * @param obj 矩阵属性对象\n\t */\n\tpublic void updateSeTraceKey(SeTraceKey obj);\n\t/**\n\t * 根据主键查询矩阵属性对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceKey querySeTraceKeyById(java.lang.String pk);\n\t/**\n\t * 删除矩阵属性对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceKeyById(java.lang.String pk);\n\t/**\n\t * 批量删除矩阵属性对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceKeyByIds(String ids);\n\t/**\n\t * 查询某矩阵下的属性集合\n\t * @param traceId 矩阵ID \n\t * @param proType 属性类型 CLOB:大文本 STRING:非大文本字段 ALL:全部\n\t * @return 矩阵属性集合\n\t */\n\tpublic List queryTracePros(String traceId,String proType);\n\t/**\n\t * 保存矩阵属性\n\t * @param traceId 矩阵ID\n\t * @param params 矩阵属性集合\n\t */\n\tpublic void saveTracePros(String traceId,List<Map<String,String>> params);\n\t/**\n\t * 根据矩阵ID与属性名称查询 矩阵属性对象\n\t * @param traceId 矩阵ID\n\t * @param key 属性名称\n\t * @return 矩阵属性对象\n\t */\n\tpublic SeTraceKey queryTraceKeyByTraceIdAndKey(String traceId,String key);\n\t/**\n\t * 根据矩阵ID与属性名称查询 矩阵属性值\n\t * @param traceId 矩阵ID\n\t * @param key 属性名称\n\t * @return 某矩阵的某属性值\n\t */\n\tpublic String queryTraceValueByTraceIdAndKey(String traceId,String key);\n\t/**\n\t * 根据矩阵ID与属性名称查询 矩阵属性值对象\n\t * @param traceId 矩阵ID\n\t * @param key 属性名称\n\t * @return 某矩阵的某属性值对象 \n\t */\n\tpublic Object queryTraceValueObjByTraceIdAndKey(String traceId,String key);\n\t/**\n\t * 拷贝矩阵属性\n\t * @param sourceTraceId 源矩阵ID\n\t * @param targetTraceId 目标矩阵ID\n\t */\n\tpublic void copyTracePro(String sourceTraceId,String targetTraceId);\n\t\n\t/**\n\t * 属性继承\n\t * @param traceId 矩阵ID\n\t * @param direction 继承方向 U:继承父节点 D:覆盖子孙节点\n\t */\n\tpublic void traceProExtend(String traceId,String direction);\n\t\n\t/**\n\t * 根据矩阵ID查询矩阵对象\n\t * @param nodeId 矩阵ID\n\t * @return 矩阵对象\n\t */\n\tpublic SeRequirementTrace queryNodeById(String nodeId);\n\t\n\t/**\n\t * 查询矩阵记事列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceNote(Map<String,String> m , Page p);\n\t\n\t/**\n\t * 我的矩阵遗留备忘\n\t * Method Description : ########\n\t * @param dtb\n\t * @return\n\t */\n\tpublic DataTableBean queryMySeTraceNote(DataTableBean dtb);\n\t/**\n\t * 查询遗留备忘具体内容\n\t * Method Description : ########\n\t * @param noteId 遗留备忘ID\n\t * @return\n\t */\n\tpublic String queryContentOfTraceNote(String noteId);\n\t/**\n\t * 保存矩阵记事\n\t * @param obj 矩阵记事对象\n\t */\n\tpublic void saveSeTraceNote(SeTraceNote obj) ;\n\t/**\n\t * 保存(或落实保存) 遗留备忘\n\t * Method Description : ########\n\t * @param id 遗留备忘ID\n\t * @param content 描述\n\t * @param status 1:保存并落实 0:仅保存\n\t */\n\tpublic void saveSeTraceNoteContent(String id,String content,String status,String modifier) ;\n\t/**\n\t * 更新矩阵记事\n\t * @param obj 矩阵记事对象\n\t */\n\tpublic void updateSeTraceNote(SeTraceNote obj);\n\t/**\n\t * 根据主键查询矩阵记事对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceNote querySeTraceNoteById(java.lang.String pk);\n\t/**\n\t * 删除矩阵记事对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceNoteById(java.lang.String pk);\n\t/**\n\t * 批量删除矩阵记事对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceNoteByIds(String ids);\n\t/**\n\t * 查询项目风险列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeRisk(Map<String,String> m , Page p);\n\t/**\n\t * 保存项目风险\n\t * @param obj 项目风险对象\n\t */\n\tpublic void saveSeRisk(SeRisk obj) ;\n\t/**\n\t * 更新项目风险\n\t * @param obj 项目风险对象\n\t */\n\tpublic void updateSeRisk(SeRisk obj);\n\t/**\n\t * 根据主键查询项目风险对象\n\t * @param pk 主键\n\t */\n\tpublic SeRisk querySeRiskById(java.lang.String pk);\n\t/**\n\t * 删除项目风险对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeRiskById(java.lang.String pk);\n\t/**\n\t * 批量删除项目风险对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeRiskByIds(String ids);\n\t/**\n\t * 查询项目风险列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeUser(Map<String,String> m , Page p);\n\t/**\n\t * 查询系统用户(在岗)\n\t * @param projectId 系统ID\n\t * @return\n\t */\n\tpublic List queryProjectUser(String projectId);\n\t/**\n\t * 查询系统用户(全部)\n\t * @param projectId 系统ID\n\t * @return\n\t */\n\tpublic List queryProjectUserForAll(String projectId);\n\t/**\n\t * 保存项目风险\n\t * @param obj 项目风险对象\n\t */\n\tpublic void saveSeUser(SeUser obj) ;\n\t/**\n\t * 更新项目风险\n\t * @param obj 项目风险对象\n\t */\n\tpublic void updateSeUser(SeUser obj);\n\t/**\n\t * 验证用户名密码\n\t * @param userName 用户名\n\t * @param password 密码\n\t * @return 成功返回success 否则返回错误代码\n\t */\n\tpublic String validateUserAndPassword(String userName,String password);\n\t/**\n\t * 根据主键查询项目风险对象\n\t * @param pk 主键\n\t */\n\tpublic SeUser querySeUserById(java.lang.String pk);\n\t/**\n\t * 根据用户账号查询用户对象\n\t * @param pk 主键\n\t */\n\tpublic SeUser querySeUserByAccount(String account);\n\t/**\n\t * 删除项目风险对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeUserById(java.lang.String pk);\n\t/**\n\t * 批量删除项目风险对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeUserByIds(String ids);\n\t/**\n\t * 查询项目信息列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeProjectInfo(Map<String,String> m , Page p);\n\t\n\t/**\n\t * 获取项目信息选项\n\t * @return\n\t */\n\tpublic List querySeProjectOptions();\n\t/**\n\t * 保存项目信息\n\t * @param obj 项目信息对象\n\t */\n\tpublic void saveSeProjectInfo(SeProjectInfo obj) ;\n\t/**\n\t * 更新项目信息\n\t * @param obj 项目信息对象\n\t */\n\tpublic void updateSeProjectInfo(SeProjectInfo obj);\n\t/**\n\t * 根据主键查询项目信息对象\n\t * @param pk 主键\n\t */\n\tpublic SeProjectInfo querySeProjectInfoById(java.lang.String pk);\n\t/**\n\t * 删除项目信息对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeProjectInfoById(java.lang.String pk);\n\t/**\n\t * 批量删除项目信息对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeProjectInfoByIds(String ids);\n\t\n\t/**\n\t * 查询项目人员信息列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeMapProjectUser(Map<String,String> m , Page p);\n\t/**\n\t * 保存项目人员信息\n\t * @param obj 项目人员信息对象\n\t */\n\tpublic void saveSeMapProjectUser(SeMapProjectUser obj) ;\n\t/**\n\t * 更新项目人员信息\n\t * @param obj 项目人员信息对象\n\t */\n\tpublic void updateSeMapProjectUser(SeMapProjectUser obj);\n\t/**\n\t * 根据主键查询项目人员信息对象\n\t * @param pk 主键\n\t */\n\tpublic SeMapProjectUser querySeMapProjectUserById(java.lang.String pk);\n\t/**\n\t * 删除项目人员信息对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeMapProjectUserById(java.lang.String pk);\n\t/**\n\t * 批量删除项目人员信息对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeMapProjectUserByIds(String ids);\n\t\n\t/**\n\t * 查询项目日志\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List queryUserLogForEdit(Map<String,String> m,Page p );\n\t/**\n\t * 查询项目日志\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic DataGrid queryUserLog(Map<String,String> m,Page p );\n\t/**\n\t * 更新日志\n\t * @param log\n\t */\n\tpublic void updateUserLog(SePersonLog log);\n\t/**\n\t * 创建空白日志\n\t */\n\tpublic SePersonLog createBlankUserLog();\n\t/**\n\t * 删除用户日志对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSePersonLogById(java.lang.String pk);\n\t/**\n\t * 批量删除用户日志对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSePersonLogByIds(String ids);\n\t\n\t/**\n\t * 工作日志关联任务\n\t * @param logIds 日志ID 多个ID用\",\"隔开\n\t * @param taskId 任务ID\n\t * @return 成功返回SUCCESS 失败返回原因\n\t */\n\tpublic String linkTaskForLog(String logIds,String taskId);\n\t/**\n\t * 查询公共组件列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySePubModule(Map<String,String> m , Page p);\n\t/**\n\t * 保存公共组件\n\t * @param obj 公共组件对象\n\t */\n\tpublic void saveSePubModule(SePubModule obj) ;\n\t/**\n\t * 更新公共组件\n\t * @param obj 公共组件对象\n\t */\n\tpublic void updateSePubModule(SePubModule obj);\n\t/**\n\t * 根据主键查询公共组件对象\n\t * @param pk 主键\n\t */\n\tpublic SePubModule querySePubModuleById(java.lang.String pk);\n\t/**\n\t * 删除公共组件对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSePubModuleById(java.lang.String pk);\n\t/**\n\t * 批量删除公共组件对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSePubModuleByIds(String ids);\n\t/**\n\t * 查询待办任务列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceTask(Map<String,String> m , Page p);\n\t\n\t/**\n\t * 保存待办任务\n\t * @param obj 待办任务对象\n\t */\n\tpublic void saveSeTraceTask(SeTraceTask obj) ;\n\t/**\n\t * 更新待办任务\n\t * @param obj 待办任务对象\n\t */\n\tpublic void updateSeTraceTask(SeTraceTask obj);\n\t/**\n\t * 用于ajax更新矩阵任务\n\t * Method Description : ########\n\t * @param id 任务ID\n\t * @param obj 更新的对象\n\t * @param nullProperties 置空的属性\n\t * @return 成功返回SUCCESS 否则返回错误原因\n\t */\n\tpublic String updateSeTraceTaskForAjax(String id,SeTraceTask obj, Object[] nullProperties);\n\t/**\n\t * 更新任务进度\n\t * Method Description : ########\n\t * @param taskId 任务ID\n\t * @param process 进度\n\t */\n\tpublic void updateProcessOfTraceTask(String taskId,Integer process);\n\t/**\n\t * 根据主键查询待办任务对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceTask querySeTraceTaskById(java.lang.String pk);\n\t/**\n\t * 删除待办任务对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceTaskById(java.lang.String pk);\n\t/**\n\t * 批量删除待办任务对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceTaskByIds(String ids);\n\t\n\t/**\n\t * 个人任务转日志\n\t * @param userIds 人员ID,多个人员用\",\"隔开\n\t * @param taskId 任务ID\n\t * @param date 日期\n\t * @param workLoad 时长(小时)\n\t */\n\tpublic void transformATaskToLog(String userIds,String taskId,String date,Float workLoad);\n\t\n\t/**\n\t * 查询人员奖惩记录列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeUserRewardAmerce(Map<String,String> m , Page p);\n\t/**\n\t * 保存人员奖惩记录\n\t * @param obj 人员奖惩记录对象\n\t */\n\tpublic void saveSeUserRewardAmerce(SeUserRewardAmerce obj) ;\n\t/**\n\t * 更新人员奖惩记录\n\t * @param obj 人员奖惩记录对象\n\t */\n\tpublic void updateSeUserRewardAmerce(SeUserRewardAmerce obj);\n\t/**\n\t * 根据主键查询人员奖惩记录对象\n\t * @param pk 主键\n\t */\n\tpublic SeUserRewardAmerce querySeUserRewardAmerceById(java.lang.String pk);\n\t/**\n\t * 删除人员奖惩记录对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeUserRewardAmerceById(java.lang.String pk);\n\t/**\n\t * 批量删除人员奖惩记录对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeUserRewardAmerceByIds(String ids);\n\t\n\t/**\n\t * 用户视图获取任务信息\n\t * @param m\n\t * @param p\n\t * @return\n\t */\n\tpublic List queryTaskListForUserView(Map<String,String> m , Page p);\n\t/**\n\t * 用户视图获取备忘信息\n\t * @param m\n\t * @param p\n\t * @return\n\t */\n\tpublic List queryNoteListForUserView(Map<String,String> m , Page p);\n\tpublic List queryLogListForUserView(Map<String,String> m , Page p);\n\t\n\t/**\n\t * 获取所有节点信息 用于ztree simple data\n\t * @param rootId 根节点ID\n\t * @return 所有节点列表\n\t */\n\tpublic List queryAllSeTrace(String rootId);\n\t\n\t\n\tpublic List seCountWorkLoadGetData(Map<String,String> m );\n\tpublic List seCountTaskGetData(Map<String,String> m );\n\tpublic List seCountTraceGetData(Map<String,String> m );\n\t\n\tpublic List seCountWorkLoadOfDay(Map<String,String> m);\n\t\n\tpublic DataTableBean seCountWorkLoadGetDataForBootstrap(DataTableBean dtb );\n\tpublic DataTableBean seCountTaskGetDataForBootstrap(DataTableBean dtb );\n\t\n\t\n\t\n\t\n\t/**\n\t * 查询矩阵缺陷列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceDefect(Map<String,String> m , Page p);\n\t\n\tpublic DataTableBean queryMySeTraceDefect(DataTableBean dtb);\n\t/**\n\t * 保存矩阵缺陷\n\t * @param obj 矩阵缺陷对象\n\t */\n\tpublic void saveSeTraceDefect(SeTraceDefect obj) ;\n\t/**\n\t * 更新矩阵缺陷\n\t * @param obj 矩阵缺陷对象\n\t */\n\tpublic void updateSeTraceDefect(SeTraceDefect obj);\n\t/**\n\t * 根据主键查询矩阵缺陷对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceDefect querySeTraceDefectById(java.lang.String pk);\n\t/**\n\t * 删除矩阵缺陷对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceDefectById(java.lang.String pk);\n\t/**\n\t * 批量删除矩阵缺陷对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceDefectByIds(String ids);\n\t\n\t/**\n\t * 查询某缺陷的图片信息\n\t * Method Description : ########\n\t * @param defectId 缺陷ID\n\t * @return\n\t */\n\tpublic String queryContentOfTraceDefect(String defectId);\n\t/**\n\t * 更新缺陷状态\n\t * Method Description : ########\n\t * @param defectId 缺陷ID\n\t * @param status 状态\n\t * @param userId 操作用户\n\t * @param desc 描述\n\t */\n\tpublic void updateTraceDefectStatus(String defectId,String status,String userId,String desc);\n\t/**\n\t * 查询问题修改状态历史列表\n\t * Method Description : ########\n\t * @param defectId 缺陷ID\n\t * @return\n\t */\n\tpublic List queryTraceDefectStatusList(String defectId);\n\t\n\t/**\n\t * 查询矩阵缺陷列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceDefectRepair(Map<String,String> m , Page p);\n\t/**\n\t * 保存矩阵缺陷\n\t * @param obj 矩阵缺陷对象\n\t */\n\tpublic void saveSeTraceDefectRepair(SeTraceDefectRepair obj) ;\n\t/**\n\t * 更新矩阵缺陷\n\t * @param obj 矩阵缺陷对象\n\t */\n\tpublic void updateSeTraceDefectRepair(SeTraceDefectRepair obj);\n\t/**\n\t * 根据主键查询矩阵缺陷对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceDefectRepair querySeTraceDefectRepairById(java.lang.String pk);\n\t/**\n\t * 删除矩阵缺陷对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceDefectRepairById(java.lang.String pk);\n\t/**\n\t * 批量删除矩阵缺陷对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceDefectRepairByIds(String ids);\n\t\n\t/**\n\t * 查询我的项目\n\t * @param userId 用户ID\n\t * @return\n\t */\n\tpublic List queryMyProject(String userId);\n\t/**\n\t * 给某个矩阵任务派工\n\t * @param traceTaskId 矩阵任务ID\n\t * @param userIds 人员ID 多个人员用\",\"隔开\n\t * @return\n\t */\n\tpublic String assignOperator(String traceTaskId,String userIds);\n\t/**\n\t * 查询系统角色列表(jsp管理界面使用)\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeRoleForList(Map<String,String> m , Page p);\n\t/**\n\t * 查询系统角色列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeRole(Map<String,String> m , Page p);\n\t/**\n\t * 保存系统角色\n\t * @param obj 系统角色对象\n\t */\n\tpublic void saveSeRole(SeRole obj) ;\n\t/**\n\t * 更新系统角色\n\t * @param obj 系统角色对象\n\t */\n\tpublic void updateSeRole(SeRole obj);\n\t/**\n\t * 根据主键查询系统角色对象\n\t * @param pk 主键\n\t */\n\tpublic SeRole querySeRoleById(java.lang.String pk);\n\t/**\n\t * 删除系统角色对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeRoleById(java.lang.String pk);\n\t/**\n\t * 批量删除系统角色对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeRoleByIds(String ids);\n\t\n\t/**\n\t * 查询用户系统/项目 角色\n\t * Method Description : ########\n\t * @param projectId 如果是null或空字符串则查询系统角色 否则查询项目角色\n\t * @param userId 用户ID\n\t * @return\n\t */\n\tpublic List queryUserRole(String projectId,String userId);\n\t/**\n\t * 保存用户角色\n\t * Method Description : ########\n\t * @param projectId 项目ID(有则是保存项目角色否则为系统角色)\n\t * @param userId 用户ID\n\t * @param roleCodes 角色CODE\n\t * @return 成功返回SUCCESS\n\t */\n\tpublic String saveUserRole(String projectId,String userId,String roleCodes);\n\t/**\n\t * \t获取登录用户信息\n\t * Method Description : ########\n\t * @param userAccount 用户账号\n\t * @return\n\t */\n\tpublic LoginUserInfo createLoginUserInfo(String userAccount);\n\t\n\t/**\n\t * 查询系统菜单列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeMenu(Map<String,String> m , Page p);\n\t/**\n\t * 保存系统菜单\n\t * @param obj 系统菜单对象\n\t * @param parentId 父节点ID,如果增加根节点请设置为空\n\t */\n\tpublic void saveSeMenu(SeMenu obj,String parentId) ;\n\t/**\n\t * 更新系统菜单\n\t * @param obj 系统菜单对象\n\t */\n\tpublic void updateSeMenu(SeMenu obj);\n\t/**\n\t * 根据主键查询系统菜单对象\n\t * @param pk 主键\n\t */\n\tpublic SeMenu querySeMenuById(java.lang.String pk);\n\t/**\n\t * 查询菜单列表-treegrid\n\t * Method Description : ########\n\t * @param m 查询条件\n\t * @param id 父节点ID(查询子节点用)\n\t * @param p 分页信息(只有第一级节点才使用) 当id参数有值的时候该参数无效\n\t * @return\n\t */\n\tpublic List querySeMenuForDataGrid(String id, Page p);\n\t/**\n\t * 查询菜单列表-ztree\n\t * Method Description : ########\n\t * @return\n\t */\n\tpublic List querySeMenuForZtree();\n\t/**\n\t * 根据MenuID查询树形代码\n\t * @param menuId 菜单ID\n\t * @return\n\t */\n\tpublic String queryTreeCodeById(String menuId);\n\t/**\n\t * 根据树形代码查询菜单\n\t * @param treeCode 树形代码\n\t * @return\n\t */\n\tpublic SeMenu querySeMenuByTreeCode(String treeCode);\n\t/**\n\t * 查询某节点的父节点\n\t * Method Description : ########\n\t * @param id 子节点ID\n\t * @return\n\t */\n\tpublic SeMenu querySeMenuOfParent(String id);\n\t/**\n\t * 删除系统菜单对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeMenuById(java.lang.String pk);\n\t/**\n\t * 批量删除系统菜单对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeMenuByIds(String ids);\n\t/**\n\t * 查询权限字典列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeAuth(Map<String,String> m , Page p);\n\t/**\n\t * 保存权限字典\n\t * @param obj 权限字典对象\n\t */\n\tpublic void saveSeAuth(SeAuth obj) ;\n\t/**\n\t * 更新权限字典\n\t * @param obj 权限字典对象\n\t */\n\tpublic void updateSeAuth(SeAuth obj);\n\t/**\n\t * 根据主键查询权限字典对象\n\t * @param pk 主键\n\t */\n\tpublic SeAuth querySeAuthById(java.lang.String pk);\n\t/**\n\t * 删除权限字典对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeAuthById(java.lang.String pk);\n\t/**\n\t * 批量删除权限字典对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeAuthByIds(String ids);\n\t/**\n\t * 查询某角色的权限\n\t * Method Description : ########\n\t * @param roleCode 角色Code\n\t * @return\n\t */\n\tpublic List queryAuthOfRole(String roleCode);\n\t/**\n\t * 查询某角色的菜单\n\t * Method Description : ########\n\t * @param roleCode 角色Code\n\t * @return\n\t */\n\tpublic List queryMenuOfRole(String roleCode);\n\t/**\n\t * 保存角色与权限关系\n\t * Method Description : ########\n\t * @param roleCode 角色CODE\n\t * @param authCodes 权限CODE 多个用\",\"隔开\n\t * @return\n\t */\n\tpublic String saveAuthOfRole(String roleCode,String authCodes);\n\t/**\n\t * 保存角色与菜单关系\n\t * Method Description : ########\n\t * @param roleCode 角色CODE\n\t * @param menuIds 菜单ID 多个用\",\"隔开\n\t * @return\n\t */\n\tpublic String saveMenuOfRole(String roleCode,String menuIds);\n\t/**\n\t * 某人在某项目中是否有某权限\n\t * Method Description : ########\n\t * @param userId 人员ID\n\t * @param projectId 项目ID\n\t * @param authCode 权限CODE\n\t * @return 有权限返回YES 无权限返回NO\n\t */\n\tpublic String hasAuth(String userId,String projectId,String authCode);\n\t/**\n\t * 某人在某项目中的权限\n\t * Method Description : ########\n\t * @param userId 人员ID\n\t * @param projectId 项目ID\n\t * @return Map<authCode,YES>\n\t */\n\tpublic Map<String,String> queryAuth(String userId,String projectId);\n\t/**\n\t * 查询某人的菜单\n\t * Method Description : ########\n\t * @param userId 用户\n\t * @param parentCode 父节点CODE,例如查询第一级目录则为root\n\t * @param level 菜单等级 如果是查询全部子菜单则为null即可\n\t * @param onlyLeaf 是否只查询叶子节点 1:是 其他值:否\n\t * @return\n\t */\n\tpublic List<MenuBean> queryMenuOfUser(String userId,String parentCode , Integer level,String onlyLeaf);\n\t/**\n\t * 查询用户权限\n\t * Method Description : ########\n\t * @param userId 用户ID\n\t * @return\n\t */\n\tpublic List queryAuthOfUser(String userId);\n\t/**\n\t * 查询用户菜单\n\t * Method Description : ########\n\t * @param userId 用户ID\n\t * @return\n\t */\n\tpublic List queryMenuOfUser(String userId);\n\t/**\n\t * 查询会议列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeMeeting(Map<String,String> m , Page p);\n\t/**\n\t * 查询会议列表\n\t * @param dtb DataTableBean 查询条件及分页信息及返回数据\n\t * @return\n\t */\n\tpublic DataTableBean querySeMeetingForBootstrap(DataTableBean dtb);\n\t\n\t/**\n\t * 查询风险列表\n\t * @param dtb DataTableBean 查询条件及分页信息及返回数据\n\t * @return\n\t */\n\tpublic DataTableBean querySeRiskForBootstrap(DataTableBean dtb);\n\t\n\t/**\n\t * 查询公共模块列表\n\t * @param dtb DataTableBean 查询条件及分页信息及返回数据\n\t * @return\n\t */\n\tpublic DataTableBean querySePubModuleForBootstrap(DataTableBean dtb);\n\t\n\t/**\n\t * 保存会议\n\t * @param obj 会议对象\n\t */\n\tpublic void saveSeMeeting(SeMeeting obj) ;\n\t/**\n\t * 更新会议\n\t * @param obj 会议对象\n\t */\n\tpublic void updateSeMeeting(SeMeeting obj);\n\t/**\n\t * 根据主键查询会议对象\n\t * @param pk 主键\n\t */\n\tpublic SeMeeting querySeMeetingById(java.lang.String pk);\n\t/**\n\t * 删除会议对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeMeetingById(java.lang.String pk);\n\t/**\n\t * 批量删除会议对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeMeetingByIds(String ids);\n\t\n\t/**\n\t * 查询会议记录列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeMeetingRecord(Map<String,String> m , Page p);\n\t/**\n\t * 保存会议记录\n\t * @param obj 会议记录对象\n\t */\n\tpublic void saveSeMeetingRecord(SeMeetingRecord obj) ;\n\t/**\n\t * 更新会议记录\n\t * @param obj 会议记录对象\n\t */\n\tpublic void updateSeMeetingRecord(SeMeetingRecord obj);\n\t/**\n\t * 根据主键查询会议记录对象\n\t * @param pk 主键\n\t */\n\tpublic SeMeetingRecord querySeMeetingRecordById(java.lang.String pk);\n\t/**\n\t * 删除会议记录对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeMeetingRecordById(java.lang.String pk);\n\t/**\n\t * 批量删除会议记录对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeMeetingRecordByIds(String ids);\n\t/**\n\t * 查询会议要点\n\t * Method Description : ########\n\t * @param meetingCode 会议CODE\n\t * @param classify 条目分类\n\t * @return\n\t */\n\tpublic DataTableBean querySeMeetingRecordForMetting(String meetingCode,String classify);\n\t/**\n\t * 查询项目文档列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeProjectDoc(Map<String,String> m , Page p);\n\t/**\n\t * 保存项目文档\n\t * @param obj 项目文档对象\n\t */\n\tpublic void saveSeProjectDoc(SeProjectDoc obj) ;\n\t/**\n\t * 更新项目文档\n\t * @param obj 项目文档对象\n\t */\n\tpublic void updateSeProjectDoc(SeProjectDoc obj);\n\t/**\n\t * 根据主键查询项目文档对象\n\t * @param pk 主键\n\t */\n\tpublic SeProjectDoc querySeProjectDocById(java.lang.String pk);\n\t/**\n\t * 删除项目文档对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeProjectDocById(java.lang.String pk);\n\t/**\n\t * 根据附件Id删除文档\n\t * Method Description : ########\n\t * @param attachId 附件ID\n\t */\n\tpublic void deleteSeProjectDocByAttachId(java.lang.String attachId);\n\t/**\n\t * 批量删除项目文档对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeProjectDocByIds(String ids);\n\t\n\t/** 查询个人天计划列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeDayPlan(Map<String,String> m , Page p);\n\t/**\n\t * 保存个人天计划\n\t * @param obj 个人天计划对象\n\t */\n\tpublic void saveSeDayPlan(SeDayPlan obj) ;\n\t/**\n\t * 更新个人天计划\n\t * @param obj 个人天计划对象\n\t */\n\tpublic void updateSeDayPlan(SeDayPlan obj);\n\t/**\n\t * 根据主键查询个人天计划对象\n\t * @param pk 主键\n\t */\n\tpublic SeDayPlan querySeDayPlanById(java.lang.String pk);\n\t/**\n\t * 删除个人天计划对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeDayPlanById(java.lang.String pk);\n\t/**\n\t * 批量删除个人天计划对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeDayPlanByIds(String ids);\n\t/**\n\t * 查询天计划-portal\n\t * @param dtb \n\t */\n\tpublic DataTableBean queryDayPlanForIndexPlugin(DataTableBean dtb);\n\t/**\n\t * 快速保存天计划条目\n\t * Method Description : ########\n\t * @param planContent 计划内容\n\t * @param userId 用户ID\n\t * @return 条目ID\n\t */\n\tpublic String saveSimpleSeDayPlan(String dayPlanId,String planContent,String userId);\n\t\n}", "private void initService() {\r\n\t}", "public interface MemberService {\n //public void detail\n public MemberBean detail(String id);\n public List<MemberBean> find(String keyword);//List는 리턴값이 여러개라도 에러가 나지 않음\n public void join(MemberBean param);\n public List<MemberBean> list();\n public boolean login(MemberBean param);\n public void update(MemberBean param);\n public void delete(String id);\n public int count();\n\n\n\n}", "public UpdateService() {\n super(\"UpdateService\");\n }", "public interface ShopManageService {\n\n //查询\n Map<String, Object> selectAll(int offset, int limit);\n\n Map<String, Object> selectAll();\n\n Map<String, Object> selectBySID(int sid);\n\n Map<String, Object> selectByPIC(String job, int offset, int limit);\n\n Map<String, Object> selectShopName(String name, int offset, int limit);\n\n //------------------------------------------------------------------------------\n //添加\n boolean addShop(Shop form);\n //修改\n boolean updateShop(Shop form);\n //删除\n boolean deleteShop(int sid);\n\n}", "public mService() {\n super(\"fetchImageService\");\n }", "public interface IHouseVideoRealtimeService {\r\n /**\r\n * 直播列表\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveList(String params) throws Exception;\r\n\r\n /**\r\n * 直播添加\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveCreate(String params) throws Exception;\r\n\r\n /**\r\n * 直播详情\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveDetail(String params)throws Exception;\r\n\r\n /**\r\n * 直播修改\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveUpdate(String params) throws Exception;\r\n\r\n /**\r\n * 直播删除\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveDelete(String params) throws Exception;\r\n}", "public interface SuperviseMatterService extends Serializable, Tools {\n\n /**\n * 同意督办回复\n *\n * @param token\n * @param superviseMatterId\n * @return\n */\n Object approvalSuperviseMatter(String token, String superviseMatterId);\n\n /**\n * 回复督办事项\n *\n * @param token\n * @param variables\n * @return\n */\n Object replySuperviseMatter(String token, Map variables);\n\n /**\n * 选择反馈方式\n *\n * @param feedbackMode\n * @param token\n * @return\n */\n Object choiceFeedbackMode(String superviseMatterId, Integer feedbackMode, String token);\n\n /**\n * 确认督办\n *\n * @param token\n * @param variables\n * @return\n */\n Object confirm(String token, Map variables);\n\n /**\n * 获取督办事项详情\n *\n * @param token\n * @param superviseMatterId\n * @return\n */\n Object getSuperviseMatter(String token, String superviseMatterId);\n\n /**\n * 督办事项列表\n *\n * @param token\n * @param page\n * @param number\n * @return\n */\n Object listSuperviseMatter(String token, String action, Boolean value, int page, int number);\n\n /**\n * 获取督办事件 表单\n *\n * @param token\n * @return\n */\n Object getSuperviseMatterFromData(String token);\n\n /**\n * 上报督办事件\n *\n * @param token\n * @param taskForm\n * @return\n */\n Object saveSuperviseMatter(String token, Map taskForm);\n\n /**\n * 读取文件信息\n *\n * @param file\n * @return\n */\n default StringBuffer getFormData(File file) {\n BufferedReader bufferedReader = null;\n StringBuffer stringBuffer = new StringBuffer();\n try {\n bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(file), \"utf-8\"));\n String line = null;\n while (null != (line = bufferedReader.readLine())) {\n stringBuffer.append(line);\n }\n } catch (Exception exception) {\n exception.printStackTrace();\n } finally {\n if (null != bufferedReader) {\n try {\n bufferedReader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return stringBuffer;\n }\n }\n}", "public interface DeviceOperateService {\n public int opValve(Integer userid,String house_code,Integer open,Integer islock,JSONObject resultObj);\n\n public int setBuildingValve(Integer userid, Map<String,String> paramters,JSONObject resultObj);\n\n public int opBuildingValve(Integer userid, Map<String,String> paramters,JSONObject resultObj);\n\n public int readBuildingValveSet(Integer userid, Map<String,String> paramters,JSONObject resultObj);\n}", "private RecipleazBackendService() {\n }", "private ServiceGenerator() {\n }", "public interface LandService {\n\t//declare some methods \n\tpublic List<LandBean> getAllLands() ;\n\tpublic boolean deleteLand(int id);\n\tpublic boolean addLand(LandBean bean);\n\tboolean modifyLand(LandBean bean);\n\n}", "public interface UserService {\n /**\n * 添加\n * @param userName\n * @param age\n */\n void insert(String userName,int age);\n\n /**\n * 插入用户\n */\n void insertUser(String userName);\n\n /**\n * 删除\n * @param userId\n */\n void delete(Long userId);\n\n /**\n * 查询\n * @param userId\n * @return\n */\n String select(Long userId) throws InterruptedException;\n\n /**\n * 抛出异常\n */\n void throwEx() throws Exception;\n}", "public interface GoodsTypeService {\n /**\n * 更新商品类型\n *\n * @param gtn\n * @return\n */\n public int updateGoodsTypeTN(GoodsType gtn);\n /**\n * 添加商品规格关系\n * @param goodsType\n * @return\n */\n public int addGoodsType(GoodsType goodsType);\n}", "private WebServicesFabrica(){}", "public interface PatientService {\n\n /**\n * 新增病人获取ID\n *\n * @return\n */\n Long getNewPid(Patient patient);\n\n /**\n * 新增病人\n *\n * @param patient\n * @return\n */\n JSONObject newPatient(Patient patient);\n\n\n /**\n * 复诊输入病人条件查询\n *\n * @param patient\n * @return\n */\n JSONObject revisit(Patient patient);\n\n\n /**\n * 获取地址列表\n * @return\n */\n JSONObject getPlace();\n\n\n /**\n * 获取病人列表\n * @return\n */\n JSONObject getPatientList(String pName,Integer pageSize,Integer pageNum);\n\n\n /**\n * 获取病人基本信息\n * @param pId\n * @return\n */\n JSONObject getPatientInfo(Long pId);\n\n /**\n * 更新病人基本信息\n * @param patient\n * @return\n */\n JSONObject updatePatientInfo(Patient patient);\n\n\n /**\n * 复诊时,有重复条件者获取病人列表\n */\n JSONObject getRevisitList(Patient patient,Integer pageSize,Integer pageNum);\n\n\n /**\n * 删除病人\n * @param patientId\n * @return\n */\n JSONObject deletePatient(Long patientId);\n\n /**\n * 将选中的病人的病历保存到Word文档\n */\n void saveObjToWord(List<Long> inquiryIdList, boolean all,Long patientId, HttpServletResponse response);\n}", "private FournisseurArboTraficService() {\r\n\t\tsuper();\r\n\t}", "public interface Service {\n /**\n * Processes a query, returning result as a string.\n */\n String processQuery(String query);\n }", "public interface SeatYudingOrderService {\n\n\n void yudingOrder(String uid, String workday, String route, String time,String dateType);\n void yudingOrder(String uid, String workday, String route, String time,String startDate,String endDate);\n void yudingOrder(String uid, String route, String time, String bizDate, Integer dayNum);\n void addOrder();\n\n Map<String,Object> shikebiao(String route, String holiday, String uid,String dateType);\n\n void sendMsgBanci(String first,String yuanyin,String content,String url);\n\n void pingjia(String uid,String orderId,String content,Integer fuwu) throws Exception;\n}", "interface Services {\n\tpublic int addEmployee(Connection conn, String empDesignation);\n\n\tpublic void promote(Connection conn);\n\n\tpublic void deleteEmployee(Connection conn, int empId);\n\n\tpublic void changeSupervisor(Connection conn);\n\n\t// public void showEmployeesUnderMe(Map<Integer, Employee> employees, int\n\t// empId);\n}", "public interface ServiceManagerInterface {\n\n /**\n * add a Service\n * @param servicePackage the service package to register\n * @param configuration The configuration of the client\n * @param profile the client profile\n * @return The added service description\n * @throws IOException\n * @throws SoapException\n */\n AGServiceDescription addService(\n AGServicePackageDescription servicePackage,\n AGParameter[] configuration,\n ClientProfile profile)\n throws IOException, SoapException;\n\n /**\n * gets the service manager description\n * @return service manager description\n * @throws IOException\n * @throws SoapException\n */\n AGServiceManagerDescription getDescription()\n throws IOException, SoapException;\n\n /**\n * gets the url of the node service\n * @return url of node service\n * @throws IOException\n * @throws SoapException\n */\n String getNodeServiceUrl()\n throws IOException, SoapException;\n\n /**\n * gets the available services\n * @return a vector of available services\n * @throws IOException\n * @throws SoapException\n */\n AGServiceDescription[] getServices()\n throws IOException, SoapException;\n\n /**\n * test whether the service manager is valid\n * @return the 'valid' state\n * @throws IOException\n * @throws SoapException\n */\n int isValid() throws IOException, SoapException;\n\n /**\n * removes a service from the service manager\n * @param serviceDescription the description of the service to be removed\n * @throws IOException\n * @throws SoapException\n */\n void removeService(AGServiceDescription serviceDescription)\n throws IOException, SoapException;\n\n /**\n * removes all services from the service manager\n * @throws IOException\n * @throws SoapException\n */\n void removeServices() throws IOException, SoapException;\n\n /**\n * sets the url for node service\n * @param nodeServiceUri\n * @throws IOException\n * @throws SoapException\n */\n void setNodeServiceUrl(String nodeServiceUri)\n throws IOException, SoapException;\n\n /**\n * shuts down the service manager\n * @throws IOException\n * @throws SoapException\n */\n void shutdown() throws IOException, SoapException;\n\n /**\n * stops all services on service manager\n * @throws IOException\n * @throws SoapException\n */\n void stopServices() throws IOException, SoapException;\n\n /**\n * gets the version number of the service manager\n * @return string with version of service manager\n * @throws IOException\n * @throws SoapException\n */\n String getVersion() throws IOException, SoapException;\n\n\n /**\n * Requests to join a bridge\n * @param bridgeDescription The description of the bridge\n * @throws IOException\n * @throws SoapException\n */\n void joinBridge(BridgeDescription bridgeDescription)\n throws IOException, SoapException;\n\n /**\n * Sets the streams of this service manager\n *\n * @param streamDescriptionList a vector of stream descriptions\n * @throws IOException\n * @throws SoapException\n */\n void setStreams(StreamDescription[] streamDescriptionList)\n throws IOException, SoapException;\n /**\n * adds a stream\n * @param argname stream description of new stream\n * @throws IOException\n * @throws SoapException\n */\n void addStream(StreamDescription argname)\n throws IOException, SoapException;\n /**\n * Removes a stream\n * @param argname The stream to remove\n * @throws IOException\n * @throws SoapException\n */\n void removeStream(StreamDescription argname)\n throws IOException, SoapException;\n /**\n * Sets the point of reference for network traffic\n * @param url The url of the point of reference server\n * @throws IOException\n * @throws SoapException\n */\n void setPointOfReference(String url)\n throws IOException, SoapException;\n\n /**\n * Sets the encryption\n * @param encryption The encryption\n * @throws IOException\n * @throws SoapException\n */\n void setEncryption(String encryption)\n throws IOException, SoapException;\n /**\n * Instructs the client to run automatic bridging\n * @throws IOException\n * @throws SoapException\n */\n void runAutomaticBridging()\n throws IOException, SoapException;\n\n /**\n * Determines if a service is enabled\n * @param service The service to get the status of\n * @return True if enabled, false otherwise\n * @throws IOException\n * @throws SoapException\n */\n boolean isServiceEnabled(AGServiceDescription service)\n throws IOException, SoapException;\n\n /**\n * Enables or disables a service\n * @param service The service to control\n * @param enabled True to enable, false to disable\n * @throws IOException\n * @throws SoapException\n */\n void enableService(AGServiceDescription service, boolean enabled)\n throws IOException, SoapException;\n\n /**\n * Gets the configuration parameters of a service\n * @param service The service to get the configuration of\n * @return The parameters\n * @throws IOException\n * @throws SoapException\n */\n AGParameter[] getServiceConfiguration(AGServiceDescription service)\n throws IOException, SoapException;\n /**\n * Sets the configuration parameters for a service\n * @param service The service to configure\n * @param config The new parameters\n * @throws IOException\n * @throws SoapException\n */\n void setServiceConfiguration(AGServiceDescription service,\n AGParameter[] config)\n throws IOException, SoapException;\n\n /**\n * Sets the client profile\n * @param profile The new profile\n * @throws IOException\n * @throws SoapException\n */\n void setClientProfile(ClientProfile profile)\n throws IOException, SoapException;\n}", "public interface ServiceService {\n void createServices() throws IOException, TemplateException;\n\n void createService(String table) throws IOException, TemplateException;\n\n void createServiceImpls() throws IOException, TemplateException;\n\n void createServiceImpl(String table) throws IOException, TemplateException;\n}", "public interface Service {\r\n\t\r\n\t public Customer createAccount(Customer c) \r\n\t\t\t throws InvalidInputException; \r\n\t public Customer getBalance(String mobile) \r\n\t\t\t throws AccountNotFoundException, InvalidInputException;\r\n\t public Customer FundTransfer\r\n\t (String fromMobile, String toMobile, double amount)\r\n throws AccountNotFoundException,InvalidInputException, InsufficientBalanceException;\r\n\t \r\n\t public Customer deposit (String mobile, double amount)\r\n\t throws AccountNotFoundException,InvalidInputException, InsufficientBalanceException;\r\n\r\n}", "private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}", "Fog_Services createFog_Services();", "private SiteEditService() {\r\n \r\n }", "protected void doService(HttpServletRequest req, HttpServletResponse resp) throws Exception {\r\n // This class has been removed from all places where it was used and replaced by the Spring\r\n // dispatcher from which it inherits. Delegate to super for now in case this ever gets called.\r\n // There is one place that depends on the tool constants above, in CommentListGenerator.\r\n // These constants should be relocated and this class purged.\r\n super.doService(req, resp);\r\n }", "public interface EavropDocumentService {\n\t\n\n\t/**\n\t * Adds to the eavrop an externally received document, will potentially affect the start date of the eavrop assessment period \n\t *\n\t * @param aCommand\n\t */\n\tpublic boolean addReceivedExternalDocument(AddReceivedExternalDocumentsCommand aCommand);\n\n\t/**\n\t * Adds to the eavrop an internally received document \n\t *\n\t * @param aCommand\n\t */\n\tpublic void addReceivedInternalDocument(AddReceivedInternalDocumentCommand aCommand);\n\n\t/**\n\t * Adds to the eavrop a requested document\n\t * @param aCommand\n\t */\n\tpublic RequestedDocument addRequestedDocument(AddRequestedDocumentCommand aCommand);\n\n}", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "public interface PointsService {\n /**\n * 给 vipId 新增积分\n * @param vipId\n * @param type 积分类型\n * @param balancePoints\n * @param storeId\n */\n void insertOrUpdatePointRecord(Integer vipId, Integer type, Integer balancePoints, Integer storeId);\n\n void addGift(PointsGift gift);\n\n List<PointsGift> getAllGiftByStoreId(Integer storeId);\n\n /**\n * 使用积分兑换礼物\n * @param giftId\n * @param vipId\n * @return\n */\n boolean getGiftByPoints(Integer giftId,Integer vipId);\n\n /**\n * 根据 vipId 获取积分详情\n * @param vipId\n * @return\n */\n Points getPointsByVipInfo(Integer vipId);\n}", "public BudgetAccountServiceImpl() {\r\n\t}", "public RestService() {\r\n \r\n }", "public interface CheckingService {\n// /**\n// * 登录\n// * @param login_account\n// * @param password\n// * @return\n// */\n// Map<String,Object>Login(String login_account, String password);\n\n List<Checking> getChecking();\n\n List<Checking> get(String account);\n\n List<String>getAllAccount();\n\n int insert(Login logins);\n\n int[] bachIntsert(List<Integer> check_id);\n\n int[] bachDelete(List<Integer> check_id);\n\n List<Checking> queryLike(String keywords);\n\n List<Checking> queryBy(String condition);\n}", "public interface LearningSpaceServices {\n\n\n}", "public interface IBaseService {\n\n\n /**\n * 根据id获取\n * @param tableName 表名\n * @param id\n */\n Map<String,Object> findById(String tableName, Integer id);\n\n /**\n * 修改状态\n * @param tableName 表名\n * @param status 状态\n * @param id\n */\n int updateStatus(String tableName, Integer status, Integer id);\n\n /**\n * 修改\n * @param tableName 表名\n * @param params 要修改的字段\n */\n int update(String tableName, Map<String, Object> params);\n /**\n * 根据sql删除或更改\n * @param sql 表名\n */\n int deleteOrUpdate(String sql);\n /**\n * 根据id删除\n * @param tableName 表名\n * @param id\n */\n int delete(String tableName, Integer id);\n /**\n * 插入一条数据,返回主键\n * @Date 2016/7/20 15:20\n * @author linyb\n */\n int save(String tableName, Map<String, Object> params);\n /**\n * 获取分页信息\n * @Date 2016/7/21 16:15\n * @param coloumSql 要查询的列的信息\n * @param fromSql 从哪些表查询\n * @param pageNum 第几页\n * @param pageSize 查询多少条\n */\n PageModel findPage(String coloumSql, String fromSql, Integer pageNum, Integer pageSize);\n /**\n * 获取分页信息\n * @Date 2016/7/21 16:15\n * @param offset 偏移\n * @param pageSize 查询多少条\n * @param coloumSql 要查询的列的信息\n * @param fromSql 从哪些表查询\n */\n PageModel findPage(Integer offset, Integer pageSize, String coloumSql, String fromSql);\n\n /**\n * 不分页获取列表信息\n * @Date 2016/7/26 08:46\n * @author linyb\n * @param coloumSql 列信息\n * @param fromSql 从哪里查询\n */\n List findList(String coloumSql, String fromSql);\n /**\n * 根据sql获取符合条件的第一条数据\n * @Date 2016/7/28 16:24\n * @author linyb\n */\n Map<String,Object> findFirstBySql(String sql);\n\n}", "public interface ResponseService {\n\t\n\t\n\t//CUSTOMER METHODS\n\t\n\tpublic ResponseRepresentation getCustomers();\n\tpublic ResponseRepresentation createCustomer(String firstName, String lastName);\n\tpublic ResponseRepresentation deleteCustomer(String id);\n\tpublic ResponseRepresentation getCustomerById(String id);\n\tpublic ResponseRepresentation updateCity(String id, String city);\n\tpublic ResponseRepresentation updateCustomerAddress(String id, String address);\n\tpublic ResponseRepresentation updateState(String id, String state);\n\tpublic ResponseRepresentation updateZip(String id, String zip);\n\tpublic ResponseRepresentation updatePhoneNumber(String id, String phoneNumber);\n\t\n\t\n\t\n\t//PARTNER METHODS\n\tpublic ResponseRepresentation createPartner(String firstName, String lastName, String company);\n\tpublic ResponseRepresentation getPartnerById(String id);\n\tpublic ResponseRepresentation getPartners();\n\tpublic ResponseRepresentation updatePartnerCity(String id, String city);\n\tpublic ResponseRepresentation updatePartnerAddress(String id, String address);\n\tpublic ResponseRepresentation updatePartnerPhoneNumber(String id, String phoneNumber);\n\tpublic ResponseRepresentation updatePartnerState(String id, String state);\n\t\n\t\n\t\n\t//PRODUCT METHODS\n\tpublic ResponseRepresentation createProduct(String name, String description, String sellerID);\n\tpublic ResponseRepresentation getProductById(String id);\n\tpublic ResponseRepresentation getProductByName(String name);\n\tpublic ResponseRepresentation getProducts();\n\tpublic ResponseRepresentation updateName(String id, String name);\n\tpublic ResponseRepresentation updateDescription(String id, String description);\n\tpublic ResponseRepresentation updateQuantity(String id, String quantity);\n\tpublic ResponseRepresentation updatePrice(String id, String price);\n\t\n\t\n\t//ORDER METHODS\n\tpublic ResponseRepresentation cancelOrder(String id);\n\tpublic ResponseRepresentation createOrder(String customerID);\n\tpublic ResponseRepresentation deliverOrder(String id);\n\tpublic ResponseRepresentation lookupOrder(String id);\n\tpublic ResponseRepresentation processOrder(String id);\n\tpublic ResponseRepresentation shipOrder(String id);\n\tpublic ResponseRepresentation submitOrder(String id);\n\tpublic ResponseRepresentation checkStatus(String id);\n\tpublic ResponseRepresentation addItem(String orderID, String partnerID, String productID, String quantity, String price);\n\tpublic ResponseRepresentation buyItemNow(String productId, String customerID, String partnerID);\n\t\n\n}", "public InitService() {\n super(\"InitService\");\n }", "public interface ProductService {\n /**\n * 查询所有产品\n */\n List<Product> getAllProduct();\n\n /**\n * 添加\n * @param product\n */\n void saveProduct(Product product);\n\n /**\n * 删除\n * @param id\n */\n void deleteProduct(Integer id);\n}", "public interface EzService {\n}", "public interface MineService {\n}", "public interface UserInfoService extends Service<UserInfo> {\n float getHistoryRate(int userId, int day);\n\n String getEncryPhotoUrl(int userId);\n String getEncryPayPassword(String payPasswor);\n int selectByIdAndPayPassword(String userId,String payPassword);\n int computeAge(String IdNO);\n String computeSex(String IdNo);\n UserInfo anonymousUserInfo(UserInfo userInfo);\n\n List<UserInfo> findFriendByUserId(String userId);\n\n List<UserInfo> findIsAddingFriend(String userId);\n\n Boolean lockPayPassword(int uid);\n\n ErrorEnum addLockPayPassword(int uid);\n\n List<LikePeopleJoinUserInfoVo> findLikePeople(String userId);\n\n}", "public interface UserService {\n /**\n * description: 用户登录\n * version: 1.0\n * date: 2021/1/11 22:38\n * author: LIBEL\n *\n * @param param\n * @return com.adp.FTXSecurity.model.vo.UserVo\n */\n UserVo login(LoginParam param);\n\n /**\n * description: 更新用户信息\n * version: 1.0\n * date: 2021/1/11 22:40\n * author: LIBEL\n *\n * @param param\n * @return void\n */\n void update(UserParam param);\n\n /**\n * description: 新增用户信息\n * version: 1.0\n * date: 2021/1/11 22:40\n * author: LIBEL\n *\n * @param param\n * @return void\n */\n void createUser(UserEntity param);\n}", "public interface OrderService {\n\n /**\n * 司机发布信息\n *\n * @param idno\n * @param driverShareInfo\n * @return\n */\n DriverShareInfo shareDriverInfo(String idno, DriverShareInfo driverShareInfo);\n\n /**\n * 乘客预定校验\n *\n * @param idno\n * @param driverOrderId\n * @param passerOrderId\n * @param genToken\n * @return\n */\n Result passerReserveCheck(String idno, Long driverOrderId, Long passerOrderId, boolean genToken);\n\n /**\n * 乘客预定\n *\n * @param radomToken\n * @param idno\n * @param driverOrderId\n * @param passerOrderId\n * @return\n */\n Result passerReserve(String radomToken, String idno, Long driverOrderId, Long passerOrderId);\n\n\n}", "public interface CustomService {\n Result getMenu();\n\n Result addOrUpdCustom(Custom custom);\n\n Result delCustom(String customIds);\n\n PageInfo getCustomList(PageInfo pageInfo, Map<String, String> param);\n\n Result getCustomById(String id);\n\n PageInfo getAuthList(PageInfo pageInfo, Map<String, Object> param);\n\n Result getAllCus(String key, String size);\n\n Result getAllOnlineCus(String key, String size);\n\n Result getAllCusWithKf(String key, String size);\n\n PageInfo getWorkAuthList(PageInfo pageInfo, Custom custom);\n\n Result passWorkAuth(String custom_id) throws Exception;\n\n Result refuseWorkAuth(String custom_id) throws Exception;\n\n PageInfo getLinkAuthList(PageInfo pageInfo, Custom custom);\n\n Result passLinkAuth(String custom_id) throws Exception;\n\n Result refuseLinkAuth(String custom_id) throws Exception;\n}", "public interface IDemoService {\n /**\n * 查询测试申请列表\n *\n * @return\n */\n Map<String, Object> getTestPage(JSONObject jsonObject);\n\n /**\n * 新建测试申请\n *\n * @param jsonObject\n * @return\n */\n int addApply(JSONObject jsonObject);\n\n /**\n * 根据iD获取详细信息\n *\n * @param json\n * @return\n */\n Map<String, Object> getTestItemInfo(JSONObject json);\n\n /**\n * 修改\n */\n\n int updateTestItemInfo(JSONObject json);\n\n /**\n * 审核\n */\n\n int checkTestItemInfo(JSONObject json);\n\n /**\n * 补充\n */\n int addSupply(JSONObject json);\n\n /**\n * 延期\n */\n int addDelay(JSONObject json);\n\n /**\n * 获取补充信息列表\n */\n List<Map<String, Object>> getSupply(JSONObject json);\n /**\n * 获取延期信息列表\n */\n List<Map<String, Object>> getDelay(JSONObject json);\n\n /**\n * 测试完成\n */\n int testComplete(JSONObject json);\n\n /**\n * 导出\n */\n List<Map<String, Object>> export(JSONObject json);\n}", "public interface MetaInformationService extends BasicEcomService{\n\n public String listMetaInformationTypesForPage(String page);\n public Integer getTotalPagesForMetaInformationTypes();\n public Integer getTotalPagesForSearchedMetaInformationTypes(String metaType);\n public String listSearchedMetaInformationTypesForPage(String metaType,String page);\n\n\n}", "public interface GrabTicketQueryService {\n\n\n /**\n * 抢票查询\n * @param method\n * @param train_date\n * @param from_station\n * @param to_station\n * @return\n */\n JSONObject grabTicketQuery(String uid, String partnerid, String method, String from_station, String to_station, String from_station_name, String to_station_name, String train_date, String purpose_codes);\n// JSONObject grabTicketQuery(String partnerid, String method, String from_station, String to_station, String train_date, String purpose_codes);\n}", "public interface Service {\n\n /**\n * Create a new Service\n *\n * @param hostIp database IP address\n * @param user database user name\n * @param password database password\n * @return a Service using the given credentials\n */\n static Service create(String hostIp, String user, String password) {\n return new ServiceImpl(hostIp, user, password);\n }\n\n\n /**\n * Retrieve historical data points for a given symbol.\n *\n * @param symbol Symbol we want history data for.\n * @param startTime Start time (inclusive)\n * @param endTime End time (inclusive)\n * @param numberOfPoints Approximate number of points to be returned\n * @return The stream of filtered data points of the given symbol and time interval\n */\n Stream<DataPoint> getHistoryData(Symbol symbol, LocalDateTime startTime, LocalDateTime endTime, int numberOfPoints);\n\n /**\n * @param symbol the symbol for which to get data\n * @return the most recent data point for the given symbol\n */\n Optional<DataPoint> getMostRecentDataPoint(Symbol symbol);\n\n /**\n * @return the stream of all symbols of the database\n */\n Stream<Symbol> getSymbols();\n\n /**\n * Select whether to use Speedment in memory acceleration when looking up data\n *\n * @param accelerate true for using Speedment in memory acceleration, false for direct SQL\n */\n Service withAcceleration(boolean accelerate);\n}", "public interface CarService {\n //查询可预约车辆\n public String queryCars(CookieStore cookies);\n\n //查询可预约车辆 指定日期\n public String queryCarsByDate(CookieStore cookies,String date);\n\n //查询可预约车辆 指定时间 上午812 下午15\n public String queryCars(CookieStore cookies,String date,String time);\n\n public String queryCars(CookieStore cookies,BookCarBean bcb);\n\n public List<String> getCarList(String json);\n //预约车辆\n public String bookCars(CookieStore cookies);\n\n public String bookCars(CookieStore cookies,BookCarBean bcb);\n\n}", "public interface ArticleService {\n\n /**\n * 新增文章\n * @param article 文章内容\n * @param request 当前请求\n * @return\n */\n ResponseResult save(Article article, HttpServletRequest request);\n\n /**\n * 编辑文章\n * @param article 文章内容\n * @param request 当前请求\n * @return\n */\n ResponseResult edit(Article article, HttpServletRequest request);\n\n List<Article> queryPage(ArticleQO articleQO);\n\n Long count(ArticleQO articleQO);\n\n Article getById(Long id);\n\n void delete(Long id);\n\n}", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.service(req, resp);\r\n\t}", "public interface TearcherInfoService extends Service<TearcherInfo> {\n\n}", "public interface TTuplecountService extends BaseService<TTuplecount> {\n public List<Timestamp> getTimeLineInfo();\n\n public List<TTuplecount> getTupleCountByTimeinfo(Timestamp time);\n\n public Long getSumTupleCountByTimeinfo(Timestamp time);\n\n public List<Long> getSumListTupleCountByTimeInfo();\n\n public void deleteAll();\n\n public String queryTuplecountBypage(int page, int size);\n\n}", "public interface PaperService {\n\n /**\n * this service allowed teacher of a specific course to add a new paper into the course.\n * @param courseId id of the course\n * @param form form of add paper request\n * @return the generated paper.\n * @throws Exception mainly contains not found exception\n */\n Paper addNewPaper(PaperForm form, Long courseId)throws Exception;\n\n /**\n * this service allow student to get his process of paper in this course.\n * @param userId id of user\n * @param courseId id of course\n * @return paper finish state class\n */\n List<PaperFinish> getPaperFinish(Long userId, Long courseId);\n\n /**\n * this service allow teacher to get all students' finish state of a specific paper\n * @param courseId id of course\n * @param paperId id of paper\n * @return finish state list\n */\n List<PaperFinish> getStudentFinish(Long courseId,Long paperId);\n\n /**\n * get paper from paper id and course id\n * @param paperId id of paper\n * @param courseId id of course\n * @return the paper founded ,throw exception when paper not found or not match to the course.\n */\n Paper getPaperInfo(Long paperId,Long courseId);\n}", "public interface SubscriberService {\n\n /**\n * update Subscriber in database\n *\n * @param record Subscriber type object\n */\n void update(Subscriber record);\n\n /**\n * create new Subscriber record in database\n *\n * @param subscriber Subscriber type object\n */\n Subscriber create(Subscriber subscriber);\n\n /**\n * Delete all subscribers from database\n */\n void deleteAll();\n \n}", "public interface DeliveryService {\n\n public List<Delivery> listDelivery(int pageStart, int pageSize);\n\n public int countDelivery();\n\n public List<Delivery> listDeliveryByStock(int pageStart, int pageSize, String class_id, String entity_id, String stock_id, String officeId);\n\n public List<Delivery> listDeliveryByOffice(int pageStart, int pageSize,String stock_id);\n\n public List<Delivery> listDeliveryUNIONStorageByOffice(int pageStart, int pageSize, String stock_id);\n\n public Map<String, Object> addDelivery(Stock stock, Delivery delivery,String status);\n\n public Map<String, Object> addDelivery(Delivery delivery, String status);\n\n public boolean updateDeliveryStatus(String id);\n\n public Map<String, Object> deliveryReport(String startDate,String endDate);\n\n}", "public ServiceFactoryImpl() {\n\t\tsuper();\n\t}", "public interface WordServices {\n /**\n * 根据单词和类型查询单词\n * @param word\n * @param type\n * @return\n */\n WordResult getWord(String word,int type);\n\n /**\n * 根据单词Id查询例句\n * @param wordId\n * @return\n */\n SentenceDefine getSentence(int wordId);\n\n /**\n * 根据单词Id查询单词\n * @param wordId\n * @return\n */\n WordResult getWordById(int wordId);\n\n\n}", "public interface OrderService {\n\t\n\t/**\n\t * Gets all orders\n\t * \n\t * @return List of orders\n\t * @throws ServiceException if DAOException was thrown\n\t */\n\tList<Order> getOrderList() throws ServiceException;\n\t\n\t/**\n\t * Gets orders by certain status\n\t * \n\t * @param orderStatus\n\t * @return List of orders with specific status\n\t * @throws ServiceException if DAOException was thrown\n\t */\n\tList<Order> getOrderListByStatus(OrderStatusEnum orderStatus) throws ServiceException;\n\t\n\t/**\n\t * Adds new order\n\t * \n\t * @param order\n\t * @return 0 of adding is successful\n\t * @throws ServiceException if DAOException was thrown\n\t */\n\tint createNewOrder (Order order) throws ServiceException;\t\n\t\n\t/**\n\t * Gets order by id\n\t * \n\t * @param id\n\t * @return Order entity\n\t * @throws ServiceException if DAOException was thrown\n\t */\n\tOrder getOrder(int id) throws ServiceException;\t\n\t\n\t/**\n\t * Updates order status\n\t * \n\t * @param id\n\t * @param orderStatus\n\t * @throws ServiceException if DAOException was thrown\n\t */\n\tvoid updateOrderStatus(int id, OrderStatusEnum orderStatus) throws ServiceException;\t\n\t\n\t/**\n\t * Sets rejection reason for order\n\t * \n\t * @param id\n\t * @param reason\n\t * @throws ServiceException if DAOException was thrown\n\t */\n\tvoid rejectOrder(int id, String reason) throws ServiceException;\t\n\t\n\t/**\n\t * Sets damage amount for certain order\n\t * \n\t * @param id\n\t * @param totalAmount\n\t * @throws ServiceException if DAOException was thrown\n\t */\n\tvoid sendDamagesAmount(int id, int totalAmount) throws ServiceException;\t\n\t\n\t/**\n\t * Gets all orders of certain user\n\t * \n\t * @param userId\n\t * @return List of users orders\n\t * @throws ServiceException if DAOException was thrown\n\t */\n\tList<Order> getUserOrderList(int userId) throws ServiceException;\t\n\t\n\t/**\n\t * Checks if user unfinished and unpaid orders\n\t * \n\t * @param userId\n\t * @return false if users does not have unfinished orders\n\t * @throws ServiceException if DAOException was thrown\n\t */\n\tboolean checkForUnfinishedOrders (int userId) throws ServiceException;\t\n\t\n\t/**\n\t * Gets list of dates for which car is unavailable\n\t * \n\t * @param carId\n\t * @return List of dates\n\t * @throws ServiceException if DAOException was thrown\n\t */\n\tList<String> getResevedDatesList(int carId) throws ServiceException;\n}", "public interface PosWithdrawService extends GenericService<PosWithdrawRecord,String> {\n\n List<PosWithdrawRecord> selectByExampleAndPage(DataTablesPage<PosWithdrawRecord> page, BaseExample baseExample);\n\n PosWithdrawRecord getPosWithdrawRecordById(int id);\n\n void updateResult(PosWithdrawRecord posWithdrawRecord,\n String money,\n String orderLogNo,\n String lklMerchantCode,\n String lklTerminalCode);\n\n void deleteSend(int pid);\n\n void inserBatchPosWithdraw(List<PosWithdrawRecord> posWithdrawRecord);\n\n PosWithdrawRecord getCountWithdraw();\n\n List<PosWithdrawRecord> searchSendRecordList(PosWithdrawRecord posWithdrawRecord);\n\n}", "public DigestListService() {\r\n parserRssService = new ParserRss();\r\n generalDao = new GeneralDao();\r\n }", "private ServiceGen() {\n }", "public interface UserService {\r\n\t\r\n\tint batchInsert(List<User> list);\r\n\t\r\n\t/**根据主键查询*/\r\n\tpublic User queryById(Integer id);\r\n\r\n\t/**resultHandler写法测试*/\r\n\tpublic void resultHandlerTest();\r\n\r\n\t/**导出*/\r\n\tpublic void export();\r\n\r\n}", "public interface IOaOffPriceService {\n\n /**\n * 查询批量特价调整单明细List\n * @param map\n * @return\n * @throws Exception\n * @author limin\n * @date Mar 9, 2015\n */\n public PageData selectOaOffPriceDetailList(PageMap map) throws Exception;\n\n /**\n * 新增批量特价调整单\n * @param price\n * @param list\n * @return\n * @author limin\n * @date Mar 10, 2015\n */\n public int addOaOffPrice(OaOffPrice price, List<OaOffPriceDetail> list) throws Exception;\n\n /**\n * 修改批量特价调整单\n * @param price\n * @param list\n * @return\n * @author limin\n * @date Mar 10, 2015\n */\n public int editOaOffPrice(OaOffPrice price, List<OaOffPriceDetail> list) throws Exception;\n\n /**\n * 查询批量特价申请单\n * @param id\n * @return\n * @throws Exception\n * @author limin\n * @date Mar 10, 2015\n */\n public OaOffPrice selectOaOffPrice(String id) throws Exception;\n\n /**\n * 查询批量特价调整单明细List\n * @param billid\n * @return\n * @throws Exception\n * @author limin\n * @date Mar 10, 2015\n */\n public List<OaOffPriceDetail> selectOaOffPriceDetailListByBillid(String billid) throws Exception;\n\n /**\n * 查询商品\n *\n * @param pageMap\n * @return\n * @throws Exception\n * @author limin\n * @date Sep 30, 2015\n */\n public PageData getGoodsList(PageMap pageMap) throws Exception;\n}", "@Service\r\npublic interface ResearchService {\r\n\r\n public Page<product_research> getResearchPage(Map<String,Object> params);\r\n public Page<product_research> researchProductPageList(Map<String,Object> params);\r\n public List<product_research> getResearchforbaobiao(Map<String,Object> params);\r\n public int research_add(Map<String,Object> params);\r\n public void research_in(Map<String,Object> params);\r\n public void putuAdd(Map<String,Object> params);\r\n public void researchDel(Map<String,Object> params);\r\n public List<Product_sale_detail> venditionSelect(Map<String,Object> params);\r\n public product_research researchSelect(Map<String,Object> params);\r\n public void researchStatusUp(Map<String,Object> params);\r\n\r\n void research_mod(Map<String, Object> params);\r\n /*public List<pss_research_doc> research_putu(Map<String, Object> params);*/\r\n //public void research_putu(Map<String,Object> params);\r\n}", "public interface InfoService {\n /**\n * 以下方法为通知管理模块功能\n */\n List<Info> getAll();\n\n int insert(Info info);\n}", "public interface RESTService {\n\n /**\n * Check Voter Services\n **/\n\n //TODO to check this is work or not\n //@GET(Config.REGISTER) Call<User> registerUser(@Header(\"uuid\") String uuid,\n // @QueryMap Map<String, String> body);\n\n @GET(Config.REGISTER) Call<User> registerUser(@QueryMap Map<String, String> body);\n\n /**\n * Maepaysoh services\n **/\n\n //candidate\n @GET(Config.CANDIDATE_LIST_URL) Call<CandidateListReturnObject> getCandidateList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.CANDIDATE_URL + \"/{id}\") Call<JsonObject> getCandidate(@Path(\"id\") String id,\n @QueryMap Map<String, String> optionalQueries);\n\n //geo location\n @GET(Config.GEO_LOCATION_URL) Call<GeoReturnObject> getLocationList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.GEO_LOCATION_SEARCH) Call<JsonObject> searchLocation(\n @QueryMap Map<String, String> optionalQueries);\n\n //party\n @GET(Config.PARTY_LIST_URL) Call<PartyReturnObject> getPartyList(\n @QueryMap Map<String, String> optionalQueries);\n\n @GET(Config.PARTY_LIST_URL + \"/{id}\") Call<JsonObject> getPartyDetail(@Path(\"id\") String id);\n\n //OMI service\n @GET(Config.MOTION_DETAIL_URL) Call<JsonObject> getMotionDetail(@Query(\"mpid\") String mpId);\n\n @GET(Config.MOTION_COUNT) Call<JsonObject> getMotionCount(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_DETAIL_URL) Call<JsonObject> getQuestionDetail(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_COUNT) Call<JsonObject> getQuestionCount(@Query(\"mpid\") String mpId);\n\n @GET(Config.QUESTION_MOTION) Call<JsonObject> getQuestionAndMotion(@Query(\"mpid\") String mpId);\n\n @GET(Config.COMPARE_QUESTION) Call<JsonElement> getCompareQuestion(\n @Query(\"first\") String first_candidate_id, @Query(\"second\") String second_candidate_id);\n\n @GET(Config.CANDIDTE_AUTO_SEARCH) Call<ArrayList<CandidateSearchResult>> searchCandidate(\n @Query(\"q\") String keyWord, @QueryMap Map<String, Integer> options);\n\n @GET(Config.CANDIDATE_COUNT) Call<JsonObject> getCandidateCount(@Query(\"party\") String party_id);\n\n @GET(Config.CURRENT_COUNT) Call<JsonObject> getCurrentCount();\n\n @GET(Config.FAQ_LIST_URL) Call<FAQListReturnObject> listFaqs(\n @QueryMap Map<String, String> options);\n\n @GET(Config.FAQ_SEARCH) Call<FAQListReturnObject> searchFaq(@Query(\"q\") String keyWord,\n @QueryMap Map<String, String> options);\n\n @GET(\"/faq/{faq_id}\") Call<FAQDetailReturnObject> searchFaqById(@Path(\"faq_id\") String faqId,\n @QueryMap Map<String, String> options);\n\n @GET(Config.APP_VERSIONS) Call<JsonObject> checkUpdate();\n}", "public RestService() {\r\n }", "public interface ShijuanService {\r\n //查询试卷所有信息显示到table上\r\n public List<Testpaper> selectxinxi();\r\n //查询科目下拉框\r\n public List<Subject>selectkemuxialakaung();\r\n //五个条件查询\r\n public List<Testpaper>selectFivechaxun(Integer suid,String ttype,String tstate);\r\n //创建试卷\r\n public void savexinxi(Testpaper testpaper);\r\n}", "public void saveService();", "public interface TbFlockRelevanceService {\r\n\r\n /**\r\n * 新增\r\n */\r\n public int insert(TbFlockRelevance tbFlockRelevance);\r\n\r\n /**\r\n * 删除\r\n */\r\n public int delete(int id);\r\n\r\n /**\r\n * 更新\r\n */\r\n public int update(TbFlockRelevance tbFlockRelevance);\r\n\r\n /**\r\n * Load查询\r\n */\r\n public TbFlockRelevance load(TbFlockRelevance tbFlockRelevance);\r\n\r\n /**\r\n * 分页查询\r\n */\r\n public PageBean pageList(Request request);\r\n\r\n}", "public interface UserManagerService {\r\n public Staff_info getStaffInfo(Map<String,Object> params);\r\n\r\n public Page<Staff_info> getUserPageList(Map<String,Object> params);\r\n\r\n public void addUserInfo(Map<String,Object> params);\r\n public void updUserInfo(Map<String,Object> params);\r\n\r\n public void delUser(Map<String,Object> params);\r\n\r\n public List<Staff_info> moblieSelect();\r\n\r\n}", "public VehmonService() {\n }", "@Override\n protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.service(req, resp);\n logger.log(Level.INFO, \"service(req, resp) Invoked\");\n }", "public interface BookService {\n\n /**\n * 根据主键删除图书\n * @param id\n * @return\n */\n int deleteByPrimaryKey(String id);\n\n /**\n * 插入新的图书\n * @param record\n * @return\n */\n int insert(Book record);\n\n /**\n * 有条件的插入图书信息\n * @param record\n * @return\n */\n int insertSelective(Book record);\n\n /**\n * 根据主键查询图书信息\n * @param id\n * @return\n */\n Book selectByPrimaryKey(String id);\n\n /**\n * 分页查询\n * @param bookName\n * @param pageNum\n * @param pageSize\n * @return\n */\n Pagination<BookVo> selectPageQuery (String bookName, int pageNum , int pageSize);\n\n /**\n * 有条件的更新图书信息\n * @param record\n * @return\n */\n int updateByPrimaryKeySelective(Book record);\n\n /**\n * 更新图书信息\n * @param record\n * @return\n */\n int updateByPrimaryKey(Book record);\n\n /**\n * 查询所有信息\n */\n List<Book> selectAll();\n\n\n /**\n * @param authorId\n * @return java.util.List<cn.edu.hfut.xc.bookauthordemo.common.model.Book>\n * @description 根据作者id来获取该作者所写的图书信息\n * @method selectBooksByAuthorId\n */\n List<Book> selectBooksByAuthorId(@Param(\"authorId\") String authorId);\n\n //根据图书馆id查询图书信息\n List<Book> selectBooksByLibraryId(@Param(\"libraryId\") String libraryId);\n\n //根据商店id查询商店售卖的图书信息\n List<Book> selectBooksByShopId(@Param(\"shopId\") String shopId);\n\n //根据商店id查询商店售卖的图书信息\n List<Book> selectBooksByNationalityId(@Param(\"nationalityId\") String nationalityId);\n\n /**\n * @param id\n * @return cn.edu.hfut.xc.bookauthordemo.common.model.Book\n * @description 根据主键查询图书信息\n * @method selectBookAuthorByPrimaryKey\n */\n Book selectBookAuthorByPrimaryKey(String id);\n\n /*\n * @param\n * @return java.util.List<cn.edu.hfut.xc.bookauthordemo.common.model.Book>\n * @description 查询所有图书信息\n * @method selectBookWithAuthor\n */\n List<Book> selectBookWithAuthor();\n\n /**\n * @param id\n * @return cn.edu.hfut.xc.bookauthordemo.common.model.Book\n * @description 根据主键查询图书信息包括该书所在的图书馆信息\n * @method selectBookLibraryByPrimaryKey\n */\n Book selectBookLibraryByPrimaryKey(String id);\n\n /**\n * @param\n * @return java.util.List<cn.edu.hfut.xc.bookauthordemo.common.model.Book>\n * @description 查询所有图书信息和该图书所在的图书馆信息\n * @method selectBookWithLibrary\n */\n List<Book> selectBookWithLibrary();\n\n// PageList<Book> pageSelect(String bookName, int pageNum , int pageSize );\n}", "private RepositorioOrdemServicoHBM() {\n\n\t}", "public interface ICompteService {\n\t/**\n\t * Declaration des methodes metier\n\t */\n\tpublic void createCompte(Compte compte);\n\n\tpublic List<Compte> getAllCompte();\n\n\tpublic void deleteCompte(Long numeroCompte);\n\n\tpublic void updateCompte(Compte compte);\n\n\tpublic Compte getCompteById(Long numeroCompte);\n\n\tpublic void virement(Long compteEmetteur, Long compteRecepteur, double montant);\n\n\tpublic void versement(long numeroCompte, double montant);\n\n}", "private ServiceFactory() {}", "public interface UserService {\n\n /**\n * 验证手机号是否已被注册\n * @param phone\n */\n boolean checkPhoneCanReg(String phone);\n\n /**\n * 发送短信验证码\n * @param phone\n */\n void sendRegPhoneVCode(String phone);\n\n /**\n * 注册\n * @param phone\n * @param vcode\n */\n void register(String phone, String vcode,String pwd);\n\n /**\n * 查询用户\n * @param username\n * @param pwd\n * @return\n */\n UserVo queryUser(String username, String pwd);\n}", "public interface SKUsService {\r\n\r\n /**\r\n * 添加SKU\r\n * \r\n * @param credential\r\n * @param skuInfoEntity\r\n */\r\n Integer add(String appId, SKUInfoEntity skuInfoEntity) throws Exception;\r\n \r\n /**\r\n * 根据skuID删除SKU\r\n * \r\n * @param appId\r\n * @param skuId\r\n */\r\n void delete(String appId, String skuId) throws Exception;\r\n \r\n /**\r\n * 根据skuID 查询SKU\r\n * \r\n * @param credential\r\n * @param skuId\r\n * @return\r\n */\r\n SKUInfoEntity findById(CredentialEntity credential, String skuId) throws Exception;\r\n\r\n /**\r\n * 更新SKU\r\n * \r\n * @param appId\r\n * @param skuInfoEntity\r\n */\r\n void update(String appId, SKUInfoEntity skuInfoEntity) throws Exception;\r\n \r\n /**\r\n * 查询SKU库存所有信息\r\n * \r\n * @param credential\r\n * @param skuId\r\n * @return\r\n */\r\n SKUAllWarehouseInfoEntity findSKUALLWarehouseInfosById(CredentialEntity credential, String skuId) throws Exception;\r\n \r\n}", "private GeneralServicesImpl() {\r\n\t}", "public interface LoanFirstService {\n /**\n * 贷款初审数据\n * @return\n */\n List<Map> getList(Map map);\n\n /**\n * 信息审查\n * @param map\n * @return\n */\n List<Map> reList(Map map);\n\n /**\n * 根据共同借款人姓名查询信息\n * @param map\n * @return\n */\n List<Map> rethList(Map map);\n\n /**\n * 初审通过\n * @return\n */\n int firstUpdate(Map map);\n\n /**\n * 初审驳回\n * @return\n */\n int twoUpdate(Map map);\n}", "public interface VisitBLService {\n\n\n //得到一个新的id\n public int getID();\n\n //增加一条师生出访记录\n public String addItem(AcademicVO academicVO);\n\n //删除一条师生出访的记录\n public UniversalState deleteItem(int id);\n\n //更新一条师生出访的记录\n public UniversalState updateItem(AcademicVO academicVO);\n\n //获取一条师生出访的记录\n public AcademicVO getItem(int id);\n\n //获取全部师生出访的记录\n public ArrayList<AcademicVO> getAllItems(String language);\n\n\n\n}", "@Override\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.service(req, resp);\n\t}" ]
[ "0.7712932", "0.7390213", "0.73119897", "0.7270984", "0.7267339", "0.71966815", "0.71622556", "0.7117403", "0.6916535", "0.6916535", "0.691279", "0.6831926", "0.6796283", "0.6795658", "0.6767943", "0.6742344", "0.6710076", "0.6690895", "0.66836417", "0.66827345", "0.6678127", "0.6652208", "0.66514194", "0.665085", "0.6649978", "0.6642315", "0.66398805", "0.6623212", "0.66109705", "0.66109014", "0.66016334", "0.6600486", "0.65973157", "0.65859085", "0.6576942", "0.6543077", "0.65351015", "0.6530308", "0.6520674", "0.65199476", "0.6511317", "0.6498271", "0.64961135", "0.64943063", "0.64943063", "0.64943063", "0.64836437", "0.64807016", "0.64787996", "0.64754015", "0.6474472", "0.64725524", "0.6471799", "0.64643127", "0.6461152", "0.6458041", "0.64517134", "0.6450517", "0.64498097", "0.6445367", "0.6442233", "0.6433233", "0.64306384", "0.6430222", "0.64203805", "0.6418774", "0.64129287", "0.64112526", "0.641039", "0.64093536", "0.6406283", "0.6405919", "0.6395166", "0.63943267", "0.63895065", "0.63881195", "0.6388117", "0.63869053", "0.63861096", "0.63845724", "0.63832414", "0.63808644", "0.6380685", "0.63800967", "0.63784146", "0.6376765", "0.6374641", "0.63716084", "0.63709486", "0.63688374", "0.6368632", "0.6363643", "0.6361528", "0.6353795", "0.63497204", "0.6344259", "0.634249", "0.63397485", "0.63351375", "0.63342613", "0.6333758" ]
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Purserno)) { return false; } Purserno other = (Purserno) object; if ((this.pursernoPK == null && other.pursernoPK != null) || (this.pursernoPK != null && !this.pursernoPK.equals(other.pursernoPK))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "protected abstract String getId();", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public int getID() {return id;}", "public int getID() {return id;}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "private void clearId() {\n \n id_ = 0;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getID(){\n return id;\n }", "public int getId()\n {\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.6477893", "0.6426692", "0.6418966", "0.6416817", "0.6401561", "0.63664836", "0.63549376", "0.63515353", "0.6347672", "0.6324549", "0.6319196", "0.6301484", "0.62935394", "0.62935394", "0.62832105", "0.62710917", "0.62661785", "0.6265274", "0.6261401", "0.6259253", "0.62559646", "0.6251244", "0.6247282", "0.6247282", "0.6245526", "0.6238957", "0.6238957", "0.6232451", "0.62247443", "0.6220427", "0.6219304", "0.6211484", "0.620991", "0.62023336", "0.62010616", "0.6192621", "0.61895776", "0.61895776", "0.61893976", "0.61893976", "0.61893976", "0.6184292", "0.618331", "0.61754644", "0.6173718", "0.6168409", "0.6166131", "0.6161708", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.61556244", "0.61556244", "0.61430943", "0.61340135", "0.6128617", "0.6127841", "0.61065215", "0.61043483", "0.61043483", "0.6103568", "0.61028486", "0.61017346", "0.6101399", "0.6098963", "0.6094214", "0.6094", "0.6093529", "0.6093529", "0.6091623", "0.60896", "0.6076881", "0.60723215", "0.6071593", "0.6070138", "0.6069936", "0.6069529" ]
0.0
-1
Find the _Fields constant that matches fieldId, or null if its not found.
public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // BEER_LIST return BEER_LIST; case 2: // STATUS_CODE return STATUS_CODE; default: return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_IDS\n return REFERRAL_LOG_IDS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_ID\n return REFERRAL_LOG_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RECOM_ID\n return RECOM_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // BINDING_PARAMS\n return BINDING_PARAMS;\n case 2: // BIND_SOURCE\n return BIND_SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_EMPLOYEE_DOS\n return USER_EMPLOYEE_DOS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RESOURCE_PLAN_NAME\n return RESOURCE_PLAN_NAME;\n case 2: // POOL_PATH\n return POOL_PATH;\n case 3: // ALLOC_FRACTION\n return ALLOC_FRACTION;\n case 4: // QUERY_PARALLELISM\n return QUERY_PARALLELISM;\n case 5: // SCHEDULING_POLICY\n return SCHEDULING_POLICY;\n case 6: // IS_SET_SCHEDULING_POLICY\n return IS_SET_SCHEDULING_POLICY;\n case 7: // NS\n return NS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // PAGE_NUMBER\n return PAGE_NUMBER;\n case 4: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // TOTAL_FILES_MATERIALIZED_COUNT\n return TOTAL_FILES_MATERIALIZED_COUNT;\n case 2: // FILES_MATERIALIZED_FROM_CASCOUNT\n return FILES_MATERIALIZED_FROM_CASCOUNT;\n case 3: // TOTAL_TIME_SPENT_MATERIALIZING_FILES_FROM_CASMILLIS\n return TOTAL_TIME_SPENT_MATERIALIZING_FILES_FROM_CASMILLIS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // SOURCE\n return SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // TIMESPAN\n return TIMESPAN;\n case 4: // PAGE_NUM\n return PAGE_NUM;\n case 5: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMB_INSTRUMENT_ID\n return COMB_INSTRUMENT_ID;\n case 2: // LEG_ID\n return LEG_ID;\n case 3: // LEG_INSTRUMENT_ID\n return LEG_INSTRUMENT_ID;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACTIVATION_CODEE\n return ACTIVATION_CODEE;\n case 2: // BIND_EMAIL_SOURCE\n return BIND_EMAIL_SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // DATA\n return DATA;\n case 2: // FILE_ID\n return FILE_ID;\n case 3: // SIZE\n return SIZE;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n case 2: // OUTPUT_DIR\n return OUTPUT_DIR;\n case 3: // SUBSET\n return SUBSET;\n case 4: // TYPES\n return TYPES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // PROCESS_ID\n return PROCESS_ID;\n case 3: // APPLICATION_INTERFACE_ID\n return APPLICATION_INTERFACE_ID;\n case 4: // COMPUTE_RESOURCE_ID\n return COMPUTE_RESOURCE_ID;\n case 5: // QUEUE_NAME\n return QUEUE_NAME;\n case 6: // NODE_COUNT\n return NODE_COUNT;\n case 7: // CORE_COUNT\n return CORE_COUNT;\n case 8: // WALL_TIME_LIMIT\n return WALL_TIME_LIMIT;\n case 9: // PHYSICAL_MEMORY\n return PHYSICAL_MEMORY;\n case 10: // STATUSES\n return STATUSES;\n case 11: // ERRORS\n return ERRORS;\n case 12: // CREATED_AT\n return CREATED_AT;\n case 13: // UPDATED_AT\n return UPDATED_AT;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PARAM_MAP\n return PARAM_MAP;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCOUNT_IDS\n return ACCOUNT_IDS;\n case 2: // COMMODITY_IDS\n return COMMODITY_IDS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // M_COMMAND_TYPE\n return M_COMMAND_TYPE;\n case 2: // M_BLOCK_IDS\n return M_BLOCK_IDS;\n case 3: // M_FILE_PATH\n return M_FILE_PATH;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // ENTITY_IDS\n return ENTITY_IDS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // CUS_PER_BASE\n return CUS_PER_BASE;\n case 3: // TOTAL_ASSETS\n return TOTAL_ASSETS;\n case 4: // TOTAL_LIAB\n return TOTAL_LIAB;\n case 5: // FAMILY_ASSETS\n return FAMILY_ASSETS;\n case 6: // YEAR_PAY\n return YEAR_PAY;\n case 7: // MONTH_WAGE\n return MONTH_WAGE;\n case 8: // FAMILY_INCOME\n return FAMILY_INCOME;\n case 9: // FAMILY_CONTROL\n return FAMILY_CONTROL;\n case 10: // STATUS\n return STATUS;\n case 11: // ASSETS_DETAIL\n return ASSETS_DETAIL;\n case 12: // LIAB_DETAIL\n return LIAB_DETAIL;\n case 13: // MONTHLY_PAYMENT\n return MONTHLY_PAYMENT;\n case 14: // OVERDRAFT\n return OVERDRAFT;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // NOME\n return NOME;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // NOME\n return NOME;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n case 2: // DIR_NAME\n return DIR_NAME;\n case 3: // FILE_LENGTH\n return FILE_LENGTH;\n case 4: // DK_FILE_CONF\n return DK_FILE_CONF;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n case 2: // DIR_NAME\n return DIR_NAME;\n case 3: // FILE_LENGTH\n return FILE_LENGTH;\n case 4: // DK_FILE_CONF\n return DK_FILE_CONF;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // LOG_INFO\n return LOG_INFO;\n case 2: // PARAMS\n return PARAMS;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // LOG_INFO\n return LOG_INFO;\n case 2: // PARAMS\n return PARAMS;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // LOG_INFO\n return LOG_INFO;\n case 2: // PARAMS\n return PARAMS;\n default:\n return null;\n }\n }" ]
[ "0.7988762", "0.7916939", "0.7882991", "0.7882991", "0.7882991", "0.7882991", "0.7882991", "0.7882991", "0.7787679", "0.7780279", "0.7731214", "0.772902", "0.77236575", "0.771461", "0.771461", "0.7711532", "0.7710834", "0.7702951", "0.77012783", "0.76976734", "0.7688804", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.76808786", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.7674285", "0.76716256", "0.76716256", "0.76656026", "0.7665063", "0.7665063", "0.7665063", "0.7665063", "0.7665063", "0.7665063", "0.7665063", "0.7650077", "0.7646281", "0.7645474", "0.7636594", "0.7623764", "0.76230067", "0.7620321", "0.76139724", "0.76139724", "0.7613846", "0.76083535", "0.76035815", "0.76035815", "0.76035815", "0.76035815", "0.76035815", "0.76027256", "0.7598472", "0.7598472", "0.7597889", "0.7597889", "0.7594582", "0.7594582", "0.7594582" ]
0.0
-1
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_IDS\n return REFERRAL_LOG_IDS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_ID\n return REFERRAL_LOG_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RECOM_ID\n return RECOM_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // PROCESS_ID\n return PROCESS_ID;\n case 3: // APPLICATION_INTERFACE_ID\n return APPLICATION_INTERFACE_ID;\n case 4: // COMPUTE_RESOURCE_ID\n return COMPUTE_RESOURCE_ID;\n case 5: // QUEUE_NAME\n return QUEUE_NAME;\n case 6: // NODE_COUNT\n return NODE_COUNT;\n case 7: // CORE_COUNT\n return CORE_COUNT;\n case 8: // WALL_TIME_LIMIT\n return WALL_TIME_LIMIT;\n case 9: // PHYSICAL_MEMORY\n return PHYSICAL_MEMORY;\n case 10: // STATUSES\n return STATUSES;\n case 11: // ERRORS\n return ERRORS;\n case 12: // CREATED_AT\n return CREATED_AT;\n case 13: // UPDATED_AT\n return UPDATED_AT;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // EXCEPTION_ID\n return EXCEPTION_ID;\n case 3: // USER_ID\n return USER_ID;\n case 4: // REPORT_DATE\n return REPORT_DATE;\n case 5: // UN_ASSURE_CONDITION\n return UN_ASSURE_CONDITION;\n case 6: // HOUSE_PROPERY_CONDITION\n return HOUSE_PROPERY_CONDITION;\n case 7: // REMARK\n return REMARK;\n case 8: // CREATE_DATE\n return CREATE_DATE;\n case 9: // CREATE_ID\n return CREATE_ID;\n case 10: // UPDATE_DATE\n return UPDATE_DATE;\n case 11: // UPDATE_ID\n return UPDATE_ID;\n case 12: // PROJECT_ID\n return PROJECT_ID;\n case 13: // LEGAL_LIST\n return LEGAL_LIST;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // SOURCE\n return SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_EMPLOYEE_DOS\n return USER_EMPLOYEE_DOS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // PAGE_NUMBER\n return PAGE_NUMBER;\n case 4: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // TIMESPAN\n return TIMESPAN;\n case 4: // PAGE_NUM\n return PAGE_NUM;\n case 5: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // BINDING_PARAMS\n return BINDING_PARAMS;\n case 2: // BIND_SOURCE\n return BIND_SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACTIVATION_CODEE\n return ACTIVATION_CODEE;\n case 2: // BIND_EMAIL_SOURCE\n return BIND_EMAIL_SOURCE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // POSITION_ID\n return POSITION_ID;\n case 3: // TYPE\n return TYPE;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // APP_CODE\n \treturn APP_CODE;\n case 2: // REQUEST_DATE\n \treturn REQUEST_DATE;\n case 3: // SIGN\n \treturn SIGN;\n case 4: // SP_ID\n \treturn SP_ID;\n case 5: // OUT_ORDER_ID\n \treturn OUT_ORDER_ID;\n case 6: // DEVICE_NO\n \treturn DEVICE_NO;\n case 7: // DEVICE_TYPE\n \treturn DEVICE_TYPE;\n case 8: // PROVINCE_ID\n \treturn PROVINCE_ID;\n case 9: // CUST_ID\n \treturn CUST_ID;\n case 10: // NUM\n \treturn NUM;\n case 11: // REMARK\n \treturn REMARK;\n case 12: // ACTIVE_ID\n \treturn ACTIVE_ID;\n case 13: // EXP_TIME\n \treturn EXP_TIME;\n default:\n \treturn null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // DATA\n return DATA;\n case 2: // FILE_ID\n return FILE_ID;\n case 3: // SIZE\n return SIZE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // ID\r\n return ID;\r\n case 2: // ID_CURSA\r\n return ID_CURSA;\r\n case 3: // NR_LOC\r\n return NR_LOC;\r\n case 4: // CLIENT\r\n return CLIENT;\r\n default:\r\n return null;\r\n }\r\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EXEC_TRADE_ID\n return EXEC_TRADE_ID;\n case 2: // SUB_ACCOUNT_ID\n return SUB_ACCOUNT_ID;\n case 3: // SLED_CONTRACT_ID\n return SLED_CONTRACT_ID;\n case 4: // EXEC_ORDER_ID\n return EXEC_ORDER_ID;\n case 5: // TRADE_PRICE\n return TRADE_PRICE;\n case 6: // TRADE_VOLUME\n return TRADE_VOLUME;\n case 7: // EXEC_TRADE_DIRECTION\n return EXEC_TRADE_DIRECTION;\n case 8: // CREATE_TIMESTAMP_MS\n return CREATE_TIMESTAMP_MS;\n case 9: // LASTMODIFY_TIMESTAMP_MS\n return LASTMODIFY_TIMESTAMP_MS;\n case 10: // SLED_COMMODITY_ID\n return SLED_COMMODITY_ID;\n case 11: // CONFIG\n return CONFIG;\n case 12: // ORDER_TOTAL_VOLUME\n return ORDER_TOTAL_VOLUME;\n case 13: // LIMIT_PRICE\n return LIMIT_PRICE;\n case 14: // SOURCE\n return SOURCE;\n case 15: // TRADE_ACCOUNT_ID\n return TRADE_ACCOUNT_ID;\n case 16: // TRADE_TIMESTAMP_MS\n return TRADE_TIMESTAMP_MS;\n case 17: // ASSET_TRADE_DETAIL_ID\n return ASSET_TRADE_DETAIL_ID;\n case 18: // SUB_USER_ID\n return SUB_USER_ID;\n case 19: // SLED_ORDER_ID\n return SLED_ORDER_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RESOURCE_PLAN_NAME\n return RESOURCE_PLAN_NAME;\n case 2: // POOL_PATH\n return POOL_PATH;\n case 3: // ALLOC_FRACTION\n return ALLOC_FRACTION;\n case 4: // QUERY_PARALLELISM\n return QUERY_PARALLELISM;\n case 5: // SCHEDULING_POLICY\n return SCHEDULING_POLICY;\n case 6: // IS_SET_SCHEDULING_POLICY\n return IS_SET_SCHEDULING_POLICY;\n case 7: // NS\n return NS;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CONF\n return CONF;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CONTRACT_ADDRESS\n return CONTRACT_ADDRESS;\n case 2: // OBJECT\n return OBJECT;\n case 3: // STATE_CAN_MODIFY\n return STATE_CAN_MODIFY;\n default:\n return null;\n }\n }", "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }" ]
[ "0.76276547", "0.76276547", "0.76276547", "0.76276547", "0.76276547", "0.76276547", "0.76276547", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7622919", "0.7542717", "0.75352764", "0.74428034", "0.74428034", "0.74428034", "0.74428034", "0.74428034", "0.74428034", "0.7429182", "0.7429182", "0.7428846", "0.7428846", "0.7428846", "0.7428846", "0.7428846", "0.7428846", "0.7428846", "0.7428846", "0.7428846", "0.7428846", "0.7428846", "0.7428846", "0.7428846", "0.7428846", "0.7428846", "0.742411", "0.7423943", "0.74044687", "0.73953766", "0.73944145", "0.7392408", "0.7383266", "0.7379029", "0.7377102", "0.7374344", "0.73634344", "0.73634344", "0.7351561", "0.7351561", "0.73428226", "0.73428226", "0.73428226", "0.7335526", "0.7328672", "0.7318335", "0.7316816", "0.7316816", "0.7316816", "0.7316816", "0.7316816", "0.7316816", "0.7316816", "0.7316816", "0.7316816", "0.7316816", "0.7316816", "0.7316816", "0.7316816", "0.7316816", "0.7316816", "0.7316816", "0.7316816", "0.7316816", "0.73098224", "0.72901624", "0.72868574", "0.7272177", "0.7271475", "0.72690386", "0.7258267", "0.72563654", "0.72558826", "0.72505283", "0.72505283", "0.7248576", "0.7248576", "0.7248576", "0.7248576", "0.7248576" ]
0.0
-1
Find the _Fields constant that matches name, or null if its not found.
public static _Fields findByName(String name) { return byName.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }", "public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }", "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByName(java.lang.String name) {\r\n return byName.get(name);\r\n }", "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByName(java.lang.String name) {\r\n return byName.get(name);\r\n }", "@org.apache.thrift.annotation.Nullable\n\t\tpublic static _Fields findByName(java.lang.String name) {\n\t\t\treturn byName.get(name);\n\t\t}", "@org.apache.thrift.annotation.Nullable\n\t\tpublic static _Fields findByName(java.lang.String name) {\n\t\t\treturn byName.get(name);\n\t\t}" ]
[ "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.7641586", "0.76308644", "0.76308644", "0.76308644", "0.76308644", "0.76308644", "0.76308644", "0.76308644", "0.76308644", "0.76308644", "0.7578759", "0.7578759", "0.7571673", "0.7571673", "0.756394", "0.756394" ]
0.0
-1
Performs a deep copy on other.
public BeersResponse(BeersResponse other) { if (other.isSetBeerList()) { Map<SatelliteBeerContainer,SatelliteMenuPart> __this__beerList = new HashMap<SatelliteBeerContainer,SatelliteMenuPart>(other.beerList.size()); for (Map.Entry<SatelliteBeerContainer, SatelliteMenuPart> other_element : other.beerList.entrySet()) { SatelliteBeerContainer other_element_key = other_element.getKey(); SatelliteMenuPart other_element_value = other_element.getValue(); SatelliteBeerContainer __this__beerList_copy_key = other_element_key; SatelliteMenuPart __this__beerList_copy_value = new SatelliteMenuPart(other_element_value); __this__beerList.put(__this__beerList_copy_key, __this__beerList_copy_value); } this.beerList = __this__beerList; } if (other.isSetStatusCode()) { this.statusCode = other.statusCode; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Prototype makeCopy();", "public void copy (WorldState other)\n\t{\n\t\tresetProperties();\n\t\t//Iterate through other state and clone it's properties into this states properties\n\t\tCollection<WorldStateProperty> otherProperties = other.properties.values();\n\t\tfor (WorldStateProperty property : otherProperties)\n\t\t{\n\t\t\tproperties.put(property.key, property.clone());\n\t\t}\n\t}", "public void copyDataFrom(ParamUnit other)\r\n\t{\r\n\t\tif (this.data.row != other.data.row || this.data.col != other.data.col)\r\n\t\t\tthrow new DeepException(\"Cannot copy data from a different dimension.\");\r\n\t\tthis.data.copyFrom(other.data);\r\n\t}", "private Path(Path other){\n\t\t\n\t\tthis.source = other.source;\n\t\tthis.destination = other.destination;\n\t\tthis.cities = other.cities;\n\t\t\n\t\tthis.cost = other.cost;\n\t\tthis.destination = other.destination;\n\t\t\n\t\tthis.connections = new LinkedList<Connection>();\n\t\t\n\t\tfor (Connection c : other.connections){\n\t\t\tthis.connections.add((Connection) c.clone());\n\t\t}\n\t\t\n\t}", "@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}", "public void copy() {\n\n\t}", "public abstract B copy();", "public CMObject copyOf();", "public T cloneDeep();", "public void copy(BlastGraph<HitVertex, ValueEdge> graphToCopy) {\n\t\t// empty this graph\n\t\tthis.empty();\n\n\t\t// union this empty graph with graphToCopy\n\t\tthis.union(graphToCopy);\n\t}", "public void mirror(Dataset other) {\n clear();\n this.ntree.addAll(other.ntree);\n }", "Model copy();", "public abstract INodo copy();", "static void setCopying(){isCopying=true;}", "Nda<V> shallowCopy();", "public CopyBuilder copy() {\n return new CopyBuilder(this);\n }", "T copy();", "@Override\n\t\tpublic ImmutableSequentialGraph copy() {\n\t\t\treturn new ComposedGraph( g0, g1.copy() );\n\t\t}", "public void copy(DataRequest original){\n\t\t//potential problems with object sharing\n\t\tfilters = \toriginal.get_filters();\n\t\tsort_by = \toriginal.get_sort_by();\n\t\tcount = \toriginal.get_count();\n\t\tstart = \toriginal.get_start();\n\t\tsource = \toriginal.get_source();\n\t\tfieldset =\toriginal.get_fieldset();\n\t\trelation = \toriginal.get_relation();\n\t}", "Component deepClone();", "public Data assign(Data other) {\r\n this.setDimension(other.dimension);\r\n this.distanz = other.distanz;\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n this.data[i] = other.data[i];\r\n }\r\n this.id = other.id;\r\n return this;\r\n }", "@Override\n public int deepCopy(AbstractRecord other)\n {\n return 0;\n }", "public AST copy()\n {\n return new Implicate(left, right);\n }", "@Override\n public void copyValues(final fr.jmmc.oiexplorer.core.model.OIBase other) {\n final View view = (View) other;\n\n // copy type, subsetDefinition (reference):\n this.type = view.getType();\n this.subsetDefinition = view.getSubsetDefinition();\n }", "public Complex makeDeepCopy() {\r\n Complex complex2 = new Complex(this.getReal(), this.getImaginary());\r\n return complex2;\r\n }", "public abstract Node copy();", "protected void copy(Writable other) {\n\t\tif (other != null) {\n\t\t\ttry {\n\t\t\t\tDataOutputBuffer out = new DataOutputBuffer();\n\t\t\t\tother.write(out);\n\t\t\t\tDataInputBuffer in = new DataInputBuffer();\n\t\t\t\tin.reset(out.getData(), out.getLength());\n\t\t\t\treadFields(in);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalArgumentException(\"map cannot be copied: \" +\n\t\t\t\t\t\te.getMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"source map cannot be null\");\n\t\t}\n\t}", "protected void copyInto(Schedule other) {\r\n\t\tfor(int i = MIN_WEEKDAY; i <= MAX_WEEKDAY; i++)\r\n\t\t\tfor(int j = MIN_SEGMENT; j <= MAX_SEGMENT; j++)\r\n\t\t\t\tother.schedule[i][j] = schedule[i][j];\t\t\r\n\t}", "public DTO(DTO other) {\n if (other.isSetDatas()) {\n Map<String,String> __this__datas = new HashMap<String,String>(other.datas);\n this.datas = __this__datas;\n }\n }", "public Tree<K, V> copy() {\n\t\tTree<K, V> copy = EmptyTree.getInstance(), t = this;\n\t\treturn copy(t, copy);\n\t}", "@Override\n\tpublic graph copy() {\n\t\tgraph copy = new DGraph();\n\t\tCollection<node_data> nColl = this.GA.getV();\n\t\tfor (node_data node : nColl) {\n\t\t\tnode_data temp = new Node((Node) node );\n\t\t\tcopy.addNode(node);\n\t\t}\n\t\tCollection<node_data> nColl2 = this.GA.getV();\n\t\tfor (node_data node1 : nColl2) {\n\t\t\tCollection<edge_data> eColl = this.GA.getE(node1.getKey());\n\t\t\tif (eColl!=null) {\n\t\t\t\tfor (edge_data edge : eColl) {\n\t\t\t\t\tcopy.connect(edge.getSrc(), edge.getDest(), edge.getWeight());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn copy;\n\t}", "Object clone();", "Object clone();", "@Override\n public FieldEntity copy()\n {\n return state.copy();\n }", "private Shop deepCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n List<Book> books = new ArrayList<>();\n Iterator<Book> iterator = this.getBooks().iterator();\n while(iterator.hasNext()){\n\n books.add((Book) iterator.next().clone());\n }\n obj.setBooks(books);\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }", "Nda<V> deepCopy();", "@Override\n public LocalStore<V> copy() {\n return this;\n }", "public abstract TreeNode copy();", "@Override\r\n public NumericObjectArrayList makeDeepCopy() {\r\n NumericObjectArrayList list = new NumericObjectArrayList();\r\n for (int i = 0; i < this.getCount(); i++) {\r\n try {\r\n list.insert(i, this.getValueAt(i));\r\n } catch (IndexRangeException ex) {\r\n //Shouldn't happen\r\n }\r\n }\r\n return list;\r\n }", "protected Factorization copy(){\n Factorization newFactor = new Factorization(this.mdc);\n //shallow copy\n newFactor.setRecipes(recipes);\n newFactor.setIngredients(ingredients);\n newFactor.setUserMap(userMap);\n newFactor.setUserMapReversed(userMap_r);\n newFactor.setRecipeMap(recipeMap);\n newFactor.setRecipeMapReversed(recipeMap_r);\n newFactor.setIngredientMap(ingredientMap);\n newFactor.setIngredientMapReversed(ingredientMap_r);\n \n //deep copy\n List<User> userCopy = new ArrayList<User>();\n for(User curr: this.users){\n userCopy.add(new User(curr.getId()));\n }\n newFactor.setUsers(userCopy);\n newFactor.setDataset(dataset.copy());\n newFactor.updateInitialSpace();\n return newFactor;\n }", "@Override\n\tpublic void copyReferences() {\n\t\tlateCopies = new LinkedHashMap<>();\n\n\t\tsuper.copyReferences();\n\n\t\tputAll(lateCopies);\n\t\tlateCopies = null;\n\t}", "public T copy() {\n T ret = createLike();\n ret.getMatrix().setTo(this.getMatrix());\n return ret;\n }", "@Test\n\tpublic void testCopy2() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tSLLSet copied = listObj2.copy();\n\t\tcopied.add(-1);\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tString expectedCopied = \"-1, 1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\t\tint expectedCopiedSize = 6;\n\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t\tassertEquals(expectedCopiedSize, copied.getSize());\n\t\tassertEquals(expectedCopied, copied.toString());\n\n\t}", "public Data copy(Object value) {\n if (mValue instanceof Data) {\n ((Data) mValue).copy(value);\n } else {\n mValue = value;\n }\n return this;\n }", "public void\n\tcopy( Vector3 other )\n\t{\n\t\tdata[0] = other.data[0];\n\t\tdata[1] = other.data[1];\n\t\tdata[2] = other.data[2];\n\t}", "private static void copy(List<? super Number> dest, List<? extends Number> src) {\n for (int i = 0; i < src.size(); i++) {\n dest.set(i, src.get(i));\n //dest.add(src.get(i));\n }\n }", "private ImmutablePerson(ImmutablePerson other) {\n firstName = other.firstName;\n middleName = other.middleName;\n lastName = other.lastName;\n nickNames = new ArrayList<>(other.nickNames);\n }", "public abstract void copy(Result result, Object object);", "protected AbstractChartModel copy(AbstractChartModel aCopy) {\n aCopy.title = title;\n aCopy.xAxisTitle = xAxisTitle;\n aCopy.yAxisTitle = yAxisTitle;\n aCopy.xRangeMax = xRangeMax;\n aCopy.xRangeMin = xRangeMin;\n aCopy.xRangeIncr = xRangeIncr;\n aCopy.yRangeMax = yRangeMax;\n aCopy.yRangeMin = yRangeMin;\n aCopy.yRangeIncr = yRangeIncr;\n aCopy.simModel = simModel;\n ArrayList list = new ArrayList();\n for (int i = 0, n = dataSources.size(); i < n; i++) {\n GuiChartDataSource ds = (GuiChartDataSource) dataSources.get(i);\n list.add(ds.copy());\n }\n aCopy.dataSources = list;\n\n return aCopy;\n }", "@Override\n public ExpressionNode deepCopy(BsjNodeFactory factory);", "private Object[] deepCopy()\n {\n Object[] newList = new Object[size];\n\n int newListPosition = 0;\n for (int i =0; i < size; i++)\n {\n if (list[i] != null)\n {\n newList[newListPosition++] = list[i];\n }\n }\n\n return newList;\n }", "public Game copy();", "public void pasteFrom(Flow other)\n\t\t{\n\t\tunits.addAll(other.units);\n\t\tconns.addAll(other.conns);\n\t\t}", "@Override\r\n\tpublic LogicalValue copy() {\r\n\t\treturn new Pointer(target);\r\n\t}", "@SuppressWarnings(\"unchecked\")\n @Override\n public <T extends JsonNode> T deepCopy() { return (T) this; }", "public SoPickedPoint \ncopy() \n//\n////////////////////////////////////////////////////////////////////////\n{\n SoPickedPoint newCopy = new SoPickedPoint(this);\n return newCopy;\n}", "public CFExp deepCopy(){\r\n return this;\r\n }", "DataContext copy();", "@Override\n public weighted_graph copy() {\n weighted_graph copy = new WGraph_DS(this.ga);//create the copy graph via copy constructor\n return copy;\n }", "@Override\n\tpublic SecuredRDFList copy();", "@Override\n\tpublic Expression copy() {\n\t\treturn null;\n\t}", "public O copy() {\n return value();\n }", "public Object clone();", "public Object clone();", "public Object clone();", "public Object clone();", "private Shop shallowCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }", "public abstract Object clone();", "public Function clone();", "public abstract Type treeCopy();", "public Tree<K, V> copy(Tree<K, V> t, Tree<K, V> copy) {\n\t\tcopy = copy.add(key, value);\n\t\tcopy = left.copy(left, copy);\n\t\tcopy = right.copy(right, copy);\n\t\treturn copy;\n\t}", "public Results copy()\n {\n Results copy = new Results();\n for(Object object : results) {\n copy.add( object );\n }\n return copy;\n }", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "public Coordinates copy() {\n\t\treturn new Coordinates(this);\n\t}", "@Override\r\n\tpublic void copy(Property p) {\n\t\t\r\n\t}", "public directed_weighted_graph deepCopy() {\n DWGraph_DS copyGraph = new DWGraph_DS(this); //create a new graph with the original graph data (only primitives)\n HashMap<Integer, node_data> copyNodesMap = new HashMap<>(); //create a new nodes HashMap for the new graph\n for (node_data node : nodes.values()) { //loop through all nodes in the original graph\n copyNodesMap.put(node.getKey(), new NodeData((NodeData) node)); //makes a duplicate of the original HashMap\n }\n copyGraph.nodes = copyNodesMap; //set the new graph nodes to the new HashMap we made.\n return copyGraph;\n }", "public Object clone() {\n return this.copy();\n }", "@Override\n public Operator visitCopy(Copy operator)\n {\n throw new AssertionError();\n }", "@Test\n\tpublic void copy() {\n\t\tBody b1 = new Body();\n\t\tBodyFixture b1f1 = b1.addFixture(Geometry.createCircle(0.5));\n\t\t\n\t\tCollisionItemAdapter<Body, BodyFixture> c1 = this.item.copy();\n\t\tTestCase.assertNull(c1.getBody());\n\t\tTestCase.assertNull(c1.getFixture());\n\t\t\n\t\tthis.item.set(b1, b1f1);\n\t\tCollisionItemAdapter<Body, BodyFixture> c2 = this.item.copy();\n\t\tTestCase.assertEquals(b1, c2.getBody());\n\t\tTestCase.assertEquals(b1f1, c2.getFixture());\n\t\t\n\t\t// make sure it's a deep copy\n\t\tc1.set(null, null);\n\t\tTestCase.assertNull(c1.getBody());\n\t\tTestCase.assertNull(c1.getFixture());\n\t\tTestCase.assertEquals(b1, c2.getBody());\n\t\tTestCase.assertEquals(b1f1, c2.getFixture());\n\t}", "public abstract Object clone() ;", "public Object clone() {\n \ttry {\n \tMyClass1 result = (MyClass1) super.clone();\n \tresult.Some2Ob = (Some2)Some2Ob.clone(); ///IMPORTANT: Some2 clone method called for deep copy without calling this Some2.x will be = 12\n \t\n \treturn result;\n \t} catch (CloneNotSupportedException e) {\n \treturn null; \n \t}\n\t}", "public PaginationVO(PaginationVO other) {\n __isset_bitfield = other.__isset_bitfield;\n this.pageSize = other.pageSize;\n this.pageNo = other.pageNo;\n this.upPage = other.upPage;\n this.nextPage = other.nextPage;\n this.totalCount = other.totalCount;\n this.totalPage = other.totalPage;\n if (other.isSetPageUrl()) {\n this.pageUrl = other.pageUrl;\n }\n if (other.isSetParams()) {\n this.params = other.params;\n }\n if (other.isSetDatas()) {\n List<BlogPostVO> __this__datas = new ArrayList<BlogPostVO>();\n for (BlogPostVO other_element : other.datas) {\n __this__datas.add(new BlogPostVO(other_element));\n }\n this.datas = __this__datas;\n }\n }", "public WorldState (WorldState other)\n\t{\n\t\tproperties = new HashMap<String, WorldStateProperty>();\t\t\n\t\tcopy(other);\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}", "protected void copy(){\n\t\tthis.model.copy(this.color.getBackground());\n\t}", "@Override\n public MetaprogramTargetNode deepCopy(BsjNodeFactory factory);", "@Override\n public INDArray copy(INDArray x, INDArray y) {\n //NativeBlas.dcopy(x.length(), x.data(), 0, 1, y.data(), 0, 1);\n JavaBlas.rcopy(x.length(), x.data(), x.offset(), 1, y.data(), y.offset(), 1);\n return y;\n }", "@Override\n\tpublic function copy() {\n\t\tMonom M=new Monom(this.get_coefficient(),this.get_power());\n\t\t\n\t\treturn M;\n\t}", "public Object detachCopy(Object po)\n{\n\treturn po;\n}", "public ConfabulatorObject getCopy() {\n\t\tConfabulatorObject copy = new ConfabulatorObject(getMessenger());\n\t\tlockMe(this);\n\t\tint maxD = maxLinkDistance;\n\t\tint maxC = maxLinkCount;\n\t\tList<Link> linksCopy = new ArrayList<Link>();\n\t\tfor (Link lnk: links) {\n\t\t\tlinksCopy.add(lnk.getCopy());\n\t\t}\n\t\tunlockMe(this);\n\t\tcopy.initialize(maxD,maxC,linksCopy);\n\t\treturn copy;\n\t}", "@Override\r\n public weighted_graph copy() {\n weighted_graph copy = new WGraph_DS();\r\n for (node_info curr : this.Graph.getV()) { //The loop passes through all the ver' of the graph\r\n Nodes t = new Nodes(curr); //create new node\r\n copy.addNode(t.key); //copy the the old node to the new node\r\n }\r\n for (node_info curr0 : this.Graph.getV()) {\r\n for (node_info curr1 : this.Graph.getV(curr0.getKey())) { //this loops pass over the all nodes and copy the connection\r\n double i = this.Graph.getEdge(curr0.getKey(), curr1.getKey());\r\n if (i != -1) {\r\n copy.connect(curr0.getKey(), curr1.getKey(), i);\r\n }\r\n }\r\n }\r\n return copy;\r\n\r\n }", "@Override\n public Object clone() {\n return super.clone();\n }", "public Query copy() {\r\n\tQuery queryCopy = new Query();\r\n\tqueryCopy.terms = (LinkedList<String>) terms.clone();\r\n\tqueryCopy.weights = (LinkedList<Double>) weights.clone();\r\n\treturn queryCopy;\r\n }", "public static void main(String[] args) throws CloneNotSupportedException\n {\n ArrayList<String> companies = new ArrayList<String>();\n companies.add(\"Baidu\");\n companies.add(\"Tencent\");\n companies.add(\"Ali\");\n WorkExprience workExprience = new WorkExprience(companies);\n String nameString = new String(\"Tom\");\n String genderString = new String(\"male\");\n Resume resume = new Resume(nameString, 23, genderString, workExprience);\n System.out.println(\"Source Resume\");\n resume.printResum();\n \n ArrayList<String> companies1 = new ArrayList<String>();\n companies1.add(\"Google\");\n companies1.add(\"Microsoft\");\n companies1.add(\"Oracle\");\n Resume copyResume = (Resume)resume.clone();\n String nameString1 = new String(\"Jerry\");\n String genderString1 = new String(\"Fmale\");\n copyResume.setName(nameString1);\n copyResume.setAge(20);\n copyResume.setGender(genderString1);\n copyResume.getWorkExprience().setCompanyArrayList(companies1);\n System.out.println();\n System.out.println(\"Source Resume\");\n resume.printResum();\n System.out.println();\n System.out.println(\"Copy Resume\");\n copyResume.printResum();\n }", "public MappingInfo copy()\r\n\t{\r\n\t\tArrayList<MappingCell> mappingCells = new ArrayList<MappingCell>();\r\n\t\tfor(MappingCell mappingCell : mappingCellHash.get())\r\n\t\t\tmappingCells.add(mappingCell);\r\n\t\treturn new MappingInfo(mapping.copy(),mappingCells);\r\n\t}", "protected void deepCloneReferences(uka.transport.DeepClone _helper)\n throws CloneNotSupportedException\n {\n //Cloning the byte array\n\t this.value = _helper.doDeepClone(this.value);\n //byte[] value_clone = new byte[this.value.length]; \n //System.arraycopy(this.value, 0, value_clone, 0, this.value.length);\n //this.value = value_clone;\n }", "static void setNotCopying(){isCopying=false;}", "void copy(DependencyRelations deps){\n if (deps == null)\n throw new IllegalArgumentException(\"the source is null.\");\n\n size_ = deps.size_;\n for(int i = 0; i < size_ ; i++){\n if (nodes_[i] == null)\n nodes_[i] = new Node();\n nodes_[i].copy(deps.nodes_[i]);\n }\n }", "@SuppressWarnings(\"All\")\n public <T> void copy(MyList<? super T> to, MyList<? extends T> from) {\n\n System.out.println(\"from size \" + from.size);\n for (int i = 0; i < from.getSize(); i++) {\n to.add(from.getByIndex(i));\n }\n }", "public void copy(Posts that) {\r\n\t\tsetId(that.getId());\r\n\t\tsetTitle(that.getTitle());\r\n\t\tsetContent(that.getContent());\r\n\t\tsetShareDate(that.getShareDate());\r\n\t\tsetIsPrivate(that.getIsPrivate());\r\n\t\tsetUsers(that.getUsers());\r\n\t\tsetCommentses(new java.util.LinkedHashSet<com.ira.domain.Comments>(that.getCommentses()));\r\n\t}", "@Override\n public TopicObject copy() {\n return new TopicObject(this);\n }" ]
[ "0.7214815", "0.6982586", "0.6743959", "0.66792786", "0.6563397", "0.6549605", "0.65230364", "0.652084", "0.64842516", "0.64743775", "0.6450891", "0.6438907", "0.64186275", "0.640633", "0.6403375", "0.63743764", "0.6373319", "0.6358263", "0.6322797", "0.63214344", "0.62839", "0.6270614", "0.6265534", "0.6262602", "0.6245396", "0.6226707", "0.62195224", "0.6199828", "0.6194176", "0.61679715", "0.61505216", "0.6141201", "0.6141201", "0.613657", "0.61238766", "0.6113572", "0.6078777", "0.6067093", "0.6051407", "0.60489607", "0.60435355", "0.6034403", "0.6030665", "0.603029", "0.6002317", "0.5987207", "0.5984917", "0.59831345", "0.5962016", "0.5931717", "0.59043086", "0.58999294", "0.58940864", "0.5888768", "0.5887435", "0.5887003", "0.5872753", "0.58715606", "0.5867456", "0.5854781", "0.5835268", "0.5833011", "0.58237326", "0.58237326", "0.58237326", "0.58237326", "0.5821464", "0.5818652", "0.5814066", "0.57974726", "0.579667", "0.5792226", "0.57900447", "0.57734174", "0.57581633", "0.5751797", "0.57507133", "0.5744841", "0.5744065", "0.5744024", "0.5743795", "0.5740732", "0.57376605", "0.5736934", "0.5736099", "0.5727886", "0.5727659", "0.5714002", "0.5700601", "0.56953377", "0.5689013", "0.5682943", "0.5676875", "0.56736434", "0.56729144", "0.567041", "0.5669635", "0.56651294", "0.56643426", "0.5662451", "0.5647604" ]
0.0
-1
Returns true if field beerList is set (has been assigned a value) and false otherwise
public boolean isSetBeerList() { return this.beerList != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetSellerList() {\n return this.sellerList != null;\n }", "public boolean isSetFeeList() {\r\n return feeList != null && !feeList.isEmpty();\r\n }", "public boolean isSetLegalList() {\n return this.legalList != null;\n }", "boolean isSetPublicationList();", "boolean hasList();", "public boolean hasList() {\n return msgCase_ == 5;\n }", "public boolean hasEmployeelist() {\n return employeelistBuilder_ != null || employeelist_ != null;\n }", "public boolean hasList() {\n return msgCase_ == 5;\n }", "boolean getIsList();", "boolean getIsList();", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "boolean isSetBranchOfficeList();", "boolean isSetRaceList();", "public boolean isSetPriceList();", "public void setBannedList(boolean b){\n useList = b;\n }", "public boolean hasEmployeelist() {\n return employeelist_ != null;\n }", "boolean hasConditionList();", "private Boolean checkForEmptyList() {\n Boolean emptyListAvailable = tin_perLitrePrice.getText().toString().trim().isEmpty() ||\n tin_fuelQuantityLitres.getText().toString().trim().isEmpty() ||\n tin_totalFuelPrice.getText().toString().trim().isEmpty() ||\n tin_currentKm.getText().toString().trim().isEmpty() ||\n tin_startingKm.getText().toString().trim().isEmpty() ||\n tin_distanceCovered.getText().toString().trim().isEmpty() ||\n tv_calculatedAverage_addEdit.getText().toString().trim().isEmpty() ||\n tv_coverableDistance_addEdit.getText().toString().trim().isEmpty() ||\n tv_nextFuelFill_addEdit.getText().toString().trim().isEmpty();\n\n if (emptyListAvailable) {\n validationList(); // set error messages\n }\n Log.d(TAG, \"checkForEmptyList: emptyListAvailable = \" + emptyListAvailable);\n\n\n return emptyListAvailable; //\n }", "public boolean hasConditionList() {\n return conditionListBuilder_ != null || conditionList_ != null;\n }", "public boolean checkListNull() {\n\t\treturn ((drawerItems == null) ? true : false);\n\t}", "public boolean isSetBrandid() {\n return __isset_bit_vector.get(__BRANDID_ISSET_ID);\n }", "public boolean hasConditionList() {\n return conditionList_ != null;\n }", "public boolean isSetLstChannel() {\n return this.lstChannel != null;\n }", "boolean hasAddressList();", "boolean isSetListOfServiceElements();", "public void verifyBugerList()\n\t{\n\t\t\n\t}", "public boolean isSetNumRFElements() {\n return (this.numRFElements != null ? this.numRFElements.isSetValue() : false);\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BEER_LIST:\n return isSetBeerList();\n case STATUS_CODE:\n return isSetStatusCode();\n }\n throw new IllegalStateException();\n }", "boolean hasUserList();", "public boolean isInList();", "boolean isHiddenFromList();", "public boolean isSatisfied() {\n\t\tif (!booksToReturn.isEmpty()) {\n\t\t\treturn false;\n\t\t}\n\t\t// sprawdzenie czy wszystko z listy jest\n\t\t// przygotowywanie drugiej listy\n\t\tList<Integer> checkList = new ArrayList<Integer>();\n\t\tcheckList.addAll(wishList);\n\n\t\t// jesli ksiazka jest w plecaku to powinna byc na liscie\n\t\tfor (Book book : lendBooks) {\n\t\t\tif (checkList.contains((Integer) book.getIsbn())) {\n\t\t\t\tcheckList.remove((Integer) book.getIsbn());\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// jeski na liscie jest coc czego nie ma w plecaku\n\t\treturn checkList.isEmpty();\n\t}", "public boolean isListable();", "public boolean isSet() {\n\t\treturn false;\n\t}", "public boolean isSetBirthplace()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(BIRTHPLACE$24) != 0;\n }\n }", "public boolean isSetItems() {\n return this.items != null;\n }", "public boolean isList();", "public boolean isList();", "public boolean isSetBirth() {\n\t\treturn this.birth != null;\n\t}", "@JsonIgnore\n public boolean isLoadBalancersSet() { return isSet.contains(\"loadBalancers\"); }", "public Builder setIsList(boolean value) {\n\n isList_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public Builder setIsList(boolean value) {\n\n isList_ = value;\n bitField0_ |= 0x00000008;\n onChanged();\n return this;\n }", "public boolean isList() {\n return m_item.getSchemaComponent().type() == SchemaBase.LIST_TYPE;\n }", "protected boolean checkEmptyList(){\n boolean emptyArray = true;\n String empty= alertList.get(AppCSTR.FIRST_ELEMENT).get(AppCSTR.NAME);\n if(!empty.equals(\"null\") && !empty.equals(\"\")) {\n emptyArray = false;\n }\n return emptyArray;\n }", "public boolean isSetFields() {\n return this.fields != null;\n }", "public boolean hasBeams() {\n\t\tfor (Beam beam : beams) {\n\t\t\tif (beam != null) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasValue() {\n return valueBuilder_ != null || value_ != null;\n }", "protected boolean isValid() {\n return COLLECTION.getList().contains(this);\n }", "public boolean isSetEmbl()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(EMBL$10) != 0;\r\n }\r\n }", "public boolean isSetIban()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(IBAN$6) != 0;\n }\n }", "public boolean isSetExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(EXTLST$28) != 0;\n }\n }", "public boolean isSetExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(EXTLST$14) != 0;\n }\n }", "private final synchronized boolean m12565b() {\n return this.f10287a.getAll().isEmpty();\n }", "boolean isSetServiceConfigurationList();", "public boolean isSetIsdealerrecommend() {\n return __isset_bit_vector.get(__ISDEALERRECOMMEND_ISSET_ID);\n }", "public void setIsSetPriceList (boolean IsSetPriceList);", "public boolean hasLandList() {\r\n return hasLandList;\r\n }", "public boolean isSettersRequired() {\n final boolean result = cbSetters.getModel().isSelected();\n paramSetters = result;\n return result;\n }", "public boolean isSetGibbmt()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GIBBMT$4) != 0;\r\n }\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BID_PRICE4:\n return isSetBidPrice4();\n case BID_VOLUME4:\n return isSetBidVolume4();\n case BID_PRICE5:\n return isSetBidPrice5();\n case BID_VOLUME5:\n return isSetBidVolume5();\n }\n throw new IllegalStateException();\n }", "public boolean isSetNames() {\n return this.names != null;\n }", "boolean isListRemainingEmpty();", "public boolean isSetBodydoors() {\n return __isset_bit_vector.get(__BODYDOORS_ISSET_ID);\n }", "public boolean isSetValue() {\n return this.value != null;\n }", "boolean isSetOrganizationPositionList();", "public boolean isSetDdbj()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(DDBJ$24) != 0;\r\n }\r\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn data != null && data.list != null && data.list.isEmpty();\r\n\t}", "private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}", "boolean hasServiceList();", "public boolean isSetGenres() {\n return this.genres != null;\n }", "public boolean isSetGenres() {\r\n return this.genres != null;\r\n }", "public boolean is_set_data() {\n return this.data != null;\n }", "public boolean is_set_data() {\n return this.data != null;\n }", "public static boolean isSet(ArrayList<?> list, Integer index) {\r\n\t\t return index != null && index >=0 && index < list.size() && list.get(index) != null;\r\n\t}", "public boolean isSetParts() {\n return this.parts != null;\n }", "@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }", "@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }", "public boolean isSetValue() {\n return this.value != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BLOCK_MASTER_INFO:\n return isSetBlockMasterInfo();\n }\n throw new IllegalStateException();\n }", "@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }", "@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }", "private boolean isDecoratableList(Field field) {\n\t\tif (!List.class.isAssignableFrom(field.getType())) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Type erasure in Java isn't complete. Attempt to discover the generic\n\t\t// type of the list.\n\t\tType genericType = field.getGenericType();\n\t\tif (!(genericType instanceof ParameterizedType)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tType listType = ((ParameterizedType) genericType)\n\t\t\t\t.getActualTypeArguments()[0];\n\n\t\tif (!WebElement.class.equals(listType)) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn (field.getAnnotation(UIMapKeyProvider.class) != null);\n\t}", "boolean getConditionListNull();", "public boolean isValid()\r\n {\r\n //Override this method in MediaItem object\r\n return getSemanticObject().getBooleanProperty(swb_valid,false);\r\n }", "public boolean hasValue() {\n return value_ != null;\n }", "@Override\n public boolean add(List<Buyer> buyers) {\n return false;\n }", "public boolean isSetLstSubSvrInfo() {\n return this.lstSubSvrInfo != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RESULT:\n return isSetResult();\n case SELLER_LIST:\n return isSetSellerList();\n case PAGINATION:\n return isSetPagination();\n }\n throw new IllegalStateException();\n }", "default boolean hasValue() {\n\t\t\treturn getValue() != null;\n\t\t}", "public boolean isVehicleDescriptionFieldPresent() {\r\n\t\treturn isElementPresent(vehicleDescriptionField, SHORTWAIT);\r\n\t}", "@Override\n public boolean isSet() {\n return locusLocus != null;\n }", "public boolean hasBegDate() {\n return fieldSetFlags()[1];\n }", "@Override\n protected Boolean isValidBuild() {\n return frontendFieldToBackendField.entrySet().stream().allMatch(entry -> {\n return (entry.getValue().getWorker() == null && !entry.getValue().getHasDome()) &&\n ((entry.getValue().getBlocks() == entry.getKey().getBlocks() - 1) && entry.getKey().getBlocks() <= 3 && !entry.getKey().getHasDome() ||\n (entry.getValue().getBlocks() <= 3 && entry.getKey().getHasDome() == true));\n });\n }", "public Boolean getNeedBuyerAddressAndPhone() {\n return needBuyerAddressAndPhone;\n }", "public boolean isSetGuardBand() {\n return (this.guardBand != null ? this.guardBand.isSetValue() : false);\n }", "@Override\n public boolean isSet() {\n return loci != null;\n }", "public boolean isSetBaidumap() {\n return this.baidumap != null;\n }", "public boolean control(ArrayList<Boisson> b){\n if(b.isEmpty()){return false;}\n return true;\n }", "public boolean bookable() {\n for (Flight flight : itinerary) {\n if (flight.getNumSeats() <= 0) {\n return false;\n }\n }\n return true;\n }" ]
[ "0.6920169", "0.6733442", "0.64174044", "0.62785435", "0.62286603", "0.62087864", "0.6200833", "0.6199705", "0.6090238", "0.6090238", "0.60888535", "0.60888535", "0.60482705", "0.60446846", "0.5947988", "0.59375083", "0.59042984", "0.5898448", "0.5844451", "0.58060026", "0.5805781", "0.57726127", "0.5727187", "0.5716824", "0.57098854", "0.57044345", "0.5635009", "0.5630566", "0.5622234", "0.5619059", "0.55967647", "0.5581642", "0.55661315", "0.5564984", "0.55644333", "0.55643564", "0.5534439", "0.5514934", "0.5514934", "0.5512863", "0.5498482", "0.5492644", "0.5479258", "0.5472949", "0.5467647", "0.5464586", "0.5464442", "0.5461636", "0.5455592", "0.545261", "0.5451906", "0.54452807", "0.54434204", "0.5437221", "0.5435858", "0.5430982", "0.54283965", "0.5426513", "0.5413701", "0.54110086", "0.53961635", "0.5378431", "0.5361792", "0.53602225", "0.5357755", "0.5351718", "0.5350881", "0.53456414", "0.53417194", "0.53327125", "0.5332694", "0.53321123", "0.5332005", "0.5332005", "0.5329592", "0.5327186", "0.5322313", "0.5322313", "0.5321195", "0.53086525", "0.5306802", "0.5306802", "0.530126", "0.52936965", "0.5291552", "0.528879", "0.52849656", "0.52844596", "0.52839214", "0.5279033", "0.52745354", "0.52693355", "0.52669585", "0.52579", "0.5256478", "0.52527535", "0.52496815", "0.52457684", "0.52449286", "0.52400637" ]
0.83800167
0
Returns true if field statusCode is set (has been assigned a value) and false otherwise
public boolean isSetStatusCode() { return this.statusCode != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasResponseCode() {\n return fieldSetFlags()[5];\n }", "public boolean hasStatusCodes()\n {\n return (this.statusCodes != null) && (this.statusCodes.length > 0);\n }", "public boolean isSetMaritalStatusCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(MARITALSTATUSCODE$14) != 0;\n }\n }", "public boolean isSetStatuscode() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __STATUSCODE_ISSET_ID);\n }", "public boolean is_set_status() {\n return this.status != null;\n }", "public boolean isResponseSuccess(int statusCode) {\r\n return statusCode == HttpStatus.SC_NO_CONTENT || statusCode == HttpStatus.SC_CREATED || statusCode == HttpStatus.SC_OK;\r\n }", "@Override\n protected boolean hasError(HttpStatus statusCode) {\n return false;\n }", "public Integer getStatusCode() {\n return statusCode;\n }", "public void setStatusCode(Integer statusCode) {\n this.statusCode = statusCode ;\n }", "public void setStatusCode(Integer statusCode) {\n this.statusCode = statusCode;\n }", "public int getStatusCode() {\n return statusCode;\n }", "public int getStatusCode() {\n return statusCode;\n }", "public int getStatusCode() {\n return statusCode;\n }", "public int getStatusCode() {\n return statusCode;\n }", "public void setStatusCode(String statusCode) {\r\n\t\tthis.statusCode = statusCode;\r\n\t}", "public HttpStatus getStatusCode() {\n return statusCode;\n }", "public void setStatusCode(String statusCode) {\n\t\tthis.statusCode = statusCode;\n\t}", "public boolean hasErrcode() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "@java.lang.Override\n public boolean hasStatus() {\n return status_ != null;\n }", "@java.lang.Override\n public boolean hasStatus() {\n return status_ != null;\n }", "public boolean hasErrcode() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasPatStatusCode() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "boolean hasErrorCode();", "public boolean hasPatStatusCode() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasPatStatusCode() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public String getStatusCode() {\r\n\t\treturn statusCode;\r\n\t}", "public boolean isSetStatus() {\n return this.status != null;\n }", "public boolean isSetStatus() {\n return this.status != null;\n }", "public boolean isSetStatus() {\n return this.status != null;\n }", "public boolean isSetStatus() {\n return this.status != null;\n }", "public boolean isSetStatus() {\n return this.status != null;\n }", "public boolean hasPatStatusCode() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public String getStatusCode() {\n\t\treturn statusCode;\n\t}", "public String getStatusCode() {\n\t\treturn statusCode;\n\t}", "boolean hasResultCode();", "boolean hasResultCode();", "public StatusCode getStatusCode() {\r\n\t\treturn statusCode;\r\n\t}", "public StatusCode getStatusCode() {\n return statusCode;\n }", "public StatusCodes getStatusCode() {\n\t\treturn statusCode;\n\t}", "boolean hasPatStatusCode();", "boolean hasPatStatusCode();", "private boolean m43013b(int responseCode) {\n if (responseCode == 200 || responseCode == 202 || responseCode == 206) {\n return true;\n }\n return false;\n }", "public boolean isSetCode() {\n return this.code != null;\n }", "public boolean hasResultCode() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasResultCode() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isSuccessful() {\n return code >= 200 && code < 300;\n }", "public boolean isSetStatus() {\n\t\treturn org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __STATUS_ISSET_ID);\n\t}", "public boolean hasStatus() {\n return fieldSetFlags()[8];\n }", "public boolean hasPatStatusCodeName() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public final int hasStatus() {\n\t\treturn m_status;\n\t}", "@Override\n\tpublic int getStatusCodeValue() {\n\t\treturn this.statusCode.value();\n\t}", "public void setStatusCode(int statusCode) {\r\n\t\tcheckHeaderGeneration();\r\n\t\tthis.statusCode = statusCode;\r\n\t}", "public boolean hasPatStatusCodeName() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public boolean getResponseStatus();", "public ExportStatusCode getStatusCode()\n {\n return statusCode;\n }", "public boolean hasResultCode() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasResultCode() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasPatStatusCodeName() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public int statusCode(){\n return code;\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "public TStatusCode getStatusCode() {\n\n\t\treturn statusCode;\n\t}", "public boolean isSetStatusPsw() {\n\t\treturn org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __STATUSPSW_ISSET_ID);\n\t}", "public boolean hasPatStatusCodeName() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "@java.lang.Override\n public boolean getIsOk() {\n return isOk_;\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "public boolean isSetStatus() {\n return EncodingUtils.testBit(__isset_bitfield, __STATUS_ISSET_ID);\n }", "public boolean isSetStatus() {\n return EncodingUtils.testBit(__isset_bitfield, __STATUS_ISSET_ID);\n }", "@Override\n\tpublic void setStatusCode(int statusCode) {\n\t\t_dmGtStatus.setStatusCode(statusCode);\n\t}", "@Override\n\tpublic HttpStatus getStatusCode() {\n\t\treturn this.statusCode;\n\t}", "public boolean hasStatus() {\n return result.hasStatus();\n }", "public boolean hasStatus() {\n return result.hasStatus();\n }", "public boolean hasStatus() {\n return result.hasStatus();\n }", "public boolean hasStatus() {\n return result.hasStatus();\n }", "@java.lang.Override\n public boolean getIsOk() {\n return isOk_;\n }", "public void setStatusCode(HttpStatus statusCode) {\n this.statusCode = statusCode;\n }", "boolean hasErrcode();", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}", "public void setStatusCode(int statusCode) {\n\t\tif (headerGenerated)\n\t\t\tthrow new RuntimeException(\"Header already generated\");\n\t\tthis.statusCode = statusCode;\n\t}", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean getStatus(){\r\n\t\treturn status;\r\n\t}", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasStatus() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }" ]
[ "0.67684114", "0.6653336", "0.64892006", "0.6487895", "0.64841235", "0.64778227", "0.626148", "0.62405074", "0.6231786", "0.6198495", "0.6192391", "0.6192391", "0.6192391", "0.6192391", "0.6176962", "0.61530274", "0.61075515", "0.6096171", "0.6093421", "0.6093421", "0.6085972", "0.6074733", "0.60744774", "0.6056349", "0.6043301", "0.6042723", "0.6038803", "0.6038803", "0.6038803", "0.6038803", "0.6038803", "0.6017006", "0.6000003", "0.6000003", "0.59777707", "0.59777707", "0.5975568", "0.59719723", "0.59695566", "0.59691644", "0.59691644", "0.5966655", "0.59583575", "0.5956117", "0.5956117", "0.59503144", "0.5929719", "0.59278214", "0.5922184", "0.5918058", "0.5916628", "0.5912831", "0.59059274", "0.5902331", "0.5894723", "0.5894672", "0.5894672", "0.5871486", "0.5870581", "0.58623403", "0.5858196", "0.58573276", "0.5853412", "0.58208567", "0.580677", "0.5806207", "0.5806207", "0.58038133", "0.57994294", "0.57966214", "0.57966214", "0.57966214", "0.57966214", "0.57861364", "0.57826686", "0.5778913", "0.576641", "0.5766349", "0.5766349", "0.5766349", "0.5766349", "0.5766349", "0.57566607", "0.57566607", "0.57566607", "0.57566607", "0.57566607", "0.57566607", "0.57566607", "0.57566607", "0.57528925", "0.57459086", "0.5744058", "0.5737991", "0.5737991", "0.5737991", "0.5737991", "0.5737133", "0.5735923", "0.57353663" ]
0.8066898
0
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case BEER_LIST: return isSetBeerList(); case STATUS_CODE: return isSetStatusCode(); } throw new IllegalStateException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(int fieldID) {\n switch (fieldID) {\n case NAME:\n return isSetName();\n case PASSWORD:\n return isSetPassword();\n case SELECT_PRIV:\n return isSetSelect_priv();\n case INSERT_PRIV:\n return isSetInsert_priv();\n case CREATE_PRIV:\n return isSetCreate_priv();\n case DROP_PRIV:\n return isSetDrop_priv();\n case GRANT_PRIV:\n return isSetGrant_priv();\n case ALTER_PRIV:\n return isSetAlter_priv();\n case CREATE_USER_PRIV:\n return isSetCreate_user_priv();\n case SUPER_PRIV:\n return isSetSuper_priv();\n default:\n throw new IllegalArgumentException(\"Field \" + fieldID + \" doesn't exist!\");\n }\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n case NUM:\n return isSetNum();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case FIELD:\r\n return isSetField();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case PARAMS:\n return isSetParams();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "boolean hasField4();", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case POSTSID:\n return isSetPostsid();\n case USERID:\n return isSetUserid();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case POST_ID:\n return isSetPostId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ENTITY_ID:\r\n return isSetEntityId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RECORD:\n return isSetRecord();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RECORD:\n return isSetRecord();\n }\n throw new IllegalStateException();\n }", "boolean hasFieldId();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case NUM:\n return isSetNum();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }", "boolean hasField0();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PARENT_ID:\n return isSetParentId();\n case TYPE:\n return isSetType();\n case VALUE:\n return isSetValue();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INSTITUTION_ID:\n return isSetInstitutionID();\n case PRODUCTIDS:\n return isSetProductids();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case DATA:\n return isSetData();\n case FILE_ID:\n return isSetFileID();\n case SIZE:\n return isSetSize();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BROKER_ID:\n return isSetBrokerID();\n case ACCOUNT_ID:\n return isSetAccountID();\n case ALGORITHM:\n return isSetAlgorithm();\n case MEMO:\n return isSetMemo();\n case CURRENCY_ID:\n return isSetCurrencyID();\n }\n throw new IllegalStateException();\n }", "public boolean isSetFields() {\n return this.fields != null;\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case NAME:\r\n return isSetName();\r\n case ARTISTS:\r\n return isSetArtists();\r\n case RELEASE_DATE:\r\n return isSetRelease_date();\r\n case GENRES:\r\n return isSetGenres();\r\n case TRACK_NAMES:\r\n return isSetTrack_names();\r\n case TEXT:\r\n return isSetText();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RELATED_ID:\n return isSetRelatedId();\n case COMPANY_ID:\n return isSetCompanyId();\n case COMPANY_GROUP_ID:\n return isSetCompanyGroupId();\n case MACHINE_ID:\n return isSetMachineId();\n case ACTIVE_START_TIMESTAMP:\n return isSetActiveStartTimestamp();\n case ACTIVED_END_TIMESTAMP:\n return isSetActivedEndTimestamp();\n case MACHINE_INNER_IP:\n return isSetMachineInnerIP();\n case MACHINE_OUTER_IP:\n return isSetMachineOuterIP();\n case CREATE_TIMESTAMP:\n return isSetCreateTimestamp();\n case LASTMODIFY_TIMESTAMP:\n return isSetLastmodifyTimestamp();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCOUNT_IDS:\n return isSetAccountIds();\n case COMMODITY_IDS:\n return isSetCommodityIds();\n }\n throw new IllegalStateException();\n }", "boolean hasField1();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case X:\n return isSetX();\n case Y:\n return isSetY();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PAGE_NO:\n return isSetPageNo();\n case PAGE_SIZE:\n return isSetPageSize();\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case STAFF_ID:\n return isSetStaffId();\n case LOGIN_TYPE:\n return isSetLoginType();\n case LOGIN_ID:\n return isSetLoginId();\n case LOGIN_PASS:\n return isSetLoginPass();\n case LOGIN_PASS_ENCRYPT:\n return isSetLoginPassEncrypt();\n case PHONE_NUMBER:\n return isSetPhoneNumber();\n case STAFF_TYPE:\n return isSetStaffType();\n case STATUS:\n return isSetStatus();\n case CERT_STATUS:\n return isSetCertStatus();\n case AVG_SCORE:\n return isSetAvgScore();\n case TAG:\n return isSetTag();\n case FINISH_ORDER_COUNT:\n return isSetFinishOrderCount();\n case ASSIGN_ORDER_COUNT:\n return isSetAssignOrderCount();\n case EXTRA_DATA1:\n return isSetExtraData1();\n case EXTRA_DATA2:\n return isSetExtraData2();\n case CREATE_TIME:\n return isSetCreateTime();\n case UPDATE_TIME:\n return isSetUpdateTime();\n case REGISTER_TIME:\n return isSetRegisterTime();\n case LAST_RECEPTION_TIME:\n return isSetLastReceptionTime();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EXAM_ID:\n return isSetExam_id();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new java.lang.IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case ID_CURSA:\r\n return isSetIdCursa();\r\n case NR_LOC:\r\n return isSetNrLoc();\r\n case CLIENT:\r\n return isSetClient();\r\n }\r\n throw new java.lang.IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case COMB_INSTRUMENT_ID:\n return isSetCombInstrumentID();\n case LEG_ID:\n return isSetLegID();\n case LEG_INSTRUMENT_ID:\n return isSetLegInstrumentID();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PID:\n return isSetPid();\n case EXCEPTION_ID:\n return isSetExceptionId();\n case USER_ID:\n return isSetUserId();\n case REPORT_DATE:\n return isSetReportDate();\n case UN_ASSURE_CONDITION:\n return isSetUnAssureCondition();\n case HOUSE_PROPERY_CONDITION:\n return isSetHouseProperyCondition();\n case REMARK:\n return isSetRemark();\n case CREATE_DATE:\n return isSetCreateDate();\n case CREATE_ID:\n return isSetCreateId();\n case UPDATE_DATE:\n return isSetUpdateDate();\n case UPDATE_ID:\n return isSetUpdateId();\n case PROJECT_ID:\n return isSetProjectId();\n case LEGAL_LIST:\n return isSetLegalList();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case PATIENT_ID:\n return isSetPatient_id();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IS_STAR:\n return isSetIs_star();\n case IS_DISTINCT:\n return isSetIs_distinct();\n case OP:\n return isSetOp();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }" ]
[ "0.79056656", "0.79056656", "0.78333884", "0.78036314", "0.77937067", "0.7780796", "0.7780796", "0.7780796", "0.7780796", "0.76468164", "0.754723", "0.75451803", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.7542179", "0.75237954", "0.7519931", "0.7519931", "0.7518171", "0.7517334", "0.7517334", "0.7517334", "0.7517334", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.7516493", "0.75077486", "0.74782556", "0.7463401", "0.7450414", "0.74464494", "0.74464494", "0.7432297", "0.74118006", "0.73933053", "0.7392036", "0.7386285", "0.7381753", "0.7379419", "0.7373811", "0.7371855", "0.73575383", "0.73532623", "0.7346856", "0.73463356", "0.7345177", "0.7345177", "0.73431945", "0.7337974", "0.7333134", "0.7332566", "0.73245287", "0.7323758", "0.7319723", "0.7318809", "0.7317446", "0.7308939", "0.7308939", "0.7308939", "0.7308939", "0.7308939" ]
0.0
-1
check for required fields
public void validate() throws org.apache.thrift.TException { if (statusCode == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'statusCode' was not present! Struct: " + toString()); } // check for sub-struct validity }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean validateRequiredFields(StringBuffer b){\n boolean result = true;\n\n if (!TextFieldHelper.isNumericFieldValid(this.goalValue, \" Цель: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.startWeightValue, \" Исходный вес: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.heightValue, \" Рост: \", b) ||\n !CalendarHelper.isFieldValid(startProgramDateValue, \" Старт программы: \", b) ||\n !new ComboBoxFieldHelper<Client>().isFieldValid(clientFIOValue, \" Клиент: \", b))\n {\n result = false;\n }\n\n return result;\n }", "boolean isRequired();", "boolean isRequired();", "boolean isRequired();", "private boolean CheckAllRequiredFields() {\n\t\tboolean res = true;\n\t\tres &= CheckParkSelection();\n\t\tres &= CheckDateSelection();\n\t\tres &= CheckVisitorHour();\n\t\tres &= CheckEmail();\n\t\tres &= CheckPhoneNumber();\n\t\treturn res;\n\t}", "private void fillMandatoryFields() {\n\n }", "private boolean Validate() {\n EditText titleText = findViewById(R.id.register_movie_title_txt);\n EditText yearText = findViewById(R.id.register_movie_year_txt);\n EditText ratingText = findViewById(R.id.register_movie_rating_txt);\n\n\n boolean is_filled_required_fields = false;\n is_filled_required_fields = titleText.getText().toString().length() > 0\n && yearText.getText().toString().length() > 0\n && ratingText.getText().toString().length() > 0;\n\n if (!is_filled_required_fields) {\n Snackbar mySnackbar = Snackbar.make(findViewById(R.id.activity_register_base_layout), \"Please fill required fields\", BaseTransientBottomBar.LENGTH_SHORT);\n mySnackbar.show();\n }\n return is_filled_required_fields;\n }", "public boolean isRequired();", "private void validateFields() {\n\t\t// TODO validate ID\n\t\tboolean valid = (mEdtAddress.getText().length() > 2)\n\t\t\t\t&& (mEdtPassword.getText().length() > 0);\n\t\tmBtnNext.setEnabled(valid);\n\t}", "private boolean checkFields() {\n if (editTxtName.getText().equals(\"\")) return false;//name\n if (editTxtDesc.getText().equals(\"\")) return false;//desc\n if (editClrColor.getValue() == null) return false;//color\n if (oldEnvironment == null) return false;//environment is null\n return true;//everything is valid\n }", "private boolean checkfields() {\n try {\n Integer.parseInt(checknum.getText().toString());\n Integer.parseInt(banknum.getText().toString());\n Integer.parseInt(branchnum.getText().toString());\n Integer.parseInt(accountnum.getText().toString()); //was commented\n\n } catch (NumberFormatException e) { // at least one of these numbers is not Integer\n return false;\n }\n\n if (checknum.getText().toString().equals(null) || banknum.getText().toString().equals(null) ||branchnum.getText().toString().equals(null)|| accountnum.getText().toString().equals(null))\n return false; // At least one of the fields is empty\n\n return true;\n }", "public void checkFields(){\n }", "protected boolean isAllRequiredTxtFieldsFilled() {\r\n JTextField[] txtFields = {\r\n txtFieldFirstName, txtFieldLastName,\r\n txtFieldDateOfBirth, txtFieldIBAN,\r\n txtFieldState, txtFieldHouseNumber,\r\n txtFieldPostcode, txtFieldLocation,\r\n txtFieldCountry, txtFieldState\r\n };\r\n\r\n for (JTextField txtField : txtFields) {\r\n if (txtField.getText().equals(\"\")) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "private void checkRequiredFields() {\n // check the fields which should be non-null\n if (configFileName == null || configFileName.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configFileName' should not be null.\");\n }\n if (configNamespace == null || configNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configNamespace' should not be null.\");\n }\n if (searchBundleManagerNamespace == null\n || searchBundleManagerNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'searchBundleManagerNamespace' should not be null.\");\n }\n if (entityManager == null) {\n throw new DAOConfigurationException(\n \"The 'entityManager' should not be null.\");\n }\n }", "public static boolean checkMandatoryFields(Object obj) {\n\n\t\tif (obj instanceof UserDTO) {\n\n\t\t\tUserDTO userDTO = (UserDTO) obj;\n\n\t\t\tif (userDTO.getPasscode().trim().isEmpty()) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private boolean validateInputs() {\n return !proID.getText().isEmpty() || \n !proName.getText().isEmpty() ||\n !proPrice.getText().isEmpty();\n }", "private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}", "public boolean hasFieldErrors();", "private boolean verifyObligedFields() {\n if(label.getText().toString().isEmpty() || label.getText().toString().equals(\"\"))\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.label_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(category.getSelectedItem().toString().isEmpty())\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.category_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(cost.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.cost_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(dateDue.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.date_due_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "private boolean checkFields() {\n boolean test = true;\n if (fname.isEmpty()) {\n test = false;\n }\n if (lname.isEmpty()) {\n test = false;\n }\n if (cin.isEmpty()) {\n test = false;\n }\n if (typeCompte.equals(\"Bancaire\")) {\n if (decouvertNF.isEmpty())\n test = false;\n } else if (typeCompte.equals(\"Epargne\")) {\n if (tauxInteretNF.isEmpty())\n test = false;\n }\n if (s_datePK.getValue() == null) {\n s_datePK.setStyle(\"-fx-border-color:red;-fx-border-radius:3px;-fx-border-size: 1px;\");\n test = false;\n }\n\n return test;\n }", "private void checkFields() {\n if (month.getText().toString().isEmpty()) {\n month.setError(\"enter a month\");\n month.requestFocus();\n return;\n }\n if (day.getText().toString().isEmpty()) {\n day.setError(\"enter a day\");\n day.requestFocus();\n return;\n }\n if (year.getText().toString().isEmpty()) {\n year.setError(\"enter a year\");\n year.requestFocus();\n return;\n }\n if (hour.getText().toString().isEmpty()) {\n hour.setError(\"enter an hour\");\n hour.requestFocus();\n return;\n }\n if (minute.getText().toString().isEmpty()) {\n minute.setError(\"enter the minute\");\n minute.requestFocus();\n return;\n }\n if (AMorPM.getText().toString().isEmpty()) {\n AMorPM.setError(\"enter AM or PM\");\n AMorPM.requestFocus();\n return;\n }\n if (place.getText().toString().isEmpty()) {\n place.setError(\"enter the place\");\n place.requestFocus();\n return;\n }\n }", "public abstract List<String> requiredFields();", "public final boolean hasAllRequiredField() {\n EditText editText = (EditText) _$_findCachedViewById(C2723R.C2726id.etUserName);\n Intrinsics.checkExpressionValueIsNotNull(editText, \"etUserName\");\n CharSequence obj = editText.getText().toString();\n int length = obj.length() - 1;\n int i = 0;\n boolean z = false;\n while (i <= length) {\n boolean z2 = obj.charAt(!z ? i : length) <= ' ';\n if (!z) {\n if (!z2) {\n z = true;\n } else {\n i++;\n }\n } else if (!z2) {\n break;\n } else {\n length--;\n }\n }\n String obj2 = obj.subSequence(i, length + 1).toString();\n EditText editText2 = (EditText) _$_findCachedViewById(C2723R.C2726id.etPassword);\n Intrinsics.checkExpressionValueIsNotNull(editText2, \"etPassword\");\n CharSequence obj3 = editText2.getText().toString();\n int length2 = obj3.length() - 1;\n int i2 = 0;\n boolean z3 = false;\n while (i2 <= length2) {\n boolean z4 = obj3.charAt(!z3 ? i2 : length2) <= ' ';\n if (!z3) {\n if (!z4) {\n z3 = true;\n } else {\n i2++;\n }\n } else if (!z4) {\n break;\n } else {\n length2--;\n }\n }\n String obj4 = obj3.subSequence(i2, length2 + 1).toString();\n if (TextUtils.isEmpty(obj2) || TextUtils.isEmpty(obj4)) {\n return false;\n }\n return true;\n }", "public static boolean checkMandatoryFieldsRegistration(Object obj) {\n\n\t\tif (obj instanceof UserDTO) {\n\n\t\t\tUserDTO userDTO = (UserDTO) obj;\n\n\t\t\tif (userDTO.getPasscode().trim().isEmpty()) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n requiredFieldDescriptions.put(FIELD_ENTREZ_GENE_ID, \"must be an integer number\");\r\n requiredMafExpressions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_TUMOR_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_TUMOR_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_VALIDATION_STATUS, Pattern.compile(\"Valid|Wildtype|Unknown|\\\\S?\"));\r\n requiredFieldDescriptions.put(FIELD_VALIDATION_STATUS, \"must be Valid, Wildtype, Unknown, or blank\");\r\n requiredMafExpressions.put(FIELD_CHROMOSOME, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_CHROMOSOME, \"must be one of: X, Y, M, 1-22, or full name of unassigned fragment\");\r\n setupMafSpecificChecks();\r\n }", "public boolean validateInputFields(){\n if(titleText.getText().isEmpty() || descriptionText.getText().isEmpty()){\n showError(true, \"All fields are required. Please complete.\");\n return false;\n }\n if(locationCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a location.\");\n return false;\n }\n if(contactCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a contact.\");\n return false;\n }\n if(typeCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select the type.\");\n return false;\n }\n if(customerCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a customer.\");\n return false;\n }\n if(userCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a user.\");\n return false;\n }\n return true;\n }", "private void verifyInput(){\n String firstName = mFirstNameField.getText().toString();\n String lastName = mLastNameField.getText().toString();\n\n mNameFieldsFilled = !TextUtils.isEmpty(firstName) && !TextUtils.isEmpty(lastName);\n\n }", "private void checkValidation() {\n String getInstituteName = NameofInstitute.getText().toString();\n String getDegreename = SpinnerDegree.getSelectedItem().toString();\n\n\n // Check if all strings are null or not\n if (getInstituteName.equals(\"\") || getInstituteName.length() == 0 || getDegreename.equals(\"\") || getDegreename.length() == 0)\n new CustomToast().Show_Toast(getActivity(), getView(),\"All fields are required.\");\n // Else do signup or do your stuff\n else {\n //Toast.makeText(getActivity(), \"All Ok till Now\", Toast.LENGTH_SHORT).show();\n AddQualifications(getDegreename,getInstituteName);\n }\n\n }", "private void fillMandatoryFields_custom() {\n\n }", "@Override\n\tprotected Boolean isValid(String[] fields) {\n\t\t//check - evnet_id, yes, maybe, invited, no\n return (fields.length > 4);\n\t}", "boolean isSetRequired();", "private boolean validateFields() {\r\n\t\tif (txUsuario.getText().equals(\"\") || txPassword.getText().equals(\"\")\r\n\t\t\t\t|| checkAdmin.isIndeterminate()|| checkTPV.isIndeterminate())\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "private void checkForEmptyFields() throws EmptyTextFieldException {\n\n if (date == null || title.equals(\"\") || function.equals(\"\") || protagonist.equals(\"\")\n || source.equals(\"\") || references.equals(\"\") || description.equals(\"\")) {\n throw new EmptyTextFieldException();\n }\n }", "boolean isMandatory();", "public boolean checkFields(){\n String message = \"\";\n if (firstName.getText().isEmpty()){\n message=\"First name is required\";\n }\n if (lastName.getText().isEmpty()){\n if (message.isEmpty())\n message = \"Last name is required\";\n else\n message = \"First name and Last name are required\";\n }\n if (birthday.getValue() == null){\n if (message.isEmpty())\n message = \"please select your birthday\";\n else if (firstName.getText().isEmpty()&& !lastName.getText().isEmpty())\n message = \"First name and birthday required\";\n else if (!firstName.getText().isEmpty() && lastName.getText().isEmpty())\n message = \"Last name and birthday required\";\n else\n message = \"all fields are required\";\n }\n errorDisplay.setText(message);\n return message.equals(\"\");\n }", "private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }", "public boolean fieldsAreFilled(){\r\n boolean filled = true;\r\n if(txtFName.getText().trim().isEmpty() | txtFEmail.getText().trim().isEmpty() | txtFPhone.getText().trim().isEmpty()){\r\n filled = false;\r\n }\r\n return filled;\r\n }", "private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean isRequired() {\n return field.isRequired();\n }", "private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }", "@Override\n public JsonNode required(String fieldName) {\n return _reportRequiredViolation(\"Node of type %s has no fields\",\n ClassUtil.nameOf(getClass()));\n }", "private boolean fieldsFilled(){\n return !editTextEmail.getText().toString().isEmpty() &&\n !editTextPassword.getText().toString().isEmpty();\n }", "public boolean validations() {\n boolean result = false;\n String nameString = mItemNameEditText.getText().toString().trim();\n String locationString = mItemLocationEditText.getText().toString().trim();\n\n if (nameString.isEmpty() || nameString == null || locationString.isEmpty() || locationString == null || isImageNotPresent()) {\n displayToastMessage(getString(R.string.fields_mandatory_msg));\n return result;\n } else {\n result = true;\n return result;\n }\n }", "private boolean haveEmptyField() {\n return getTextID(FIRST_NAME).isEmpty() ||\n getTextID(LAST_NAME).isEmpty() ||\n getTextID(ADDRESS).isEmpty();\n }", "private boolean validateInputs() {\n if (Constants.NULL.equals(review)) {\n reviewET.setError(\"Must type a review!\");\n reviewET.requestFocus();\n return false;\n }\n if (Constants.NULL.equals(heading)) {\n headingET.setError(\"Heading cannot be empty\");\n headingET.requestFocus();\n return false;\n }\n return true;\n }", "private boolean noFieldsEmpty() {\n if ( nameField.getText().isEmpty()\n || addressField.getText().isEmpty()\n || cityField.getText().isEmpty()\n || countryComboBox.getSelectionModel().getSelectedItem() == null\n || divisionComboBox.getSelectionModel().getSelectedItem() == null\n || postalField.getText().isEmpty()\n || phoneField.getText().isEmpty() ) {\n errorLabel.setText(rb.getString(\"fieldBlank\"));\n return false;\n }\n return true;\n }", "private boolean validateFields(){ \n ImplLogger.enterMethod(); \n StringBuffer validationMessage = new StringBuffer();\n boolean isValidationPassed = true;\n if(!ImplValidationUtils.isAlphaSpace(pharmaNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_NAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n pharmaNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n } \n if(!ImplValidationUtils.isAlphabetOnly(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplCommonUtil.isUserNameExist(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME_EXIST);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(contactTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_CONTACT);\n validationMessage.append(ImplConst.NEXT_LINE);\n contactTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(zipCodeTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_ZIPCODE);\n validationMessage.append(ImplConst.NEXT_LINE);\n zipCodeTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(passwordField.getText())){\n validationMessage.append(ImplConst.VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n passwordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n confirmPasswordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if (!ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText()) && !confirmPasswordField.getText().equals(passwordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n isValidationPassed = false; \n }\n if(!isValidationPassed){\n JOptionPane.showMessageDialog(null,validationMessage);\n } \n ImplLogger.exitMethod();\n return isValidationPassed;\n }", "public boolean verifyData()\n {\n if(jTextFieldName.getText().equals(\"\") && jTextFieldNumber.getText().equals(\"\") \n || jTextFieldSupplier.getText().equals(\"\") || jTextArea1.getText().equals(\"\") || jTextFieldModel.getText().equals(\"\"))\n {\n JOptionPane.showMessageDialog(null, \"One or More Fields Are Empty\");\n return false;\n }\n \n else\n {\n return true;\n }\n \n }", "boolean hasField3();", "private boolean hasRequirements() {\n \t\tif (checkHasRequirements) {\n \t\t\thasRequirements = pullRequired(requiredInput, false);\n \t\t\tcheckHasRequirements = false;\n \t\t}\n \t\treturn hasRequirements;\n \t}", "public boolean isRequired() {\n return required;\n }", "private void validarCampos() {\n }", "public boolean isInputValid()\n {\n String[] values = getFieldValues();\n if(values[0].length() > 0 || values[1].length() > 0 || values[2].length() > 0)\n return true;\n else\n return false;\n }", "public void validate(){\r\n\t\ttry{\r\n\t\t\t//First name, last name, date of birth and email are compulsory.\r\n\t\tif(FirstName==null||LastName==null||Dob==null||Email==null) \r\n\t\t\tthrow new Exception(\"One of the field is Empty :\\n(First name / last name / dob / email )\");\r\n\t\tif(TelephoneNumber!=0||MobileNumber!=0)\r\n\t\t\tthrow new Exception(\"Enter Contact Number\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\t/*finally{\r\n\t\t\tSystem.out.println(\"Program Executed\");\r\n\t\t}*/\r\n\t}", "private boolean validateData() {\n if (!mCommon.validateData()) return false;\n\n Core core = new Core(this);\n\n // Due Date is required\n if (TextUtils.isEmpty(getRecurringTransaction().getDueDateString())) {\n core.alert(R.string.due_date_required);\n return false;\n }\n\n if (TextUtils.isEmpty(mCommon.viewHolder.dateTextView.getText().toString())) {\n core.alert(R.string.error_next_occurrence_not_populate);\n\n return false;\n }\n\n // Payments Left must have a value\n if (getRecurringTransaction().getPaymentsLeft() == null) {\n core.alert(R.string.payments_left_required);\n return false;\n }\n return true;\n }", "public boolean checkInput(){\n if(spelerIDField.getText().equals(\"\") || typeField.getText().equals(\"\") || codeField.getText().equals(\"\") || heeftBetaaldField.getText().equals(\"\")){\n return true;\n } else { return false; }\n }", "boolean getRequired();", "boolean getRequired();", "boolean getRequired();", "Rule FieldReq() {\n // No effect on the value stack\n return FirstOf(\"required \", \"optional \");\n }", "protected boolean checkFields() {\n // Check if any of the fields are empty\n boolean ok = true;\n ok = !isFieldEmpty(password2) && ok;\n ok = !isFieldEmpty(password) && ok;\n ok = !isFieldEmpty(email) && ok;\n\n if (!ok)\n return false;\n\n // Check whether passwords match\n if (!password.getText().toString().equals(password2.getText().toString())){\n password2.setError(getString(R.string.signup_password_mismatch));\n password2.requestFocus();\n return false;\n }\n return true;\n }", "public static void validateRequiredEntries(FlightMap flightMap, String... keys) {\n for (String key : keys) {\n if (null == flightMap.getRaw(key)) {\n throw new MissingRequiredFieldsException(\n String.format(\"Required entry with key %s missing from flight map.\", key));\n }\n }\n }", "public void TC_03_verify_FirstName_Mandatory_Field() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t\t\r\n\t\t// Step 2: Enter valid/mandatory registration details except first name\r\n\t\t\r\n\t\tregPgObj.enterRegistrationDetails(\"firstName\", \"\");\r\n\t\tregPgObj.enterRegistrationDetails(\"lastName\", lastName);\r\n\t\tregPgObj.enterRegistrationDetails(\"email\", email);\r\n\t\tregPgObj.enterRegistrationDetails(\"password\", password);\r\n\t\tregPgObj.enterRegistrationDetails(\"confirmPassword\", confirmPassword);\r\n\t\t\r\n\t\t// Step 3: Click on Sign in button\r\n\t\t\r\n\t\tregPgObj.clickSignInButton();\r\n\t\t\r\n\t\t// Step 4: Verify user should NOT be able to proceed further with registration as proper validation message regarding first name\r\n\t\t// is displayed\r\n\t\terrMsg = Page_Registration.getMandatoryFieldErrMsg();\r\n\t\tAssert.assertEquals(errMsg, \"Please enter a value for First Name\");\r\n\r\n\t}", "private boolean isValid(){\n if(txtFirstname.getText().trim().isEmpty() || txtLastname.getText().trim().isEmpty() ||\n txtEmailAddress.getText().trim().isEmpty() || dobPicker.getValue()==null\n || txtPNum.getText().trim().isEmpty()\n || txtDefUsername.getText().trim().isEmpty()\n || curPassword.getText().trim().isEmpty()){\n \n return false; // return false if one/more fields are not filled\n }else{\n if(!newPassword.getText().trim().isEmpty()){\n if(!confirmPassword.getText().trim().isEmpty()){\n return true;\n }else{\n return false;\n }\n }\n return true; // return true if all fields are filled\n }\n }", "public boolean isRequired() {\n \treturn model.isRequired();\n }", "private boolean formIsValid(){\r\n // check if all the required fields have been filled in\r\n boolean allFieldsEntered = formComplete();\r\n // check if Name field has valid input\r\n boolean nameFieldValid = isAllChars(NAME_FIELD.getText());\r\n // check if city field has valid input\r\n boolean cityFieldValid = isAllChars(CITY_FIELD.getText());\r\n // check if country field has valid input\r\n boolean ctryFieldValid = isAllChars(COUNTRY_FIELD.getText());\r\n // check if zipcode field has valid input\r\n boolean zipFieldValid = isAllNums(ZIP_FIELD.getText());\r\n // check if phone field has valid input\r\n boolean phoneFieldValid = isAllNums(PHONE_FIELD.getText());\r\n // check if all fields and form are valid\r\n return allFieldsEntered && nameFieldValid &&\r\n cityFieldValid && ctryFieldValid &&\r\n zipFieldValid && phoneFieldValid; \r\n }", "private void validateFields() throws InvalidConnectionDataException {\n if (driver == null) throw new InvalidConnectionDataException(\"No driver field\");\n if (address == null) throw new InvalidConnectionDataException(\"No address field\");\n if (username == null) throw new InvalidConnectionDataException(\"No username field\");\n if (password == null) throw new InvalidConnectionDataException(\"No password field\");\n }", "boolean hasField4();", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify at least one component\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }", "public static boolean checkMandatoryFieldsUpdateUser(Object obj) {\n\n\t\tif (obj instanceof UpdateUserDTO) {\n\n\t\t\tUpdateUserDTO updateUserDTO = (UpdateUserDTO) obj;\n\n\t\t\tif (updateUserDTO.getFirstName().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getLastName().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getAddress1().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getCity().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getState().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getZipCode().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getNewEmailId().trim().isEmpty()\n\n\t\t\t) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean isRequired () {\n return required;\n }", "@Test(priority=1)\n\tpublic void testWhenFieldsAreEmpty() {\n\t\tsignup.clearAllFields();\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\n\t\t// when all fields are empty errors list is greater than 2\n\t\t// the best way to do it is to have a list of all expected values and compare it with the actual received strings\n\t\tAssert.assertTrue(3<errors.size());\n\t}", "@Test (priority = 2)\n\tpublic void TC2_CheckAllFields_Exisit ()\n\n\t{\n\t\tCreateUserPage UserObj = new CreateUserPage (driver);\n\n\t\t// This is to Validate If all fields of create user page are existing\n\t\tUserObj.Validate_AllFields_Exsist();\n\t\n\n\t}", "private List<String> returnEmptyRequiredFields(List<String> requiredFields, Object givenObject){\n return requiredFields.stream()\n .filter(x -> {\n try {\n return StringUtils.isEmpty((String) givenObject.getClass().getDeclaredField(x).get(givenObject));\n } catch (Exception e) {\n //Not going to try and scmOrganization for exceptions; if there is an exception we probably have greater issues than an empty/null field\n getLog().debug(String.format(\"Unable to ascertain if %s is null/empty\",x));\n return true;\n }\n })\n .collect(Collectors.toList());\n }", "public boolean isRequired() {\r\n return required;\r\n }", "private void checkMandatoryArgs(UserResource target, Errors errors) {\n final String proc = PACKAGE_NAME + \".checkMandatoryArgs.\";\n final String email = target.getEmail();\n final String password = target.getPassword();\n final String lastName = target.getLastName();\n\n logger.debug(\"Entering: \" + proc + \"10\");\n\n if (TestUtils.isEmptyOrWhitespace(email)) {\n errors.rejectValue(\"email\", \"user.email.required\");\n }\n logger.debug(proc + \"20\");\n\n if (TestUtils.isEmptyOrWhitespace(password)) {\n errors.rejectValue(\"password\", \"user.password.required\");\n }\n logger.debug(proc + \"30\");\n\n if (TestUtils.isEmptyOrWhitespace(lastName)) {\n errors.rejectValue(\"lastName\", \"userLastName.required\");\n }\n logger.debug(\"Leaving: \" + proc + \"40\");\n }", "private void validateEmptyElements()\n {\n // Check if something is missing\n if (_dietTreatment.getName().length() < 1)\n {\n getErrors().add(\"Kein Name angegeben.\");\n }\n\n // TODO: check that at least one user is TREATING!\n if (_dietTreatment.getSystemUsers().isEmpty())\n {\n getErrors().add(\"Kein verantwortlicher User angegeben.\");\n }\n\n if (_dietTreatment.getPatientStates().isEmpty())\n {\n getErrors().add(\"Keine Zuweisungsdiagnose angegeben.\");\n }\n }", "private boolean validarCampos() {\r\n\t\tif (cedula.equals(\"\") || nombre.equals(\"\") || apellido.equals(\"\") || telefono.equals(\"\")) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "default boolean renderRequired() {\n // if (!isPrimaryKey() && isRequired() && ) constraints.add(JdlUtils.validationRequired());\n return isRequired() && !(getName().equals(\"id\") && getType().equals(JdlFieldEnum.UUID));\n }", "private boolean areFieldsNotBlank() {\r\n boolean ok=true;\r\n if (dogNameField.getText() == null) {\r\n dogNameField.setStyle(\"-fx-border-color: red ; \");\r\n ok = false;\r\n } else if (dogNameField.getText().isBlank()) {\r\n dogNameField.setStyle(\"-fx-border-color: red ; \");\r\n ok = false;\r\n }\r\n return ok;\r\n }", "private boolean checkInfo()\n {\n boolean flag = true;\n if(gName.isEmpty())\n {\n groupName.setError(\"Invalid name\");\n flag = false;\n }\n if(gId.isEmpty())\n {\n groupId.setError(\"Invalid id\");\n flag = false;\n }\n if(gAddress.isEmpty())\n {\n groupAddress.setError(\"Invalid address\");\n flag = false;\n }\n\n for(char c : gName.toCharArray()){\n if(Character.isDigit(c)){\n groupName.setError(\"Invalid Name\");\n flag = false;\n groupName.requestFocus();\n }\n }\n\n if(groupType.isEmpty())\n {\n flag = false;\n rPublic.setError(\"Choose one option\");\n }\n\n if(time.isEmpty())\n time = \"not set\";\n\n if(groupDescription.getText().toString().length()<20||groupDescription.getText().toString().length()>200)\n groupDescription.setError(\"Invalid description\");\n\n return flag;\n }", "public boolean isRequired()\n\t{\n\t\treturn required;\n\t}", "@Override\n public void validate() {\n boolean b = false;\n\n //retrieving the contact us form details from request object\n String firstName = objContactUsForm.getName().trim();\n String email = objContactUsForm.getEmail().trim();\n String message = objContactUsForm.getMessage().trim();\n\n //now validating each of the field\n if (firstName.isEmpty()) {\n addFieldError(\"name\", getText(\"name.required\"));\n b = true;\n }\n\n if (email.isEmpty()) {\n addFieldError(\"email\", getText(\"email.required\"));\n b = true;\n }\n if (!b) {\n Pattern p = Pattern.compile(\".+@.+\\\\.[a-z]+\");\n Matcher m = p.matcher(email);\n boolean matchFound = m.matches();\n if (!matchFound) {\n addFieldError(\"email\", \"Please Provide Valid Email ID\");\n }\n }\n\n if (message.isEmpty()) {\n addFieldError(\"message\", getText(\"message.required\"));\n b = true;\n }\n\n if (!b) {\n boolean matches = message.matches(\"[<>!~@$%^&\\\"|!\\\\[#$]\");\n if (matches) {\n addFieldError(\"message\", \"Please Provide Valid Message Name\");\n b = true;\n }\n }\n }", "boolean hasField1();", "public static String errorMessageForRequiredFields(HashMap<String, String> requiredFields){\n String errorMessage = \"\";\n for(String fieldName: requiredFields.keySet()){\n if(requiredFields.get(fieldName).isBlank()){\n errorMessage += \"- \"+fieldName + \" is required!\\n\";\n }\n }\n if(!errorMessage.isBlank()){\n errorMessage = \"Please solve the following errors:\\n\" +errorMessage;\n }\n return errorMessage;\n }", "private boolean validSignInFields() {\n final EditText etEmail = findViewById(R.id.etSignInEmail);\n final EditText etPassword = findViewById(R.id.etSignInPassword);\n\n final String email = etEmail.getText().toString();\n final String password = etPassword.getText().toString();\n\n if (email.isEmpty()) {\n etEmail.setError(\"Email field is required.\");\n etEmail.requestFocus();\n } else if (!Patterns.EMAIL_ADDRESS.matcher(email).matches()) {\n etEmail.setError(\"Valid email address required.\");\n etEmail.requestFocus();\n } else if (password.isEmpty()) {\n etPassword.setError(\"Password field is required.\");\n etPassword.requestFocus();\n } else {\n return true;\n }\n\n return false;\n }", "@Override\n\tprotected boolean validateRequiredParameters() throws Exception {\n\t\treturn true;\n\t}", "boolean isNameRequired();", "public boolean checkEntryInputs() {\n\t\tboolean isValid = true;\n\t\tif(sampleNumberTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(materialDescriptionTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(Double.valueOf(bacteroidesConcentrationTF.getText())==null) {\n\t\t\tisValid = false;\n\t\t}\n\t\treturn isValid;\n\t}", "public void validateRequired(Arguments arguments) {\n if (StructuredLoggerFactory.requiredValuesEnabled() && !requireds.isEmpty()) {\n requireds.forEach(index -> {\n if (arguments.get(index) == null) {\n throw new MissingSchemaValueException(\"Entire schema must be specified. Missing: \" + names.get(index));\n }\n });\n }\n }", "public boolean isRequired() {\r\n return required;\r\n }", "public boolean isRequired() {\r\n return required;\r\n }", "private void checkFieldsForEmptyValues() {\n String s1 = edtEmail.getText().toString();\n String s2 = edtDisplayName.getText().toString();\n String s3 = edtPaswd.getText().toString();\n\n if (s1.equals(\"\") || s2.equals(\"\") || s3.equals(\"\")) { //disables the button\n btnRegister.setEnabled(false);\n } else { //enables the button\n btnRegister.setEnabled(true);\n }\n }", "@Override\n public boolean isPageComplete() {\n Text description = getMandatoryWidgets().get(\"description\");\n if (description.getText().length() == 0) {\n setErrorMessage(I18N.tr(\"Field is mandatory\") + \": \"\n + I18N.tr(XWT.getElementName((Object) description)));\n return false;\n }\n // Optional\n HashMap<String, Text> optWidgets = getOptionalWidgets();\n // Sorted array\n Text[] optArray = { optWidgets.get(\"airPerformance\"), optWidgets.get(\"motorPower\"),\n optWidgets.get(\"ventilatorPerformance\"), optWidgets.get(\"motorRPM\"),\n optWidgets.get(\"current\"), optWidgets.get(\"voltage\") };\n for (int i = 0; i < optArray.length; i++) {\n if (!checkValidity(optArray[i])) {\n setErrorMessage(I18N.tr(\"Invalid input for field\") + \" \"\n + I18N.tr(XWT.getElementName((Object) optArray[i])));\n return false;\n }\n }\n setErrorMessage(null);\n return true;\n }", "public boolean verifyFields()\n\t{\n\t\t// check name first\n\t\tif (!validateUserName(username.getText()))\n\t\t\treturn false;\n\n\t\t// check address if name is valid\n\t\tif (!validateIP(address.getText()))\n\t\t{\n\t\t\tsetWarning(\"invalid address\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// only check port if name and address are okay\n\t\ttry\n\t\t{\n\t\t\tInteger.parseInt(port.getText());\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tsetWarning(\"invalid port number\");\n\t\t\treturn false;\n\t\t}\n\n\t\tstatus.setTextFill(GREEN);\n\t\tstatus.setText(\"attempting connection\");\n\n\t\treturn true;\n\t}", "private boolean areFieldsValid() {\n // Whether the values from the fields can be inserted into the database without conflict.\n boolean retVal = true;\n\n if (vehicleId == -1) {\n // Then we don't know which vehicle to attach this issue to. This should never happen\n return false;\n // TODO: Display something to the user\n }\n\n // If we're creating a new Issue, we need to create the Issue object\n if (issue == null) {\n // A new issue is not fixed, and thus will be open.\n // Try to get the open status id and ensure it properly fetched\n int openIssueId = dbHelper.getOpenIssueStatusId();\n if (openIssueId != -1) {\n issue = new Issue(mTitle.getText().toString().trim(), vehicleId, openIssueId);\n }\n }\n\n // Convert the EditText fields to strings\n String checkTitle = mTitle.getText().toString().trim();\n String checkDescription = mDescription.getText().toString().trim();\n String checkPriority = mPriority.getText().toString().trim();\n\n if (checkTitle.isEmpty()) {\n retVal = false;\n eTitle.setError(getResources().getString(R.string.vehicleSettingsActivity_errorValidationEditTextMessage));\n } else if (!VerifyUtil.isStringSafe(checkTitle)) {\n retVal = false;\n eTitle.setError(getResources().getString(R.string.vehicleSettingsActivity_errorValidationEditTextMessageInvalidCharacters));\n } else {\n eTitle.setError(null);\n issue.setTitle(checkTitle);\n }\n\n if (checkDescription.isEmpty()) {\n retVal = false;\n eDescription.setError(getResources().getString(R.string.vehicleSettingsActivity_errorValidationEditTextMessage));\n } else if (!VerifyUtil.isTextSafe(checkDescription)) {\n retVal = false;\n eDescription.setError(getResources().getString(R.string.vehicleSettingsActivity_errorValidationEditTextMessageInvalidCharacters));\n } else {\n eDescription.setError(null);\n issue.setDescription(checkDescription);\n }\n\n if (checkPriority.isEmpty()) {\n retVal = false;\n ePriority.setError(getResources().getString(R.string.vehicleSettingsActivity_errorValidationEditTextMessage));\n } else {\n ePriority.setError(null);\n issue.setPriority(priorityStringToInt(checkPriority));\n }\n\n return retVal;\n }", "public void printValidateInformation() {\n\n if(!validateFirstName()){\n System.out.println(\"The first name must be filled in\");\n }\n if(!validateFirstNameLength()){\n System.out.println(\"The first name must be at least 2 characters long.\");\n }\n if(!validateLastName()){\n System.out.println(\"The last name must be filled in\");\n }\n if(!validateLastNameLength()){\n System.out.println(\"The last name must be at least 2 characters long.\");\n }\n if(!validateZipcode()){\n System.out.println(\"The zipcode must be a 5 digit number.\");\n }\n if (!validateEmployeeID()){\n System.out.println(\"The employee ID must be in the format of AA-1234.\");\n }\n\n if(validateFirstName() && validateFirstNameLength() && validateLastName() && validateLastNameLength()\n && validateZipcode() && validateEmployeeID()){\n System.out.println(\"There were no errors found.\");\n }\n }", "@Override\n\tpublic void validate() {\n\t\tSystem.out.println(user+\"//\"+password);\n\t\tif (user == null || user.trim().equals(\"\")) {\n\t\t\taddFieldError(\"user\", \"The user is required\");\n\t\t}\n\t\tif (password == null || password.trim().equals(\"\")) {\n\t\t\taddFieldError(\"password\", \"password is required\");\n\t\t}\n\t}", "private boolean checkIfHasRequiredFields(BoxItem shareItem){\n return shareItem.getSharedLink() != null && shareItem.getAllowedSharedLinkAccessLevels() != null;\n }", "void checkValid();", "private boolean formComplete(){\r\n return NAME_FIELD.getLength()>0 && ADDRESS_1_FIELD.getLength()>0 &&\r\n CITY_FIELD.getLength()>0 && ZIP_FIELD.getLength()>0 && \r\n COUNTRY_FIELD.getLength()>0 && PHONE_FIELD.getLength()>0; \r\n }" ]
[ "0.75287306", "0.7430543", "0.7430543", "0.7430543", "0.7394445", "0.73590785", "0.7280072", "0.7234574", "0.72328943", "0.72021484", "0.7163772", "0.71448237", "0.7141192", "0.7092876", "0.7075819", "0.7058885", "0.70559984", "0.70541537", "0.70536923", "0.7030236", "0.7028824", "0.69982386", "0.69936967", "0.6945487", "0.6931262", "0.69299215", "0.6905577", "0.6896448", "0.6888563", "0.6881679", "0.68593067", "0.68424296", "0.6833708", "0.68163055", "0.6798157", "0.6779351", "0.67570937", "0.667031", "0.6647974", "0.66358423", "0.6608286", "0.6605936", "0.6597781", "0.6552027", "0.65355825", "0.65244114", "0.6480909", "0.64798933", "0.64619744", "0.6460281", "0.645311", "0.64490265", "0.6440438", "0.64317304", "0.6427133", "0.6422657", "0.64017546", "0.64017546", "0.64017546", "0.640012", "0.63954586", "0.6381656", "0.6374054", "0.6373196", "0.6366658", "0.6365349", "0.6361256", "0.6342586", "0.6333807", "0.63335514", "0.63310766", "0.632473", "0.63214755", "0.6307248", "0.6301159", "0.62886345", "0.6285287", "0.6284661", "0.62787616", "0.62729526", "0.62715185", "0.6265448", "0.62648284", "0.62618536", "0.62610465", "0.62609226", "0.62592363", "0.62584704", "0.6255578", "0.62527883", "0.6252605", "0.6252605", "0.62513506", "0.62484074", "0.62386894", "0.62345177", "0.6225108", "0.62071985", "0.62053126", "0.6195577", "0.6183042" ]
0.0
-1
OrderBookBalancingLogic Interface for the OrderBookBalancingLogic for the transactions to be carried out. This interface contains the method to convert the holdings to the models and calculate the transactions needed to be carried out.
public interface OrderBookBalancingLogic { boolean balancingByPercentage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void processBalances(Iterator<Balance> balances);", "public interface Transactionable {\n\n void book(String fromName, String toName, BigDecimal amount) throws NoNegativeBalanceAllowedException, NoSameAccountTransfersException;\n\n}", "private void calcBills() {\n\t\tint changeDueRemaining = (int) this.changeDue;\n\n\t\tif (changeDueRemaining >= 20) {\n\t\t\tthis.twenty += changeDueRemaining / 20;\n\t\t\tchangeDueRemaining = changeDueRemaining % 20;\n\t\t}\n\t\tif (changeDueRemaining >= 10) {\n\t\t\tthis.ten += changeDueRemaining / 10;\n\t\t\tchangeDueRemaining = changeDueRemaining % 10;\n\t\t}\n\t\tif (changeDueRemaining >= 5) {\n\t\t\tthis.five += changeDueRemaining / 5;\n\t\t\tchangeDueRemaining = changeDueRemaining % 5;\n\t\t}\n\t\tif (changeDueRemaining >= 1) {\n\t\t\tthis.one += changeDueRemaining;\n\t\t}\n\t}", "public interface BookAccountRepository {\n\n\t/**\n\t * Number of records needed to be processed.\n\t * \n\t * @return number of found records\n\t */\n\tlong countUnprocessedOrders();\n\n\t\n\tList<BookAccount> findAll();\n\t\n\t/**\n\t * Finds all records where current time \n\t * is later than return time.\n\t * \n\t * @return list of orders\n\t */\n\tList<BookAccount> findAllDebtors();\n\t\n\tvoid addFine(long bookAccountId, double fine);\n\t\n\tBookAccount findById(long orderId);\n\t\n\tvoid processNewOrder(long orderId, String borrowType, Timestamp returnTime);\n\t\n\tvoid deleteOrder(long idOrder);\n\t\n\tvoid createNewOrder(long idAccount, long idBook);\n\t\n\t/**\n\t * Finds all orders for certain account\n\t * \n\t * @param idAccount \n\t * @return list of orders\n\t */\n\tList<BookAccount> findAllForAccount(long idAccount);\n\n}", "@Override\n\tpublic void processTransaction(Transaction transactionObject) {\n\t\t\n\t\ttrasactionList.addLast(transactionObject);\n\t\t\n\t\tif ( transactionObject.getTransactionType() == 'C'){\n\t\t\t\n\t\t\tbalance -= transactionObject.getTransactionAmount(); \n\t\t\t\n\t\t}\n\t\t\n\t\telse if ( transactionObject.getTransactionType() == 'D'){\n\t\t\t\n\t\t\tbalance += transactionObject.getTransactionAmount(); \n\t\t}\n\t}", "private void listBalances() {\n\t\t\r\n\t}", "@Transactional\n public OrderViewModel processOrder(OrderViewModel ovm){\n\n //Making sure that the Customer exist\n try{\n customerService.getCustomer(ovm.getCustomerId());\n }catch (RuntimeException e){\n throw new CustomerNotFoundException(\"No Customer found in the database for id #\" + ovm.getCustomerId() + \" !\");\n }\n\n //List to store the ProductsToBuy\n List<ProductToBuyViewModel> productsToBuy = ovm.getProductsToBuy();\n\n //List with uniques ProductsToBuy\n productsToBuy = filterProductsToBuyList(productsToBuy);\n<<<<<<< HEAD\n\n //List InvoiceITems\n List<InvoiceItemViewModel> invoiceItemsList = new ArrayList<>();\n\n<<<<<<< HEAD\n int count = 0;\n\n //The deletion is going to be processed if the Customer does not have any related invoices\n try{\n invoiceService.getInvoicesByCustomerId(id);\n count++;\n }catch (RuntimeException e){\n try{\n levelUpService.getLevelUpAccountByCustomerId(id);\n count++;\n=======\n //Order Total\n double total = 0;\n\n //List that stores the Inventory register that have to be updated\n List<InventoryViewModel> inventoriesToUpdate = new ArrayList<>();\n\n //Getting all the Inventory Rows for the productId\n for(int i = 0; i < productsToBuy.size(); i++){\n\n ProductToBuyViewModel product = productsToBuy.get(i);\n\n int productId = product.getProductId();\n\n //Checking that the product exist\n try{\n productService.getProduct(productId);\n }catch (RuntimeException e){\n throw new ProductNotFoundException(\"Cannot process your order, there is no Product associated with id number \"+ productId+ \" in the database!!\");\n }\n\n //Reading the product Price from the ProductService\n BigDecimal unitPrice = BigDecimal.valueOf(Double.valueOf(productService.getProduct(productId).getListPrice()));\n\n //Reading the Product in Stock from the InventoryService\n List<InventoryViewModel> inventoryList = inventoryService.getAllInventoriesByProductId(product.getProductId());\n\n inventoryList = orderInventoryListByQuantity(inventoryList);\n\n int totalInInventory = 0;\n>>>>>>> f00fc299981692406efd94cca8a90917049f7e46\n\n=======\n\n //List InvoiceITems\n List<InvoiceItemViewModel> invoiceItemsList = new ArrayList<>();\n\n //Order Total\n double total = 0;\n\n //List that stores the Inventory register that have to be updated\n List<InventoryViewModel> inventoriesToUpdate = new ArrayList<>();\n\n //Getting all the Inventory Rows for the productId\n for(int i = 0; i < productsToBuy.size(); i++){\n\n ProductToBuyViewModel product = productsToBuy.get(i);\n\n int productId = product.getProductId();\n\n //Checking that the product exist\n try{\n productService.getProduct(productId);\n }catch (RuntimeException e){\n throw new ProductNotFoundException(\"Cannot process your order, there is no Product associated with id number \"+ productId+ \" in the database!!\");\n }\n\n //Reading the product Price from the ProductService\n BigDecimal unitPrice = BigDecimal.valueOf(Double.valueOf(productService.getProduct(productId).getListPrice()));\n\n //Reading the Product in Stock from the InventoryService\n List<InventoryViewModel> inventoryList = inventoryService.getAllInventoriesByProductId(product.getProductId());\n\n inventoryList = orderInventoryListByQuantity(inventoryList);\n\n int totalInInventory = 0;\n\n>>>>>>> f00fc299981692406efd94cca8a90917049f7e46\n for (int i2 = 0; i2 < inventoryList.size(); i2++){\n int quantityInInventory = inventoryList.get(i2).getQuantity();\n totalInInventory = totalInInventory + quantityInInventory;\n }\n<<<<<<< HEAD\n<<<<<<< HEAD\n }\n\n if(count != 0){\n throw new DeleteNotAllowedException(\"Impossible Deletion, there is LevelUp Account associated with this Customer\");\n }\n\n }\n=======\n>>>>>>> f00fc299981692406efd94cca8a90917049f7e46\n\n int quantityToBuy = product.getQuantity();\n\n //Check if there is enough productsToBuy in the inventory.\n if(quantityToBuy > totalInInventory){\n if(totalInInventory == 0){\n throw new OutOfStockException(\"Sorry, we can not process your order the Product with the id \"+product.getProductId() +\" is out of stock!!\");\n }else{\n throw new OutOfStockException(\"Sorry, we can not process your order there is only \"+ totalInInventory +\" units of the Product with the id \" + product.getProductId());\n }\n }\n\n //List<InvoiceItemViewModel> invoiceItemsPerProduct = updateInventory(inventoryList, quantityToBuy);\n\n List<InvoiceItemViewModel> invoiceItemsPerProduct = new ArrayList<>();\n\n<<<<<<< HEAD\n return inventoryService.createInventory(ivm);\n }\n=======\n for(int i3 = 0; i3 < inventoryList.size(); i3++){\n>>>>>>> f00fc299981692406efd94cca8a90917049f7e46\n=======\n\n int quantityToBuy = product.getQuantity();\n\n //Check if there is enough productsToBuy in the inventory.\n if(quantityToBuy > totalInInventory){\n if(totalInInventory == 0){\n throw new OutOfStockException(\"Sorry, we can not process your order the Product with the id \"+product.getProductId() +\" is out of stock!!\");\n }else{\n throw new OutOfStockException(\"Sorry, we can not process your order there is only \"+ totalInInventory +\" units of the Product with the id \" + product.getProductId());\n }\n }\n\n //List<InvoiceItemViewModel> invoiceItemsPerProduct = updateInventory(inventoryList, quantityToBuy);\n\n List<InvoiceItemViewModel> invoiceItemsPerProduct = new ArrayList<>();\n\n for(int i3 = 0; i3 < inventoryList.size(); i3++){\n>>>>>>> f00fc299981692406efd94cca8a90917049f7e46\n\n InventoryViewModel inventory = inventoryList.get(i3);\n int quantityAvailablePerInventory = inventory.getQuantity();\n\n<<<<<<< HEAD\n<<<<<<< HEAD\n try{\n return inventoryService.getAllInventories();\n }catch (RuntimeException e){\n throw new InventoryNotFoundException(\"The database is empty!!! No Inventory found in the Database\");\n }\n }\n=======\n //Create an InvoiceItem\n InvoiceItemViewModel invoiceItem = new InvoiceItemViewModel();\n>>>>>>> f00fc299981692406efd94cca8a90917049f7e46\n\n if (quantityToBuy > quantityAvailablePerInventory) {\n\n<<<<<<< HEAD\n try{\n inventoryService.updateInventory(id,ivm);\n }catch (RuntimeException e){\n throw new InventoryNotFoundException(\"Impossible Update, No Inventory found in the Database for id \" + id + \"!\");\n }\n }\n=======\n quantityToBuy = quantityToBuy - quantityAvailablePerInventory;\n>>>>>>> f00fc299981692406efd94cca8a90917049f7e46\n=======\n //Create an InvoiceItem\n InvoiceItemViewModel invoiceItem = new InvoiceItemViewModel();\n\n if (quantityToBuy > quantityAvailablePerInventory) {\n\n quantityToBuy = quantityToBuy - quantityAvailablePerInventory;\n>>>>>>> f00fc299981692406efd94cca8a90917049f7e46\n\n //If the quantityToBuy is larger than the quantity available, that means that is going to empty that Inventory register\n inventory.setQuantity(0);\n\n<<<<<<< HEAD\n<<<<<<< HEAD\n try{\n return inventoryService.getInventory(id);\n }catch (RuntimeException e){\n throw new InventoryNotFoundException(\"No Inventory found in the Database for id \" + id + \"!\");\n }\n }\n\n //Delete Inventory\n public void deleteInventory(int id){\n inventoryService.deleteInventory(id);\n }\n=======\n //Updating the inventory\n //inventoryService.updateInventory(inventory.getInventoryId(), inventory);\n inventoriesToUpdate.add(inventory);\n\n //Updating the invoiceItem\n invoiceItem.setQuantity(quantityAvailablePerInventory);\n invoiceItem.setInventoryId(inventory.getInventoryId());\n>>>>>>> f00fc299981692406efd94cca8a90917049f7e46\n\n //Adding the invoice to the List\n invoiceItemsPerProduct.add(invoiceItem);\n\n<<<<<<< HEAD\n try{\n return inventoryService.getAllInventoriesByProductId(productId);\n }", "void payBills();", "public boolean transferAmount(BankAccountBindingModel bankAccountBindingModel) {\n BankAccount fromAccount = this.bankAccountRepository\n .findById(bankAccountBindingModel.getId()).orElse(null);\n\n //Get bank account that receives amount\n BankAccount toAccount = this.bankAccountRepository\n .findById(bankAccountBindingModel.getReceiverId()).orElse(null);\n\n //If one of the accounts does not exist, returns false\n if (fromAccount == null || toAccount == null) {\n return false;\n }\n //if the amount from the binding model's account is equal or less than 0, return false\n else if (bankAccountBindingModel.getAmount().compareTo(BigDecimal.ZERO) <= 0) {\n return false;\n }\n\n //Calculate the new balance for the bank account that sends amount and then set the new value\n BigDecimal newBalanceFromAccount = fromAccount.getBalance().subtract(bankAccountBindingModel.getAmount());\n fromAccount.setBalance(newBalanceFromAccount);\n\n //Returns false if the new balance in fromAccount is equal or less than 0\n if (fromAccount.getBalance().compareTo(BigDecimal.ZERO) <= 0) {\n return false;\n }\n\n //Calculate the new balanse for the bank account that receives amount and then set the new value\n BigDecimal newBalanceToAccount = toAccount.getBalance().add(bankAccountBindingModel.getAmount());\n toAccount.setBalance(newBalanceToAccount);\n\n //Create a new transaction and set its data\n Transaction transaction = new Transaction();\n transaction.setType(\"TRANSFER\");\n transaction.setFromAccount(fromAccount);\n transaction.setToAccount(toAccount);\n transaction.setAmount(bankAccountBindingModel.getAmount());\n\n //Save changes and return true\n this.bankAccountRepository.save(fromAccount);\n this.bankAccountRepository.save(toAccount);\n this.transactionRepository.save(transaction);\n return true;\n }", "interface Transaction {\n int BALANCE = 500;\n //Storing Balance\n Object transaction(Object input);\n}", "public interface IBookBorrowService {\n boolean initBorrowSession(HttpServletRequest request, BorrowerDto borrowerDto);\n RfidDtoList addCopiesToSession(HttpServletRequest request, RfidDtoList rfidDtoList);\n List<BorrowedBookCopyDto> checkoutSession(HttpServletRequest request, String userId);\n\n RestServiceModel<BorrowerDto> initBorrowCart(BorrowerDto borrowerDto, boolean isLibrarian);\n RestServiceModel<RfidDtoList> scanCopiesToCart(RfidDtoList rfidDtoList);\n RestServiceModel<RfidDtoList> scanCopyToCart(RfidDto rfidDto);\n RestServiceModel<List<BorrowedBookCopyDto>> checkoutCart(BorrowerDto borrowerDto, boolean isLibrarian);\n RestServiceModel<Set<String>> cancelAddingCopies(BorrowerDto borrowerDto);\n List<BorrowedBookCopyDto> getBorrowingBookByUserId(AccountDto accountDto);\n List<BorrowedBookCopyDto> deleteBorrowingCopy(BorrowedBookCopyDto borrowedBookCopyDto);\n RestServiceModel<BorrowedBookCopyDto> scanCopyToCartByLibrarian(RfidDto rfidDto);\n\n RestServiceModel<BorrowedBookCopyDto> renewBorrowedBookCopy(String rfid);\n\n RestServiceModel<List<BorrowedBookCopyDto>> getHistory(String userId);\n\n void checkBorrowingBookCopyDeadline() throws UnsupportedEncodingException;\n int calculateUsableBalanceFromDb(String userId);\n void sendNotificationForLateDeadline();\n boolean updateUsableBalanceInBorrowCartOf(String userId, int difference);\n\n List<BorrowCart> getListBorrowCart();\n}", "@Override\n\tpublic void businessMoney() {\n\n\t}", "@Override\n\tpublic void process(double amt) {\n\t\tSystem.out.println(\"Amt Deposited:\" +amt);\n\t\tb1.bal = b1.bal+amt;\n\t\tb1.getBal();\n\t\tSystem.out.println(\"Transaction completed\");\n\t}", "public void saveBorrowings() {\n\t}", "public void updateAccount() {\r\n\t\t\r\n\t\t//update all totals\r\n\t\ttotalYouOwe = 0.0;\r\n\t\ttotalOwedToYou = 0.0;\r\n\t\tbalance = 0.0;\r\n\t\tnetBalance = 0.0;\r\n\t\t\r\n\t\t//totalYouOwe and totalOwedToYou\r\n\t\tfor (Event e : events) {\r\n\t\t\tif (e.isParticipantByGID(GID)) {\r\n\t\t\t\tif (e.getParticipantByGID(GID).getBalance() > 0) {\r\n\t\t\t\t\ttotalOwedToYou = totalOwedToYou + e.getParticipantByGID(GID).getBalance(); \r\n\t\t\t\t} else {\r\n\t\t\t\t\ttotalYouOwe = totalYouOwe + (-e.getParticipantByGID(GID).getBalance());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//netBalance/balance - the same in current implementation\r\n\t\tnetBalance = totalOwedToYou - totalYouOwe;\r\n\t\tbalance = totalOwedToYou - totalYouOwe;\r\n\t\t\r\n\t\tupdatePastRelations();\r\n\t}", "public interface BusinessTransactionService {\n\n /**\n * This method returns the business transaction associated with the\n * supplied id.\n *\n * @param tenantId The tenant\n * @param id The id\n * @return The business transaction, or null if not found\n */\n BusinessTransaction get(String tenantId, String id);\n\n /**\n * This method returns a set of business transactions that meet the\n * supplied query criteria.\n *\n * @param tenantId The tenant\n * @param criteria The query criteria\n * @return The list of business transactions that meet the criteria\n */\n List<BusinessTransaction> query(String tenantId, BusinessTransactionCriteria criteria);\n\n /**\n * This method stores the supplied list of business transaction fragments.\n *\n * @param tenantId The tenant id\n * @param businessTransactions The business transactions\n * @throws Exception Failed to store\n */\n void storeBusinessTransactions(String tenantId, List<BusinessTransaction> businessTransactions) throws Exception;\n\n}", "@Override\n public void toMyBookings() {\n }", "@Override\n public void payGroupBuyBooking(GroupBuyBookingBo groupBuyBookingBo) {\n }", "private void balance()\r\n\t{\t\r\n\t\tBinaryTree balancedTree = new BinaryTree();\r\n\t\t\r\n\t\t// Temporary String array to store the node names of the old tree inorder\r\n\t\tString[] temp = new String[getCounter()];\r\n\t\tsetArrayCounter(0);\r\n\t\t\t\t\r\n\t\t// use the inorder method to store the node names in the String array\r\n\t\tinorder(temp ,getRoot());\r\n\t\t\r\n\t\t// Call the balance method recursive helper to insert the Nodes into the new Tree in a \"balanced\" order\r\n\t\tbalance(balancedTree, temp, 0, getCounter());\r\n\t\t\r\n\t\t// Make the root of the old tree point to the new tree\r\n\t\tsetRoot(balancedTree.getRoot());\r\n\t}", "private int doComp() {\n\t\tDbTime totalTime = pubService.getDbTime();\n\t\tString beginDate = \"\";\n\t\tString endDate = pubService.getTotalDateStr();\n\t\tString yesterdayStr = pubService.getYesterdayStr();\n\t\t\n\t\tReBankAccept reBankAccept = new ReBankAccept();\n\t\treBankAccept.setOrgId(1);\n\t\treBankAccept.setCheckType(\"N\");\n\t\tList<ReBankAccept> reBankAcceptList= sqlSessionTemplate.selectList(\"com.tmount.db.order.dao.ReBankAcceptMapper.selectBySelective\",reBankAccept);\n\t\tSystem.out.println(\"...records...\"+reBankAcceptList.size()+\"...\");\n\t\tfor(ReBankAccept aReBankAccept:reBankAcceptList){\n\t\t\t\n\t\t\tString billOrder = aReBankAccept.getBankAccept()+\"\";\n\t\t\tDate payTime = aReBankAccept.getPayTime();\n\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyyMMdd\");\n\t\t\tGregorianCalendar gc = new GregorianCalendar();\n\t\t\tgc.setTime(payTime); \n\t\t\tString payDate=df.format(gc.getTime());\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"payDate = \"+ payDate);\n\t\t\tSystem.out.println(\"billOrder = \"+ billOrder);\n\t\t\t\n\t\t\tStringBuffer strbuf = new StringBuffer();\n\t\t\tiRet = settle.QuerySingleOrder(payDate,billOrder,strbuf);\n\t\t\tif (iRet == 0)\n\t\t\t{\n\t\t\t\t//System.out.println(strbuf);\n\t\t\t\tString[] strArr = strbuf.toString().split(\"\\n\");\n\t\t\t\tif(strArr.length!=4){\n\t\t\t\t\tSystem.out.println(\"...strbuf format error...\");\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\tString billData = strArr[0];//交易日期\n\t\t\t\tString dealData = strArr[1];//处理日期\n\t\t\t\tString orderStatus = strArr[2];//定单状态 0-已结帐,1-已撤销,2-部分结帐,3-退款,4-未结帐,5-无效状态,6-未知状态\n\t\t\t\tString strAmount = strArr[3];//定单金额\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"billData:[\"+billData+\"]\");\n\t\t\t\tSystem.out.println(\"dealData:[\"+dealData+\"]\");\n\t\t\t\tSystem.out.println(\"orderStatus:[\"+orderStatus+\"]\");\n\t\t\t\tSystem.out.println(\"strAmount:[\"+strAmount+\"]\");\n\t\t\t\t\n\t\t\t\tif(\"0\".equals(orderStatus)){\n\t\t\t\t\tif(\"Y\".equals(aReBankAccept.getPayType())){//已经是支付状态\n\t\t\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\tint payCount = sqlSessionTemplate.selectOne(\"com.tmount.db.order.dao.ReBankOrderAcceptMapper.countPayStatusByBankAccept\",aReBankAccept.getBankAccept());\n\t\t\t\t\t\tif(payCount>0){//银行流水对应的商城订单有支付完成的\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else{//银行流水对应的商城订单没有支付完成的,对该未结账订单进行 支付(商城的支付服务逻辑)、结账\n\t\t\t\t\t\t\tOrderService orderservice = new OrderService();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tlong payId = 0;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tpayId = orderService.userBankOrderPay(aReBankAccept.getBankAccept(),1,\"通过对账程序对本地的订单进行缴费\");\n\t\t\t\t\t\t\t\tSystem.out.println(\"@:***payId***[\"+payId+\"]\");\n\t\t\t\t\t\t\t} catch (ShopBusiException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t} catch (ShopParamException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//此处调用封装支付服务的函数,并将函数返回值赋给payId\n\t\t\t\t\t\t\taReBankAccept.setPayType(\"Y\");\n\t\t\t\t\t\t\taReBankAccept.setPayCommitTime(pubService.getDbTime().getDbTime());\n\t\t\t\t\t\t\taReBankAccept.setPayId(payId);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\taReBankAccept.setCheckType(\"Y\");\t\n\t\t\t\t\tsqlSessionTemplate.update(\"com.tmount.db.order.dao.ReBankAcceptMapper.updateByPrimaryKeySelective\", aReBankAccept);\n\t\t\t\t\t\n\t\t\t\t\t//入银行结算表 对账成功写结算表\n\t\t\t\t\tBkBankChangeAccept bkBankChangeAccept = new BkBankChangeAccept();\n\t\t\t\t\tbkBankChangeAccept.setBankAccept(aReBankAccept.getBankAccept());\n\t\t\t\t\tbkBankChangeAccept.setOrgId(aReBankAccept.getOrgId());\n\t\t\t\t\tbkBankChangeAccept.setPrice(aReBankAccept.getPrice());\n\t\t\t\t\tbkBankChangeAccept.setPayTime(aReBankAccept.getPayTime());\n\t\t\t\t\tbkBankChangeAccept.setPayId(aReBankAccept.getPayId());\n\t\t\t\t\tsqlSessionTemplate.insert(\"com.tmount.db.order.dao.BkBankChangeAcceptMapper.insertSelective\",bkBankChangeAccept);\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"...iRet...\"+iRet);\n\t\t\t\tSystem.out.println(settle.GetLastErr(iRet));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"...totalTime.getDbTime().getHours()...\"+totalTime.getDbTime().getHours());\n\t\t\t\tSystem.out.println(\"...Long.parseLong(payDate)...\"+Long.parseLong(payDate));\n\t\t\t\tSystem.out.println(\"...Long.parseLong(pubService.getYesterdayStr())...\"+Long.parseLong(pubService.getYesterdayStr()));\n\t\t\t\t//招商银行订单的有效期是到第二天的1点(这里防止有遗漏,设置到两点之后失效)\n\t\t\t\tif(totalTime.getDbTime().getHours()>1&&Long.parseLong(payDate)<= Long.parseLong(pubService.getYesterdayStr())){\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tmoveHis(aReBankAccept);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "void pay(Order order);", "public static void main(String[] args) {\n\t\tBankAccount account = new BankAccount(112299,\"sudesh teli\",10000);\r\n\t\tBankAccount newaccount = new BankAccount(112300,\"Ashitosh Dessai\",10000);\r\n\t\tSavingBankAccount sb=new SavingBankAccount(111111,\"Rahul Rane\",10000);\r\n\t\t\r\n\t\tSystem.out.println(\"The customer account no. is \"+account.getAccountnumber());\r\n\t\tSystem.out.println(\"The customer name is \"+account.getCustomername());\r\n\t\tSystem.out.println(\"The customer account balance is \"+account.getBalance());\r\n\t\t\r\n\t\taccount.setDeposit(1000,account);\r\n\t\tSystem.out.println(\"The customer \"+ account.getCustomername()+\" has balance \"+account.getBalance()+\" after depositing rs.\"+1000);\r\n\t\t\r\n\t\taccount.setWithdraw(1000,account);\r\n\t\tSystem.out.println(\"The customer \"+ account.getCustomername()+\" has balance \"+account.getBalance());\r\n\t\r\n\t\taccount.Transfer(account,newaccount,2000);\r\n\t\t\r\n\t\tSystem.out.println(\"The senders balance is \"+account.getBalance());\r\n\t\tSystem.out.println(\"The receivers balance is \"+newaccount.getBalance());\r\n\t\t\r\n\t\tBankAccount b= new BankAccount(112666,\"Diptesh teli\",100000);\r\n\r\n\t\tSavingBankAccount s = new SavingBankAccount(111222,\"Rahul Mane\",110000);\r\n\r\n\t\tCurrentAccount a = new CurrentAccount(191919,\"Karan Dhawaskar\",100000);\r\n\t\tb.Deposit(1000); \r\n\r\n\t\tb.Withdraw(2000);\r\n\r\n\t\ts.Deposit(2000);\r\n\r\n\t\ts.Withdraw(2000);\r\n\r\n\t\ts.calculateinterest();\r\n\t\tsb.calculateinterest();\r\n\t\t\r\n\t\ta.overdraft(100000);\r\n\t\ta.overdraft(5000);\r\n\t\ta.Withdraw(5000);\r\n\t\t\r\n\t\t//Here we are actually using polymorphism from bank account to saving or current account\r\n\t\tb=a;\r\n\t\tb=s;\r\n\t\t//type mismatch cannot convert from BankAccount to Current Account \r\n\t\t//a=b;\r\n\t\t//type mismatch cannot convert from BankAccount to Saving Account \r\n\t\t//s=b;\r\n\t\t////type mismatch cannot convert from SavingBankAccount to Current Account \r\n\t\t//a=s;\r\n\t\t////type mismatch cannot convert from Current Account to SavingBankAccount \r\n\t\t//s=a;\r\n\t}", "public List<Boost> PossibleBoosts(Scenario scenario) {\n\t\t// List to keep track of possible boosts.\n\t\tList<Boost> boosts = new ArrayList<Boost>();\n\n\t\tfor (Transmitter t : scenario.transmitters) {\n\t\t\t// This receiversWithoutSignal list will be used to find the closest receiver without a signal, \n\t\t\t// (closest to the current transmitter) and to exit the while loop down the line once we covered \n\t\t\t// all cases up to full coverage.\n\t\t\tList<Receiver> receiversWithoutSignal = signalCalculator.receiversWithoutSignal(scenario.transmitters, scenario.receivers);\n\t\t\t\n\t\t\twhile (receiversWithoutSignal.size() > 0) {\n\t\t\t\t// Find the closest receiver so we can figure out the power needed to provide coverage to it\n\t\t\t\tReceiver closestReceiver = receiversWithoutSignal\n\t\t\t\t\t\t.stream()\n\t\t\t\t\t\t.min((r1, r2) -> \n\t\t\t\t\t\t\tInteger.compare(\n\t\t\t\t\t\t\t\t\tdistanceCalculator.distance(t.location, r1.location), \n\t\t\t\t\t\t\t\t\tdistanceCalculator.distance(t.location, r2.location)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.get();\n\t\t\t\t// Calculate the extra power the transmitter would need to provide coverage\n\t\t\t\tint boostNeeded = distanceCalculator.distance(t.location, closestReceiver.location) - t.power;\n\t\t\t\tTransmitter boostedTransmitter = new Transmitter(t.id, t.location, t.power + boostNeeded);\n\t\t\t\t// Create a new list of transmitters with the new boosted transmitter to determine the new coverage it would give. \n\t\t\t\t// It can be more than +1 in cases when we had more receivers in the same distance\n\t\t\t\tfinal List<Transmitter> transmittersWithBoostedTransmitter = scenario.transmitters\n\t\t\t\t\t\t.stream()\n\t\t\t\t\t\t.map(x -> \n\t\t\t\t\t\t\tx.id == t.id ? \n\t\t\t\t\t\t\tboostedTransmitter : \n\t\t\t\t\t\t\tnew Transmitter(x.id, x.location, x.power)\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\t// Determine coverage with the new list so we can determine the (extra power)/(coverage) ratio later inside\n\t\t\t\t// our boost objects\n\t\t\t\tint coverageAfterBoost = (int)scenario.receivers\n\t\t\t\t\t\t.stream()\n\t\t\t\t\t\t.filter(r -> signalCalculator.hasSignal(transmittersWithBoostedTransmitter, r))\n\t\t\t\t\t\t.count();\n\t\t\t\tboosts.add(new Boost(t, boostNeeded, coverageAfterBoost));\n\t\t\t\t// Create new list of receiversWithoutSignal to see if there are more possible cases for this transmitter.\n\t\t\t\t// If we reached full coverage the size will be 0 and we can skip to the next transmitter\n\t\t\t\treceiversWithoutSignal = signalCalculator.receiversWithoutSignal(transmittersWithBoostedTransmitter, scenario.receivers);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn boosts;\n\t}", "public interface Tradable {\n\n /**\n * Get method returns the product symbol (IBM, GOOG).\n *\n * @return product symbol\n */\n String getProduct();\n\n /**\n * Get method returns the price of the tradable.\n *\n * @return price object\n * @throws Exception\n */\n Price getPrice() throws Exception;\n\n /**\n * Get method returns the original volume (quantity) of the tradable.\n *\n * @return volume of tradable\n */\n int getOriginalVolume();\n\n /**\n * Get method returns the remaining volume of the tradable.\n *\n * @return remaining volume\n */\n int getRemainingVolume();\n\n /**\n * Get method returns the canceled volume of the tradable.\n *\n * @return canceled volume\n */\n int getCancelledVolume();\n\n /**\n * Set method sets the tradable canceled quantity to the value passed in.\n *\n * @param newCancelledVolume\n * @throws Exception\n */\n void setCancelledVolume(int newCancelledVolume) throws Exception;\n\n /**\n * Set method sets the tradable remaining quantity to the value passed in.\n *\n * @param newRemainingVolume\n * @throws Exception\n */\n void setRemainingVolume(int newRemainingVolume) throws Exception;\n\n /**\n * Get method returns the user id associated with the tradable.\n *\n * @return user id\n */\n String getUser();\n\n /**\n * Get method returns the \"side\" (BUY/SELL) of the tradable.\n *\n * @return side of book\n */\n BookSide getSide();\n\n /**\n * Is quote method returns true if the tradable is part of a quote, returns\n * false if not.\n *\n * @return boolean if quote\n */\n boolean isQuote();\n\n /**\n * Get method returns the tradable \"id\" or system id.\n *\n * @return id of tradable\n */\n String getId();\n}", "public void submitOrder(BeverageOrder order);", "public interface AccountTradeFlowService {\n boolean insert(AccountTradeFlow accountTradeFlow);\n\n List<AccountTradeFlow> getAccountTradFlows(Long shopId,Long accountId);\n\n Page<AccountTradeFlow> getAccountTradFlowsByPage(Pageable pageable,Map<String, Object> params);\n\n void batchInsert(List<AccountTradeFlow> accountTradeFlowList);\n\n Integer getTradeType(boolean isCouponUsed, boolean isComboUsed, boolean isCardUsed);\n\n List<AccountTradeFlow> select(Map<String, Object> params);\n\n// AccountTradeFlow generateAccountTradeBase(Long shopId, Long userId);\n\n void delete(Long shopId);\n\n List<AccountTradeFlow> selectByOrderId(Long shopId, Long orderId);\n\n AccountTradeFlow findById(Long shopId, Long flowId);\n\n AccountTradeFlow recordFlowForBillPay(\n Long shopId,\n Long userId,\n Long orderId,\n BigDecimal cardPayAmount,\n AccountInfo accountInfo,\n MemberCard memberCard);\n\n Map<Long, Long> recordFlowForBillConfirm(\n Long shopId,\n Long userId,\n Long orderId,\n DiscountSelectedBo discountSelectedBo);\n\n AccountTradeFlow recordReversFlowForBillPay(\n Long shopId,\n Long userId,\n AccountTradeFlow flow,\n AccountCardFlowDetail detail,\n Long accountId,\n MemberCard memberCard);\n\n AccountTradeFlow recordReverseFlowForBillConfirm(\n Long shopId,\n Long userId,\n AccountTradeFlow flow,\n List<AccountCouponFlowDetail> couponDetailList,\n List<AccountComboFlowDetail> comboDetailList);\n\n void recordFlowForCouponCharge(AccountCouponVo accountCouponVo, AccountTradeFlow accountTradeFlow, Long shopId, Long creator, List<AccountCoupon> result);\n\n AccountTradeFlow recordTradeFlowForCouponCharge(AccountCouponVo accountCouponVo, Long shopId, Long creator, Long accountId);\n\n AccountTradeFlow recordFlowForComboCharge(RechargeComboBo rechargeComboBo, Long shopId, Long userId, AccountCombo combo);\n\n AccountTradeFlow recordFlowForCardCharge(Long userId, Long shopId, MemberCardChargeVo memberCardChargeVo, AccountInfo accountInfo, MemberCard memberCard);\n\n AccountTradeFlow recordRevertFlowForCardCharge(Long shopId, Long userId, AccountTradeFlow flow, AccountCardFlowDetail detail, MemberCard memberCard);\n\n\n /**\n * 记录会员卡办理的流水\n * @param memberGrantVo 参数\n * @param accountInfo 账户\n * @param shopId\n *@param userId @return\n */\n AccountTradeFlow recordFlowForHandleMemberCard(MemberGrantVo memberGrantVo, AccountInfo accountInfo, MemberCard memberCard, Long shopId, Long userId);\n /**\n * 记录会员卡升级流水\n * @return\n */\n AccountTradeFlow recordFlowForUpgradeMemberCard(Long shopId, Long operatorId, MemberUpgradeVo memberUpgradeVo);\n\n AccountTradeFlow recordFlowForCardBack(BackCardVo backCardVo, MemberCard memberCard);\n\n /**\n * 查询充值列表分页接口\n * @param pageable\n * @param shopId\n * @param date1\n * @param date2\n * @param mobile\n * @return\n */\n Page<AccountTradeFlow> getPageFlowForCardRecharge(Pageable pageable, Long shopId, Date date1, Date date2,String mobile);\n\n\n void update(AccountTradeFlow accountTradeFlow);\n\n /**\n * 优惠券发放撤销\n * @param shopId\n * @param userId\n * @param userName\n * @param flow\n * @param couponExpalin\n * @return\n */\n AccountTradeFlow recordReverseFlowForCouponRecharge(Long shopId, Long userId, String userName, AccountTradeFlow flow, String couponExpalin);\n\n /**\n * 计次卡办理撤销\n * @param shopId\n * @param userId\n * @param userName\n * @param flow\n * @param comboExplain\n * @return\n */\n AccountTradeFlow recordReverseFlowForComboRecharge(Long shopId, Long userId, String userName, AccountTradeFlow flow, String comboExplain);\n\n /**\n * 获取会员卡消费流水\n *\n * @param shopId\n * @param accountId\n * @return\n */\n List<AccountTradeFlow> getMemberCardConsumeFlow(Long shopId, Long accountId);\n\n\n List<AccountTradeFlow> getMemberCardGrantFlowByAccountIds(Long shopId,List accountIds);\n\n /**\n * 会员卡办理撤销\n * @param shopId\n * @param userId\n * @param userName\n * @param flow\n * @param cardExpalin\n * @param balance\n * @return\n */\n AccountTradeFlow recordReverseFlowForCardGrant(Long shopId, Long userId, String userName, AccountTradeFlow flow, String cardExpalin, BigDecimal balance);\n\n /**\n * 记入会员卡导入流水\n * @param memberCardList\n * @param shopId\n *@param userId @return\n */\n void recordFlowFowCardInit(List< ? extends MemberCard> memberCardList, Long shopId, Long userId);\n\n AccountTradeFlow recordFlowForCouponImport(AccountCoupon coupon, Long shopId, Long userId);\n\n AccountTradeFlow recordFlowForComboImport(AccountCombo combo, Long shopId, Long userId);\n\n List<AccountTradeFlow> getAccountTradeFlowByIds(Long... flowIds);\n\n /**\n * 批量查流水\n * @param shopID\n * @param flowIds\n * @return\n */\n List<AccountTradeFlow> listByIds(Long shopID, Collection<Long> flowIds);\n\n /**\n * 生成账户交易流水号\n * @param shopId\n * @param userId\n * @return\n */\n AccountTradeFlow generateAccountTradeBase(Long shopId, Long userId);\n\n /**\n * 根据账户ids 和 消费类型\n * @param shopId\n * @param accountIds\n * @param consumeType\n * @return\n */\n List<AccountTradeFlow> findFlowByAccountIdsAndConsumeType(Long shopId,List accountIds,int consumeType);\n\n /**\n * 获取某个时间段批量添加的账户交易流水\n * @param shopId\n * @param accountIds 账户ids\n * @param consumeType\n * @return\n */\n List<AccountTradeFlow> findFlowByAccountIdsMobilesAndConsumeType(Long shopId,List<Long> accountIds,int consumeType,String importFlag);\n\n /**\n * 根据工单获取\n * @param shopId\n * @param orderId\n * @return\n */\n List<AccountTradeFlow> findComboDetail(Long shopId , Long orderId);\n\n /**\n * 获取账户的累计充值金额\n * @param shopId\n * @return\n */\n BigDecimal getTotalChargeAmountByCardId(Long shopId, Long cardId);\n\n /**\n * 查询会员卡累计收款金额\n * @param shopId\n * @param memberCardId\n * @return\n */\n BigDecimal getCardTotalPayAmount(Long shopId, Long memberCardId);\n}", "@Override\r\n\tpublic List<CoinsResponse> billsToCoinstRef(List<BillToExchange> lstBillToExchange) throws ExchangeMachineException {\n\t\t\r\n\t\tDouble dTotal = 0.0;\r\n\t\tList<CoinsResponse> lstCoinsResponse = new ArrayList<CoinsResponse>();\r\n\t\tString erroMessage = null;\r\n\t\t\r\n\t\tfor(BillToExchange billToExchange : lstBillToExchange) {\r\n\t\t\tdTotal = dTotal + (billToExchange.getBillQuantity() * billToExchange.getBillAmount().doubleValue());\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\t\t//Iterate over coins denomination for calculation\r\n\t\t\tcoinExchangeWrapper.setTotal(new BigDecimal(dTotal).setScale(2, RoundingMode.FLOOR));\r\n\t\t\tfor(CoinsDTO coins : coinsDispenser.getCoinsDispenser() ) {\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"Coin id : \" + coins.getId() + \" Denomination : \" + coins.getCoinDenomination() + \" Quantity : \" + coins.getCoinQuantity());\r\n\t\t\t\t\r\n\t\t\t\tif(coins.getCoinQuantity() > 0) {\r\n\t\t\t\t\tcoinExchangeWrapper.setCurrentCoinDenomination(coins.getCoinDenomination());\r\n\t\t\t\t\tcoinExchangeWrapper.setCurrentCoinQuantity(coins.getCoinQuantity());\r\n\t\t\t\t\tcoinExchangeWrapper.setMaxCoinQuantity(coins.getCoinMaxQuantity());\r\n\t\t\t\t\tgetCoinsCalculation(coinExchangeWrapper, lstCoinsResponse);\r\n\t\t\t\t\tcoins.setCoinQuantity(coinExchangeWrapper.getCurrentCoinQuantity());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Total Remain for Calculation : \" + coinExchangeWrapper.getTotal());\r\n\t\t\t\t\r\n\t\t\t\tif(coinExchangeWrapper.getTotal().compareTo(BigDecimal.ZERO) == 0) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//Amount still not completed, needs to raise error\r\n\t\t\tif(coinExchangeWrapper.getTotal().compareTo(BigDecimal.ZERO) != 0) {\r\n\t\t\t\t//Raise exception\r\n\t\t\t\terroMessage = \"Not Enough coins to complete exchange\";\r\n\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t\r\n\t\t}catch(Exception e) {\r\n\t\t\tif(erroMessage != null) {\r\n\t\t\t\tthrow getExchangeMachineException(erroMessage, e);\r\n\t\t\t}else {\r\n\t\t\t\tthrow getExchangeMachineException(e.getMessage(), e);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn lstCoinsResponse;\r\n\t}", "private void createTransaction() {\n\n String inputtedAmount = etAmount.getText().toString().trim().replaceAll(\",\", \"\");\n\n if (inputtedAmount.equals(\"\") || Double.parseDouble(inputtedAmount) == 0) {\n etAmount.setError(getResources().getString(R.string.Input_Error_Amount_Empty));\n return;\n }\n\n if (mAccount == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Account_Empty));\n return;\n }\n\n if(mCategory == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Category_Income_Empty));\n return;\n }\n\n Double amount = Double.parseDouble(etAmount.getText().toString().replaceAll(\",\", \"\"));\n if(amount < 0) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Amount_Invalid));\n return;\n }\n\n int CategoryId = mCategory != null ? mCategory.getId() : 0;\n String Description = tvDescription.getText().toString();\n int accountId = mAccount.getId();\n String strEvent = tvEvent.getText().toString();\n Event event = null;\n\n if (!strEvent.equals(\"\")) {\n event = mDbHelper.getEventByName(strEvent);\n if (event == null) {\n long eventId = mDbHelper.createEvent(new Event(0, strEvent, mCal, null));\n if (eventId != -1) {\n event = mDbHelper.getEvent(eventId);\n }\n }\n }\n\n boolean isDebtValid = true;\n // Less: DebtCollect, More: Borrow\n if(mCategory.getDebtType() == Category.EnumDebt.LESS) { // Income -> Debt Collecting\n List<Debt> debts = mDbHelper.getAllDebtByPeople(tvPeople.getText().toString());\n\n Double lend = 0.0, debtCollect = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) {\n lend += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) {\n debtCollect += debt.getAmount();\n }\n }\n\n if(debtCollect + amount > lend) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_collect_invalid));\n }\n }\n\n if(isDebtValid) {\n Transaction transaction = new Transaction(0,\n TransactionEnum.Income.getValue(),\n amount,\n CategoryId,\n Description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n long newTransactionId = mDbHelper.createTransaction(transaction);\n\n if (newTransactionId != -1) {\n\n if(mCategory.getDebtType() == Category.EnumDebt.LESS || mCategory.getDebtType() == Category.EnumDebt.MORE) {\n Debt newDebt = new Debt();\n newDebt.setCategoryId(mCategory.getId());\n newDebt.setTransactionId((int) newTransactionId);\n newDebt.setAmount(amount);\n newDebt.setPeople(tvPeople.getText().toString());\n\n long debtId = mDbHelper.createDebt(newDebt);\n if(debtId != -1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n\n if(getFragmentManager().getBackStackEntryCount() > 0) {\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n } else {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_transaction_create_fail));\n mDbHelper.deleteTransaction(newTransactionId);\n }\n } else {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n\n if(getFragmentManager().getBackStackEntryCount() > 0) {\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n }\n\n } else {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_transaction_create_fail));\n }\n }\n\n }", "public void balance(){\n\t\tnamesTree.balance();\n\t\taccountNumbersTree.balance();\n\t}", "public interface VendingMachine {\n long getPrice(Item item);\n void insertCoin(Coin coin);\n List<Coin> refund();\n Bucket<Item, List<Coin>> dispenseItemAndChange();\n void reset();\n}", "public int calculateBill() {\n\t\treturn chargeVehicle(); \n\t}", "private double getBalance() { return balance; }", "private void updateTransaction() {\n LogUtils.logEnterFunction(Tag);\n\n String inputtedAmount = etAmount.getText().toString().trim().replaceAll(\",\", \"\");\n if (inputtedAmount.equals(\"\") || Double.parseDouble(inputtedAmount) == 0) {\n etAmount.setError(getResources().getString(R.string.Input_Error_Amount_Empty));\n return;\n }\n\n if (mAccount == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Account_Empty));\n return;\n }\n\n Double amount = Double.parseDouble(inputtedAmount);\n int categoryId = mCategory != null ? mCategory.getId() : 0;\n String description = tvDescription.getText().toString();\n int accountId = mAccount.getId();\n String strEvent = tvEvent.getText().toString();\n Event event = null;\n\n if (!strEvent.equals(\"\")) {\n event = mDbHelper.getEventByName(strEvent);\n if (event == null) {\n long eventId = mDbHelper.createEvent(new Event(0, strEvent, mCal, null));\n if (eventId != -1) {\n event = mDbHelper.getEvent(eventId);\n }\n }\n }\n\n // Less: Repayment, More: Lend\n if(mCategory.getDebtType() == Category.EnumDebt.LESS || mCategory.getDebtType() == Category.EnumDebt.MORE) {\n\n boolean isDebtValid = true;\n if(mCategory.getDebtType() == Category.EnumDebt.LESS) { // Income -> Debt Collecting\n List<Debt> debts = mDbHelper.getAllDebtByPeople(tvPeople.getText().toString());\n\n Double lend = 0.0, debtCollect = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) {\n lend += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) {\n debtCollect += debt.getAmount();\n }\n }\n\n if(debtCollect + amount > lend) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_collect_invalid));\n }\n\n } // End DebtType() == Category.EnumDebt.LESS\n if(isDebtValid) {\n Transaction transaction = new Transaction(mTransaction.getId(),\n TransactionEnum.Income.getValue(),\n amount,\n categoryId,\n description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n int row = mDbHelper.updateTransaction(transaction);\n if (row == 1) { // Update transaction OK\n\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n Debt debt = mDbHelper.getDebtByTransactionId(mTransaction.getId());\n debt.setCategoryId(mCategory.getId());\n debt.setAmount(amount);\n debt.setPeople(tvPeople.getText().toString());\n\n int debtRow = mDbHelper.updateDebt(debt);\n if(debtRow == 1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_successful));\n cleanup();\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n } else {\n // Revert update\n mDbHelper.updateTransaction(mTransaction);\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));\n }\n } else {\n Debt newDebt = new Debt();\n newDebt.setCategoryId(mCategory.getId());\n newDebt.setTransactionId((int) mTransaction.getId());\n newDebt.setAmount(amount);\n newDebt.setPeople(tvPeople.getText().toString());\n\n long debtId = mDbHelper.createDebt(newDebt);\n if(debtId != -1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n } else {\n // Revert update\n mDbHelper.updateTransaction(mTransaction);\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));\n }\n } // End create new Debt\n\n } // End Update transaction OK\n } // End isDebtValid\n\n } else { // CATEGORY NORMAL\n Transaction transaction = new Transaction(mTransaction.getId(),\n TransactionEnum.Income.getValue(),\n amount,\n categoryId,\n description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n int row = mDbHelper.updateTransaction(transaction);\n if (row == 1) { // Update transaction OK\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n mDbHelper.deleteDebt(mDbHelper.getDebtByTransactionId(mTransaction.getId()).getId());\n }\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n }\n\n LogUtils.logLeaveFunction(Tag);\n }", "public final void payBills() {\n if (this.isBankrupt) {\n return;\n }\n Formulas formulas = new Formulas();\n if ((getInitialBudget() - formulas.monthlySpendings(this)) < 0) {\n setBankrupt(true);\n }\n setInitialBudget(getInitialBudget() - formulas.monthlySpendings(this));\n }", "CarPaymentMethod processHotDollars();", "public interface OrderService {\n\n /**\n * Returns route time\n * @param routeDTO route data transfer object\n * @param orderDTO order dto for building route\n * @return\n */\n Long getRouteTime(RouteDTO routeDTO, OrderDTO orderDTO);\n\n /**\n * Returns drivers from database by specified order duration and order dto\n * @param time order duration\n * @param orderDTO order dto for building a route\n * @return linked hash map, key - drivers' id, value - drivers\n */\n LinkedHashMap<Long, Driver> getDriversForOrder(Long time, OrderDTO orderDTO);\n\n /**\n * Returns trucks from database by specified weight of cargoes\n * @param weight cargoes's weight\n * @return linked hash map, key - trucks' id, value - trucks\n */\n LinkedHashMap<Long, Truck> getTrucksForOrder(Long weight);\n\n /**\n * Specifies drop locations for picked up cargoes\n * @param routeDTO route dto with route points\n * @param points temp collection for building sub route\n */\n void setDropLocations(RouteDTO routeDTO, List<RoutePointDTO> points);\n\n /**\n * Returns weight of cargoes\n * @param routePointDTO temp route point dto with cargo or drop location\n * @param points already built route as list of ordered route points\n * @param weight previous weight data before adding new route point\n * @return weight\n */\n Long getWeight(RoutePointDTO routePointDTO, List<RoutePointDTO> points, Long weight);\n\n /**\n * Adds new route point to the route\n * @param routePointDTO new route point dto\n * @param routeDTO route data transfer object\n * @param points route as an ordered list of route points dtos\n */\n void newRoutePoint(RoutePointDTO routePointDTO, RouteDTO routeDTO, List<RoutePointDTO> points);\n\n /**\n * Returns all cities from database\n * @return linked hash map of cities, key - cities' id\n */\n LinkedHashMap<Long, City> getAllCitiesMap();\n\n /**\n * Adds order to a database\n * @param routeDTO route for building path for the order\n * @param orderDTO complex order data\n */\n void saveOrder(RouteDTO routeDTO, OrderDTO orderDTO);\n\n /**\n * Returns orders' from database as dtos\n * @return unsorted list of orders' data transfer objects\n */\n List<OrderDTO> getAllOrdersDTO();\n\n /**\n * Returns route points for order\n * @param order order entity for getting specified route points\n * @return unsorted list of route points\n */\n List<RoutePoint> getRoutePointsForOrder(Order order);\n\n /**\n * Returns cities dto adopted for RESTful architecture\n * @param id order id for retrieving data from database\n * @return unsorted list of cities as dtos adopted for RESTful architecture\n */\n List<CityDTORest> getRoutePointsForOrder(Long id);\n\n /**\n * Returns cargoes from database for the given order dto\n * @param orderDTO order dto\n * @return unsorted list of cargoes\n */\n List<Cargo> getCargoesForOrder(OrderDTO orderDTO);\n\n /**\n * Deletes order from database\n * @param id order's id for deletion\n */\n void deleteOrder(Long id);\n\n /**\n * Updates order\n * @param order order entity for updating\n */\n void updateOrder(Order order);\n\n /**\n * Return orders as dtos adopted for RESTful architecture\n * @return unsorted list of orders dtos adopted for RESTful architecture\n */\n List<OrderDTORest> getAllOrdersDTORest();\n\n /**\n * Delete temp route point dto from the route dto\n * @param routePoint temp route point dto\n * @param routeDTO route dto collected already built route\n */\n void deleteRoutePoint(String routePoint, RouteDTO routeDTO);\n\n /**\n * Processes new route point, recalculates distance and weight\n * @param orderDTO order dto\n * @param routeDTO route dto\n * @param routePointDTO new route point\n * @return temp cargoes weight\n */\n Long tempProcessPoint(OrderDTO orderDTO, RouteDTO routeDTO, RoutePointDTO routePointDTO);\n}", "public void calculatePriceOrder() {\n log.info(\"OrdersBean : calculatePriceOrder!\");\n this.priceOrder = 0;\n for (ContractsEntity c : contractsBean.getContractsEntities()\n ) {\n this.priceOrder += c.getFinalPrice();\n }\n }", "public static void main(String[] args) throws LowBalanceException {\n\tApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);\r\n\tDbUtil dbUtil = context.getBean(\"dbUtil\", DbUtil.class);\r\n\tdbUtil.getConnection();\r\n\tBankAccountController bankAccountController = context.getBean(\"bankAccountController\",BankAccountController.class);\r\n\tSystem.out.println(bankAccountController.getBalance(2201));\r\n\tSystem.out.println(bankAccountController.withdraw(2201,10));\r\n\tSystem.out.println(bankAccountController.deposit(2202, 60));\r\n\tSystem.out.println(bankAccountController.fundTransfer(2201,2202,30));\r\n}", "public void calculateToll(Vehicles v, ArrayList<Places> p){\n for(Places p1: p){\n if(p1.getToll() && p1.getPId()>= start && p1.getPId() <= end){\n tollbooths.add(p1.getPId());\n FeeForEachTollandTrip tt = new FeeForEachTollandTrip(isVip);\n tolltrips.add(tt);\n total += tt.calculateToll(v, p1.getPId());\n }\n }\n \n //printint the output\n /*\n Toll booths : B Amount : 20 Discount : 4 Total : 16\n */\n System.out.print(\"Tollbooths were: \");\n for(int i =0; i<tollbooths.size();i++){\n System.out.print(\" \" + tollbooths.get(i));\n }\n\n\n System.out.println();\n int amount;\n if(isVip)\n amount = (int) (total/0.8);\n else \n amount = (int)total;\n System.out.println(\"Amount is \" + amount);\n double discount = 0;\n if(isVip)\n discount = 0.2 * amount;\n System.out.println(\"Discount is \" + discount);\n System.out.println(\"Total is: \" +total);\n\n //checking if vehicle has already passed the toll before\n //if yes, nothing to be done.\n //if not, add the vehicle to the toll\n for(Places p1: p){\n if(p1.getToll() && tollbooths.contains(p1.getPId())){\n for(Vehicles v1: p1.getVehicles()){\n if(v1.getVehicleId() == v.getVehicleId()){\n break;\n }\n }\n p1.vehicles.add(v);\n }\n }\n }", "public IBankTransfert payment();", "private int calculateBalance() {\n return height(getRight()) - height(getLeft());\n }", "@Override\n\tvoid make_deposit(DataStore ds){\n\tds.setbalancedepositAccount1(ds.getbalanceAccount1_temp()+ds.getdepositAccount1());\n\t}", "public static void main(String[] args) {\n Account anushaAccount = new Account(456123, \"SBIK1014\", 100);\n Account priyaAccount = new Account(789456, \"SBIK1014\", 200);\n Account dhanuAccount = new Account(951753, \"SBIK1014\", 300);\n\n ArrayList<Account> accounts = new ArrayList<>();\n\n accounts.add(anushaAccount);\n accounts.add(priyaAccount);\n accounts.add(dhanuAccount);\n\n TransactionHistory anuTranHist1 = new TransactionHistory(\"8-Jun-2018\", \"savaings\", 25000);\n TransactionHistory anuTranHist2 = new TransactionHistory(\"28-nov-2018\", \"current\", 50000);\n TransactionHistory anuTranHist3 = new TransactionHistory(\"15-Mar-2018\", \"savaings\", 5000);\n\n TransactionHistory priyaTranHist1 = new TransactionHistory(\"8-Jun-2018\", \"savaings\", 25000);\n TransactionHistory priyaTranHist2 = new TransactionHistory(\"28-nov-2018\", \"current\", 50000);\n TransactionHistory priyaTranHist3 = new TransactionHistory(\"15-Mar-2018\", \"savaings\", 5000);\n\n TransactionHistory dhanuTranHist1 = new TransactionHistory(\"8-Jun-2018\", \"savaings\", 25000);\n TransactionHistory dhanuTranHist2 = new TransactionHistory(\"28-nov-2018\", \"current\", 50000);\n TransactionHistory dhanuTranHist3 = new TransactionHistory(\"15-Mar-2018\", \"savaings\", 5000);\n\n\n ArrayList<TransactionHistory> anuTransactionHistory = new ArrayList<>();\n anuTransactionHistory.add(anuTranHist1);\n anuTransactionHistory.add(anuTranHist2);\n anuTransactionHistory.add(anuTranHist3);\n\n ArrayList<TransactionHistory> priyaTransactionHistory = new ArrayList<>();\n anuTransactionHistory.add(priyaTranHist1);\n anuTransactionHistory.add(priyaTranHist2);\n anuTransactionHistory.add(priyaTranHist3);\n\n ArrayList<TransactionHistory> dhanuTransactionHistory = new ArrayList<>();\n anuTransactionHistory.add(dhanuTranHist1);\n anuTransactionHistory.add(dhanuTranHist2);\n anuTransactionHistory.add(dhanuTranHist3);\n\n //useless code\n //you have already instantiated arraylist above and filled it with objects.. you can use that\n // List<Account> accountDetails=Arrays.asList(anushaAccount,priyaAccount,dhanuAccount);\n //List<TransactionHistory> transHistory=Arrays.asList(anuTranHist1,anuTranHist2,anuTranHist3);\n\n Customer anusha = new Customer(\"anusha\", 26, \"28-mar-92\", anushaAccount, anuTransactionHistory);\n Customer priya = new Customer(\"priya\", 22, \"15-oct-96\", priyaAccount, priyaTransactionHistory);\n Customer dhanu = new Customer(\"dhanu\", 32, \"05-jan-82\", dhanuAccount, dhanuTransactionHistory);\n\n anusha.setAccount(anushaAccount);\n priya.setAccount(priyaAccount);\n dhanu.setAccount(dhanuAccount);\n\n List<Customer> customerDetails = Arrays.asList(anusha, priya, dhanu);\n\n\n Bank bank = new Bank(\"SBI\", \"BNGLR\", customerDetails);\n\n// use the utitlity class here and output the customer object with the highest amount\n // check if your logic is running fine and fix this by morning. I have to finish work, and will leave it to you.\n Customer highestAmountCustomer = BankUtility.getCustomerWithHighestDeposit(bank);\n\n System.out.println(\"Customer with highest bank balance is \"+ highestAmountCustomer.getName() + \" with value \"+highestAmountCustomer.getAccount().getAmount());\n }", "public static String oamAdjustBalance(DataBaseUtil dataBaseUtil, String oneAccountId, int adjustAmount, RESTActions actions) {\n\t\tString uid = UUID.randomUUID().toString();\n\t\tString unregisteredEmail = \"\";\n\t\tString deviceId = NISGlobals.NIS_DEVICE_ID;\n\t\tString clientRefId = deviceId + \":\" + BackOfficeUtils.generateRandomString(BackOfficeGlobals.BACKOFFICE_CLIENT_REF_ID_LENGTH - deviceId.length() - 1);\n\t\tList<WSAdjustProductLineItem> productLineItems = null;\n\t\tWSAdjustProductLineItem productLineItem = null;\n\t\tWSAdjustProduct product = null;\n\t\tString notes = BackOfficeGlobals.BACKOFFICE_OAM_ADJUST_NOTES_TEXT;\n\t\tString purseId = \"\";\n\t\tint financiallyResponsibleOperatorId = BackOfficeGlobals.BACKOFFICE_DEFAULT_OAM_OPERATOR_ID;\n\t\tOAMAccount accountObj = null;\n\t\tCSOrderAdjustmentResp respObj = null;\n\t\t\n\t\tLOG.info(\"##### Adjusting Balance to: \" + adjustAmount + \", for OneAccount ID: \" + oneAccountId + \"\\n\");\n\t\t\n\t\t// Get all values needed for the request\n\t\tpurseId = OAMUtils.oamGetPurseId(dataBaseUtil, oneAccountId);\n\t\taccountObj = OAMUtils.oamGetAccount(dataBaseUtil, oneAccountId);\n\t\tproduct = new WSAdjustOneAccountValue(adjustAmount, BackOfficeGlobals.BACKOFFICE_ADJUST_PRODUCT_TYPE_OAM_VALUE, oneAccountId, purseId);\n\t\t\n\t\tproductLineItem = new WSAdjustProductLineItem(product);\n\t\tproductLineItems = Arrays.asList(productLineItem);\n\t\t\n\t\trespObj = CSOrderAdjustmentPOST.sendReq(accountObj.getCustomerId(), unregisteredEmail, clientRefId, productLineItems, uid, notes, financiallyResponsibleOperatorId, actions);\n\t\tLOG.info(\"Returning Response Code: \" + respObj.getResponseCode() + \"\\n\");\n\t\t\n\t\treturn respObj.getResponseCode();\n\t}", "public static void main(String[] args) {\n SavingAccount savings = new SavingAccount(1112, 200);\r\n CheckingAccount checking = new CheckingAccount(1113, 200, -200);\r\n\r\n //account.setAnnualInterestRate(4.5);\r\n savings.setAnnualInterestRate(4.5);\r\n checking.setAnnualInterestRate(4.5);\r\n\r\n\r\n //account.withdraw(250);\r\n //account.deposit(30);\r\n //System.out.println(account.toString());\r\n\r\n\r\n\r\n\r\n checking.withdraw(250);\r\n checking.deposit(30);\r\n System.out.println(checking.toString());\r\n\r\n savings.withdraw(2504);\r\n savings.deposit(30);\r\n System.out.println(savings.toString());\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n }", "public static void main(String[] args) throws InterruptedException {\n Item item1 = new Item(\"Coca-cola\", 200);\n System.out.println(\"Price before discount: \" + item1.getPrice());\n System.out.println(\"Price after discount: \" + item1.calculateDiscount()); //should be same price, 200, there's no doscount for this type\n\n ItemWithDiscount item2 = new ItemWithDiscount(\"Coca-cola Zero\", 2.0);\n System.out.println(\"\\nPrice before discount: \" + item2.getPrice());\n item2.setDiscount(10);\n System.out.println(\"Price after discount: \" + item2.calculateDiscount()); // 2 - 0.2 = 1.8\n\n\n //CHECK BUY PAY DISCOUNT\n BuyMorePayLess item04 = new BuyMorePayLess(\"Milk\", 10);\n BuyMorePayLess item05 = new BuyMorePayLess(\"Milk\", 10);\n BuyMorePayLess item06 = new BuyMorePayLess(\"Milk\", 1);\n item04.setBuyPayOffer(3,2);\n item04.calculateDiscount();\n\n //Check TakeItAll discount\n ItemTakeItAll item07 = new ItemTakeItAll(\"Tuna\",5.00);\n ItemTakeItAll item08 = new ItemTakeItAll(\"Tuna\",5.00);\n\n// item07.setDiscount(10);\n item07.setMinimumNumber(1);\n System.out.println(\"##################\" + item07.calculateDiscount());\n\n // USERS\n LoyalCustomer customer01 = new LoyalCustomer(\"Giorgi Tsipuria\", \"giobaski\", \"123\",\n \"Gonsiori 33\",\"55945239\");\n\n //B A S K E T S\n Basket basket01 = new Basket(\"Tartu 46\", \"Kairi\", customer01);\n basket01.insertItem(item1); //200 -> 200\n basket01.insertItem(item2); // 2.0 -> 1.8\n System.out.println(\"Total payment in basket: \" + basket01.caclulatePayment()); //201.8 + 201.8 * 0.1 = 221.98\n\n\n\n\n\n //1. Create Store\n Store store = new Store(\"Raua 16\");\n\n //2. sign into store\n Cashier currentCashier = store.cashierAuthentication();\n\n //3.\n Menu currentMenu = store.openMenu();\n\n //4. new basket\n currentMenu.openNewBasket(customer01);\n\n\n //5.Cashier starts adding items into new basket\n System.out.println(currentMenu.getBasket());\n currentMenu.getBasket().insertItem(item1);\n currentMenu.getBasket().insertItem(item2);\n\n\n System.out.println(\"######Basket By ID:\");\n currentMenu.printBasketInfoById(2);\n System.out.println(\"########\");\n\n\n //6. Calculate total price for the current basket\n currentMenu.getBasket().caclulatePayment();\n System.out.println(currentMenu.getBasket());\n System.out.println(\"currents items: \");\n System.out.println(currentMenu.getBasket().getItems());\n\n //7. Logout cashier\n Thread.sleep(10000);\n currentMenu.exit();\n\n\n // Additional features\n System.out.println(\"points of the loyal customer: \" + customer01.getPoints());\n\n System.out.println(\"Bonus for cashier: \" + currentCashier.calculateBonus() + \" Euros\");\n\n\n\n\n\n\n }", "protected abstract List<Individual> binaryOperation(List<Individual> acceptedFromLeft,\n List<Individual> acceptedFromRight);", "public abstract boolean isBalanced();", "@Override\r\n\tpublic double showbalanceDao() {\n\t\t\r\n\t\treturn temp.getCustBal();\r\n\t}", "public HashMap<String, ArrayList[]> determineSale() {\n HashMap<String, ArrayList[]> ordersMap = new HashMap<>();\n ordersMap.put(\"ms\", new ArrayList<Integer>[2]);\n ordersMap.put(\"gs\", new ArrayList<Integer>[2]);\n ordersMap.put(\"xlf\", new ArrayList<Integer>[2]);\n ordersMap.put(\"wfc\", new ArrayList<Integer>[2]);\n ordersMap.put(\"bond\", new ArrayList<Integer>[2]);\n\n Integer temp;\n int ind = 0;\n ArrayList<Integer> prices = ordersMap.get(\"bond\")[0];\n ArrayList<Integer> quantities = ordersMap.get(\"bond\")[1];\n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"gs\")[0];\n quantities = ordersMap.get(\"gs\")[1];\n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n } \n ind = 0;\n prices = ordersMap.get(\"ms\")[0];\n quantities = ordersMap.get(\"ms\")[1]; \n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"wfc\")[0];\n quantities = ordersMap.get(\"wfc\")[1]; \n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);;\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"xlf\")[0];\n quantities = ordersMap.get(\"xlf\")[1]; \n for (int i = 0; i < 10; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n return ordersMap;\n }", "public TransactionModel(Date startDate, Date endDate, CategoryRecord category,\n int sortMode) {\n\n //\n // Create the report transaction list\n //\n listData = new ArrayList<>(TransactionRecord.transactions.size());\n\n //\n // Build the report data using transactions within the specified date range\n // and sorted as specified by the sort mode. All categories will be included\n // if no category selection is supplied.\n //\n // Splits will be expanded into a separate transaction for each split\n //\n // Transactions without a category will not be included when sorting by\n // category\n //\n for (TransactionRecord t : TransactionRecord.transactions) {\n String name;\n int index = 0;\n boolean addTransaction = true;\n\n //\n // Process transactions within the specified date range\n // and for the specified category (if any)\n //\n Date date = t.getDate();\n if (date.compareTo(startDate) < 0 || date.compareTo(endDate) > 0)\n continue;\n \n List<TransactionSplit> splits = t.getSplits();\n if (splits == null && category != null && t.getCategory() != category)\n continue;\n\n //\n // Process the transaction\n //\n if (splits != null) {\n AccountRecord account = t.getAccount();\n name = t.getName();\n\n //\n // We will suppress the date field for all but the first expanded\n // transaction unless we are sorting by category, in which\n // case we need to always display the date since the expanded\n // transactions will not remain contiguous after being sorted\n //\n boolean expandedTransaction = false;\n\n //\n // Locate the insertion point for the new transactions\n //\n if (sortMode == SORT_BY_NAME) {\n for (TransactionRecord x : listData) {\n SecurityRecord s = x.getSecurity();\n if (s != null) {\n if (name.compareTo(s.getName()) < 0)\n break;\n } else {\n if (name.compareTo(x.getName()) < 0)\n break;\n }\n\n index++;\n }\n } else if (sortMode == SORT_BY_ACCOUNT) {\n for (TransactionRecord x : listData) {\n if (account.getName().compareTo(x.getAccount().getName()) < 0)\n break;\n\n index++;\n }\n } else if (sortMode == SORT_BY_DATE) {\n index = listData.size();\n }\n\n //\n // Create a temporary transaction for each split. We will skip a\n // split if we are sorting by category and the split doesn't have\n // a category or if the split category doesn't match the report\n // category (if any).\n //\n for (TransactionSplit split : splits) {\n CategoryRecord c = split.getCategory();\n if (sortMode == SORT_BY_CATEGORY && c == null)\n continue;\n \n if (category != null && c != category)\n continue;\n\n TransactionRecord x = new TransactionRecord(date, account);\n x.setName(name);\n x.setMemo(split.getDescription());\n x.setCategory(c);\n x.setTransferAccount(split.getAccount());\n x.setAmount(split.getAmount());\n x.setExpandedTransaction(expandedTransaction);\n\n if (sortMode != SORT_BY_CATEGORY)\n expandedTransaction = true;\n\n if (sortMode == SORT_BY_CATEGORY) {\n index = 0;\n addTransaction = true;\n for (TransactionRecord xx : listData) {\n if (c.getName().compareTo(xx.getCategory().getName()) < 0) {\n listData.add(index, x);\n addTransaction = false;\n break;\n }\n\n index++;\n }\n\n if (addTransaction)\n listData.add(x);\n } else {\n listData.add(index, x);\n index++;\n }\n }\n\n addTransaction = false;\n\n } else if (sortMode == SORT_BY_NAME) {\n\n //\n // Sort based on the transaction name\n //\n SecurityRecord s = t.getSecurity();\n if (s != null)\n name = s.getName();\n else\n name = t.getName();\n\n for (TransactionRecord x : listData) {\n s = x.getSecurity();\n if (s != null) {\n if (name.compareTo(s.getName()) < 0) {\n listData.add(index, t);\n addTransaction = false;\n break;\n }\n } else {\n if (name.compareTo(x.getName()) < 0) {\n listData.add(index, t);\n addTransaction = false;\n break;\n }\n }\n\n index++;\n }\n\n } else if (sortMode == SORT_BY_ACCOUNT) {\n\n //\n // Sort based on the transaction account\n //\n name = t.getAccount().getName();\n for (TransactionRecord x : listData) {\n if (name.compareTo(x.getAccount().getName()) < 0) {\n listData.add(index, t);\n addTransaction = false;\n break;\n }\n\n index++;\n }\n\n } else if (sortMode == SORT_BY_CATEGORY) {\n\n //\n // Sort based on the transaction category\n //\n CategoryRecord c = t.getCategory();\n if (c == null) {\n addTransaction = false;\n } else {\n name = c.getName();\n for (TransactionRecord x : listData) {\n if (name.compareTo(x.getCategory().getName()) < 0) {\n listData.add(index, t);\n addTransaction = false;\n break;\n }\n\n index++;\n }\n }\n }\n\n //\n // Add the transaction at the end of the list if we haven't inserted\n // it yet\n if (addTransaction)\n listData.add(t);\n }\n }", "List<Bill> findBillsForReservation(long reservationId);", "public BankAccount(double checkingBalance, double savingsBalance) {\r\n\t\tthis.checkingBalance = checkingBalance;\r\n\t\tthis.savingsBalance = savingsBalance;\r\n\t\taccountsCount++;\r\n\t\ttotalAmount += checkingBalance;\r\n\t\ttotalAmount += savingsBalance;\r\n\t}", "public interface BankAccountService\n{\n BankAccount openAccount(long accountNumber, Date timeCreated);\n\n BankAccount getAccount(long accountNumber);\n\n void deposit(long accountNumber, double amount, String description, Date time);\n\n List<Transaction> getTransactions(BankAccount bankAccount, Date startTime, Date endTime);\n\n void withdraw(long testAccountNumber, double amount, String description, Date time);\n\n List<Transaction> getAllTransactions(BankAccount bankAccount);\n\n List<Transaction> getLatestTransactions(BankAccount bankAccount, int total);\n}", "@Transactional\n public long makeTransaction(OrderTransfer orderTransfer) throws IOException {\n long securityCode = orderTransfer.getSecurityCode();\n long barCode = orderTransfer.getBarCode();\n\n Client client = clientRepo.findBySecurityCode(securityCode);\n Product product = productRepo.findByBarCode(barCode);\n\n BigDecimal convertedPrice = converter.convert(product.getPrice(), client.getCountry());\n String formattedPrice = format(convertedPrice, client.getCountry());\n\n StoreOrder storeOrder = new StoreOrder(client, product, formattedPrice, new Date());\n orderRepo.save(storeOrder);\n\n return storeOrder.getNumber();\n }", "private void calculateDebitAgingOLDEST(String customerId, List<EMCQuery> periodQueries, List<DebtorsAgingHelper> agingList, Date atDate, EMCUserData userData) {\n //First calculate total outstanding debits\n calculateDebitAgingNONE(periodQueries, agingList, atDate, customerId, userData);\n\n //Bev requested that we remove this check. This will now include all unallocated credits, regardless of\n //whether or not they existed at atDate.\n //query.addAnd(\"createdDate\", atDate, EMCQueryConditions.LESS_THAN_EQ);\n\n BigDecimal unallocatedCredit = getTotalUnallocatedCredit(customerId, atDate, userData);\n\n //Start allocating credits to oldest debits\n for (int i = agingList.size() - 1; i >= 0; i--) {\n BigDecimal currentBinAmount = agingList.get(i).getBinAmount();\n if (currentBinAmount.compareTo(BigDecimal.ZERO) > 0) {\n //Debit amount found\n if (currentBinAmount.compareTo(unallocatedCredit) > 0) {\n //Outstanding debit is more than outstanding credit.\n //Allocate credit in full.\n agingList.get(i).setBinAmount(currentBinAmount.subtract(unallocatedCredit));\n unallocatedCredit = BigDecimal.ZERO;\n } else {\n //Outstanding debit is less than or equal to outstanding credit.\n //Allocate bin debit amount.\n unallocatedCredit = unallocatedCredit.subtract(currentBinAmount);\n agingList.get(i).setBinAmount(BigDecimal.ZERO);\n }\n\n if (unallocatedCredit.compareTo(BigDecimal.ZERO) == 0) {\n //Consumed credit, exit loop.\n break;\n }\n }\n }\n\n //If credit remains, allocate all of it to the current bin.\n if (unallocatedCredit.compareTo(BigDecimal.ZERO) > 0 && !agingList.isEmpty()) {\n agingList.get(0).setBinAmount(agingList.get(0).getBinAmount().subtract(unallocatedCredit));\n }\n\n// This code removed. As the getTotalUnallocatedCredit() method already returned the full credit amount outstanding at the specified\n// date, this caused double the outstanding credit to be allocated.\n// //If atDate less than today, ignore updates made to transactions between atDate and today.\n// //Only check dates, not time\n// Calendar atCalendar = Calendar.getInstance();\n// atCalendar.setTime(atDate);\n// atCalendar.set(Calendar.HOUR, 0);\n// atCalendar.set(Calendar.MINUTE, 0);\n// atCalendar.set(Calendar.SECOND, 0);\n// atCalendar.set(Calendar.MILLISECOND, 0);\n//\n// Calendar nowCalendar = Calendar.getInstance();\n// nowCalendar.setTime(Functions.nowDate());\n// nowCalendar.set(Calendar.HOUR, 0);\n// nowCalendar.set(Calendar.MINUTE, 0);\n// nowCalendar.set(Calendar.SECOND, 0);\n// nowCalendar.set(Calendar.MILLISECOND, 0);\n//\n// if (atCalendar.compareTo(nowCalendar) < 0) {\n// EMCQuery creditQuery = new EMCQuery(enumQueryTypes.SELECT, DebtorsTransactionSettlementHistory.class);\n// creditQuery.addFieldAggregateFunction(\"creditSettled\", \"SUM\");\n// //Only include transactions that existed on atDate. Bev requested that we remove this check.\n// //creditQuery.addAnd(\"transactionCreatedDate\", atDate, EMCQueryConditions.LESS_THAN_EQ);\n//\n// //Customer is optional\n// if (customerId != null) {\n// creditQuery.addAnd(\"customerId\", customerId);\n// }\n//\n// //Only include transactions settled after atDate\n// creditQuery.addAnd(\"createdDate\", atDate, EMCQueryConditions.GREATER_THAN);\n//\n// BigDecimal creditSettled = (BigDecimal) util.executeSingleResultQuery(creditQuery, userData);\n// if (creditSettled == null) {\n// creditSettled = BigDecimal.ZERO;\n// }\n//\n// //Start allocating credits to oldest debits\n// for (int i = agingList.size() - 1; i >= 0; i--) {\n// BigDecimal currentBinAmount = agingList.get(i).getBinAmount();\n// if (currentBinAmount.compareTo(BigDecimal.ZERO) > 0) {\n// //Debit amount found\n// if (currentBinAmount.compareTo(creditSettled) > 0) {\n// //Outstanding debit is more than outstanding credit.\n// //Allocate credit in full.\n// agingList.get(i).setBinAmount(currentBinAmount.subtract(creditSettled));\n// creditSettled = BigDecimal.ZERO;\n// } else {\n// //Outstanding debit is less than or equal to outstanding credit.\n// //Allocate bin debit amount.\n// creditSettled = creditSettled.subtract(currentBinAmount);\n// agingList.get(i).setBinAmount(BigDecimal.ZERO);\n// }\n//\n// if (creditSettled.compareTo(BigDecimal.ZERO) == 0) {\n// //Consumed credit, exit loop.\n// break;\n// }\n// }\n// }\n//\n// //If credit remains, allocate all of it to the current bin.\n// if (creditSettled.compareTo(BigDecimal.ZERO) > 0 && !agingList.isEmpty()) {\n// agingList.get(0).setBinAmount(agingList.get(0).getBinAmount().subtract(creditSettled));\n// }\n// }\n }", "public interface OperationStrategy {\n\t/**\n\t * Defines the way that the transaction modifies the balance amount.\n\t * @param otherValue\n\t * @return\n\t */\n\tpublic BigDecimal doOperation(BigDecimal otherValue);\n}", "@Secured({\"ROLE_ADMIN\"})\r\n\t@RequestMapping(value=\"/transfer\", method=RequestMethod.POST)\r\n\tList<AccountMovement> transferMoneyBetweenAccountsWithObjects(@Valid @RequestBody(required=true) MoneyTransferDTOInput moneyTransferDTOIn) throws Exception{\r\n\t\t\r\n\t\t//Validate accounts\r\n\t\tAccount sourceAccount = accountRepository.findOne(moneyTransferDTOIn.getSourceAccountNo());\r\n\t\tif(sourceAccount == null)\r\n\t\t\tthrow new Exception(\"Source account not found\");\r\n\t\t\r\n\t\tAccount destinationAccount = accountRepository.findOne(moneyTransferDTOIn.getDestinationAccountNo());\r\n\t\tif(destinationAccount == null)\r\n\t\t\tthrow new Exception(\"Destination account not found\");\r\n\t\t\r\n\t\tif(sourceAccount.equals(destinationAccount))\r\n\t\t\tthrow new Exception(\"Source and destination accounts must be different\");\r\n\t\t\r\n\t\tList<AccountMovement> accountMovements = new ArrayList<AccountMovement>();\r\n\t\tAccountMovement sourceMovement = new AccountMovement(sourceAccount, destinationAccount, moneyTransferDTOIn.getAmount().negate());\r\n\t\trepository.save(sourceMovement);\r\n\t\t\r\n\t\tAccountMovement destinationMovement = new AccountMovement(destinationAccount, sourceAccount, moneyTransferDTOIn.getAmount());\r\n\t\trepository.save(destinationMovement);\r\n\t\t\r\n\t\taccountMovements.add(sourceMovement);\r\n\t\taccountMovements.add(destinationMovement);\r\n\t\t\r\n\t\treturn accountMovements;\r\n\t}", "public Money getTotalBalance();", "private void addBookings(List<Bookings> newBookings) {\n IController<Bookings> bookingController = new Controller<>();\n IController<Students> studentController = new Controller<>();\n IController<Staff> staffController = new Controller<>();\n\n // Get all bookings\n List<Bookings> allBookings = bookingController.readAll(Bookings.class);\n\n\n // Check if any booking clashes.\n int count = 0;\n for (Bookings b : newBookings) {\n System.out.println(\"Checking availability of booking #\" + count);\n for (Bookings booking : allBookings) {\n if (b.conflictsWith(booking)) {\n throw new IllegalArgumentException(\"That booking conflicts with another booking.\");\n }\n }\n\n Modules relatedModule = b.getModule();\n\n if (!b.getRooms().isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"That room is unavailable at the time (\" + b.getTime() + \").\");\n }\n for (Students student : relatedModule.getStudents()) {\n student = studentController.readById(Students.class, student.getStudentID(), true);\n if (!student.isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"A student is unavailable at this time. [\" + b.getTime() + \"] (\" + student.getStudentID() + \")\");\n }\n }\n for (Staff staff : relatedModule.getStaff()) {\n staff = staffController.readById(Staff.class, staff.getStaffID(), true);\n\n if (!staff.isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"A staff member is unavailable at this time. [\" + b.getTime() + \"] (\" + staff.getStaffID() + \")\");\n }\n }\n\n count++;\n }\n\n // Create the bookings\n for (Bookings b : newBookings) {\n bookingController.create(b);\n System.out.println(b.confirmation() + \"\\n\");\n }\n }", "public EventMapper onBalance(final Balancer balancer) {\n\t\tValidate.notNull(balancer);\n\t\tBalancer.Directory.addCustomBalancer(balancer);\n\t\treturn this;\n\t}", "@Override\r\npublic void checkBalance() {\n\t\r\n}", "@Override\n\tpublic void buildBVH() {\n\t\tif(this.bvhObjList.size()<=4) {\n\t\t}else {\n\t\t BVH nebt1 = new BVH(this.bvHi);\n\t\t BVH nebt2 = new BVH(this.bvHi);\n\t\tint tmp = this.calculateSplitDimension(this.bvhBox.getMax().sub(this.bvhBox.getMin()));\n\t\tfloat splitpos;\n\t\tif(tmp==0) {\n\t\t\tsplitpos = this.calculateMinMax().b.avg(this.calculateMinMax().a).x();\n\t\t}else if(tmp==1) {\n\t\t\tsplitpos = this.calculateMinMax().b.avg(this.calculateMinMax().a).y();\n\t\t}else {\n\t\t\tsplitpos = this.calculateMinMax().b.avg(this.calculateMinMax().a).z();\n\t\t\t\n\t\t}\n\t\tthis.distributeObjects(nebt1, nebt2, tmp, splitpos);\n\t\tthis.bvHi.add(nebt1);\n\t\tthis.neb1 = bvHi.indexOf(nebt1);\n\t\tthis.bvHi.add(nebt2);\n\t\tthis.neb2 = bvHi.indexOf(nebt2);\n\t\tnebt2.buildBVH();\n\t\tnebt1.buildBVH();\n\n\t\t}\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic void doService() {\n\t\tTbookingrecord booking = new Tbookingrecord();\r\n\t\tbooking.setId(Long.valueOf(31622L));\r\n\t\tbooking.setInstrumentid(2);\r\n\t\tbooking.setUserid(3);\r\n\t\tmappper.insertSelective(booking);\r\n\t\tlogger.debug(booking);\r\n\t\t//int i = 1/0;\r\n\t}", "public void makeRounds() {\n for (int i = 0; i < nrofturns; i++) {\n int check = 0;\n // If all distributors are bankrupt we intrrerupt the simulation\n for (Distributor d : listOfDistributors.getList()) {\n if (d.isBankrupt()) {\n continue;\n }\n check = 1;\n break;\n }\n if (check == 0) {\n break;\n }\n // Auxiliary variable that will point to the best deal for the consumers\n Distributor bestDist;\n // Making the updates at the start of each month\n if (listOfUpdates.getList().get(i).getNewConsumers().size() != 0) {\n for (Consumer x : listOfUpdates.getList().get(i).getNewConsumers()) {\n listOfConsumers.getList().add(x);\n }\n }\n if (listOfUpdates.getList().get(i).getDistributorChanges().size() != 0) {\n for (DistributorChanges x : listOfUpdates.getList().get(\n i).getDistributorChanges()) {\n listOfDistributors.grabDistributorbyID(\n x.getId()).setInitialInfrastructureCost(x.getInfrastructureCost());\n }\n }\n\n // Checking if the producers have changed their costs asta ar trb sa fie update\n\n // Making the variable point to the best deal in the current round\n // while also calculating the contract price for each distributor\n bestDist = listOfDistributors.getBestDistinRound();\n // Removing the link between consumers and distributors when the contract has ended\n for (Distributor d : listOfDistributors.getList()) {\n if (d.isBankrupt()) {\n // Case in which we delete the due payment of the consumer if\n // its current distributor goes bankrupt\n for (Consumer cons : listOfConsumers.getList()) {\n if (cons.getIdofDist() == d.getId()) {\n cons.setDuepayment(0);\n cons.setMonthstoPay(0);\n cons.setIdofDist(-1);\n }\n }\n continue;\n }\n d.getSubscribedconsumers().removeIf(\n c -> c.isBankrupt() || c.getMonthstoPay() <= 0);\n }\n // Giving the non-bankrupt consumers their monthly income and getting the ones\n // without a contract a deal (the best one)\n for (Consumer c : listOfConsumers.getList()) {\n if (c.isBankrupt()) {\n continue;\n }\n c.addtoBudget(c.getMonthlyIncome());\n if (c.getMonthstoPay() <= 0 || c.getIdofDist() == -1) {\n c.setIdofDist(bestDist.getId());\n c.setMonthstoPay(bestDist.getContractLength());\n c.setToPay(bestDist.getContractPrice());\n bestDist.addSubscribedconsumer(c);\n }\n }\n // Making the monthly payments for the non-bankrupt consumers\n for (Consumer entity : listOfConsumers.getList()) {\n if (entity.isBankrupt()) {\n continue;\n }\n // If the consumer has no due payment we check if he can pay the current rate\n if (entity.getDuepayment() == 0) {\n // If he can, do just that\n if (entity.getBudget() >= entity.getToPay()) {\n entity.addtoBudget(-entity.getToPay());\n listOfDistributors.grabDistributorbyID(entity.getIdofDist()).addBudget(\n entity.getToPay());\n entity.reduceMonths();\n // Contract has ended\n if (entity.getMonthstoPay() <= 0) {\n entity.setIdofDist(-1);\n }\n } else {\n // He cannot pay so he gets a due payment\n entity.setDuepayment(entity.getToPay());\n entity.reduceMonths();\n }\n } else {\n // The consumer has a due payment\n if (entity.getMonthstoPay() == 0) {\n // He has one to a distributor with whom he has ended the contract so\n // he must make the due payment and the one to the new distributor\n int aux = (int) Math.round(Math.floor(DUECOEFF * entity.getDuepayment()));\n int idAux = entity.getIdofDist();\n entity.setIdofDist(bestDist.getId());\n entity.setToPay(bestDist.getContractPrice());\n entity.setMonthstoPay(bestDist.getContractLength());\n bestDist.addSubscribedconsumer(entity);\n // He is able to\n if (entity.getBudget() >= (aux + entity.getToPay())) {\n entity.addtoBudget(-(aux + entity.getToPay()));\n listOfDistributors.grabDistributorbyID(idAux).addBudget(\n aux);\n listOfDistributors.grabDistributorbyID(entity.getIdofDist()).addBudget(\n entity.getToPay());\n entity.reduceMonths();\n } else {\n // He has insufficient funds\n entity.setBankrupt(true);\n }\n } else {\n // His due payment is at the same distributor he has to make the monthly\n // payments\n // He can do the payments\n if (entity.getBudget()\n >= (int) Math.round(Math.floor(DUECOEFF * entity.getDuepayment())\n + entity.getToPay())) {\n entity.addtoBudget(-(int) Math.round(Math.floor(DUECOEFF\n * entity.getDuepayment()) + entity.getToPay()));\n listOfDistributors.grabDistributorbyID(entity.getIdofDist()).addBudget(\n (int) Math.round(Math.floor(DUECOEFF * entity.getDuepayment())\n + entity.getToPay()));\n entity.reduceMonths();\n } else {\n // He cannot do the payments\n entity.setBankrupt(true);\n }\n }\n }\n }\n // The non-bankrupt distributors pay their monthly rates\n for (Distributor d : listOfDistributors.getList()) {\n if (d.isBankrupt()) {\n continue;\n }\n d.reduceBudget();\n // Those who cannot, go bankrupt\n if (d.getBudget() < 0) {\n d.setBankrupt(true);\n }\n }\n\n this.roundsAdjustments(i);\n }\n }", "public interface GPB2BCustomerAccountService {\n\n\n\t/**\n\t * This method gets b2b order list\n\t * \n\t * @param currentCustomer\n\t * \t\t\tthe current customer\n\t * @param currentBaseStore\n\t * \t\t\tthe current base store\n\t * @param statuses\n\t * \t\t\tthe status\n\t * @param pageableData\n\t * \t\t\tthe data for pagination\n\t * @param b2bUnit\n\t * \t\t\tthe b2b unit\n\t * @return b2b order list\n\t */\n\tSearchPageData<OrderModel> getB2BOrderList(CustomerModel currentCustomer, BaseStoreModel currentBaseStore,\n\t\t\tOrderStatus[] statuses, PageableData pageableData, List<B2BUnitModel> b2bUnit);\n\n\t/**\n\t * This method gets order for code\n\t * @param currentUser\n\t * \t\t\tthe current user\n\t * @param code\n\t * \t\t\tthe code\n\t * @param baseStoreModel\n\t * \t\t\tthe base store model\n\t * @return the order model for code\n\t */\n\tOrderModel getOrderForCode(CustomerModel currentUser, String code, BaseStoreModel baseStoreModel);\n\n\t/**\n\t * This method gets b2b order list for admin\n\t * @param currentCustomer\n\t * \t\t\tthe current customer\n\t * @param currentBaseStore\n\t * \t\t\tthe current base store\n\t * @param statuses\n\t * \t\t\tthe statuses\n\t * @param pageableData\n\t * \t\t\tthe data for pagination\n\t * @param b2bUnitList\t\n\t * \t\t\tthe b2b unit list\n\t * @return the order list for admin\n\t */\n\tSearchPageData<OrderModel> getB2BOrderListForAdmin(\n\t\t\tCustomerModel currentCustomer, BaseStoreModel currentBaseStore,\n\t\t\tOrderStatus[] statuses, PageableData pageableData,\n\t\t\tList<B2BUnitModel> b2bUnitList);\n\n}", "private void calculateBill() {\n\t\tif (unit <= 100) {\r\n\t\t\tbill = unit * 5;\r\n\t\t}else if(unit<=200){\r\n\t\t\tbill=((unit-100)*7+500);\r\n\t\t}else if(unit<=300){\r\n\t\t\tbill=((unit-200)*10+1200);\r\n\t\t}else if(unit>300){\r\n\t\t\tbill=((unit-300)*15+2200);\r\n\t\t}\r\n\t\tSystem.out.println(\"EB amount is :\"+bill);\r\n\t}", "@Override\r\n\tpublic boolean withdraw(WithdrawBean wb, double amount) throws WalletException {\n\t\tboolean isValid = true;\r\n\t\tfor (CustomerBean cb : customerList) {\r\n\t\t\tif(cb.getPhoneNum()==wb.getPhoneNum()) {\r\n\t\t\t\tif(wb.getBalance()>amount) {\r\n\t\t\t\twb.setBalance(wb.getBalance()-amount);\r\n\t\t\t\twb.setDate(LocalDateTime.now());\r\n\t\t\t\tisValid = true;\r\n\t\t\t\tWalletTransactions transac = new WalletTransactions();\r\n\t\t\t\ttransac.setAmount(amount);\r\n\t\t\t\ttransac.setBalance(wb.getBalance());\r\n\t\t\t\ttransac.setDate(wb.getDate());\r\n\t\t\t\ttransac.setPhoneNum(wb.getPhoneNum());\r\n\t\t\t\ttransac.setType(\"withdraw\");\r\n\t\t\t\ttransacList.add(transac);\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthrow new WalletException();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn isValid;\r\n\t}", "public void payEconomical() {\n if (this.balance >= 2.50) {\n this.balance -= 2.50;\n }\n }", "public double getBalance()\n \n {\n \n return balance;\n \n }", "public void applyAllTransactions(Iterable<WalletTransaction> iwt) {\n clearBalances();\n\n for (WalletTransaction wtx : iwt) {\n // WalletTransaction.Pool pool = wtx.getPool();\n Transaction tx = wtx.getTransaction();\n boolean avail = !tx.isPending();\n TransactionConfidence conf = tx.getConfidence();\n ConfidenceType ct = conf.getConfidenceType();\n\n // Skip dead transactions.\n if (ct != ConfidenceType.DEAD) {\n\n // Traverse the HDAccounts with all outputs.\n List<TransactionOutput> lto = tx.getOutputs();\n for (TransactionOutput to : lto) {\n long value = to.getValue().longValue();\n try {\n byte[] pubkey = null;\n byte[] pubkeyhash = null;\n Script script = to.getScriptPubKey();\n if (script.isSentToRawPubKey())\n pubkey = script.getPubKey();\n else\n pubkeyhash = script.getPubKeyHash();\n for (HDAccount hda : mAccounts)\n hda.applyOutput(pubkey, pubkeyhash, value, avail);\n } catch (ScriptException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n\n // Traverse the HDAccounts with all inputs.\n List<TransactionInput> lti = tx.getInputs();\n for (TransactionInput ti : lti) {\n // Get the connected TransactionOutput to see value.\n TransactionOutput cto = ti.getConnectedOutput();\n if (cto == null) {\n // It appears we land here when processing transactions\n // where we handled the output above.\n //\n // mLogger.warn(\"couldn't find connected output for input\");\n continue;\n }\n long value = cto.getValue().longValue();\n try {\n byte[] pubkey = ti.getScriptSig().getPubKey();\n for (HDAccount hda : mAccounts)\n hda.applyInput(pubkey, value);\n } catch (ScriptException e) {\n // This happens if the input doesn't have a\n // public key (eg P2SH). No worries in this\n // case, it isn't one of ours ...\n }\n }\n }\n }\n\n // This is too noisy\n // // Log balance summary.\n // for (HDAccount acct : mAccounts)\n // acct.logBalance();\n }", "public void addtorepository() {\n ClientModel widget = new ClientModel();\n widget.setAddress(\"123 Fake Street\");\n widget.setCurrentInvoice(10000);\n widget.setName(\"Widget Inc\");\n clientrepository.save(widget);\n //next client\n ClientModel foo = new ClientModel();\n foo.setAddress(\"456 Attorney Drive\");\n foo.setCurrentInvoice(20000);\n foo.setName(\"Foo LLP\");\n clientrepository.save(foo);\n //next client\n ClientModel bar = new ClientModel();\n bar.setAddress(\"111 Bar Street\");\n bar.setCurrentInvoice(30000);\n bar.setName(\"Bar and Food\");\n clientrepository.save(bar);\n //next client\n ClientModel dog = new ClientModel();\n dog.setAddress(\"222 Dog Drive\");\n dog.setCurrentInvoice(40000);\n dog.setName(\"Dog Food and Accessories\");\n clientrepository.save(dog);\n //next client\n ClientModel cat = new ClientModel();\n cat.setAddress(\"333 Cat Court\");\n cat.setCurrentInvoice(50000);\n cat.setName(\"Cat Food\");\n clientrepository.save(cat);\n //next client\n ClientModel hat = new ClientModel();\n hat.setAddress(\"444 Hat Drive\");\n hat.setCurrentInvoice(60000);\n hat.setName(\"The Hat Shop\");\n clientrepository.save(hat);\n //next client\n ClientModel hatB = new ClientModel();\n hatB.setAddress(\"445 Hat Drive\");\n hatB.setCurrentInvoice(60000);\n hatB.setName(\"The Hat Shop B\");\n clientrepository.save(hatB);\n //next client\n ClientModel hatC = new ClientModel();\n hatC.setAddress(\"446 Hat Drive\");\n hatC.setCurrentInvoice(60000);\n hatC.setName(\"The Hat Shop C\");\n clientrepository.save(hatC);\n //next client\n ClientModel hatD = new ClientModel();\n hatD.setAddress(\"446 Hat Drive\");\n hatD.setCurrentInvoice(60000);\n hatD.setName(\"The Hat Shop D\");\n clientrepository.save(hatD);\n //next client\n ClientModel hatE = new ClientModel();\n hatE.setAddress(\"447 Hat Drive\");\n hatE.setCurrentInvoice(60000);\n hatE.setName(\"The Hat Shop E\");\n clientrepository.save(hatE);\n //next client\n ClientModel hatF = new ClientModel();\n hatF.setAddress(\"448 Hat Drive\");\n hatF.setCurrentInvoice(60000);\n hatF.setName(\"The Hat Shop F\");\n clientrepository.save(hatF);\n }", "public BankModel() {\n accounts = new ArrayList<AccountModel>();\n\n // Master account inbedded into system for easy access to test features.\n accounts.add(new AccountModel(\"c\", \"123\", 500));\n }", "protected abstract boolean pvSaveBalance(OperationDataClass pOperationData, Boolean pInsert) throws DBSIOException;", "@Test\n\tpublic void testPayBill() {\n\t\tAccount acc1 = new Account(00000, \"acc1\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\n\t\ttransactions.add(0, new Transaction(10, \"acc1\", 00000, 0, \"\"));\n\t\ttransactions.add(1, new Transaction(03, \"acc1\", 00000, 100.00, \"CC\"));\n\t\ttransactions.add(2, new Transaction(00, \"acc1\", 00000, 0, \"\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Bills Paid\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to pay bills\", testResult);\n\t}", "public interface BetService {\n\n BetDto create(BetDto bet);\n\n List<Bet> getAllActiveBetsExpired();\n\n List<BetDto> generate();\n\n void betResult();\n\n BetDto get(Long id);\n}", "private void transferToBankAccount() {\n ArrayList<Coin> selectedCoins;\n String collection;\n mGoldAmount = 0.0;\n mBankTransferTotal = 0;\n\n if (mRecyclerViewCol.getVisibility() == View.VISIBLE) {\n selectedCoins = getSelectedCoins(Data.COLLECTED);\n collection = Data.COLLECTED;\n // Impose 25 coin limit\n if (selectedCoins.size() > (25 - Data.getCollectedTransferred())) {\n displayToast(getString(R.string.msg_25_coin_limit));\n return;\n }\n } else {\n selectedCoins = getSelectedCoins(Data.RECEIVED);\n collection = Data.RECEIVED;\n }\n\n if (selectedCoins.size() == 0) {\n displayToast(getString(R.string.msg_please_select_coins));\n return;\n }\n\n // Transfer selected coins to bank account\n mBankTransferInProgress = true;\n mProgressBar.setVisibility(View.VISIBLE);\n Log.d(TAG, \"[transferToBankAccount] transfer in progress...\");\n\n for (Coin c : selectedCoins) {\n double value = c.getValue();\n String currency = c.getCurrency();\n double exchange = value * mExchangeRates.get(currency);\n mGoldAmount += exchange;\n Data.removeCoinFromCollection(c, collection, new OnEventListener<String>() {\n\n @Override\n public void onSuccess(String string) {\n mBankTransferTotal++;\n Log.d(TAG, \"[transferToBankAccount] number processed: \" + mBankTransferTotal);\n // If all coins have been processed\n if (mBankTransferTotal == selectedCoins.size()) {\n\n // Get current date\n LocalDateTime now = LocalDateTime.now();\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\n \"yyyy/MM/dd\", Locale.ENGLISH);\n String date = format.format(now);\n\n // Add transaction to firebase\n Transaction transaction = new Transaction(mGoldAmount, date);\n Data.addTransaction(transaction, mBankTransferTotal, collection);\n\n // Clear transfer flag\n mBankTransferInProgress = false;\n\n // Update the view\n if (mRecyclerViewCol.getVisibility() == View.VISIBLE) {\n updateCollectedView();\n } else {\n updateReceivedView();\n }\n mProgressBar.setVisibility(View.INVISIBLE);\n Log.d(TAG, \"[transferToBankAccount] transfer complete\");\n displayToast(getString(R.string.msg_transfer_complete));\n }\n }\n\n @Override\n public void onFailure(Exception e) {\n mBankTransferTotal++;\n // If all coins have been processed\n if (mBankTransferTotal == selectedCoins.size()) {\n\n // Clear transfer flag\n mBankTransferInProgress = false;\n mProgressBar.setVisibility(View.INVISIBLE);\n Log.d(TAG, \"[transferToBankAccount] transfer failed\");\n\n // Update the view\n if (mRecyclerViewCol.getVisibility() == View.VISIBLE) {\n updateCollectedView();\n } else {\n updateReceivedView();\n }\n\n } else {\n displayToast(getString(R.string.msg_failed_to_transfer) + c.getCurrency()\n + \" worth \" + c.getValue());\n }\n Log.d(TAG, \"[sendCoins] failed to transfer coin: \" + c.getId());\n }\n });\n }\n }", "ArrayList<Bet> selectWonBetsOfAccount(Account account) throws DAOException;", "public void companyPayRoll(){\n calcTotalSal();\n updateBalance();\n resetHoursWorked();\n topBudget();\n }", "private void PayBill() {\r\n Cursor crsrBillDetail = dbBillScreen.getBillDetailByCustomer(iCustId, 2, Float.parseFloat(tvBillAmount.getText().toString()));\r\n if (crsrBillDetail.moveToFirst()) {\r\n strPaymentStatus = \"Paid\";\r\n PrintNewBill(businessDate, 1);\r\n } else {\r\n if (strPaymentStatus== null || strPaymentStatus.equals(\"\"))\r\n strPaymentStatus = \"CashOnDelivery\";\r\n\r\n\r\n ArrayList<AddedItemsToOrderTableClass> orderItemList = new ArrayList<>();\r\n int taxType =0;\r\n for (int iRow = 0; iRow < tblOrderItems.getChildCount(); iRow++) {\r\n\r\n int menuCode =0;\r\n String itemName= \"\";\r\n double quantity=0.00;\r\n double rate=0.00;\r\n double igstRate=0.00;\r\n double igstAmt=0.00;\r\n double cgstRate=0.00;\r\n double cgstAmt=0.00;\r\n double sgstRate=0.00;\r\n double sgstAmt=0.00;\r\n double cessRate=0.00;\r\n double cessAmt=0.00;\r\n double subtotal=0.00;\r\n double billamount=0.00;\r\n double discountamount=0.00;\r\n\r\n TableRow RowBillItem = (TableRow) tblOrderItems.getChildAt(iRow);\r\n\r\n\r\n // Item Number\r\n if (RowBillItem.getChildAt(0) != null) {\r\n CheckBox ItemNumber = (CheckBox) RowBillItem.getChildAt(0);\r\n menuCode = (Integer.parseInt(ItemNumber.getText().toString()));\r\n }\r\n\r\n // Item Name\r\n if (RowBillItem.getChildAt(1) != null) {\r\n TextView ItemName = (TextView) RowBillItem.getChildAt(1);\r\n itemName = (ItemName.getText().toString());\r\n }\r\n\r\n\r\n\r\n // Quantity\r\n if (RowBillItem.getChildAt(3) != null) {\r\n EditText Quantity = (EditText) RowBillItem.getChildAt(3);\r\n String qty_str = Quantity.getText().toString();\r\n double qty_d = 0.00;\r\n if(qty_str==null || qty_str.equals(\"\"))\r\n {\r\n Quantity.setText(\"0.00\");\r\n }else\r\n {\r\n qty_d = Double.parseDouble(qty_str);\r\n }\r\n quantity = (Double.parseDouble(String.format(\"%.2f\",qty_d)));\r\n\r\n }\r\n\r\n // Rate\r\n if (RowBillItem.getChildAt(4) != null) {\r\n EditText Rate = (EditText) RowBillItem.getChildAt(4);\r\n String rate_str = Rate.getText().toString();\r\n double rate_d = 0.00;\r\n if((rate_str==null || rate_str.equals(\"\")))\r\n {\r\n Rate.setText(\"0.00\");\r\n }else\r\n {\r\n rate_d = Double.parseDouble(rate_str);\r\n }\r\n rate = (Double.parseDouble(String.format(\"%.2f\",rate_d)));\r\n\r\n }\r\n\r\n\r\n // Service Tax Percent\r\n\r\n if(chk_interstate.isChecked()) // IGST\r\n {\r\n cgstRate =0;\r\n cgstAmt =0;\r\n sgstRate =0;\r\n sgstAmt =0;\r\n if (RowBillItem.getChildAt(23) != null) {\r\n TextView iRate = (TextView) RowBillItem.getChildAt(23);\r\n igstRate = (Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(iRate.getText().toString()))));\r\n }\r\n\r\n // Service Tax Amount\r\n if (RowBillItem.getChildAt(24) != null) {\r\n TextView iAmt = (TextView) RowBillItem.getChildAt(24);\r\n igstAmt = Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(iAmt.getText().toString())));\r\n }\r\n\r\n\r\n }else // CGST+SGST\r\n {\r\n igstRate =0;\r\n igstAmt =0;\r\n if (RowBillItem.getChildAt(15) != null) {\r\n TextView ServiceTaxPercent = (TextView) RowBillItem.getChildAt(15);\r\n sgstRate = (Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(ServiceTaxPercent.getText().toString()))));\r\n }\r\n\r\n // Service Tax Amount\r\n if (RowBillItem.getChildAt(16) != null) {\r\n TextView ServiceTaxAmount = (TextView) RowBillItem.getChildAt(16);\r\n sgstAmt = Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(ServiceTaxAmount.getText().toString())));\r\n }\r\n\r\n // Sales Tax %\r\n if (RowBillItem.getChildAt(6) != null) {\r\n TextView SalesTaxPercent = (TextView) RowBillItem.getChildAt(6);\r\n cgstRate = Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(SalesTaxPercent.getText().toString())));\r\n }\r\n // Sales Tax Amount\r\n if (RowBillItem.getChildAt(7) != null) {\r\n TextView SalesTaxAmount = (TextView) RowBillItem.getChildAt(7);\r\n cgstAmt = Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(SalesTaxAmount.getText().toString())));\r\n }\r\n }\r\n if (RowBillItem.getChildAt(25) != null) {\r\n TextView cessRt = (TextView)RowBillItem.getChildAt(25);\r\n if(!cessRt.getText().toString().equals(\"\"))\r\n cessRate = Double.parseDouble(cessRt.getText().toString());\r\n }\r\n if (RowBillItem.getChildAt(26) != null) {\r\n TextView cessAt = (TextView)RowBillItem.getChildAt(26);\r\n if(!cessAt.getText().toString().equals(\"\"))\r\n cessAmt = Double.parseDouble(cessAt.getText().toString());\r\n }\r\n\r\n\r\n\r\n // Tax Type\r\n if (RowBillItem.getChildAt(13) != null) {\r\n TextView TaxType = (TextView) RowBillItem.getChildAt(13);\r\n taxType = (Integer.parseInt(TaxType.getText().toString()));\r\n }\r\n // subtotal\r\n subtotal = (rate*quantity) + igstAmt+cgstAmt+sgstAmt;\r\n\r\n AddedItemsToOrderTableClass orderItem = new AddedItemsToOrderTableClass( menuCode, itemName, quantity, rate,\r\n igstRate,igstAmt, cgstRate, cgstAmt, sgstRate,sgstAmt, rate*quantity,subtotal, billamount,cessRate,cessAmt,discountamount);\r\n orderItemList.add(orderItem);\r\n }\r\n\r\n Bundle bundle = new Bundle();\r\n bundle.putDouble(Constants.TOTALBILLAMOUNT, Double.parseDouble(tvBillAmount.getText().toString()));\r\n bundle.putDouble(Constants.TAXABLEVALUE, Double.parseDouble(tvSubTotal.getText().toString()));\r\n\r\n// bundle.putDouble(Constants.ROUNDOFFAMOUNT, Double.parseDouble(edtRoundOff.getText().toString()));\r\n if (tvOthercharges.getText().toString().isEmpty()) {\r\n bundle.putDouble(Constants.OTHERCHARGES, Double.parseDouble(tvOthercharges.getText().toString()));\r\n } else {\r\n bundle.putDouble(Constants.OTHERCHARGES, Double.parseDouble(tvOthercharges.getText().toString()));\r\n }\r\n bundle.putDouble(Constants.DISCOUNTAMOUNT, Double.parseDouble(tvDiscountAmount.getText().toString()));\r\n bundle.putInt(Constants.TAXTYPE, isForwardTaxEnabled);\r\n //bundle.putInt(CUSTID, Integer.parseInt(tvCustId.getText().toString()));\r\n bundle.putString(Constants.PHONENO, edtCustPhoneNo.getText().toString());\r\n bundle.putParcelableArrayList(Constants.ORDERLIST, orderItemList);\r\n if (chk_interstate.isChecked()) {\r\n double igstAmount = Double.parseDouble(tvIGSTValue.getText().toString());\r\n double cessAmount = Double.parseDouble(tvcessValue.getText().toString());\r\n bundle.putDouble(Constants.TAXAMOUNT, igstAmount + cessAmount);\r\n } else {\r\n double sgstAmount = Double.parseDouble(tvSGSTValue.getText().toString());\r\n double cgstAmount = Double.parseDouble(tvCGSTValue.getText().toString());\r\n double cessAmount = Double.parseDouble(tvcessValue.getText().toString());\r\n bundle.putDouble(Constants.TAXAMOUNT, cgstAmount + sgstAmount + cessAmount);\r\n }\r\n\r\n fm = getSupportFragmentManager();\r\n proceedToPayBillingFragment = new PayBillFragment();\r\n proceedToPayBillingFragment.initProceedToPayListener(this);\r\n proceedToPayBillingFragment.setArguments(bundle);\r\n proceedToPayBillingFragment.show(fm, \"Proceed To Pay\");\r\n\r\n /* Intent intentTender = new Intent(myContext, PayBillActivity.class);\r\n intentTender.putExtra(\"TotalAmount\", tvBillAmount.getText().toString());\r\n intentTender.putExtra(\"CustId\", edtCustId.getText().toString());\r\n intentTender.putExtra(\"phone\", edtCustPhoneNo.getText().toString());\r\n intentTender.putExtra(\"USER_NAME\", strUserName);\r\n intentTender.putExtra(\"BaseValue\", Float.parseFloat(tvSubTotal.getText().toString()));\r\n intentTender.putExtra(\"ORDER_DELIVERED\", strOrderDelivered);\r\n intentTender.putExtra(\"OtherCharges\", Double.parseDouble(tvOthercharges.getText().toString()));\r\n intentTender.putExtra(\"TaxType\", taxType);// forward/reverse\r\n intentTender.putParcelableArrayListExtra(\"OrderList\", orderItemList);\r\n startActivityForResult(intentTender, 1);*/\r\n //mSaveBillData(2, true);\r\n //PrintNewBill();\r\n }\r\n\r\n /*int iResult = dbBillScreen.deleteKOTItems(iCustId, String.valueOf(jBillingMode));\r\n Log.d(\"Delivery:\", \"Items deleted from pending KOT:\" + iResult);*/\r\n\r\n //ClearAll();\r\n //Close(null);\r\n }", "@Test\n public void customerCanPerformTransferBetweenAccounts() {\n String ownerId = \"ownerId\";\n Account accountFrom = AccountFactory.createAccount(AccountFactory.AccountType.SAVINGS, ownerId);\n Account accountTo = AccountFactory.createAccount(AccountFactory.AccountType.SAVINGS, ownerId);\n\n // Put some money in the from account\n Transaction transaction = new Transaction.Builder().setDescription(\"Test\").setAmount(DollarAmount.fromInt(100)).setType(Transaction.Type.DEPOSIT).build();\n accountFrom.applyTransaction(transaction);\n assertEquals(accountFrom.getAccountBalance(), DollarAmount.fromInt(100));\n\n // Attempt transfer\n Account.transfer(accountFrom, accountTo, DollarAmount.fromInt(30));\n\n // Assert transfer was successful\n assertEquals(DollarAmount.fromInt(70), accountFrom.getAccountBalance());\n assertEquals(DollarAmount.fromInt(30), accountTo.getAccountBalance());\n }", "public StoneBalanceExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public void betBJ(boolean guest) {\n\t\tdouble bet = ((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)).getBet();\n\t\tif (!blackjack.isOkBet() && blackjack.canBet(bet)) {\n\n\t\t\tblackjack.setOkBet(true);\n\t\t\tif (guest) {\n\t\t\t\tblackjack.addBet(bet);\n\t\t\t\tstartBJ();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tBet aposta = new Bet(bet, \"blackJack\");\n\t\t\ttry {\n\t\t\t\tmanager.getServer().enviarTrama(new Betting(aposta));\n\t\t\t\tSegment s = manager.getServer().obtenirTrama();\n\t\t\t\tif (!((Check) s).isOk())\n\t\t\t\t\tnew Dialeg().setWarningText(\"Bet refused\");\n\t\t\t\telse {\n\t\t\t\t\tnew Dialeg().setWarningText(\"Bet accepted\");\n\t\t\t\t\tblackjack.addBet(bet);\n\t\t\t\t\t((BlackjackView)manager.getPanel(Constants.BJ_VIEW_NAME)).updateCash(bet);\n\t\t\t\t\tstartBJ();\n\t\t\t\t}\n\t\t\t} catch (IOException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME),\n\t\t\t\t\t\"There has been an error with the bet:\\n The minimum bet is 10, or\\n You have not enough funds\",\n\t\t\t\t\t\"ERROR\", JOptionPane.PLAIN_MESSAGE);\n\t\t}\n\t}", "private void calculateDebitAgingNONE(List<EMCQuery> periodQueries, List<DebtorsAgingHelper> agingList, Date atDate, String customerId, EMCUserData userData) {\n for (int i = 0; i < periodQueries.size(); i++) {\n //Only sum over debits\n Object[] debitTotals = (Object[]) util.executeSingleResultQuery(periodQueries.get(i), userData);\n\n if (debitTotals != null) {\n BigDecimal debitTotal = (BigDecimal) debitTotals[0] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[0];\n BigDecimal debitSettledTotal = (BigDecimal) debitTotals[1] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[1];\n\n BigDecimal binAmount = debitTotal.subtract(debitSettledTotal);\n agingList.get(i).setBinAmount(binAmount);\n } else {\n agingList.get(i).setBinAmount(BigDecimal.ZERO);\n }\n }\n\n //If atDate less than today, ignore updates made to transactions between atDate and today.\n //Only check dates, not time\n Calendar atCalendar = Calendar.getInstance();\n atCalendar.setTime(atDate);\n atCalendar.set(Calendar.HOUR, 0);\n atCalendar.set(Calendar.HOUR_OF_DAY, 0);\n atCalendar.set(Calendar.MINUTE, 0);\n atCalendar.set(Calendar.SECOND, 0);\n atCalendar.set(Calendar.MILLISECOND, 0);\n\n Calendar nowCalendar = Calendar.getInstance();\n nowCalendar.setTime(Functions.nowDate());\n nowCalendar.set(Calendar.HOUR, 0);\n nowCalendar.set(Calendar.HOUR_OF_DAY, 0);\n nowCalendar.set(Calendar.MINUTE, 0);\n nowCalendar.set(Calendar.SECOND, 0);\n nowCalendar.set(Calendar.MILLISECOND, 0);\n\n if (atCalendar.compareTo(nowCalendar) < 0) {\n //For each bin, revert transaction history\n for (DebtorsAgingHelper binHelper : agingList) {\n EMCQuery settledQuery = new EMCQuery(enumQueryTypes.SELECT, DebtorsTransactionSettlementHistory.class);\n settledQuery.addFieldAggregateFunction(\"debitSettled\", \"SUM\");\n //Check that transaction existed at atDate. Bev requested that we remove this check.\n //settledQuery.addAnd(\"transactionCreatedDate\", atDate, EMCQueryConditions.LESS_THAN_EQ);\n settledQuery.openConditionBracket(EMCQueryBracketConditions.NONE);\n settledQuery.addAnd(\"debitTransactionDate\", binHelper.getBinEndDate(), EMCQueryConditions.LESS_THAN_EQ);\n //settledQuery.addAnd(\"creditTransactionDate\", binHelper.getBinEndDate(), EMCQueryConditions.LESS_THAN_EQ);\n settledQuery.closeConditionBracket();\n\n //Customer is optional\n if (customerId != null) {\n settledQuery.addAnd(\"customerId\", customerId);\n }\n\n //Only include transactions settled after atDate.\n settledQuery.addAnd(\"createdDate\", atDate, EMCQueryConditions.GREATER_THAN);\n\n if (binHelper.getBinStartDate() != null) {\n settledQuery.openConditionBracket(EMCQueryBracketConditions.AND);\n settledQuery.addAnd(\"debitTransactionDate\", binHelper.getBinStartDate(), EMCQueryConditions.GREATER_THAN_EQ);\n //settledQuery.addAnd(\"creditTransactionDate\", binHelper.getBinStartDate(), EMCQueryConditions.GREATER_THAN_EQ);\n settledQuery.closeConditionBracket();\n }\n\n BigDecimal totalSettled = (BigDecimal) util.executeSingleResultQuery(settledQuery, userData);\n if (totalSettled == null) {\n totalSettled = BigDecimal.ZERO;\n }\n\n //Add settled amount & discount back to bin\n //binHelper.setBinAmount(binHelper.getBinAmount().add(totalSettled).add(totalDiscount));\n binHelper.setBinAmount(binHelper.getBinAmount().add(totalSettled));\n }\n }\n }", "private void handleOrder(Order order){\n\t\t\n\t\torder.simplify(ordersPerRoll);\n\t\torder.setDay(day);\n\t\tsalesPerRoll();\n\t\tdouble orderSaleCost = order.getSaleCost();\n\t\tdailyMoneyMade = dailyMoneyMade + orderSaleCost;\n\t\ttotalMoneyMade = totalMoneyMade + orderSaleCost;\n\t\tif(order.orderWasImpacted()){\n\t\t\tdailyDisruptions = dailyDisruptions + 1;\n\t\t}\n\t\torderLog.add(order);\n\n\t\tswitch(order.getCustomerType()){\n\t\t\tcase \"Casual\":\n\t\t\t\tcasualDailyMade = casualDailyMade + orderSaleCost;\n\t\t\t\tif(order.orderWasImpacted()){\n\t\t\t\t\tcasualOuttages = cateringOuttages + 1;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase \"Catering\":\n\t\t\t\tcateringDailyMade = cateringDailyMade + orderSaleCost;\n\t\t\t\tif(order.orderWasImpacted()){\n\t\t\t\t\tcateringOuttages = cateringOuttages + 1;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase \"Business\":\n\t\t\t\tbusinessDailyMade = businessDailyMade + orderSaleCost;\n\t\t\t\tif(order.orderWasImpacted()){\n\t\t\t\t\tbusinessOuttages = businessOuttages + 1;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "public HoldingBasedBayesNet(TransitParameters transitParameter)\n\t{\n\t\t/*\n\t\tbayes = new BayesNetwork();\n\t\t\n\t\tdwellTimeNode = new ContinuousNode(\"DwellTime\");\n\t\trunningTimeNode = new ContinuousNode(\"RunningTime\");\n\t\theadwayAdherenceNode = new ContinuousNode(\"HeadwayAdherence\");\n\t\t\n\t\tutilityNode = new UtilityNode(\"Utility\");\n\t\t\n\t\tholdingAction=new DecisionAction(\"holdingaction\");\n\t\tnoAction=new DecisionAction(\"noaction\");\n\t\tactionNode = new DecisionNode(\"Action\",noAction,holdingAction);\n\t\t\n\t\t\n\t\tdwellTimeNode.setType(NodeType.CONTINUOUS_NODE);\n\t\trunningTimeNode.setType(NodeType.CONTINUOUS_NODE);\n\t\theadwayAdherenceNode.setType(NodeType.CONTINUOUS_NODE);\n\t\tactionNode.setType(NodeType.DECISION_NODE);\n\t\tutilityNode.setType(NodeType.UTILITY_NODE);\n\t\t\n\t\t\n\t\tbayes.setRootNodes(dwellTimeNode, runningTimeNode);\n\t\theadwayAdherenceNode.setParents(dwellTimeNode,runningTimeNode);\n\t\theadwayAdherenceNode.setChildren(actionNode);\n\t\tutilityNode.setParents(headwayAdherenceNode,actionNode);\n\t\t\n\t\t\t\n\t\texpectedHeadway = TransitParameters.SCHEDULE_HEADWAY_IN_MINUTE;\n\t\texpectedDeviation = TransitParameters.STANDARD_HEADWAY_DEVIATION_IN_MINUTE;\n\t\t*/\n\t}", "private Node<T> balance(Node<T> current) {\n hAndBF(current);\n int balance = current.getBalanceFactor();\n if (balance > 1) {\n hAndBF(current.getLeft());\n if (current.getLeft().getBalanceFactor() < 0) {\n return doubleWithLeft(current);\n } else {\n return rotateWithLeft(current);\n }\n }\n if (balance < -1) {\n hAndBF(current.getRight());\n if (current.getRight().getBalanceFactor() <= 0) {\n return rotateWithRight(current);\n } else {\n return doubleWithRight(current);\n }\n }\n return current;\n }", "public void pay(InternalAccountOwner from, InternalAccountOwner to, BigDecimal amount) {\n PerformPaymentData data;\n try {\n data = transactionService.getPaymentData(from, to, null);\n } catch (EntityNotFoundException e) {\n System.out.println(\"Some of the users were not found. Transaction aborted.\");\n return;\n }\n\n // try to figure out the type of payment (for some reason)\n List<TransferTypeWithCurrencyVO> types = data.getPaymentTypes();\n TransferTypeWithCurrencyVO paymentType = CollectionHelper.first(types);\n if (paymentType == null) {\n System.out.println(\"There is no possible payment type.\");\n }\n\n // set up payment to be made\n PerformPaymentDTO payment = new PerformPaymentDTO();\n payment.setType(paymentType);\n payment.setFrom(from);\n payment.setTo(to);\n payment.setAmount(amount);\n\n try {\n PaymentVO result = paymentService.perform(payment);\n TransactionAuthorizationStatus authStatus = result.getAuthorizationStatus();\n if (authStatus == TransactionAuthorizationStatus.PENDING_AUTHORIZATION) {\n System.out.println(\"The payment is pending authorization.\");\n } else {\n System.out.println(\"The payment has been processed.\");\n }\n } catch (InsufficientBalanceException e) {\n System.out.println(\"Insufficient balance\");\n } catch (MaxPaymentsPerDayExceededException e) {\n System.out.println(\"Maximum daily amount of transfers \"\n + e.getMaxPayments() + \" has been reached\");\n } catch (MaxPaymentsPerWeekExceededException e) {\n System.out.println(\"Maximum weekly amount of transfers \"\n + e.getMaxPayments() + \" has been reached\");\n } catch (MaxPaymentsPerMonthExceededException e) {\n System.out.println(\"Maximum monthly amount of transfers \"\n + e.getMaxPayments() + \" has been reached\");\n } catch (MinTimeBetweenPaymentsException e) {\n System.out.println(\"A minimum period of time should be awaited to make \"\n + \"a payment of this type\");\n } catch (MaxAmountPerDayExceededException e) {\n System.out.println(\"Maximum daily amount of \"\n + e.getMaxAmount() + \" has been reached\");\n } catch (MaxAmountPerWeekExceededException e) {\n System.out.println(\"Maximum weekly amount of \"\n + e.getMaxAmount() + \" has been reached\");\n } catch (MaxAmountPerMonthExceededException e) {\n System.out.println(\"Maximum monthly amount of \"\n + e.getMaxAmount() + \" has been reached\");\n } catch (Exception e) {\n System.out.println(\"The payment couldn't be performed\");\n }\n\n }", "public String myAfterBalanceAmount() {\r\n\t\tint count=0;\r\n\t\tList<SavingAccount> acc = null;\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Before Repeat\");\r\n\t\t\tacc = getSavingAccountList();\r\n\r\n\t\t\tfor (SavingAccount savingAcc : acc) {\r\n\t\t\t\tif (!(\"0\".equals(savingAcc.getState()))) {\r\n\t\t\t\t\tif (savingAcc.getState().equals(\"active\")) {\r\n\t\t\t\t\t\tint maxRepeat = Integer.parseInt(savingAcc\r\n\t\t\t\t\t\t\t\t.getRepeatable());\r\n\r\n\t\t\t\t\t\tDate date = new Date();\r\n\t\t\t\t\t\tDate systemDate = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAccSer\r\n\t\t\t\t\t\t\t\t\t\t.convertDateToStringDDmmYYYY(date));\r\n\r\n\t\t\t\t\t\tDate dateEnd = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t.getDateEnd());\r\n\r\n\t\t\t\t\t\tif (systemDate.getTime() == dateEnd.getTime()) {\r\n\t\t\t\t\t\t\tDate newEndDate = DateUtils.addMonths(systemDate,\r\n\t\t\t\t\t\t\t\t\tsavingAcc.getInterestRateId().getMonth());\r\n\r\n\t\t\t\t\t\t\tfloat balance = savingAcc.getBalanceAmount();\r\n\t\t\t\t\t\t\tfloat interest = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getInterestRate();\r\n\r\n\t\t\t\t\t\t\tint month = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getMonth();\r\n\t\t\t\t\t\t\tint days = Days\r\n\t\t\t\t\t\t\t\t\t.daysBetween(\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateStart())),\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateEnd())))\r\n\t\t\t\t\t\t\t\t\t.getDays();\r\n\t\t\t\t\t\t\tfloat amountAll = balance\r\n\t\t\t\t\t\t\t\t\t+ (balance * ((interest / (100)) / 360) * days);\r\n\t\t\t\t\t\t\tsavingAcc.setDateStart(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(systemDate));\r\n\t\t\t\t\t\t\tsavingAcc.setDateEnd(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(newEndDate));\r\n\t\t\t\t\t\t\tsavingAcc.setBalanceAmount(amountAll);\r\n\t\t\t\t\t\t\tsavingAcc.setRepeatable(\"\" + (maxRepeat + 1));\r\n\t\t\t\t\t\t\tupdateSavingAccount(savingAcc);\r\n\t\t\t\t\t\t\tcount+=1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Successfully!! \"+ count +\" Saving Account has been updated. Minh Map!!!\");\r\n\t\t\t\r\n\t\t\treturn \"success\";\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Exception\");\r\n\r\n\t\t}\r\n\t\treturn \"Fail\";\r\n\t}", "public BikeStand balance(BikeStand bikeStand) {\n //keep adding bikes to the stand until the stand is half full\n while(bikeStand.getBikes().size() < (0.5 * bikeStand.getStandCapacity())) {\n if(!bikesLoaded.isEmpty())\n bikeStand.getBikes().add(bikesLoaded.remove(0));\n }\n\n //keep removing bikes from the stand until the bike stand is half empty\n while(bikeStand.getBikes().size() > (0.5 * bikeStand.getStandCapacity())) {\n if(bikesLoaded.size() < TRUCK_CAPACITY) {\n bikesLoaded.add(bikeStand.getBikes().remove(0));\n }\n\n }\n try {\n wait(25);\n }catch (InterruptedException e) {\n e.printStackTrace();\n }\n return bikeStand;\n }", "public void wire(String accountNumber,int bankNumber, String toAccountNumber, int amount) {\n\t\t\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll, lp, ls, mm, nn;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\tint lastBalance;\n\t\tint tolastBalance;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql = \"select balance,userId from \"+this.name+\" where accountNumber=?\";\n\t\tps= (PreparedStatement) conn.prepareStatement(sql);\n\t\tps.setString(1, accountNumber.toString());\n\t\tResultSet rs = ps.executeQuery();\n\t\tint nowBalance = 0;\n\t\tString id = \"\";\n\t\twhile(rs.next()) { \n\t\t\tnowBalance=rs.getInt(\"balance\");\n\t\t\tid = rs.getString(\"userId\");\n\t\t}\n\t\tif (nowBalance<amount) {\n\t\t\tSystem.out.println(\"No Balance\");\n\t\t\treturn;\n\t\t}\n\t\tlastBalance = nowBalance - amount;\n\t\t//System.out.println(lastBalance);\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tls = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tls.setInt(1, lastBalance);\n\t\tls.setString(2, accountNumber.toString());\n\t\tls.executeUpdate();\n\t\t\n\t\t\n\t\t\n\t\t//to account\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql3 = \"select bankName from bank where bankNumber=?\";\n\t\tll= (PreparedStatement) conn.prepareStatement(sql3);\n\t\tll.setString(1, String.valueOf(bankNumber).toString());\n\t\tResultSet rs3 = ll.executeQuery();\n\t\tString toname = \"\";\n\t\twhile(rs3.next()) { \n\t\t\ttoname=rs3.getString(\"bankName\");\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tString sql4 = \"select balance,userId from \"+toname+\" where accountNumber=?\";\n\t\tpp= (PreparedStatement) conn.prepareStatement(sql4);\n\t\tpp.setString(1, accountNumber.toString());\n\t\tResultSet rs4 = pp.executeQuery();\n\t\tint tonowBalance = 0;\n\t\tString toid = \"\";\n\t\twhile(rs4.next()) { \n\t\t\ttonowBalance=rs4.getInt(\"balance\");\n\t\t\ttoid = rs4.getString(\"userId\");\n\t\t}\n\t\t\n\t\ttolastBalance = tonowBalance + amount;\n\t\t//System.out.println(lastBalance);\n\t\tString sql5 = \"UPDATE \"+toname+\" SET balance=? where accountNumber=?\";\n\t\tlp = (PreparedStatement) conn.prepareStatement(sql5);\n\t\tlp.setInt(1, tolastBalance);\n\t\tlp.setString(2, toAccountNumber.toString());\n\t\tlp.executeUpdate();\n\t\t\n\t\t\n\t\t//log\n\t\tString logs = \"wired : \"+ amount+\" to \"+toAccountNumber+\"/ balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tmm = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tmm.setString(1, logs);\n\t\tmm.executeUpdate();\n\t\tSystem.out.println(\"You wired $\"+String.valueOf(amount));\n\t\t\n\t\tString logs1 = \"get : \"+ amount+\" from \" +accountNumber+ \"/ balance: \"+String.valueOf(tolastBalance);\n\t\tString sql12 = \"insert into \"+toid+\" (log) values (?)\";\n\t\tnn = (PreparedStatement) conn.prepareStatement(sql12);\n\t\tnn.setString(1, logs1);\n\t\tnn.executeUpdate();\n\t\tSystem.out.println(\"You got $\"+String.valueOf(amount));\n\t\t\n\t\t\n\t\t}catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t}", "public Bookings saveBookingDetails(Bookings bookings) ;", "public interface TransactionBo {\n\n String save();\n}", "public void transferFromSavingsToBrokerage(long socialSecurityNumber, String userName, String password, double amount) throws AuthenticationException,UnauthorizedActionException, InsufficientAssetsException {\r\n if(security(socialSecurityNumber, userName, password)){\r\n throw new AuthenticationException();\r\n }\r\n if(getPatron(socialSecurityNumber).getSavingsAccount() == null || getPatron(socialSecurityNumber).getBrokerageAccount() == null){\r\n throw new UnauthorizedActionException();\r\n }\r\n try{\r\n Transaction withdraw = new Transaction(getPatron(socialSecurityNumber), Transaction.TRANSACTION_TYPE.WITHDRAW, getPatron(socialSecurityNumber).getSavingsAccount(), amount);\r\n withdraw.execute();\r\n txHistoryByPatron.get(getPatron(socialSecurityNumber)).add(withdraw);\r\n Transaction deposit = new Transaction(getPatron(socialSecurityNumber), Transaction.TRANSACTION_TYPE.DEPOSIT, getPatron(socialSecurityNumber).getBrokerageAccount(), amount);\r\n deposit.execute();\r\n txHistoryByPatron.get(getPatron(socialSecurityNumber)).add(deposit);\r\n } catch (InsufficientAssetsException e){\r\n throw new InsufficientAssetsException();\r\n }\r\n }", "public interface BankProcessingCenterOperations\n{\n\t/* constants */\n\t/* operations */\n\tboolean debit(TransactionRequest transaction) throws ebank.InsufficientBalanceException,ebank.CardNumberException, SQLException, ClassNotFoundException;\n\tboolean credit(TransactionRequest transaction) throws ebank.CardNumberException, ClassNotFoundException, SQLException;\n\tfloat getBalance(long card_number) throws ebank.CardNumberException, SQLException, ClassNotFoundException;\n}", "double getBalance();", "double getBalance();", "public void makeTransaction(Transaction transaction)\n throws BalanceNotAvailableException, TransactionIdNotUniqueException, TransactionTypeInCorrectException {\n\n if (checkTransactionId(transaction.getTransactionId())) {\n throw new TransactionIdNotUniqueException(\"Transaction Id should be unique\");\n } else if (transaction.getTransactionType().equalsIgnoreCase(\"debit\")) {\n if (checkAvailableBalance(transaction.getAccountId(), transaction.getAmount())) {\n throw new BalanceNotAvailableException(\"Balance Not Available\");\n }\n updateAccountBalance(transaction.getAccountId(),\n getAccountBalance(transaction.getAccountId()) - transaction.getAmount());\n transactionRepository.save(transaction);\n } else if (transaction.getTransactionType().equalsIgnoreCase(\"credit\")) {\n updateAccountBalance(transaction.getAccountId(),\n getAccountBalance(transaction.getAccountId()) + transaction.getAmount());\n transactionRepository.save(transaction);\n } else {\n throw new TransactionTypeInCorrectException(\"Transaction type should be debit or credit\");\n }\n }", "@Transactional(propagation=Propagation.REQUIRED,rollbackFor=Exception.class)\n\t@Override\n\tpublic Map<String, Object> bindHouseInfo(Map<String, Object> requestMap) {\n\t\tMap<String, Object> map = new HashMap<>();\n\t\tmap.put(\"status\", false);\n\t\t/*\n\t\tVoteHouseInfo voteHouseInfo = new VoteHouseInfo();\n\t\tvoteHouseInfo.setLinkPhone((String)requestMap.get(\"linkPhone\"));\n\t\tvoteHouseInfo.setInfoStatus(\"01\");*/\n\t\t\n\t\tVoteHouseInfoExample voteHouseInfoExample = new VoteHouseInfoExample();\n\t\tcom.indihx.elecvote.entity.VoteHouseInfoExample.Criteria criteria = voteHouseInfoExample.createCriteria();\n\t\tcriteria.andSectNameEqualTo((String)requestMap.get(\"sectName\"));\n\t\tcriteria.andBuildCodeEqualTo((String)requestMap.get(\"buildCode\"));\n\t\tcriteria.andUnitCodeEqualTo((String) requestMap.get(\"unitCode\"));\n\t\tcriteria.andFloorCodeEqualTo((String)requestMap.get(\"floorCode\"));\n\t\tcriteria.andRoomCodeEqualTo((String)requestMap.get(\"roomCode\"));\n\t\tcriteria.andCertCodeEqualTo((String)requestMap.get(\"certCode\"));\n\t\tList<VoteHouseInfo> list = voteHouseInfoMapper.selectByExample(voteHouseInfoExample);\n\t\tif (list.isEmpty()) {\n\t\t\treturn map;\n\t\t}\n\t\tVoteHouseInfo houseInfo = list.get(0);\n\t\tVoteApplyInfoExample example = new VoteApplyInfoExample();\n\t\tcom.indihx.elecvote.entity.VoteApplyInfoExample.Criteria applyCriteria = example.createCriteria();\n\t\tapplyCriteria.andInfoIdEqualTo(houseInfo.getInfoId());\n\t\tList<VoteApplyInfo> applyList = voteApplyInfoMapper.selectByExample(example);\n\t\tif (!applyList.isEmpty()) {\n\t\t\tlogger.error(\"该房屋信息已经绑定过,不能继续绑定\");\n\t\t\tmap.put(\"status\", false);\n\t\t\treturn map;\n\t\t}\n\t\t\n\t\tVoteApplyInfo voteApplyInfo = new VoteApplyInfo();\n\t\tvoteApplyInfo.setApplyId(new BigDecimal(primaryKey.getKeyBySequenceName(\"APPLY_ID_SEQ\")));\n\t\tvoteApplyInfo.setInfoId(houseInfo.getInfoId());\n\t\tvoteApplyInfo.setRegisteDate(DateUtil.getSysDate());\n\t\tvoteApplyInfo.setRegisteTime(DateUtil.getSysTime());\n\t\tvoteApplyInfo.setOwnerName(houseInfo.getOwnerName());\n\t\tvoteApplyInfo.setCertCode(houseInfo.getCertCode());\n\t\tvoteApplyInfo.setLinkPhone((String)requestMap.get(\"linkPhone\"));\n\t\tvoteApplyInfo.setUserId((String)requestMap.get(\"openId\"));\n\t\tint count = voteApplyInfoMapper.insertSelective(voteApplyInfo);\n\t\tif (count > 0) {\n\t\t\tmap.put(\"status\", true);\n\t\t}\n\t\t/*\n\t\tint count = voteHouseInfoMapper.updateByExampleSelective(voteHouseInfo, voteHouseInfoExample);\n\t\tif (count > 0) {\n\t\t\tmap.put(\"status\", true);\n\t\t}*/\n\t\treturn map;\n\t}", "public interface TransactionRepository {\n\n Transaction save(Transaction transaction);\n\n void remove(Transaction trx);\n\n void removeByAccount(Account account);\n\n long countTransactions();\n\n long countTransactionsOfAccount(Account account);\n\n List<Transaction> findAll();\n\n List<Transaction> filterAll(TransactionFilter filter);\n\n List<Transaction> findByCategory(Category category);\n\n List<Transaction> findByAccount(Account account);\n\n List<Transaction> findByAccountAndYear(Account account, Integer year);\n\n List<Transaction> findByAccountAndCategory(Account account, Category category);\n\n List<TransactionVolume> getCategoryVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getAccountCategoryVolumes(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getYearlyCategoryVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getYearlyAccountCategoryVolumes(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getYearlyIncomingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getYearlyOutgoingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyIncomingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyOutgoingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getYearlyIncomingVolumesOfAccount(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getYearlyOutgoingVolumesOfAccount(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyIncomingVolumesOfAccount(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyOutgoingVolumesOfAccount(Account account, boolean includeTransfers);\n\n ValueRange<LocalDate> getTransactionOpDateRange();\n\n ValueRange<LocalDate> getTransactionOpDateRangeForYear(Integer year);\n\n ValueRange<LocalDate> getTransactionOpDateRangeForAccount(Account account);\n\n ValueRange<LocalDate> getTransactionOpDateRangeForAccountAndYear(Account account, Integer year);\n\n}" ]
[ "0.5348707", "0.50867754", "0.49735525", "0.4855678", "0.48266134", "0.48116654", "0.47958302", "0.47938585", "0.4785938", "0.47500485", "0.47487757", "0.47216874", "0.4713632", "0.47005612", "0.46755293", "0.46695077", "0.4658111", "0.4638636", "0.45969844", "0.45960355", "0.4589031", "0.4577312", "0.45752466", "0.45677754", "0.4565379", "0.4562775", "0.4560594", "0.45588195", "0.45490265", "0.45386073", "0.4526524", "0.4519522", "0.45075807", "0.44906035", "0.44887224", "0.4487827", "0.44868347", "0.44854608", "0.44798386", "0.44790927", "0.4472402", "0.44581497", "0.44492564", "0.44489434", "0.44455883", "0.4444874", "0.4438334", "0.44357362", "0.44312814", "0.44296324", "0.44193646", "0.44131953", "0.43983796", "0.43941993", "0.43916118", "0.43892032", "0.4382226", "0.4380037", "0.43769032", "0.43747416", "0.43695354", "0.4361261", "0.4359134", "0.43512294", "0.43500832", "0.4349904", "0.43481645", "0.43433812", "0.434027", "0.4338314", "0.4335603", "0.43311065", "0.43259442", "0.43257785", "0.43248376", "0.43247694", "0.43216333", "0.43175563", "0.43172574", "0.4317128", "0.43153378", "0.43137842", "0.4313097", "0.4313062", "0.43076694", "0.43064737", "0.4305335", "0.42998764", "0.42990187", "0.42983398", "0.42976788", "0.42912248", "0.42903048", "0.4285493", "0.42825538", "0.4282441", "0.4282441", "0.42818904", "0.42773622", "0.42773145" ]
0.59013724
0
TODO Autogenerated method stub
@Override public Integer addSTask(Integer taskNum, Integer studyLogId, String taskName, Integer coin) throws WEBException { try { slDao = (StudyLogDao) DaoFactory.instance(null).getDao(Constants.DAO_STUDY_LOG_INFO); stDao = (StudyTaskDao) DaoFactory.instance(null).getDao(Constants.DAO_STUDY_TASK_INFO); Session sess = HibernateUtil.currentSession(); tran = sess.beginTransaction(); StudyTaskInfo st = new StudyTaskInfo(slDao.getEntityById(sess, studyLogId), taskNum, taskName, coin, CurrentTime.getCurrentTime()); stDao.save(sess, st); tran.commit(); return st.getId(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); throw new WEBException("增加学习任务信息时出现异常!"); } finally{ HibernateUtil.closeSession(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean updateCoinInfoById(Integer id, Integer newAddCoin) throws WEBException { try { stDao = (StudyTaskDao) DaoFactory.instance(null).getDao(Constants.DAO_STUDY_TASK_INFO); Session sess = HibernateUtil.currentSession(); tran = sess.beginTransaction(); StudyTaskInfo st = stDao.getEntityById(sess, id); if(st != null){ st.setCoin(st.getCoin() + newAddCoin); st.setAddTime(CurrentTime.getCurrentTime()); stDao.update(sess, st); tran.commit(); return true; } return false; } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); throw new WEBException("修改学习任务中奖励金币数信息时出现异常!"); } finally{ HibernateUtil.closeSession(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<StudyTaskInfo> listTaskInfoByOpt(Integer sLogId, String taskName) throws WEBException { try { stDao = (StudyTaskDao) DaoFactory.instance(null).getDao(Constants.DAO_STUDY_TASK_INFO); Session sess = HibernateUtil.currentSession(); return stDao.findInfoByOpt(sess, sLogId, taskName); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); throw new WEBException("根据学习记录编号、学习任务获取学习任务记录列表时出现异常!"); } finally{ HibernateUtil.closeSession(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public StudyTaskInfo getLastInfoByLogId(Integer studyLogId) throws WEBException { try { stDao = (StudyTaskDao) DaoFactory.instance(null).getDao(Constants.DAO_STUDY_TASK_INFO); Session sess = HibernateUtil.currentSession(); return stDao.getLastInfoByLogId(sess, studyLogId); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); throw new WEBException("获取最后一次的任务记录列表时出现异常!"); } finally{ HibernateUtil.closeSession(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Spring Data repository for the DisabilityType entity.
@SuppressWarnings("unused") @Repository public interface DisabilityTypeRepository extends JpaRepository<DisabilityType, Long>, JpaSpecificationExecutor<DisabilityType> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Repository\r\npublic interface AccounterTypeService extends JpaRepository<AccounterType,Long>{\r\n AccounterType getByKind(String kind);\r\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface NonConformanceTypeRepository extends JpaRepository<NonConformanceType, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface LeLegalEntityTypesRepository extends JpaRepository<LeLegalEntityTypes, Long> {\n\n}", "public interface SizeCostTypeRepository extends Repository<SizeCostType, Long> {\n}", "public interface MediaTypeRepository extends JpaRepository<MediaType, Long> {\n}", "public interface TypeRepositoryCustom extends JpaRepository<Type, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface DsColumnTypesRepository extends JpaRepository<DsColumnTypes, Long>, JpaSpecificationExecutor<DsColumnTypes> {\n\n}", "@Repository\npublic interface EnumTypeRepository extends BaseRepository<EnumTypeBean,Long> {\n}", "@SuppressWarnings(\"unused\")\npublic interface DayOffTypeRepository extends JpaRepository<DayOffType,Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ClassDurationRepository extends JpaRepository<ClassDuration, Long> {\n\n}", "public interface TypeQuestionRepository extends JpaRepository<TypeQuestion, Integer> {\n\n}", "public interface NodeTypeRepository extends CrudRepository<NodeType,Long> {\n}", "public interface PreventiveActionRepository extends CrudRepository<PreventiveAction, Long> {\r\n\r\n}", "TypeRepository createTypeRepository();", "@Repository\npublic interface ClientTypeRepository extends JpaRepository<ClientType, Integer> {\n\n}", "public interface RatingRepository extends CrudRepository<Rating, String>{\n\n}", "public interface LookupRepository extends JpaRepository<Lookup,Long> {\n\n @Query(value = \"select distinct discriminator from RULES_MANAGER.Lookup l\", nativeQuery = true)\n List<String> findAllTypes();\n\n @Query(value = \"select * from RULES_MANAGER.Lookup where discriminator = ?1 and reference_id = ?2 order by name\", nativeQuery = true)\n List<Lookup> findByTypeAndReferenceId(String type, Long referenceId);\n\n}", "public interface AttributeTypeDao extends Repository<AttributeType, Long> {\n\n List<AttributeType> findBySubCategoryId(Long subCategoryId);\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CategorieRessourcesRepository extends JpaRepository<CategorieRessources, Long> {\n}", "@Repository\npublic interface DistrictRepository extends JpaRepository<District, Long> {}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface DocumentRepository extends JpaRepository<Document, Long> {\n\n\tList<Document> findAllByTypeDocument(TypeDocument type);\n\n}", "public interface IssueCategoryRepository extends JpaRepository<IssueCategory,Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface LevelDressageHisRepository extends JpaRepository<LevelDressageHis, Long> {\n\n}", "@Repository\npublic interface AdviceDao extends BaseRepository<AdviceType, Integer> {\n}", "@Transactional(readOnly = true)\n public Page<DisabilityTypeDTO> findAll(Pageable pageable) {\n log.debug(\"Request to get all DisabilityTypes\");\n return disabilityTypeRepository.findAll(pageable)\n .map(disabilityTypeMapper::toDto);\n }", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface AbilityRepository extends AbilityRepositoryQuery, JpaRepository<Ability, Long> {\n\n}", "@Repository\npublic interface AlliesRepository extends CrudRepository<AlliesDO, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface MedicalRepository extends JpaRepository<Medical, Long> {\n\n}", "public interface AdUnitDistrictRepository extends JpaRepository<AdUnitDistrict, Long> {\n\n \n}", "public interface StudyTypeRepository extends JpaRepository<StudyType,Long>{\n\n}", "public interface DocketCodeRepository extends JpaRepository<DocketCode,Long> {\n\n}", "public interface CategoryRepository extends JpaRepository<Category, Long> {\n}", "public interface SpecialityRepository extends CrudRepository<Speciality,Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\npublic interface ReservoirCapacityRepository extends JpaRepository<ReservoirCapacity, Long> {\n\n}", "public interface CategoryRepository extends CrudRepository<Category, Long> {\n}", "@Repository\npublic interface InspectionOptionRepository extends JpaRepository<InspectionOption, Integer> {\n\n}", "public interface SideEntityDao extends CrudRepository<SideEntity, Long> {\n\n\tSet<SideEntity> findAll();\n\n}", "public interface DisasterRepository extends JpaRepository<Disaster,Integer> {\n\n}", "public interface CategoryRepository extends JpaRepository<Category, Integer> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface DishRepository extends JpaRepository<Dish, Long>, JpaSpecificationExecutor<Dish> {}", "@Repository\npublic interface DistrictCountryRepository extends JpaRepository<DistrictCountry, String> {\n}", "@Repository\npublic interface CategoryRepository extends JpaRepository<Category,Long> {\n\n\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface MaterialDeExameRepository extends JpaRepository<MaterialDeExame, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PartnerTypeRepository extends JpaRepository<PartnerType, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface LevelRepository extends JpaRepository<Level,Long> {\n \n}", "@Repository\npublic interface CategoryRepository extends CrudRepository<Category,Long> {\n}", "public interface CategoryRepository extends CrudRepository<Category, Integer> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface HrmsActionDisciplinaryRepository extends JpaRepository<HrmsActionDisciplinary, Long> {\n\n}", "@Repository\npublic interface QualityParameterRepository extends JpaRepository<QualityParameter, Integer> {\n\n}", "@Repository\npublic interface ProductcategoryRepository extends CrudRepository<Productcategory, Integer>{\n}", "@Repository\npublic interface TipPercentRepository extends CrudRepository<TipPercent, Long>{\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface AllergyRepository extends JpaRepository<Allergy, Long> {\n\n}", "public interface CurrencyRepository extends JpaRepository<Currency, Long> {\n\n}", "public interface TreatmentRepository extends CrudRepository <Treatment, Integer> {\n}", "@Repository\npublic interface LandUriRepository extends CrudRepository<LandUri, Long>{\n}", "public interface DlContTypeSetRepository extends JpaRepository<DlContTypeSet,Long> {\n\n @Query(\"select dlContTypeSet from DlContTypeSet dlContTypeSet where dlContTypeSet.name = :name\")\n Optional<DlContTypeSet> findOneByName(@Param(\"name\") String name);\n\n @Query(\"select dlContTypeSet from DlContTypeSet dlContTypeSet where dlContTypeSet.code = :code\")\n Optional<DlContTypeSet> findOneByCode(@Param(\"code\") String code);\n\n @Query(\"select dlContTypeSet from DlContTypeSet dlContTypeSet where dlContTypeSet.pStatus = 1 \")\n Page<DlContTypeSet> activecontenttypes(org.springframework.data.domain.Pageable pageable);\n\n\n}", "public interface IModeratorProposalRepository extends JpaRepository<ModeratorProposal, Integer> {\n}", "@Repository\npublic interface AhmsdttmMstclustypeDao extends JpaRepository<AhmsdttmMstclustype, Integer> {\n\n}", "public interface ApplianceRepository extends JpaRepository<Appliance, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface SchemeRepository extends JpaRepository<Scheme,Long> {\n\n List<Scheme> findSchemeByDriver(Driver driver);\n\n}", "@Repository\npublic interface SnowboardSizeSpecsRepository extends JpaRepository<SnowboardSizeSpecs, Long> {\n\n /** \n * Gets a SnowboardSizeSpecs by it's id\n * @param id\n * @return a SnowboardSizeSpecs\n */\n SnowboardSizeSpecs findById(long id);\n\n}", "public interface LossRepository extends JpaRepository<Loss,Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface DefItemRepository extends JpaRepository<DefItem, Long> {\n\n List<DefItem> findAllByTypeIdOrderByCode(Long typeId);\n\n List<DefItem> findAllByTypeCodeOrderByCode(EnmType enmType);\n\n\n}", "@Repository\npublic interface IDealRepository extends CrudRepository<Deal, UUID> {\n\n @AllowFiltering\n Optional<Deal> findById(@NotNull final UUID id);\n\n /**\n * Find by menu id list.\n *\n * @param menuId the menu id\n *\n * @return the list\n */\n @AllowFiltering\n List<Deal> findByMenuId(final UUID menuId);\n}", "@Repository\npublic interface RedeemRepo extends JpaRepository<Redeem , Long> {\n}", "@SuppressWarnings(\"unused\")\npublic interface TypeTrancheHoraireRepository extends JpaRepository<TypeTrancheHoraire,Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface DefAnswerRepository extends JpaRepository<DefAnswer, Long> {\n\n}", "@SuppressWarnings(\"unused\")\npublic interface AllergyRepository extends JpaRepository<Allergy,String> {\n\n}", "public interface BandRepo extends CrudRepository<Band, Integer> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface MGuildRoulettePrizeRepository extends JpaRepository<MGuildRoulettePrize, Long>, JpaSpecificationExecutor<MGuildRoulettePrize> {\n\n}", "@Repository\npublic interface MedicalAidRepository extends JpaRepository<MedicalAid, String> {\n\n}", "public interface RequirementRepository /*extends CrudRepository<Requirement, Long>*/ {\n}", "@Repository\npublic interface RepositoryMain extends CrudRepository<Roulette, Long>{\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TechnologistRepository extends JpaRepository<Technologist, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ChipsAdminRepository extends JpaRepository<ChipsAdmin, Long> {}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface HorarioDisponivelRepository extends JpaRepository<HorarioDisponivel, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CardysqRepository extends JpaRepository<Cardysq, Long>, JpaSpecificationExecutor<Cardysq> {}", "@SuppressWarnings(\"unused\")\npublic interface EventTypeRepository extends JpaRepository<EventType,Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface VisiteurRepository extends JpaRepository<Visiteur, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface RiderRepository extends JpaRepository<Rider, Long> {\n\n}", "public interface ActionRepository extends JpaRepository<Action, Integer> {\n\n}", "public interface RepositoryUserPermission extends CrudRepository<UserPermission, Long> {\n\n UserPermission findByName(String name);\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ReceiptItemRepository extends JpaRepository<ReceiptItem, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CaptureCollegeRepository extends JpaRepository<CaptureCollege, Long> {\n\n}", "@Repository\npublic interface CategoryRepository extends CrudRepository<Category, Long> {\n\n Category findByName(String name);\n}", "public interface TypeMedicationSearchRepository extends ElasticsearchRepository<TypeMedication, Long> {\n}", "public interface RecipeRepository extends CrudRepository<Recipe,Long> {\n}", "public interface AdCreativeRespository extends JpaRepository<AdCreative,Long> {\n\n}", "public interface CarRepository extends CrudRepository<CarDO, Long> {\n\n List<CarDO> findByDeletedFalse();\n\n List<CarDO> findByEngineType(EngineType engineType);\n}", "public interface RimWideRepository extends JpaRepository<RimWide, Long> {\n}", "public interface HbzCostRepository extends BaseRepository<HbzCost, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface FestivalAllowancePaymentDtlRepository extends JpaRepository<FestivalAllowancePaymentDtl, Long>, JpaSpecificationExecutor<FestivalAllowancePaymentDtl> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PricingRepository extends JpaRepository<Pricing, Long> {\n\n}", "@Repository\npublic interface BandRepository extends CrudRepository<Band,String> {\n\n List<Band> findAll();\n}", "@Repository\r\npublic interface AssignmentRepository extends CrudRepository<Assignment, String> {\r\n\r\n}", "@Repository\npublic interface PaymentTypeDAO extends BaseDAO<PaymentTypeVo>{\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TestDescriptionRepository extends JpaRepository<TestDescription, Long> {\n\n}", "@Repository\npublic interface CategoryRepository extends CrudRepository<Category, Long> {\n\n /**\n * Beschrijf in de method name wat je wilt dat spring uit de database haalt, zo simpel is het!\n */\n Category findCategoryById(Long id);\n\n @Override\n List<Category> findAll();\n\n\n}", "public interface BoulderRepository extends CrudRepository<Boulder, Long> {\n}", "public interface OptionRepository extends CrudRepository<Option, Long> {\n}" ]
[ "0.6637392", "0.6592576", "0.6412725", "0.64112353", "0.63093174", "0.62865907", "0.6277983", "0.6213669", "0.61806047", "0.61716163", "0.6169818", "0.61526525", "0.6115947", "0.6113817", "0.60886866", "0.6087444", "0.6084608", "0.6082733", "0.60808593", "0.6060206", "0.60536975", "0.60390896", "0.60226136", "0.6017525", "0.6017357", "0.60117775", "0.6009221", "0.600796", "0.6007428", "0.6000142", "0.5998771", "0.5993565", "0.59902763", "0.5978636", "0.59533525", "0.59463626", "0.59359974", "0.5926965", "0.5923721", "0.5911746", "0.5909564", "0.5907681", "0.59033966", "0.5901403", "0.5900535", "0.58909196", "0.58850765", "0.5883748", "0.58828294", "0.5857854", "0.58564425", "0.58556324", "0.58556306", "0.58433807", "0.58413076", "0.5834366", "0.5831702", "0.5830859", "0.582412", "0.58222306", "0.5819677", "0.5816438", "0.5809346", "0.5809254", "0.5802711", "0.5785765", "0.57685", "0.5761855", "0.57600635", "0.5756715", "0.5755558", "0.57546896", "0.57539725", "0.5746747", "0.5745045", "0.57397985", "0.57332784", "0.5725071", "0.57198507", "0.5715824", "0.5713206", "0.56923795", "0.569027", "0.568703", "0.56859106", "0.56762356", "0.56723833", "0.5668319", "0.56682044", "0.5667225", "0.5666756", "0.566292", "0.56584775", "0.56575507", "0.56532276", "0.5652072", "0.56504965", "0.56501466", "0.564786", "0.5644744" ]
0.75062644
0
function for password validation
public boolean validate() { String pass= et_pass.getText().toString().trim(); String confirm_pass = et_confirm_pass.getText().toString().trim(); boolean temp=true; if(!pass.equals(confirm_pass)){ Toast.makeText(JSPassword.this,"Password Not matching",Toast.LENGTH_SHORT).show(); temp=false; } else if (pass.isEmpty()) { Toast.makeText(JSPassword.this,"Enter a password",Toast.LENGTH_SHORT).show(); temp=false; } else { temp=false; et_pass.setText(""); et_confirm_pass.setText(""); Intent intent = new Intent(getApplicationContext(),JSDetails.class); startActivity(intent); } return temp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void validatePassword(){\n //Only Checking For Word Type Password With Minimum Of 8 Digits, At Least One Capital Letter,At Least One Number,At Least One Special Character\n Boolean password = Pattern.matches(\"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9](?=.*[!@#$%^&*()])).{8,}$\",getPassword());\n System.out.println(passwordResult(password));\n }", "void validatePassword(String usid, String password) throws Exception;", "@Override\r\n\tpublic boolean validatePassword(String arg0, String arg1) {\n\t\treturn false;\r\n\t}", "private boolean isPasswordValid(String password){\n return password.length() > 2; //mot de passe de longueur sup à 2\n }", "boolean getPasswordValid();", "private boolean isPasswordValid(String password) {\n return true;\n }", "private boolean isPasswordValid(String password) {\n return true;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 0;\r\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\r\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\r\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\r\n }", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword2();", "private void validatePassword() {\n mPassWordValidator.processResult(\n mPassWordValidator.apply(binding.registerPassword.getText().toString()),\n this::verifyAuthWithServer,\n result -> binding.registerPassword.setError(\"Please enter a valid Password.\"));\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean validatePassword() {\n\t\tEditText pw = (EditText)view.findViewById(R.id.et_enter_new_password);\n\t\tEditText confPW = (EditText)view.findViewById(R.id.et_reenter_new_password);\n\t\t\t\n\t\tString passwd = pw.getText().toString();\n\t\tString confpw = confPW.getText().toString();\n\t\t\n\t\t// Check for nulls\n\t\tif (passwd == null || confpw == null) {\n\t\t\tToast.makeText(view.getContext(), \"Passwords are required\", Toast.LENGTH_LONG).show();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Ensure password and retypted passwords match\n\t\tif (!passwd.contentEquals(confpw)) {\n\t\t\tToast.makeText(view.getContext(), \"Passwords must match\", Toast.LENGTH_LONG).show();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Ensure password meets complexity\n\t\tif (passwd.length() < 7) { // min length of 7 chars\n\t\t\tToast.makeText(view.getContext(), \"Password must be at least 7 characters long\", \n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Not really sure what the requirements are for private key password complexity yet\n\t\tnewPassword = passwd; // Set class variable with new password\n\t\treturn true;\n\t}", "private boolean checkPassword() {\n String password = Objects.requireNonNull(password1.getEditText()).getText().toString();\n\n return password.length() >= 8 && ContainSpecial(password) && noUpper(password);\n }", "public static boolean checkPassword (String password) throws UserRegistrationException{\n check = Pattern.compile(\"^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%^&*()_+=-]?){8,}.*$\").matcher(password).matches();\n if (check) {\n return true;\n } else {\n throw new UserRegistrationException(\"Enter a valid password\");\n }\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 2;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4 && password.equals(\"123456\");\n }", "Boolean isValidUserPassword(String username, String password);", "private boolean isPasswordValid(String password) {\n return password.length() >= 1;\n }", "private boolean isPasswordValid(String password)\n {\n return password.length() > MagazzinoService.getPasswordMinLength(this);\n }", "private boolean isPasswordValid(String password) {\r\n //TODO: Replace this with your own logic\r\n return password.length() > 4;\r\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() >= 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 6;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 6;\n }", "private boolean checkPassword() {\n String password = getPassword.getText();\n \n if(password.compareTo(\"\") == 0) {\n errorMessage.setText(\"Please enter a password.\");\n return false;\n }\n else if(password.compareTo(getConfirmPassword.getText()) == 0) {\n //Password must be min of 8 characters max of 16\n if((8 > password.length()) || (\n password.length() > 16)) {\n errorMessage.setText(\"Password must be 8-16 characters long.\");\n return false;\n }\n \n boolean upperFlag = false;\n boolean lowerFlag = false;\n boolean numFlag = false;\n boolean charFlag = false;\n \n for(int i = 0; i < password.length(); ++i) {\n String sp = \"/*!@#$%^&*()\\\\\\\"{}_[]|\\\\\\\\?/<>,.\";\n char ch = password.charAt(i);\n \n if(Character.isUpperCase(ch)) { upperFlag = true; }\n if(Character.isLowerCase(ch)) { lowerFlag = true; }\n if(Character.isDigit(ch)) { numFlag = true; }\n if(sp.contains(password.substring(i, i))) { charFlag = true; }\n } \n //Password must contain 1 uppercase letter\n if(!upperFlag) {\n errorMessage.setText(\"Password must contain at least one uppercase letter.\");\n return false;\n }\n //Password must contain 1 lowercase letter\n if(!lowerFlag) {\n errorMessage.setText(\"Password must contain at least one lowercase letter.\");\n return false;\n }\n //Password must contain 1 number\n if(!numFlag) {\n errorMessage.setText(\"Password must contain at least one digit.\");\n return false;\n }\n //Password must contain 1 special character\n if(!charFlag) {\n errorMessage.setText(\"Password must contain at least one special character.\");\n return false;\n }\n return true;\n }\n else {\n errorMessage.setText(\"The entered passwords do not match.\");\n return false; \n }\n }", "private boolean isPasswordValid(String password) {\n return (password.length() >= 4 && password.length() < 20);\n }", "private boolean checkPassword(){\n Pattern p = Pattern.compile(\"^[A-z0-9]*$\");\n Matcher m = p.matcher(newPass.getText());\n boolean b = m.matches();\n if(newPass.getText().compareTo(repeatPass.getText()) != 0 || newPass.getText().isEmpty() || repeatPass.getText().isEmpty()){\n repeatPass.setBackground(Color.red);\n JOptionPane.showMessageDialog(null, \"Password Error\");\n return false;\n }\n else if(newPass.getText().length() > 10 || b == false){\n newPass.setBackground(Color.red);\n JOptionPane.showMessageDialog(null, \"Password Error\");\n return false;\n }\n newPass.setBackground(Color.green);\n repeatPass.setBackground(Color.green);\n return true;\n }", "private boolean isPasswordValid(String password) {\n //TODO: Replace this with your own logic\n return password.length() > 7;\n }", "public boolean validatePassword() {\r\n\t\tif (txtPassword.getValue() == null || txtPassword.getValue().length() == 0 || !txtPassword.getValue().equals(txtRetypePassword.getValue()))\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "private boolean isPasswordValid(String password) {\n if(password.length() < 4){\n TextView tv = findViewById(R.id.wrongPassError);\n tv.setText(getResources().getString(R.string.error_invalid_password));\n return false;\n }\n return true;\n }", "private boolean isPasswordValid(String password) {\n return (password.length() >= 6) && (password.length() <= 30);\n }", "private void passwordvalidation( String password ) throws Exception {\r\n if ( password != null ) {\r\n if ( password.length() < 6 ) {\r\n throw new Exception( \"Le mot de passe doit contenir au moins 6 caracteres.\" );\r\n }\r\n } else {\r\n throw new Exception( \"Merci de saisir votre mot de passe.\" );\r\n }\r\n }", "private boolean isPasswordValid(String password) {\n\n String x = \"word1234$\";\n\n\t\t//check if password is direct match\n if (!password.equals(x)){\n return false;\n }\n\n\n //check length of password\n if (password.length() < 8) {\n return false;\n }\n\n\t//check for at least 1 special character\n for (int i=0; i < password.length(); i++){\n int ascii = (int) password.charAt(i);\n if (!(ascii >= 65 && ascii <= 90) && !(ascii >= 97 && ascii <= 122)){\n return true;\n }\n }\n\n \t\t//check for at least 1 number character\n for (int i=0; i < password.length(); i++){\n int ascii = (int) password.charAt(i);\n if (ascii >= 48 && ascii <= 57){\n return true;\n }\n }\n\n\t//check for at least 1 upper case and 1 lower case character\n boolean upper = false;\n boolean lower = false;\n for (int i=0; i < password.length(); i++){\n int ascii = (int) password.charAt(i);\n if (ascii >= 65 && ascii <= 90){\n upper = true;\n }\n if (ascii >= 97 && ascii <= 122){\n lower = true;\n }\n if (upper == true && lower == true){\n return true;\n }\n }\n return false;\n\n }", "private boolean isPasswordValid(String password) {\n return (password.length() > 4);\n }", "private boolean isValidPassword(final String thePassword) {\n return thePassword.length() > PASSWORD_LENGTH;\n }", "@Test\r\n\tpublic void testIsValidPasswordSuccessful()\r\n\t{\r\n\t\tassertTrue(PasswordCheckerUtility.isValidPassword(\"#SuperMan1\"));\r\n\t}", "@Test\n public void testIsValidPassword() {\n System.out.println(\"isValidPassword\");\n String input = \".%6gwdye\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidPassword(input);\n assertEquals(expResult, result);\n }", "private boolean isPasswordValid(String password) {\n //TODO: Replace this with your own logic\n return password.length() > 0;\n }", "public void testCorrectPassword() {\n Password p = new Password(\"jesus\".toCharArray());\n assertTrue(p.checkPassword(\"jesus\".toCharArray()));\n }", "public static boolean validatePassword(String password){\n return password.length() >= MIN_CHARACTERS;\n }", "private static boolean isValid(String passWord) {\n\t\tString password = passWord;\n\t\tboolean noWhite = noWhiteSpace(password);\n\t\tboolean isOver = isOverEight(password);\n\t\tif (noWhite && isOver) {\n\t\t\tSystem.out.println(\"Password accepted!\");\n\t\t\treturn true;\n\t\t} else return false;\n\t}", "@VisibleForTesting\n int validatePassword(byte[] password) {\n int errorCode = NO_ERROR;\n final PasswordMetrics metrics = PasswordMetrics.computeForPassword(password);\n mergeMinComplexityAndDpmRequirements(metrics.quality);\n\n if (password == null || password.length < mPasswordMinLength) {\n if (mPasswordMinLength > mPasswordMinLengthToFulfillAllPolicies) {\n errorCode |= TOO_SHORT;\n }\n } else if (password.length > mPasswordMaxLength) {\n errorCode |= TOO_LONG;\n } else {\n // The length requirements are fulfilled.\n if (!mPasswordNumSequenceAllowed\n && !requiresLettersOrSymbols()\n && metrics.numeric == password.length) {\n // Check for repeated characters or sequences (e.g. '1234', '0000', '2468')\n // if DevicePolicyManager or min password complexity requires a complex numeric\n // password. There can be two cases in the UI: 1. User chooses to enroll a\n // PIN, 2. User chooses to enroll a password but enters a numeric-only pin. We\n // should carry out the sequence check in both cases.\n //\n // Conditions for the !requiresLettersOrSymbols() to be necessary:\n // - DPM requires NUMERIC_COMPLEX\n // - min complexity not NONE, user picks PASSWORD type so ALPHABETIC or\n // ALPHANUMERIC is required\n // Imagine user has entered \"12345678\", if we don't skip the sequence check, the\n // validation result would show both \"requires a letter\" and \"sequence not\n // allowed\", while the only requirement the user needs to know is \"requires a\n // letter\" because once the user has fulfilled the alphabetic requirement, the\n // password would not be containing only digits so this check would not be\n // performed anyway.\n final int sequence = PasswordMetrics.maxLengthSequence(password);\n if (sequence > PasswordMetrics.MAX_ALLOWED_SEQUENCE) {\n errorCode |= CONTAIN_SEQUENTIAL_DIGITS;\n }\n }\n // Is the password recently used?\n if (mLockPatternUtils.checkPasswordHistory(password, getPasswordHistoryHashFactor(),\n mUserId)) {\n errorCode |= RECENTLY_USED;\n }\n }\n\n // Allow non-control Latin-1 characters only.\n for (int i = 0; i < password.length; i++) {\n char c = (char) password[i];\n if (c < 32 || c > 127) {\n errorCode |= CONTAIN_INVALID_CHARACTERS;\n break;\n }\n }\n\n // Ensure no non-digits if we are requesting numbers. This shouldn't be possible unless\n // user finds some way to bring up soft keyboard.\n if (mRequestedQuality == PASSWORD_QUALITY_NUMERIC\n || mRequestedQuality == PASSWORD_QUALITY_NUMERIC_COMPLEX) {\n if (metrics.letters > 0 || metrics.symbols > 0) {\n errorCode |= CONTAIN_NON_DIGITS;\n }\n }\n\n if (metrics.letters < mPasswordMinLetters) {\n errorCode |= NOT_ENOUGH_LETTER;\n }\n if (metrics.upperCase < mPasswordMinUpperCase) {\n errorCode |= NOT_ENOUGH_UPPER_CASE;\n }\n if (metrics.lowerCase < mPasswordMinLowerCase) {\n errorCode |= NOT_ENOUGH_LOWER_CASE;\n }\n if (metrics.symbols < mPasswordMinSymbols) {\n errorCode |= NOT_ENOUGH_SYMBOLS;\n }\n if (metrics.numeric < mPasswordMinNumeric) {\n errorCode |= NOT_ENOUGH_DIGITS;\n }\n if (metrics.nonLetter < mPasswordMinNonLetter) {\n errorCode |= NOT_ENOUGH_NON_LETTER;\n }\n return errorCode;\n }", "private static boolean checkLength(String password) {\n \treturn password.length() >= minLength;\n }", "public void testIncorrectPassword() {\n Password p = new Password(\"jesus\".toCharArray());\n assertFalse(p.checkPassword(\"buddha\".toCharArray()));\n }", "public boolean passwordCheck(String password) {\n\t\treturn true;\n\t\t\n\t}", "private boolean isPasswordValid(String password) {\n return password != null && password.trim().length() > 2;\n }", "private boolean passwordIsValid(String password) {\n Pattern passwordRegex = Pattern.compile(\n \"^*\" + // start of string\n \"[^\\\\s]\" + // contains no whitespace\n \"{5,29}\" + // between 6 and 30 characters long\n \"$\"); // end of string\n return passwordRegex.matcher(password).matches();\n }", "public boolean verifyPassword(int input){\n return input==password;\n }", "boolean validateUserAndPassword(String username, String password);", "private boolean isValidPassword(String pass) {\n if (pass != null && pass.length() >= 6) {\n return true;\n }\n return false;\n }", "public static Boolean checkPassowd(String password){\n\t\t//String password = txtPassword.getText();\n\t\t//System.out.println(password);\n\t\treturn password.equals(\"password\");\n\t}", "private boolean isPasswordValid(String password) {\r\n return password != null && password.trim().length() > 5;\r\n }", "@Test\r\n\tpublic void testIsValidPasswordTooShort()\r\n\t{\r\n\t\ttry{\r\n\t\t\tassertTrue(PasswordCheckerUtility.isValidPassword(\"flgk1\"));\r\n\t\t}\r\n\t\tcatch(LengthException e)\r\n\t\t{\r\n\t\t\tassertTrue(\"Successfully threw a lengthExcepetion\",true);\r\n\t\t}\r\n\t}", "@Test\n\t\tvoid givenPassword_CheckForValidationForPasswordRule4_RetrunTrue() {\n\t\t\tboolean result =ValidateUserDetails.validatePassword(\"Srewoirfjkbh#3\");\n\t\t\tAssertions.assertTrue(result);\n\t\t}", "private boolean isPasswordValid(String password) {\n return password != null && password.trim().length() > 5;\n }", "@Override\n public InvalidPassword isPasswordValid(String password) {\n if (password == null || !isValidLength(password, MIN_CHAR_COUNT_PASSWORD, MAX_CHAR_COUNT_PASSWORD)) {\n return InvalidPassword.INVALID_LENGTH;\n }\n // must contain at least 1 digit\n if (numOfDigits(password) < MIN_DIGITS_COUNT_PASSWORD) {\n return InvalidPassword.MISS_DIGIT;\n }\n // must not contain special character\n if (Pattern.compile(\"[^a-z0-9 ]\", Pattern.CASE_INSENSITIVE).matcher(password).find()) {\n return InvalidPassword.HAS_SPECIAL;\n }\n // must start with an alphabetic character\n char s = password.charAt(0);\n if (!Character.isLetter(s)) {\n return InvalidPassword.NOT_START_WITH_ALPHA;\n }\n return null;\n }", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n System.out.print(\"Enter a string for password: \");\n String s = input.nextLine();\n\n if (passwordDigitCheck(s) && paswordLengt(s) && passwordCharOrDig(s)){\n System.out.println(\"This password is valid\");\n }else System.out.println(\"This is an invalid password\");\n }", "public boolean isPasswordValid(String password) {\n boolean errorFlag = true;\n Pattern specailCharPattern = Pattern.compile(\"[^a-z0-9 ]\", Pattern.CASE_INSENSITIVE);\n Pattern upperCasePattern = Pattern.compile(\"[A-Z ]\");\n Pattern lowerCasePattern = Pattern.compile(\"[a-z ]\");\n Pattern digitCasePattern = Pattern.compile(\"[0-9 ]\");\n if(password.length() < 8){\n errorFlag =false;\n } else if(!specailCharPattern.matcher(password).find()){\n errorFlag = false;\n } else if(!upperCasePattern.matcher(password).find()){\n errorFlag = false;\n } else if(!lowerCasePattern.matcher(password).find()){\n errorFlag = false;\n } else if(!digitCasePattern.matcher(password).find()){\n errorFlag = false;\n }\n return errorFlag;\n }", "public boolean checkPass(String password){\r\n if (password.equals(this.password)){\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "@Override\r\n\tpublic boolean checkPassword(String pwd) {\n\t\tif(temp.getCustomerPwd().matches(pwd))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "@Test\n public void testLessThanEightCharactersPassword() {\n String password = \"Pass123\";\n\n try {\n User.validatePassword(password);\n } catch (IntelligenceIdentityException e) {\n return;\n }\n\n fail(\"Password is wrong, an exception should be thrown, check implementation of password validation\");\n }", "@Test(priority=1)\n\tpublic void testPasswordValidity() {\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"[email protected]\");\n\t\tsignup.enterPassword(\"1234567\");\n\t\tsignup.reenterPassword(\"1234567\");\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\t\n\t\t// is String Present looks for the presence of expected error message from all of errors present on current screen. \n\t\tAssert.assertTrue(TestHelper.isStringPresent(errors, \"Passwords do not match; please enter a password and reenter to confirm.\\nPasswords must contain at least 6 characters and no spaces.\"));\n\t}", "public void testvalidatePassword0001()\n\t{\n\t\tLoginCheck loginCheckTest = new LoginCheck();\n\t\t\n\t\tassertFalse(loginCheckTest.validatePassword(\"pwd\"));\n\t}", "private void validatePasswordField() {\n userPassword = passwordEditText.getText().toString();\n if (!isPasswordValid()) {\n passwordEditText.setTextColor(getResources().getColor(R.color.colorWrongText));\n loginButton.setEnabled(false);\n } else {\n passwordEditText.setTextColor(getResources().getColor(R.color.colorRightText));\n loginButton.setEnabled(true);\n }\n }", "private boolean isPasswordValid(String pin) {\n if(pin.length()==4) {\n try {\n Integer.parseInt(pin);\n return true;\n } catch (Exception e) {\n return false;\n }\n }\n return false;\n }", "public static boolean isPasswordValid(String password){\n return password.length() >= 6;\n }", "@When(\"^user should enter the valid password in the loginpage$\")\n\tpublic void user_should_enter_the_valid_password_in_the_loginpage() throws Throwable {\n\t\tinputValuestoElement(pa.getAp().getPasswordinput(), \"superman@1010\");\n\t\n\t \n\t}", "boolean isMatchPassword(Password toCheck) throws NoUserSelectedException;", "@Test\n\t void testPassword() {\n\t\tString expected=passwordEncoder.encode(\"faizan@123\");\n\t\tString actual=user.getPassword();\n\t\tassertNotEquals(expected, actual);\n\t}", "@Override\n protected boolean isValidValue(String value) {\n // Password must be at least 8 characters long and contain at least\n // one number\n //\n if (value != null\n && (value.length() < 8 || !value.matches(\".*\\\\d.*\"))) {\n return false;\n }\n return true;\n }", "@Override\n\tpublic void validatePassword(String password) throws UserException {\n\t\t\n\t}", "private boolean isPasswordValid(String password, String confirmation) {\n return password.length() > 4;\n }", "@Test\n public void testPasswordMinLength()\n {\n String invalid = repeatM(7);\n owner.setPassword(invalid);\n assertInvalid(owner, \"password\", \"Password must be at least 8 characters in length\", invalid);\n }" ]
[ "0.83194774", "0.819029", "0.817129", "0.81228477", "0.8112807", "0.80340904", "0.80340904", "0.79569745", "0.79308313", "0.79308313", "0.79308313", "0.79189366", "0.79189366", "0.79189366", "0.79189366", "0.79189366", "0.79189366", "0.79189366", "0.79189366", "0.789362", "0.78356814", "0.7803043", "0.7780592", "0.7775523", "0.77704906", "0.7768085", "0.77555525", "0.7753892", "0.7751701", "0.7742716", "0.77096", "0.770256", "0.770256", "0.770256", "0.770256", "0.770256", "0.770256", "0.770256", "0.770256", "0.770256", "0.770256", "0.770256", "0.770256", "0.770256", "0.770256", "0.770256", "0.770256", "0.770256", "0.770256", "0.7688485", "0.76849353", "0.76849353", "0.76719934", "0.76392627", "0.76196194", "0.7617401", "0.76075274", "0.7578968", "0.7567246", "0.7556537", "0.7550834", "0.7548283", "0.7533595", "0.7528128", "0.75120246", "0.74631613", "0.7443819", "0.7431427", "0.74280703", "0.74106985", "0.74030304", "0.7399668", "0.7395721", "0.73933184", "0.73909587", "0.73734367", "0.7366651", "0.73508686", "0.73452264", "0.7301749", "0.72952366", "0.72911346", "0.72767586", "0.72300184", "0.72276634", "0.721661", "0.72118264", "0.71992534", "0.71689016", "0.71590525", "0.7152666", "0.714407", "0.7129409", "0.71293336", "0.71280265", "0.71227854", "0.7121869", "0.71178305", "0.7115598", "0.71077895", "0.70962733" ]
0.0
-1
BankAccount bankAccount = new BankAccount();
public static void main(String[] args) { BankAccount bankAccount = new BankAccount(11211, 0, "adam smith", "[email protected]", "9090980980"); BankAccount tim = new BankAccount("tim", "[email protected]", "9090980980"); System.out.println("Account Number = " + tim.getAccountNumber()); System.out.println("Balance = "+ tim.getBalance()); System.out.println("Customer Name = " + bankAccount.getCustomerName()); System.out.println("Email = " + bankAccount.getEmailAddress()); System.out.println("Phone Number = " + bankAccount.getPhoneNumber()); System.out.println("deposit = "+ bankAccount.getDeposit(90)); System.out.println("new balance = "+ bankAccount.getWithdrawal(200)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProfileBankAccount() {\r\n }", "public BankAccount()\n {\n \t//intializing instance variables\n \t//at the time object creation constuctor executes \n \t\n \taccountHolderName=\"unknow\";\n \taccountBalance=0;\n \t\n }", "public BankAccount(int balance) {\n\n this.balance = balance;\n\n }", "public Bank() {\n\n }", "BankAccount(){\n\t\tSystem.out.println(\"NEW ACCOUNT CREATED\");\t\n\t}", "public Account() {\n\n }", "public BankAccount() {\r\n\t\tbalance=0;\r\n\t\t\r\n\t}", "public Account() {\n }", "public Account() {\n }", "public BankAccount() {\t\n\t\tthis.accountNumber = UUID.randomUUID().toString().substring(0, 6);\n\t\tthis.balance = 0;\n\t\tthis.accountType = \"Bank account\";\n\t}", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public BankAccount() {\n\t\tthis.money = 0;\n\t}", "Account() { }", "public Account() {\n }", "public BankAccount() {\n numberOfAccounts++;\n this.accountNumber = accountNumberGenerator(); \n }", "public Bank() {\n accounts = new Account[2];\n numOfAccounts = 0;\n }", "public Account() {\n\t}", "public BankImpl() {\n accounts = new HashMap<Integer,Account>();\n }", "public Bank() {\n\t\tsuper();\n\t}", "public GlAccountBank () {\n\t\tsuper();\n\t}", "public Account() {\n\n\t}", "public BankAccount() {\n this(12346, 5.00, \"Default Name\", \"Default Address\", \"default phone\");\n }", "public UserAccount() {\n }", "public static Bank getBank() {\n return Bank;\n }", "public Account() //default constructor \n {\n this.balance = 0;\n this.account_number = 0;\n }", "public Account() {\n super();\n }", "public SavingsAccount() {\n\t}", "public Account(){\r\n System.out.println(\"Called of empty constructor.\");\r\n }", "public FeeAccount ()\n {\n }", "private Bank() {\r\n\t\tsuper();\r\n\t\tlogService = new Logger(\"driverName\");\r\n\t\tlogger = new Logger(\"driverName\");\r\n\t\tthis.balance = balance;\r\n\t\tthis.clients = new Client[100];\r\n\t}", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "public InvoiceBalance()\n {\n }", "Account(int account_number,double balance) //pramiterized constrector\n {\n this.account_number=account_number;\n this.balance=balance;\n }", "public SavingsAccount() {\n super();\n }", "public Bank(BankDisplay bankDisplay) {\n this(\"bank\", \"localhost\", 1234, bankDisplay);\n }", "public BankAccount(int accountNum, String customerName, double balance){\n this.accountNum = accountNum;\n this. customerName = customerName;\n this.balance = balance;\n }", "public UserAccount() {\n\n\t}", "public Bank(){\n this(\"Seneca@York\", 0);\n }", "public UserAcct() {\r\n }", "public _AccountStub ()\n {\n super ();\n }", "public Bank() {\n\t\tnamesTree = new BankAccountsBinarySearchTree(new AccountComparatorByName());\n\t\taccountNumbersTree = new BankAccountsBinarySearchTree(new AccountComparatorByNumber());\n\t}", "public static void main(String[] args) {\n\n BankAccount rustemAccount=new BankAccount(\"Rustem\",\"Erdem\");\n\n System.out.println(\"rustemAccount.firstName = \" + rustemAccount.firstName);\n System.out.println(\"rustemAccount.getAccountHolder() = \" + rustemAccount.getAccountHolder());\n\n\n System.out.println(\"getBalance() = \" + rustemAccount.getBalance());\n\n rustemAccount.setBalance(150);\n System.out.println(\"getBalance() = \"+rustemAccount.getBalance());\n\n rustemAccount.deposit(150);\n rustemAccount.avaliableBalance();\n rustemAccount.withdraw(100);\n rustemAccount.avaliableBalance();\n\n\n rustemAccount.setAccountNumber(23112432);\n System.out.println(\"rustemAccount.getAccountNumber() = \" + rustemAccount.getAccountNumber());\n\n\n System.out.println(rustemAccount);\n }", "public CheckingAccount() {\n super(); \n }", "shared.data.Bank getBank();", "public BankModel() {\n accounts = new ArrayList<AccountModel>();\n\n // Master account inbedded into system for easy access to test features.\n accounts.add(new AccountModel(\"c\", \"123\", 500));\n }", "public Bank getBank() {\r\n return bank;\r\n }", "public void TestAccount1() {\n\n AccountCreator account = new AccountCreator();\n account.setFirstName(\"Bob\");\n account.setLastName(\"Smith\");\n account.setAddress(\"5 Rain Road\");\n account.setPIN();\n account.setTestBalance(300);\n accountList.add(account);\n\n }", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public BankAccountKey() {\n\tsuper();\n}", "public Account(String currency) {\n //numAccount += 1;\n incrementNumAccount();\n this.accountID = numAccount;\n this.dateOfCreation = LocalDate.now();\n\n setPrimaryCurrency(currency);\n this.currencyBalance = Money.of(0, this.primaryCurrency);\n ownerID = new ArrayList<>();\n }", "public Account() {\r\n\t\tthis(\"[email protected]\", \"Account\");\r\n\t}", "BankDetail() {\n this.isValid = new Boolean(false);\n this.bankAccountNo = new String();\n this.bankAccountHolderName = new String();\n this.bankCountry = new String();\n this.IFSC = new String();\n }", "public Account(){\r\n this.id = 0;\r\n this.saldo = 0.0;\r\n }", "public BankAccount(double initialBalance) {\r\n\t\tbalance=initialBalance;\r\n\t}", "public BankDataBase()\n {\n accounts = new Account[ 2 ];\n accounts[ 0 ] = new Account( 12345, 54321, 1000.0, 1200.0 );\n accounts[ 1 ] = new Account( 98765, 56789, 200.0, 200.0 );\n }", "public ControlBank(Bank bank) {\r\n\t\tthis.bank = bank;\r\n\t}", "Account create();", "public SavingAccount()\n\t\t{\n\t\t\tsuper();\n\t\t}", "int createAccount(Account account);", "public Account()\n {\n // initialise instance variables\n balance = 0.00;\n remainder = 0;\n }", "public SavingsAccount(String n) {\n super(n); \n balance = 0;\n }", "public void setBankAccountType (String BankAccountType);", "public SavingsAccount(double balance)\n {\n startingBalance = balance;\n }", "public ExternallyOwnedAccount() {}", "public Account(){\n this.id = 0;\n this.balance = 0;\n this.annualInterestRate = 0;\n this.dateCreated = new Date();\n }", "public BankDatabase() {\r\n accounts = new Account[3];\r\n Connection c = null;\r\n Statement stmt = null;\r\n try {\r\n Class.forName(\"org.postgresql.Driver\");\r\n c = DriverManager\r\n .getConnection(\"jdbc:postgresql://localhost:5432/ATM\",\r\n \"postgres\", \"0000\");\r\n c.setAutoCommit(false);\r\n stmt = c.createStatement();\r\n ResultSet rs = stmt.executeQuery( \"SELECT * FROM accounts;\" );\r\n var i = 0;\r\n while ( rs.next() ) {\r\n int theAccountNumber = rs.getInt(\"accountnumber\");\r\n int thePin = rs.getInt(\"pin\");\r\n double theAvailiableBalance = rs.getDouble(\"availiablebalance\");\r\n double theTotalBalance = rs.getDouble(\"totalbalance\");\r\n accounts[i] = new Account( theAccountNumber, thePin, theAvailiableBalance, theTotalBalance);\r\n i++;\r\n }\r\n rs.close();\r\n stmt.close();\r\n c.close();\r\n } catch ( Exception e ) {\r\n System.err.println( e.getClass().getName()+\": \"+ e.getMessage() );\r\n System.exit(0);\r\n }\r\n\r\n\r\n// accounts = new Account[2]; // just 2 accounts for testing\r\n// accounts[0] = new Account(12345, 54321, 1000.0, 1200.0);\r\n// accounts[1] = new Account(98765, 56789, 200.0, 200.0);\r\n }", "public SavingsAccount()\n {\n super();\n this.interestRate = DEFAULT_RATE;\n System.out.println(\"Constructor is called.\");\n }", "public GlAccountBank (\n\t\t\tLong in_id\n ) {\n\t\tthis.setId(in_id);\n }", "public PortalController() {\n bank = new Bank();\n }", "public AccountManager(){\r\n allAccounts.put(\"CreditCard\",credits);\r\n allAccounts.put(\"LineOfCredit\",lineOfCredits);\r\n allAccounts.put(\"Chequing\",chequing);\r\n allAccounts.put(\"Saving\",saving);\r\n createAccount(\"3\", 0);\r\n primaryAccount = chequing[0];\r\n }", "public Account(Holder holder, int balance) {\n this.holder = holder;\n this.balance = balance;\n }", "public int getBankAccount() {\n return bankAccount;\n }", "private UserAccountDAO(){\n }", "Account getAccount();", "public Account()\n {\n id = UUID.randomUUID();\n }", "public Bank() {\n\n\t\tcustomerList = new ArrayList<Customer>();\n\t\tCustomer C = new Customer(\"madison\", \"bynum\", \"madb\", \"123\");\n\t\tcustomerList.add(C);\n\t\temployeeList = new ArrayList<Employee>();\n\t\tEmployee E = new Employee(\"madi\", \"by\", \"madib\", \"1234\");\n\t\temployeeList.add(E);\n\t\tadminList = new ArrayList<Admin>();\n\t\tAdmin A = new Admin(\"amber\", \"stone\", \"amberstone195\", \"12345\");\n\t\tadminList.add(A);\n\t\tsbank.writeSerializeMyBank();\n\t\tsbank.loadSerializeMyBank();\n\t}", "public BankAccount(String holderName, String number, float balance){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = balance;\r\n\t}", "public BankATM() {\n getLocation();\n }", "public static Bank getInstance() {\r\n\t\treturn instance;\r\n\t}", "public void setBank(Bank bank) {\r\n this.bank = bank;\r\n }", "public BankAccount(double basicMoney) {\n\t\tthis.money = basicMoney;\n\t}", "private Account createAccount(byte[] address) {\n return new Account(address);\n }", "public account() {\n initComponents();\n autoID();\n branch();\n }", "public SavingsAccount(double rate) //setting interest rate with constructor\r\n { \r\n interestRate = rate;\r\n }", "public JsonpAccount() {\n }", "public AccountTypeEntity() { }", "public Bank(String name, int accs){\n bankAccounts = new Account[accs];\n bankName = name;\n maxAccounts = accs;\n currAccounts = 0; //empty\n }", "public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}", "public static void main (String[] args)\r\n{\nAccount a = new SavingsAccount(\"john\",500,4);\r\nSystem.out.println(\"\\n Savings Account details\");\r\nSystem.out.println(\"----------------------\");\r\nSystem.out.println(\"\"+a.getName()+\"has an initial balance of:\"+a.getBalance());\r\na.deposit(200);\r\na.withdraw(200);\r\nSystem.out.println(\"\"+a.getName()+\"at the end of transaction has a balance of \"+a.getBalance());\r\n\r\nSystem.out.println(\"\\n checking account details\");\r\nSystem.out.println(\"----------------------\");\r\nCheckingAccount cAobj = new CheckingAccount(\"Stephen\",200,200);\r\nSystem.out.println(\"\\n Savings Account details\");\r\nSystem.out.println(\"----------------------\");\r\nSystem.out.println(\"\"+cAobj.getName()+\"has an initial balance of:\"+cAobj.getBalance());\r\ncAobj.deposit(200);\r\ncAobj.withdraw(500);\r\nSystem.out.println(\"\"+cAobj.getName()+\"at the end of transaction has a balance of \"+cAobj.getBalance());\r\n}", "public CheckingAccount()\n {\n withdrawals = 0;\n deposits = 0;\n }", "public BankAccount(String holderName, String number){\r\n\t\tthis.holderName = holderName;\r\n\t\tthis.number = number;\r\n\t\tthis.balance = 0;\r\n\t}", "public Account(double balance) {\n\t\tthis.balance = balance;\n\t}", "@Test\n public void testGiveAccount() {\n System.out.println(\"giveAccount\");\n String name = \"Gert Hansen\";\n String address = \"Grønnegade 12\";\n String phone = \"98352010\";\n CustomerCtr instance = new CustomerCtr();\n int customerID = instance.createCustomer(name, address, phone);\n String type = \"Visa\";\n int regNo = 39292492;\n int cardNo = 457153253;\n instance.giveAccount(customerID, type, regNo, cardNo);\n Account result = instance.getCustomer(customerID).getAccount();\n assertNotNull(result);\n assertEquals(\"Visa\", result.getType());\n assertEquals(39292492, result.getRegNr());\n assertEquals(457153253, result.getCardNr());\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }", "void setBank(shared.data.Bank bank);", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "private Account createAccount8() {\n Account account = new Account(\"123456008\", \"Jean Sans Enfant\",\n new SimpleDate(4, 23, 1976).asDate(), \"[email protected]\", true, false, new CreditCard(\"4320123412340008\"));\n\n return account;\n }", "public BankRegistrationController() {\n }", "public Account() {\n\t\t//starting amount is 1500\n\t\tmoney = 1500;\n\t}", "Account getAccount(Integer accountNumber);", "public BankAcc(int accNum, double bal, String name, String email, String phone){\r\n System.out.println(\"DONE\");\r\n //can do some validation in the other functions\r\n //not nessacary\r\n setAccNum(accNum);\r\n this.bal=bal;\r\n this.name=name;\r\n this.email=email;\r\n this.phone=phone;\r\n\r\n }" ]
[ "0.82828313", "0.8007822", "0.7913524", "0.78882116", "0.7778898", "0.7730599", "0.77133834", "0.7675568", "0.7675568", "0.76637125", "0.7529822", "0.75273275", "0.7494713", "0.74915445", "0.74739033", "0.7467143", "0.74589616", "0.74131167", "0.74010366", "0.74005604", "0.73707336", "0.7360845", "0.73166007", "0.72518665", "0.7237831", "0.7182594", "0.7182168", "0.71687263", "0.71128875", "0.7098773", "0.70875937", "0.70759785", "0.70345104", "0.70240265", "0.7009609", "0.6999177", "0.6997014", "0.6952081", "0.6937859", "0.69037026", "0.6844951", "0.68426085", "0.6840575", "0.6840106", "0.6838405", "0.6829018", "0.68176347", "0.6784642", "0.6743116", "0.67304385", "0.67210346", "0.6716053", "0.67144674", "0.6692381", "0.6690915", "0.66725975", "0.6668346", "0.6655228", "0.6654156", "0.66501707", "0.6647736", "0.663494", "0.66318816", "0.66191316", "0.6614035", "0.66136605", "0.65991354", "0.65646297", "0.6557363", "0.6556543", "0.65562624", "0.6534217", "0.65192837", "0.6507599", "0.65069836", "0.64951575", "0.6485875", "0.64841455", "0.64810455", "0.6479683", "0.6478737", "0.64780974", "0.6477097", "0.6476115", "0.64747703", "0.6474034", "0.64657074", "0.6462451", "0.6459668", "0.64433265", "0.6439368", "0.6436933", "0.64280295", "0.6426854", "0.6420522", "0.6402595", "0.6401395", "0.63812184", "0.63785183", "0.63774914" ]
0.6927783
39
use the cursor to set the details
public void set_details(Cursor detail){ detail.moveToFirst(); // column indexes int idx_id = detail.getColumnIndexOrThrow("_id"); int idx_title = detail.getColumnIndexOrThrow("title"); int idx_desc = detail.getColumnIndexOrThrow("description"); int idx_due = detail.getColumnIndexOrThrow("due"); int idx_repeat_type = detail.getColumnIndexOrThrow("repeat_type"); int idx_times_completed = detail.getColumnIndexOrThrow("times_completed"); int repeat_type = detail.getInt(idx_repeat_type); String repeat_text = ""; Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(detail.getLong(idx_due)); switch(repeat_type){ case 0: // none repeat_text = "none"; break; case 1: // daily repeat_text = "daily"; break; case 2: // weekdays repeat_text = "weekdays"; break; case 3: // weekly repeat_text = "weekly"; break; case 4: // monthly repeat_text = "monthly"; break; case 5: // annually repeat_text = "annually"; break; default: break; } Log.i(TAG,"TIMES COMPLETED:" + detail.getInt(idx_times_completed)); String text = "" + java.net.URLDecoder.decode(detail.getString(idx_desc)) + "\n\nRepeat type: " + repeat_text + "\n\nDue: " + cal.getTime().toString() + "\n\nTimes completed: " + detail.getInt(idx_times_completed); text_view_detail.setText(text); task_title = java.net.URLDecoder.decode(detail.getString(idx_title)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCursor(Cursor c) {\n\n\t}", "@Override\n public void onBind(Cursor cursor) {\n this.inspectFormViewID = cursor.getInt(cursor.getColumnIndex(COL_INSPECT_FORM_VIEW_ID));\n this.inspectFormViewNo = cursor.getInt(cursor.getColumnIndex(COL_INSPECT_FORM_VIEW_NO ));\n this.jobRequestID = cursor.getInt(cursor.getColumnIndex(COL_JOBREQUEST_ID ));\n this.taskCode = cursor.getString(cursor.getColumnIndex(COL_TASK_CODE));\n try{\n this.isAudit = Boolean.parseBoolean(cursor.getString(cursor.getColumnIndex(COL_IS_AUDIT )));\n }catch(Exception ex){}\n this.colsInvokeForPhotoEntryItemDisplay = cursor.getString(cursor.getColumnIndex(COL_UNIVERSAL_PHOTO_ENTRY));\n }", "protected abstract void putDataInViewControls(Cursor cursor);", "private void setPeopleFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\n\t\t// Set the contact id\n\t\tselectedColumn = cur.getColumnIndex(RawContacts._ID);\n\t\tlong nid = cur.getLong(selectedColumn);\n\t\t_id = String.valueOf(nid);\n\n\t\t// TODO: note and birthday\n\t\t// selectedColumn = cur.getColumnIndex(Contacts.People.NOTES);\n\t\t// notes = cur.getString(selectedColumn);\n\t\t// if (notes != null) {\n\t\t// Matcher ppm = birthdayPattern.matcher(notes);\n\t\t//\n\t\t// if (ppm.find()) {\n\t\t// birthday = ppm.group(1);\n\t\t// notes = ppm.replaceFirst(\"\");\n\t\t// }\n\t\t// }\n\t}", "public void setCursor(int row, int col);", "public void cursorOn();", "public void setCursorName(String name) throws SQLException {\n\r\n }", "private void updateCursor() {\n if ((! editor.isCursorSet())\n || editor.getCursor() instanceof UIResource) {\n Cursor cursor = (editor.isEditable()) ? textCursor : null;\n editor.setCursor(cursor);\n }\n }", "public void Dbdisplay_For_Edit() {\n String Reg = editAccessionNoText.getText();\n\n try {\n con = DbConnection();\n\n st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n\n ResultSet rs = st.executeQuery(\"select * from bookdetails where AccessionNo ='\" + Reg + \"'\");\n while (rs.next()) {\n editISBNNoText.setText(rs.getString(\"ISBNNo\"));\n editCLAccessiontext.setText(rs.getString(\"CL Accession\"));\n editBookTitletext.setText(rs.getString(\"BookTitle\"));\n editAuthorNametext.setText(rs.getString(\"Author Name\"));\n editEditionText.setText(rs.getString(\"Edition\"));\n editBookshelfNotext.setText(rs.getString(\"Book Self No\"));\n editColumnNotext.setText(rs.getString(\"Row No\"));\n editRowNotext.setText(rs.getString(\"Column No\"));\n\n }\n\n } catch (Exception ex) {\n Logger.getLogger(StudentInformation.class\n .getName()).log(Level.SEVERE, null, ex);\n\n }\n }", "void setCursor(int kind);", "public void setCursor(int l, int c);", "private void rsSetInfo(ResultSet rs,DataPreventInfo info) throws SQLException {\n info.setId(rsGetLong(rs, \"id\"));\n info.setSynchronizeId(rsGetString(rs, \"synchronize_id\"));\n info.setPropertyId(rsGetLong(rs, \"property_id\"));\n info.setOriginKind(rsGetString(rs, \"origin_kind\"));\n info.setDeleteFlg(rsGetBoolean(rs, \"delete_flg\"));\n info.setPreventRegistAgency(rsGetString(rs, \"prevent_regist_agency\"));\n info.setPreventInBookNumber(rsGetString(rs, \"prevent_in_book_number\"));\n info.setPreventPersonInfo(rsGetString(rs, \"prevent_person_info\"));\n info.setPreventDocNumber(rsGetString(rs, \"prevent_doc_number\"));\n info.setPreventDocDate(rsGetTimestamp(rs, \"prevent_doc_date\"));\n info.setPreventDocReceiveDate(rsGetTimestamp(rs, \"prevent_doc_receive_date\"));\n info.setPreventInputDate(rsGetTimestamp(rs, \"prevent_input_date\"));\n info.setPreventDocSummary(rsGetString(rs, \"prevent_doc_summary\"));\n info.setPreventFileName(rsGetString(rs, \"prevent_file_name\"));\n info.setPreventFilePath(rsGetString(rs, \"prevent_file_path\"));\n info.setPreventNote(rsGetString(rs, \"prevent_note\"));\n info.setReleaseFlg(rsGetBoolean(rs, \"release_flg\"));\n info.setReleaseRegistAgency(rsGetString(rs, \"release_regist_agency\"));\n info.setReleaseInBookNumber(rsGetString(rs, \"release_in_book_number\"));\n info.setReleasePersonInfo(rsGetString(rs, \"release_person_info\"));\n info.setReleaseDocNumber(rsGetString(rs, \"release_doc_number\"));\n info.setReleaseDocDate(rsGetTimestamp(rs, \"release_doc_date\"));\n info.setReleaseDocReceiveDate(rsGetTimestamp(rs, \"release_doc_receive_date\"));\n info.setReleaseInputDate(rsGetTimestamp(rs, \"release_input_date\"));\n info.setReleaseDocSummary(rsGetString(rs, \"release_doc_summary\"));\n info.setReleaseFileName(rsGetString(rs, \"release_file_name\"));\n info.setReleaseFilePath(rsGetString(rs, \"release_file_path\"));\n info.setReleaseNote(rsGetString(rs, \"release_note\"));\n info.setEntryUserId(rsGetLong(rs, \"entry_user_id\"));\n info.setEntryUserName(rsGetString(rs, \"entry_user_name\"));\n// info.setEntryDateTime(rsGetTimestamp(rs, \"entry_date_time\"));\n// info.setUpdateUserId(rsGetLong(rs, \"update_user_id\"));\n// info.setUpdateUserName(rsGetString(rs, \"update_user_name\"));\n// info.setUpdateDateTime(rsGetTimestamp(rs, \"update_date_time\"));\n\n info.setType(rsGetString(rs, \"type\"));\n info.setPropertyInfo(rsGetString(rs, \"property_info\"));\n info.setOwnerInfo(rsGetString(rs, \"owner_info\"));\n info.setOtherInfo(rsGetString(rs, \"other_info\"));\n info.setLandCertificate(rsGetString(rs, \"land_certificate\"));\n info.setLandIssuePlace(rsGetString(rs, \"land_issue_place\"));\n info.setLandIssueDate(rsGetTimestamp(rs, \"land_issue_date\"));\n info.setLandMapNumber(rsGetString(rs, \"land_map_number\"));\n info.setLandNumber(rsGetString(rs, \"land_number\"));\n info.setLandAddress(rsGetString(rs, \"land_address\"));\n info.setLandArea(rsGetString(rs, \"land_area\"));\n info.setLandPublicArea(rsGetString(rs, \"land_public_area\"));\n info.setLandPrivateArea(rsGetString(rs, \"land_private_area\"));\n info.setLandUsePurpose(rsGetString(rs, \"land_use_purpose\"));\n info.setLandUsePeriod(rsGetString(rs, \"land_use_period\"));\n info.setLandUseOrigin(rsGetString(rs, \"land_use_origin\"));\n info.setLandAssociateProperty(rsGetString(rs, \"land_associate_property\"));\n info.setLandDistrict(rsGetString(rs, \"land_district\"));\n info.setLandStreet(rsGetString(rs, \"land_street\"));\n// info.setLandProvince(rsGetString(rs, \"land_province\"));\n info.setCarLicenseNumber(rsGetString(rs, \"car_license_number\"));\n info.setCarRegistNumber(rsGetString(rs, \"car_regist_number\"));\n info.setCarIssuePlace(rsGetString(rs, \"car_issue_place\"));\n info.setCarIssueDate(rsGetTimestamp(rs, \"car_issue_date\"));\n info.setCarFrameNumber(rsGetString(rs, \"car_frame_number\"));\n info.setCarMachineNumber(rsGetString(rs, \"car_machine_number\"));\n \n }", "private void rsSetInfo(ResultSet rs,ContractNumberInfo info) throws SQLException {\n\n info.setKindId(rsGetLong(rs, \"kind_id\"));\n info.setContractNumber(rsGetLong(rs, \"contract_number\"));\n }", "void setDataIntoSuppBusObj() {\r\n supplierBusObj.setValue(txtSuppId.getText(),txtSuppName.getText(), txtAbbreName.getText(),\r\n txtContactName.getText(),txtContactPhone.getText());\r\n }", "private void setCursor(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n cursor_ = value;\n }", "public final void mo2784a(Cursor cursor) {\r\n this.f4242S.setChecked(false);\r\n if (this.f4250f == null) {\r\n this.f4250f = new C1020bo(this, this, cursor);\r\n this.f4246b.setAdapter(this.f4250f);\r\n return;\r\n }\r\n Object cursor2;\r\n if (this.f4260p.equals(C1194i.f5604h[0])) {\r\n cursor2= new C1309mg(cursor, \"name\", true);\r\n } else {\r\n cursor2 = new C1309mg(cursor, \"name\", false);\r\n }\r\n this.f4250f.changeCursor((Cursor) cursor2);\r\n this.f4250f.notifyDataSetChanged();\r\n }", "public void changeCursor(Cursor cursor) {\n cursor.moveToPosition(-1);\n final int key_position = cursor.getColumnIndex(CachedValue.KEY);\n final int value_position = cursor.getColumnIndex(CachedValue.VALUE);\n while (cursor.moveToNext()) {\n String key = cursor.getString(key_position);\n String value = cursor.getString(value_position);\n mValues.put(key, value);\n }\n\n notifyDataSetChanged();\n }", "public void setMovieDataFromCursor(Cursor cursor) {\n if(null != cursor) {\n int count = cursor.getCount();\n\n if (count > 0) {\n // Indices\n int idIndex = cursor.getColumnIndex(MoviesContract.MoviesEntry._ID);\n int movieIdIndex = cursor.getColumnIndex(MoviesContract.MoviesEntry.COLUMN_MOVIE_ID);\n int titleIndex = cursor.getColumnIndex(MoviesContract.MoviesEntry.COLUMN_TITLE);\n int posterPathIndex = cursor.getColumnIndex(MoviesContract.MoviesEntry.COLUMN_POSTER_PATH);\n int backdropPathIndex = cursor.getColumnIndex(MoviesContract.MoviesEntry.COLUMN_BACKDROP_PATH);\n int plotSynopsisIndex = cursor.getColumnIndex(MoviesContract.MoviesEntry.COLUMN_PLOT_SYNOPSIS);\n int userRatingIndex = cursor.getColumnIndex(MoviesContract.MoviesEntry.COLUMN_USER_RATING);\n int releaseDateIndex = cursor.getColumnIndex(MoviesContract.MoviesEntry.COLUMN_RELEASE_DATE);\n\n mMovieInfoData = new MovieInfo[count];\n int i = 0;\n while (cursor.moveToNext()) {\n // Determine the values of the wanted data\n int id = cursor.getInt(idIndex);\n String movieIdStr = cursor.getString(movieIdIndex);\n int movieId = Integer.parseInt(movieIdStr);\n String title = cursor.getString(titleIndex);\n String posterPath = cursor.getString(posterPathIndex);\n String backdropPath = cursor.getString(backdropPathIndex);\n String plotSynopsis = cursor.getString(plotSynopsisIndex);\n String userRatingStr = cursor.getString(userRatingIndex);\n int userRating = Integer.parseInt(userRatingStr);\n String releaseDate = cursor.getString(releaseDateIndex);\n\n //Set values\n MovieInfo movieInfo = new MovieInfo(movieId, title, posterPath, backdropPath, plotSynopsis, userRating, releaseDate);\n mMovieInfoData[i] = movieInfo;\n i++;\n }\n notifyDataSetChanged();\n }\n cursor.close();\n }\n }", "void updateListFromRecordSet(Cursor csr)\n\t\t{\n\t\t\tContentValues aC= getContentValues(csr);\n\t\t\taddNewMemo(new CurrentMemo(aC.getAsString(\"memo_date\"), aC.getAsString(\"memo_subject\"),\n\t\t\t\t\taC.getAsString(\"memo_athor\"), aC.getAsString(\"author_citizen_id\"),\n\t\t\t\t\taC.getAsString(\"memo_description\"), aC.getAsString(\"recv_time\")));\n\t\t\t//csr.moveToNext();\n\t\t}", "private Angkot cursorToAngkot(Cursor cursor) {\n \tAngkot angkot = new Angkot();\n \n /* Set atribut pada objek barang dengan data kursor yang diambil dari database*/\n \tangkot.setId(cursor.getLong(0));\n \tangkot.setName(cursor.getString(1));\n \tangkot.setDescription(cursor.getString(2));\n \tangkot.setTime(cursor.getString(3));\n \n //kembalikan sebagai objek barang\n return angkot;\n }", "DBCursor execute();", "private void setupIndicies(Cursor cursor) {\n if (mStatus_index == null) {\n mStatus_index = cursor.getColumnIndex(FileChanges.C_STATUS);\n }\n if (mPath_index == null) {\n mPath_index = cursor.getColumnIndex(FileChanges.C_FILE_NAME);\n }\n if (mInserted_index == null) {\n mInserted_index = cursor.getColumnIndex(FileChanges.C_LINES_INSERTED);\n }\n if (mDeleted_index == null) {\n mDeleted_index = cursor.getColumnIndex(FileChanges.C_LINES_DELETED);\n }\n if (mIsBinary_index == null) {\n mIsBinary_index = cursor.getColumnIndex(FileChanges.C_ISBINARY);\n }\n if (mChangeId_index == null) {\n mChangeId_index = cursor.getColumnIndex(FileChanges.C_CHANGE_ID);\n }\n }", "@Override\n protected void onPostExecute(Cursor cursor) {\n super.onPostExecute(cursor);\n\n String[] from = new String[]{\n CoffeeShopDbSchema.TABLE_COFFEE_SHOPS.KEY_NAME,\n CoffeeShopDbSchema.TABLE_COFFEE_SHOPS.KEY_CITY\n };\n int[] to = new int[]{\n R.id.text_name,\n R.id.text_city\n };\n\n mAdapter = new CoffeeShopCursorAdapter(\n getActivity(),\n R.layout.cursor_row,\n cursor,\n from,\n to);\n\n mListView.setAdapter(mAdapter);\n }", "private void rsSetInfo(ResultSet rs,ContractKindTotalInfo info) throws SQLException {\n\n info.setKindId(rsGetLong(rs, \"kindId\"));\n info.setKindName(rsGetString(rs, \"kindName\"));\n info.setTemplateName(rsGetString(rs, \"templateName\"));\n info.setNumberOfContract(rsGetLong(rs, \"number_of_contract\"));\n info.setNumberOfInternalContract(rsGetLong(rs, \"number_of_internal_contract\"));\n info.setNumberOfExternalContract(rsGetLong(rs, \"number_of_external_contract\"));\n }", "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {\n // The swapCursor() method assigns the new Cursor to the adapter\n adapter.swapCursor(cursor);\n }", "public void displayCursor(Cursor cursor){\n // Log.d(TAG, \"display cursor called with size = \" + cursor.getCount());\n\n RatingFragment productFragment =\n (RatingFragment) getFragmentManager().findFragmentById(R.id.product_fragment);\n if ( productFragment != null ){\n productFragment.setData(cursor);\n }\n }", "private void printCursor(Cursor cursor)\n {\n \tif(cursor == null) return;\n \tif(cursor.getCount() == 0) return;\n \t\n \tcursor.moveToFirst();\n \tint index = 1;\n \tint keyIndex = cursor.getColumnIndex(KEY_FIELD);\n\t\tint valueIndex = cursor.getColumnIndex(VALUE_FIELD);\n\n\t\tLog.d(\"window_shopper\",\"row_\"+index+\"::\"+cursor.getString(keyIndex)+\"::\"+cursor.getString(valueIndex));\n\t\tindex++;\n\t\twhile(cursor.moveToNext())\n \t{\n \t\tLog.d(\"window_shopper\",\"row_\"+index+\"::\"+cursor.getString(keyIndex)+\":\"+cursor.getString(valueIndex));\n \t\tindex++;\n \t}\n \tcursor.moveToFirst();\n \tcursor.close();\n \treturn;\n }", "static public void set_creation_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"creation name:\", \"rating:\", \"release year:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct a.id, a.name, a.num_links, a.birth_year \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_music_artists a, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_music_artist_creation ac \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where ac.artist_id=a.id and ac.creation_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by num_links desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct a.id, a.name, a.num_links, a.birth_year \" +\n\t\t\t\t\" from curr_music_artists a \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"artist name\", \"rating\", \"birth year\"};\n\t\tEdit_row_window.label_min_parameter=\"min. birth year:\";\n\t\tEdit_row_window.linked_category_name = \"ARTISTS\";\n\t}", "protected void populate(EdaContext xContext, ResultSet rs) \n\tthrows SQLException, IcofException {\n\n\t\tsetId(rs.getLong(ID_COL));\n\t\tsetFromChangeReq(xContext, rs.getLong(FROM_ID_COL));\n\t\tsetToChangeReq(xContext, rs.getLong(TO_ID_COL));\n\t\tsetRelationship(rs.getString(RELATIONSHIP_COL));\n\t\tsetLoadFromDb(true);\n\n\t}", "public void swapCursor(Cursor cursor) {\n mCursor = cursor;\n notifyDataSetChanged();\n }", "public void replaceCurrentData(Cursor cursor) {\n\t\tMySimpleCursorAdapter adapt = (MySimpleCursorAdapter)this.getListAdapter();\n\t\t// because data collection is handled in a separate thread, the adapter\n\t\t// may be null if the data is replaced prior to the thread execution\n\t\tif (cursor != null && adapt != null) {\n\t\t\tadapt.changeCursor(cursor);\n\t\t\tadapt.notifyDataSetChanged();\n\t\t} else\n\t\t\tLog.e(TAG, \"Adapter or cursor is null! adapter = \" + adapt + \", cursor = \" + cursor);\n\t}", "public void setCursorName(String name) throws SQLException {\n currentPreparedStatement.setCursorName(name);\n }", "public void setCursor(int cl, int cc) {\n if (cl >= lines || cl < 0 || cc >= columns || cc < 0)\n return;\n\n this.cl = cl;\n this.cc = cc;\n }", "public abstract Cursor buildCursor();", "public void setUpdateData() {\n positionFenceToUpdateinController = Controller.getPositionFenceInArrayById(this.idFenceToUpdate);\n if(positionFenceToUpdateinController >= 0) {\n Fence fence = Controller.fences.get(positionFenceToUpdateinController);\n ((MainActivity)getActivity()).getSupportActionBar().setTitle(Constant.TITLE_VIEW_UPDATE_FENCE + \": \" + fence.getName());\n this.nameFence.setText(fence.getName());\n this.addressFence.setText(fence.getAddress());\n this.cityFence.setText(fence.getCity());\n this.provinceFence.setText(fence.getProvince());\n this.numberFence.setText(fence.getNumber());\n this.textSMSFence.setText(fence.getTextSMS());\n int index = (int)Constant.SPINNER_RANGE_POSITIONS.get(fence.getRange());\n this.spinnerRange.setSelection(index);\n this.spinnerEvent.setSelection(fence.getEvent());\n }\n }", "public void setOwner(ResultSetImpl rs) {\n/* 443 */ this.owner = rs;\n/* */ }", "private void setDataForTicket(){\n int rowId = ticketGui.getSelectedRowId();\n Ticket ticket = controller.getTicketById(rowId);\n\n // setting the data from the ticket i got to the popup gui\n clientNameTextField.setText(ticket.getClientName());\n starIdTextField.setText(ticket.getStarId());\n emailTextField.setText(ticket.getEmail());\n phoneNumberTextField.setText(ticket.getPhoneNumber());\n deviceModelTextField.setText(ticket.getModel());\n descriptionTextArea.setText(ticket.getDescription());\n clubMemberNameTextField.setText(ticket.getMemberName());\n resolutionTextArea.setText(ticket.getResolution());\n\n }", "void getData() throws SQLException, IOException {\n\t\tint i = 0;\n\t\twhile (cu.rst.next()) {\n\t\t\t\n\t\t\t\n\t\t\tcm[i].setDetails(cu.rst.getInt(1), cu.rst.getString(3),\n\t\t\t\t\tcu.rst.getString(4), cu.rst.getString(5), cu.rst.getString(6),\n\t\t\t\t\tcu.rst.getInt(7));\n\t\t\ti++;\n\n\t\t}\n\t\tSystem.out.println(\"**************************DETAILS TAKEN**************************\");\n\n\t}", "@Override\r\n public void onBindViewHolder(ViewHolder viewHolder, Cursor cursor) {\r\n }", "private Assignment cursorToAssignment(Cursor cursor) {\n\t\tAssignment assignment = new Assignment();\n\t\tassignment.setId(cursor.getLong(0));\n\t\tassignment.setTitle(cursor.getString(1));\n\t\tassignment.setSubjects_id(cursor.getLong(2));\n\t\tassignment.setDescription(cursor.getString(3));\n\t\tassignment.setDueDate(cursor.getString(4));\n\t\tassignment.setDueTime(cursor.getString(5));\n\t\tassignment.setAlarm(cursor.getString(6));\n\t\tassignment.setAcademic_id(cursor.getLong(7));\n\t\treturn assignment;\n\t}", "private void insertFields()\n {\n RideDetails details=new RideDetails();\n details.setStartPt(editStartingPt.getText().toString());\n details.setEndPt(editEndingPt.getText().toString());\n\n try {\n details.setTravelDate(dateFormatter.parse(editDate.getText().toString()));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n details.setNoSpot(Integer.parseInt(editNoSpot.getText().toString()));\n\n\n dbOperations(details);\n\n }", "@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.ILocusDetail> list) {\n loci = list;\n // Add the primary keys to the serialized key list if there are any.\n if (loci != null) {\n for (com.poesys.db.dto.IDbDto object : loci) {\n lociKeys.add(object.getPrimaryKey());\n }\n }\n }", "private void setPhoneFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\t\tint selectedColumnType;\n\t\tint preferredColumn;\n\t\tint phoneType;\n\t\tString customLabel = null;\n\n\t\t//\n\t\t// Get PhonesColums fields\n\t\t//\n\t\tselectedColumn = cur.getColumnIndex(Phone.NUMBER);\n\t\tselectedColumnType = cur.getColumnIndex(Phone.TYPE);\n\t\tpreferredColumn = cur.getColumnIndex(Phone.IS_PRIMARY);\n\t\tphoneType = cur.getInt(selectedColumnType);\n\t\tString phone = cur.getString(selectedColumn);\n\t\tboolean preferred = cur.getInt(preferredColumn) != 0;\n\t\tif (phoneType == Phone.TYPE_CUSTOM) {\n\t\t\tcustomLabel = cur.getString(cur.getColumnIndex(Phone.LABEL));\n\t\t}\n\n\t\tphones.add(new RowData(phoneType, phone, preferred, customLabel));\n\t}", "void setCursor(DriveRequest<?> request, String cursor);", "private void setValues() {\n //Calls for new assessment\n Assessment assessment = new Assessment();\n //Updates the local db assessmentDao with courseID and assessment ID\n assessment = db.assessmentDao().getAssessment(courseID, assessmentID);\n //Gets the assessment details name\n String name = assessment.getAssessment_name();\n //Gets the assessment details type\n String type = assessment.getAssessment_type();\n //Gets the assessment details status\n String status = assessment.getAssessment_status();\n //Gets the assessment details date\n String dDate = DateFormat.format(\"MM/dd/yyyy\", assessment.getAssessment_due_date()).toString();\n boolean alert1 = assessment.getAssessment_alert();\n //Gets the assessment details alert bar\n String alert = \"Off\";\n if (alert1) {\n alert = \"On\";\n }\n //Sets assessment details Name\n adName.setText(name);\n //Sets assessment details type\n adType.setText(type);\n //Sets assessment details status\n adStatus.setText(status);\n //Sets assessment details due date\n adDueDate.setText(dDate);\n //Sets assessment details alert\n adAlert.setText(alert);\n }", "public final void load(Cursor cursor) {\n\t\tOllie.load(this, cursor);\n\t\tOllie.putEntity(this);\n\t}", "public void swapCursor(Cursor newCursor) {\n if (mCursor != null) mCursor.close();\n mCursor = newCursor;\n if (newCursor != null) {\n // Force the RecyclerView to refresh\n this.notifyDataSetChanged();\n }\n }", "public void mark() {\r\n\t\tmark = cursor;\r\n\t}", "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {\n if (cursor == null || cursor.getCount() < 1) {\n return;\n }\n\n // Proceed with moving to the first row of the cursor and reading data from it\n // (This should be the only row in the cursor)\n if (cursor.moveToFirst()) {\n // Find the columns of product attributes that we're interested in\n int idColumnIndex = cursor.getColumnIndex(GoalandTaskMatcherContract.GoalEntry.MY_GOAL_ID);\n int descriptionColumnIndex = cursor.getColumnIndex(GoalandTaskMatcherContract.GoalEntry.COLUMN_GOAL_DESCRIPTION);\n\n // Extract out the value from the Cursor for the given column index\n String ID = cursor.getString(idColumnIndex);\n String description = cursor.getString(descriptionColumnIndex);\n\n // Update the views on the screen with the values from the database\n mDescriptionEditText.setText(description);\n\n }\n }", "public BorrowerCursor(Cursor cursor) {\n super(cursor);\n }", "private void updateUserDetailsFromView() {\n\t\tcurrentDetails.setFirstName(detailDisplay.getFirstName().getValue());\n\t\tcurrentDetails.setLastName(detailDisplay.getLastName().getValue());\n\t\tcurrentDetails.setMiddleInitial(detailDisplay.getMiddleInitial().getValue());\n\t\tcurrentDetails.setTitle(detailDisplay.getTitle().getValue());\n\t\tcurrentDetails.setEmailAddress(detailDisplay.getEmailAddress().getValue());\n\t\tcurrentDetails.setPhoneNumber(detailDisplay.getPhoneNumber().getValue());\n\t\tcurrentDetails.setActive(detailDisplay.getIsActive().getValue());\n\t\t//currentDetails.setRootOid(detailDisplay.getRootOid().getValue());\n\t\tcurrentDetails.setRole(detailDisplay.getRole().getValue());\n\t\t\n\t\tcurrentDetails.setOid(detailDisplay.getOid().getValue());\n\t\tString orgId = detailDisplay.getOrganizationListBox().getValue();\n\t\tcurrentDetails.setOrganizationId(orgId);\n\t\tResult organization = detailDisplay.getOrganizationsMap().get(orgId);\n\t\tif (organization != null) {\n\t\t\tcurrentDetails.setOrganization(organization.getOrgName());\n\t\t} else {\n\t\t\tcurrentDetails.setOrganization(\"\");\n\t\t}\n\t}", "public int getCursor() { return curs; }", "public static void m1040a(Cursor cursor) {\n if (cursor != null && !cursor.isClosed()) {\n cursor.close();\n }\n }", "private void setStatementInfo (String tempID,IncomeNotePO note, String staffID,\n\t\t\tPreparedStatement stmt) throws SQLException {\n\t\tstmt.setString(1, tempID);\n\t\tstmt.setString(2, note.getTime());\n\t\tstmt.setString(3, note.getReceivingOrganization());\n\t\tstmt.setString(4, note.getIncomeHandler());\n\t\tstmt.setString(5, note.getIncomeSource());\n\t\tstmt.setString(6, note.getMoney());\n\t\tstmt.setString(7, note.getAccount().getNumber());\n\t\tstmt.setString(8, staffID);\n\t\t\n\t\tstmt.setInt(9, DocState.UNCHECKED.getIntState());\n\t}", "private void setInfo(int row)\n {\n String ID=table.getModel().getValueAt(row, 0).toString();\n String Name=table.getModel().getValueAt(row, 1).toString(); \n idText.setText(ID);\n nameText.setText(Name);\n }", "static public void set_actor_data(){\n\t\t\n\t\tEdit_row_window.attrs = new String[]{\"actor name:\", \"rating:\", \"birth year:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct m.id, m.name, m.num_links, m.year_made \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_cinema_movies m, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_cinema_actor_movie am\" +\n\t\t\t\t\t\t\t\t\t\t\t\" where am.movie_id=m.id and am.actor_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by num_links desc \";\n\t\t\n\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct m.id, m.name, m.num_links, m.year_made \" +\n\t\t\t\t\" from curr_cinema_movies m \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"movie name\", \"rating\", \"release year\"};\n\t\tEdit_row_window.label_min_parameter=\"min. release year:\";\n\t\tEdit_row_window.linked_category_name = \"MOVIES\";\n\t}", "static public void set_location_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"location name:\", \"rating:\", \"population:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\n\t\t\t\t\" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\t\t\t\t\"c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_places_countries c, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_places_location_country lc \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where lc.country_id=c.id and lc.location_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by c.`GDP (billion $)` desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\" c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\" from curr_places_countries c \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id:\", \"country name:\", \"area (1000 km^2):\", \"GDP per capita (1000 $):\",\n\t\t\t\t\"population (million):\", \"capital:\", \"GDP (billion $):\"};\n\t\tEdit_row_window.label_min_parameter=\"min. population:\";\n\t\tEdit_row_window.linked_category_name = \"COUNTRIES\";\n\t}", "public void populateDetails() {\n\n txtpn_NameHeading.setText(selStudent.getfName() + \" \" + selStudent.getlName());\n\n txtpn_RacesComplete.setText(String.valueOf(dataCur.countNumberRaces(selStudent.getId())));\n txtpn_DaysAbsent.setText(String.valueOf(selStudent.getAttend()));\n txtpn_AgeGroup.setText(String.valueOf(selStudent.getAge()));\n\n }", "private void populateMatrixCursorRow(int row, Cursor cursor) {\n cursor.moveToFirst();\n String name = cursor.getString(QUERY_DISPLAY_NAME_INDEX);\n int type = cursor.getInt(QUERY_LABEL_INDEX);\n String label = \"\";\n if (type == 0) {\n label = cursor.getString(QUERY_CUSTOM_LABEL_INDEX);\n } else {\n label = (String) CommonDataKinds.Phone.getTypeLabel(getResources(), type, null);\n }\n String number = cursor.getString(QUERY_NUMBER_INDEX);\n long photoId = cursor.getLong(QUERY_PHOTO_ID_INDEX);\n int simId = -1;\n if (!cursor.isNull(QUERY_INDICATE_PHONE_SIM_INDEX)) {\n simId = cursor.getInt(QUERY_INDICATE_PHONE_SIM_INDEX);\n }\n Log.i(TAG, \"populateMatrixCursorRow(), name = \" + name + \", label = \" + label\n + \", number = \" + number + \" photoId:\" + photoId + \"simId: \" + simId);\n\t\t\n if(simId > 0){\n photoId = getSimType(simId);\n }\n\t\t\n if (TextUtils.isEmpty(number)) {\n populateMatrixCursorEmpty(this, mMatrixCursor, row, row + 1);\n mPrefNumState[row] = mPref.getString(String.valueOf(row), \"\");\n mPrefMarkState[row] = mPref.getInt(String.valueOf(offset(row)), -1);\n return;\n }\n mMatrixCursor.addRow(new String[] {\n String.valueOf(row + 1), name, label, \n //PhoneNumberUtils.formatNumber(number),\n number,\n String.valueOf(photoId), String.valueOf(simId)\n });\n }", "static public void set_artist_data(){\n\t\t\n\t\tEdit_row_window.attrs = new String[]{\"artist name:\", \"rating:\", \"birth year:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct c.id, c.name, c.num_links, c.year_made \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_music_creations c, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_music_artist_creation ac\" +\n\t\t\t\t\t\t\t\t\t\t\t\" where ac.creation_id=c.id and ac.artist_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by num_links desc \";\n\t\t\n\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct c.id, c.name, c.num_links, c.year_made \" +\n\t\t\t\t\" from curr_music_creations c \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"creation name\", \"rating\", \"release year\"};\n\t\tEdit_row_window.label_min_parameter=\"min. release year:\";\n\t\tEdit_row_window.linked_category_name = \"CREATIONS\";\n\t}", "public abstract long getCursor();", "public void setResultCursor() {\r\n getParameterTypes().set(0, OUT_CURSOR); \r\n setIsCursorOutputProcedure(!hasOutputCursors());\r\n setIsMultipleCursorOutputProcedure(hasOutputCursors());\r\n }", "@Override\n public void onLoadFinished(android.support.v4.content.Loader loader, Cursor data) {\n adapter.swapCursor(data);//replaces the old Cursor with the new one\n }", "private void setupCursorAdapter() {\n // Column data from cursor to bind views from\n String[] uiBindFrom = {ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.PHOTO_URI};\n // View IDs which will have the respective column data inserted\n int[] uiBindTo = {R.id.contact_name };\n// int[] uiBindTo = {R.id.contact_name, R.id.contact_image};\n // Create the simple cursor adapter to use for our list\n // specifying the template to inflate (item_contact),\n adapter = new SimpleCursorAdapter(\n mContext, R.layout.contact_item,\n null, uiBindFrom, uiBindTo,\n 0);\n }", "private void selectDetailWithMouse() {\n int selectedRowIndex=jt.convertRowIndexToModel(jt.getSelectedRow());\n String[] choices={\"Update Row\",\"Delete\",\"Cancel\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"Product ID: \"+jtModel.getValueAt(selectedRowIndex, 0).toString()+\"\\n\"+\"Product Name: \"+jtModel.getValueAt(selectedRowIndex,1), \"View Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n tfPaintId.setText(jtModel.getValueAt(selectedRowIndex,0).toString());\n tfName.setText(jtModel.getValueAt(selectedRowIndex, 1).toString());\n tfPrice.setText(jtModel.getValueAt(selectedRowIndex, 2).toString());\n tfColor.setText(jtModel.getValueAt(selectedRowIndex, 3).toString());\n tfQuantity.setText(jtModel.getValueAt(selectedRowIndex, 8).toString());\n rwCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 4));\n typeCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 6));\n bCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 5));\n switch(jtModel.getValueAt(selectedRowIndex, 7).toString()) {\n case \"High\":\n high.setSelected(true);\n break;\n case \"Mild\":\n mild.setSelected(true);\n break;\n case \"Medium\":\n medium.setSelected(true);\n break;\n }\n }\n else if(option==1)\n {\n jtModel.removeRow(selectedRowIndex);\n JOptionPane.showMessageDialog(rootPane,\" Detail successfully deleted\");\n }\n else \n {\n \n } \n }", "public void editCustomer() {\n int id = this.id;\n PersonInfo personInfo = dbHendler.getCustInfo(id);\n String name = personInfo.getName().toString().trim();\n String no = personInfo.getPhoneNumber().toString().trim();\n float custNo = personInfo.get_rootNo();\n String cUSTnO = String.valueOf(custNo);\n int fees = personInfo.get_fees();\n String fEES = Integer.toString(fees);\n int balance = personInfo.get_balance();\n String bALANCE = Integer.toString(balance);\n String nName = personInfo.get_nName().toString().trim();\n String startdate = personInfo.get_startdate();\n int areaID = personInfo.get_area();\n String area = dbHendler.getAreaName(areaID);\n person_name.setText(name);\n contact_no.setText(no);\n rootNo.setText(cUSTnO);\n monthly_fees.setText(fEES);\n balance_.setText(bALANCE);\n nickName.setText(nName);\n this.startdate.setText(startdate);\n // retrieving the index of element u\n int retval = items.indexOf(area);\n\n spinner.setSelection(retval);\n }", "void setDataFromDBContent() {\n\n }", "@Override\n\tpublic void onBind(Cursor cursor) {\n\t\tthis.tableName = cursor.getString(cursor.getColumnIndex(\"name\"));\n\t}", "private void setValueForEditAddrss() {\n ServiceCaller serviceCaller = new ServiceCaller(context);\n serviceCaller.callGetAllAddressByIdService(addressid, new IAsyncWorkCompletedCallback() {\n @Override\n public void onDone(String workName, boolean isComplete) {\n if (isComplete) {\n if (!workName.trim().equalsIgnoreCase(\"no\") && !workName.equalsIgnoreCase(\"\")) {\n ContentDataAsArray contentDataAsArray = new Gson().fromJson(workName, ContentDataAsArray.class);\n for (Data data : contentDataAsArray.getData()) {\n if (data != null) {\n edt_name.setText(data.getName());\n edt_phone.setText(data.getPhone());\n edt_landmark.setText(data.getLandmark());\n edt_address.setText(data.getAddress());\n edt_city.setText(data.getCity());\n edt_state.setText(data.getState());\n }\n }\n }\n }\n }\n });\n\n }", "private void populateFields() {\n\n if (mReportCursor == null) {\n return;\n }\n\n Cursor c = mReportCursor;\n mValueText.setText(c.getString(c.getColumnIndexOrThrow(ReportPeer.KEY_VALUE)));\n }", "public void insertInfo(editUserSetGet eu);", "public void populate() {\n populate(this.mCurItem);\n }", "@Override\n public void run() {\n Cursor cursor = getFromTableById(DbTables.TABLE_USER, \"id=?\", id_user);\n\n User user = (User) DbUtility.cursorToClass(cursor, User.class.getName());\n\n if (user == null) {\n log.info(\"User is null. Can't load the user\");\n/*finish()?*/\n\n } else {\n /*find his personal data*/\n Integer id_pd = user.getId_pd();\n\n if (id_pd == null) {\n log.info(\"User has no personal data. Can't load the user\");\n\n\n } else {\n cursor = getFromTableById(DbTables.TABLE_PERSONAL_DATA, \"id=?\", id_pd);\n\n log.info(\"Cursor is \" + cursor.getCount());\n\n personalData = (PersonalData) DbUtility.cursorToClass(cursor, PersonalData.class.getName());\n if (personalData == null) {\n log.info(\"User's personal data is null. Can't load the data\");\n\n\n } else {\n Integer id_tp = personalData.getId_tp();\n\n if (id_tp == null) {\n log.info(\"Address is null\");\n } else {\n /*find address*/\n cursor = getFromTableById(DbTables.TABLE_ADDRESS, \"id=?\", id_tp);\n\n address = (Address) DbUtility.cursorToClass(cursor, Address.class.getName());\n }\n\n\n Integer id_wp = personalData.getId_wp();\n\n /*find workplace*/\n if (id_wp == null) {\n log.info(\"Workplace is null\");\n } else {\n cursor = getFromTableById(DbTables.TABLE_WORKPLACE, \"id=?\", id_wp);\n workplace = (Workplace) DbUtility.cursorToClass(cursor, Workplace.class.getName());\n }\n\n\n /*get phone numbers*/\n /*cursor = getFromTableById(\"phone_number\",\"id_pd=?\", id_pd);\n*/\n }\n\n }\n\n cursor.close();\n /*set to text view*/\n handler.post(runSetTextViews);\n }\n\n }", "@Override\n public void onBindViewHolder(SpareAdapter.MyViewHolder holder, Cursor cursor) {\n holder.partno.setText(cursor.getString(cursor.getColumnIndex(SpareModel.partno)));\n holder.issueapproval.setText(\"No\");\n int advancereturn=cursor.getInt(cursor.getColumnIndex(SpareModel.advreturn));\n if(advancereturn==1){\n holder.advancereturn.setText(\"Yes\");\n }\n else {\n holder.advancereturn.setText(\"No\");\n }\n int samepart=cursor.getInt(cursor.getColumnIndex(SpareModel.samepart));\n if(samepart==1){\n holder.samepart.setText(\"Yes\");\n }\n else {\n holder.samepart.setText(\"No\");\n }\n holder.partstatus.setText(cursor.getString(cursor.getColumnIndex(SpareModel.partstatus)));\n }", "public Cursor getCursor()\n {\n// Object localObject1;\n// if (!this.mCursorValid)\n// {\n// this.mCursor = new EsMatrixCursor(PROJECTION);\n// this.mCursorValid = true;\n// if ((this.mLocalProfilesLoaded) && (this.mGaiaIdsAndCirclesLoaded))\n// {\n// localObject1 = new HashSet();\n// HashSet localHashSet = new HashSet();\n// Object localObject3 = this.mLocalProfiles.iterator();\n// while (true)\n// {\n// long l1;\n// if (!((Iterator)localObject3).hasNext())\n// {\n// localObject5 = this.mContacts.iterator();\n// while (true)\n// {\n// if (!((Iterator)localObject5).hasNext())\n// {\n// localObject2 = this.mPublicProfiles.iterator();\n// while (true)\n// {\n// if (!((Iterator)localObject2).hasNext())\n// {\n// localObject3 = this.mPublicProfiles.iterator();\n// while (true)\n// {\n// if (!((Iterator)localObject3).hasNext())\n// {\n// localObject1 = this.mCursor;\n// break;\n// }\n// localObject4 = (PublicProfile)((Iterator)localObject3).next();\n// localObject2 = ((PublicProfile)localObject4).gaiaId;\n// if (((HashSet)localObject1).contains(localObject2))\n// continue;\n// localObject5 = this.mCursor;\n// arrayOfObject = new Object[11];\n// l1 = this.mNextId;\n// this.mNextId = (1L + l1);\n// arrayOfObject[0] = Long.valueOf(l1);\n// arrayOfObject[1] = ((PublicProfile)localObject4).personId;\n// arrayOfObject[2] = null;\n// arrayOfObject[3] = localObject2;\n// arrayOfObject[4] = ((PublicProfile)localObject4).name;\n// arrayOfObject[5] = null;\n// arrayOfObject[6] = null;\n// arrayOfObject[7] = null;\n// arrayOfObject[8] = null;\n// arrayOfObject[9] = null;\n// arrayOfObject[10] = ((PublicProfile)localObject4).snippet;\n// ((EsMatrixCursor)localObject5).addRow(arrayOfObject);\n// }\n// }\n// localObject3 = (PublicProfile)((Iterator)localObject2).next();\n// localObject5 = ((PublicProfile)localObject3).gaiaId;\n// localObject4 = (String)this.mGaiaIdsAndCircles.get(localObject5);\n// if ((((HashSet)localObject1).contains(localObject5)) || (TextUtils.isEmpty((CharSequence)localObject4)))\n// continue;\n// ((HashSet)localObject1).add(localObject5);\n// localObject6 = this.mCursor;\n// Object[] arrayOfObject = new Object[11];\n// l1 = this.mNextId;\n// this.mNextId = (1L + l1);\n// arrayOfObject[0] = Long.valueOf(l1);\n// arrayOfObject[1] = ((PublicProfile)localObject3).personId;\n// arrayOfObject[2] = null;\n// arrayOfObject[3] = localObject5;\n// arrayOfObject[4] = ((PublicProfile)localObject3).name;\n// arrayOfObject[5] = localObject4;\n// arrayOfObject[6] = null;\n// arrayOfObject[7] = null;\n// arrayOfObject[8] = null;\n// arrayOfObject[9] = null;\n// arrayOfObject[10] = null;\n// ((EsMatrixCursor)localObject6).addRow(arrayOfObject);\n// }\n// }\n// localObject3 = (Contact)((Iterator)localObject5).next();\n// if (l1.contains(((Contact)localObject3).name))\n// continue;\n// localObject2 = this.mCursor;\n// localObject4 = new Object[11];\n// l2 = this.mNextId;\n// this.mNextId = (1L + l2);\n// localObject4[0] = Long.valueOf(l2);\n// localObject4[1] = ((Contact)localObject3).personId;\n// localObject4[2] = ((Contact)localObject3).lookupKey;\n// localObject4[3] = null;\n// localObject4[4] = ((Contact)localObject3).name;\n// localObject4[5] = null;\n// localObject4[6] = null;\n// localObject4[7] = ((Contact)localObject3).email;\n// localObject4[8] = ((Contact)localObject3).phoneNumber;\n// localObject4[9] = ((Contact)localObject3).phoneType;\n// localObject4[10] = null;\n// ((EsMatrixCursor)localObject2).addRow(localObject4);\n// }\n// }\n// Object localObject6 = (LocalProfile)((Iterator)localObject3).next();\n// Object localObject2 = ((LocalProfile)localObject6).gaiaId;\n// ((HashSet)localObject1).add(localObject2);\n// l1.add(((LocalProfile)localObject6).name);\n// Object localObject4 = this.mCursor;\n// Object localObject5 = new Object[11];\n// long l2 = this.mNextId;\n// this.mNextId = (1L + l2);\n// localObject5[0] = Long.valueOf(l2);\n// localObject5[1] = ((LocalProfile)localObject6).personId;\n// localObject5[2] = null;\n// localObject5[3] = localObject2;\n// localObject5[4] = ((LocalProfile)localObject6).name;\n// localObject5[5] = ((LocalProfile)localObject6).packedCircleIds;\n// localObject5[6] = ((LocalProfile)localObject6).email;\n// localObject5[7] = null;\n// localObject5[8] = ((LocalProfile)localObject6).phoneNumber;\n// localObject5[9] = ((LocalProfile)localObject6).phoneType;\n// localObject5[10] = null;\n// ((EsMatrixCursor)localObject4).addRow(localObject5);\n// }\n// }\n// localObject1 = this.mCursor;\n// }\n// else\n// {\n// localObject1 = this.mCursor;\n// }\n// return (Cursor)(Cursor)(Cursor)(Cursor)(Cursor)(Cursor)localObject1;\n return null;\n }", "@Override\n public void setCursorName(String unused) throws SQLException {\n throw new SQLException(\"tinySQL does not support cursors.\");\n }", "private void showCursorAdaptView() {\n\t\tCursor cursor = personService.getCursor(0, personService.getCnt());\n\t\tSimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.listview_item, cursor,\n\t\t\t\tnew String[]{\"name\",\"phone\",\"amount\"}, \n\t\t\t\tnew int[]{R.id.name,R.id.phone,R.id.account});\n\t\t\n\t\tlistView.setAdapter(adapter);\n\t}", "public void setDetails(){\n\n TextView moviename = (TextView) findViewById(R.id.moviename);\n TextView moviedate = (TextView) findViewById(R.id.moviedate);\n TextView theatre = (TextView) findViewById(R.id.theatre);\n\n TextView seats = (TextView) findViewById(R.id.seats);\n\n moviename.setText(ticket.movieName);\n moviedate.setText(ticket.getMovieDate());\n theatre.setText(ticket.theatreDetails);\n\n seats.setText(ticket.seats);\n }", "public synchronized void setCursor(Cursor cursor) {\n if (cursor == null) {\n cursor = Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);\n }\n super.setCursor(cursor);\n }", "private void setValues() {\n textViewPrice = findViewById(R.id.textViewPrice);\n textViewStoreName = findViewById(R.id.textViewStoreName);\n textViewLocation = findViewById(R.id.textViewLocation);\n buttonAcceptOrder = findViewById(R.id.buttonAcceptOrder);\n\n order = Parcels.unwrap(getIntent().getParcelableExtra(Order.class.getSimpleName()));\n\n textViewPrice.setText(\"$\" + decimalFormat.format(order.getPrice()));\n textViewStoreName.setText(\"Store: \"+ order.getStore().getName());\n textViewLocation.setText(\"Address: \" + order.getStore().getAddress());\n }", "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n\n TextView name = (TextView) view.findViewById(R.id.label3nazwa);\n TextView date = (TextView) view.findViewById(R.id.label1data);\n TextView type = (TextView) view.findViewById(R.id.label2typ);\n TextView value = (TextView) view.findViewById(R.id.label4wartosc);\n // Extract properties from cursor\n String nazwa = cursor.getString(cursor.getColumnIndexOrThrow(\"nazwa\"));\n String typ_id = cursor.getString(cursor.getColumnIndexOrThrow(\"typ_id\"));\n String data = cursor.getString(cursor.getColumnIndexOrThrow(\"data\"));\n String wartosc = cursor.getString(cursor.getColumnIndexOrThrow(\"wartosc\"));\n // Populate fields with extracted properties\n name.setText(nazwa);\n date.setText(data);\n type.setText(typ_id);\n value.setText(wartosc);\n }", "protected void saveSelection ()\t{\n\t\t//\tAlready disposed\n\t\tif (m_table == null)\n\t\t\treturn;\n\n\t\tm_results.addAll(getSelectedRowKeys());\n\n\t\t//\tSave Settings of detail info screens\n//\t\tsaveSelectionDetail();\n\t\t\n\t}", "@Override\r\n protected void onPostExecute(Cursor result)\r\n {\r\n super.onPostExecute(result);\r\n \r\n result.moveToFirst(); // move to the first item \r\n \r\n // get the column index for each data item\r\n int nameIndex = result.getColumnIndex(\"name\");\r\n int phoneIndex = result.getColumnIndex(\"phone\");\r\n int emailIndex = result.getColumnIndex(\"email\");\r\n int streetIndex = result.getColumnIndex(\"street\");\r\n int cityIndex = result.getColumnIndex(\"city\");\r\n \r\n // fill TextViews with the retrieved data\r\n nameTextView.setText(result.getString(nameIndex));\r\n phoneTextView.setText(result.getString(phoneIndex));\r\n emailTextView.setText(result.getString(emailIndex));\r\n streetTextView.setText(result.getString(streetIndex));\r\n cityTextView.setText(result.getString(cityIndex));\r\n \r\n result.close(); // close the result cursor\r\n databaseConnector.close(); // close database connection\r\n }", "private void setOrganizationFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\n\t\t//\n\t\t// Get Organizations fields\n\t\t//\n\t\tselectedColumn = cur.getColumnIndex(Organization.COMPANY);\n\t\tString company = cur.getString(selectedColumn);\n\n\t\tselectedColumn = cur.getColumnIndex(Organization.TITLE);\n\t\tString title = cur.getString(selectedColumn);\n\n\t\tselectedColumn = cur.getColumnIndex(Organization.TYPE);\n\t\tint orgType = cur.getInt(selectedColumn);\n\n\t\tString customLabel = null;\n\t\tif (orgType == Organization.TYPE_CUSTOM) {\n\t\t\tselectedColumn = cur.getColumnIndex(Organization.LABEL);\n\t\t\tcustomLabel = cur.getString(selectedColumn);\n\t\t}\n\n\t\torgs.add(new OrgData(orgType, title, company, customLabel));\n\t}", "private void clearCursor() {\n \n cursor_ = getDefaultInstance().getCursor();\n }", "public void setPatients(TypedCursor<Patient> cursor) {\n mPatientsByLocation.clear();\n\n // Add all patients from cursor.\n int count = cursor.getCount();\n for (int i = 0; i < count; i++) {\n addPatient(cursor.get(i));\n }\n\n // Produce a sorted list of all the locations that have patients.\n mLocations = new Location[mPatientsByLocation.size()];\n mPatientsByLocation.keySet().toArray(mLocations);\n Arrays.sort(mLocations, new LocationComparator(mLocationTree));\n\n // Sort the patient lists within each location using the default comparator.\n for (List<Patient> patients : mPatientsByLocation.values()) {\n Collections.sort(patients);\n }\n\n new FetchObservationsTask().execute();\n notifyDataSetChanged();\n }", "@Override\n public void onLoadFinished(android.content.Loader<Cursor> loader, Cursor cursor) {\n if (cursor.moveToFirst()) {\n // Get the column indexes\n int productNameColumnIndex = cursor.getColumnIndex(BookEntry.COLUMN_BOOK_PRODUCT_NAME);\n int priceColumnIndex = cursor.getColumnIndex(BookEntry.COLUMN_BOOK_PRICE);\n int quantityColumnIndex = cursor.getColumnIndex(BookEntry.COLUMN_BOOK_QUANTITY);\n int supplierNameColumnIndex = cursor.getColumnIndex(BookEntry.COLUMN_BOOK_SUPPLIER_NAME);\n int supplierPhoneColumnIndex = cursor.getColumnIndex(BookEntry.COLUMN_BOOK_SUPPLIER_PHONE_NUMBER);\n\n // Pull the data from the columns\n String productName = cursor.getString(productNameColumnIndex);\n String price = cursor.getString(priceColumnIndex);\n String quantity = cursor.getString(quantityColumnIndex);\n String supplierName = cursor.getString(supplierNameColumnIndex);\n String supplierPhone = cursor.getString(supplierPhoneColumnIndex);\n\n // Set the data pulled onto the objects\n productNameEditText.setText(productName);\n priceEditText.setText(price);\n quantityTextView.setText(quantity);\n supplierNameEditText.setText(supplierName);\n supplierPhoneEditText.setText(supplierPhone);\n\n // Set the global variable for the quantity of books\n bookQuantity = Integer.parseInt(quantity);\n }\n }", "public Cursor getCursor(){\n return mCursor;\n }", "private void showRecordDetails() {\n String selectQuery = \"SELECT * FROM \" + NConstants.TABLE_NAME + \" WHERE \" + NConstants.C_ID +\" =\\\"\" + recordID+\"\\\"\";\n SQLiteDatabase db = mydb.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n //keep checking in whole db for that record\n if (cursor.moveToFirst()){\n do{\n //get data\n String id = \"\"+ cursor.getInt(cursor.getColumnIndex(NConstants.C_ID));\n String name = \"\"+ cursor.getString(cursor.getColumnIndex(NConstants.C_NAME));\n String image = \"\"+ cursor.getString(cursor.getColumnIndex(NConstants.C_IMAGE));\n String history = \"\"+ cursor.getString(cursor.getColumnIndex(NConstants.C_HISTORY));\n String start = \"\"+ cursor.getString(cursor.getColumnIndex(NConstants.C_START));\n String monk = \"\"+ cursor.getString(cursor.getColumnIndex(NConstants.C_MONK));\n String templelocation = \"\"+ cursor.getString(cursor.getColumnIndex(NConstants.C_LOCATION));\n String phone = \"\"+ cursor.getString(cursor.getColumnIndex(NConstants.C_PHONE));\n String addedTime = \"\"+ cursor.getString(cursor.getColumnIndex(NConstants.C_ADDED_TIMESTAMP));\n String updatedTime = \"\"+ cursor.getString(cursor.getColumnIndex(NConstants.C_UPDATED_TIMESTAMP));\n\n //Assign id to temple id\n templeID = id;\n\n //convert timestamp to dd/mm/yyyy hh:mm aa e.g. 22/06/2020 05.20 AM\n Calendar calendar1 = Calendar.getInstance(Locale.getDefault());\n calendar1.setTimeInMillis(Long.parseLong(addedTime));\n String timeAdded = \"\"+DateFormat.format(\"dd/MM/yyyy hh:mm:aa\",calendar1);\n\n Calendar calendar2 = Calendar.getInstance(Locale.getDefault());\n calendar1.setTimeInMillis(Long.parseLong(updatedTime));\n String timeUpdated = \"\"+DateFormat.format(\"dd/MM/yyyy hh:mm:aa\",calendar2);\n\n //set data\n nameTv.setText(name);\n historyTempleTv.setText(history);\n startTv.setText(start);\n monkNameTv.setText(monk);\n locationTv.setText(templelocation);\n monkTeleTv.setText(phone);\n addedTimeTv.setText(timeAdded);\n updatedTimeTv.setText(timeUpdated);\n //if user doesn't attach image then imageUri will be null, so set a default image in that case\n if (image.equals(\"null\")){\n //no image in record, set default\n profileIv.setImageResource(R.drawable.templenew);\n }else {\n //have image in the record\n profileIv.setImageURI(Uri.parse(image));\n }\n\n }while (cursor.moveToNext());\n }\n //close db connection\n db.close();\n }", "private void setAllFields(){\n Expense retrievedExpense = db.getExpenseWithId(bundle.getInt(EXPENSE_TABLE_COLUMN_ID));\n label.setText(retrievedExpense.getLabel());\n\n // Get adapter from category array\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.expense_category, android.R.layout.simple_spinner_item);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n // Get position where it matches the category name retrieved with the category array\n int spinnerPosition = adapter.getPosition(retrievedExpense.getCategory());\n\n // Set category spinner\n category.setSelection(spinnerPosition);\n\n cost.setText(String.format(\"%.2f \",retrievedExpense.getCost()));\n paid.setChecked(retrievedExpense.isWasItPaid());\n dateDue.setText(retrievedExpense.getDueDate());\n\n }", "@Override\n\tprotected void closeCursor(Cursor cursor) {\n\t\tsuper.closeCursor(cursor);\n\t}", "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {\n if (cursor.moveToFirst()) {\n //Find the columns of item attributes that we're interested in\n int nameColumnIndex = cursor.getColumnIndex(ItemEntry.COLUMN_ITEM_NAME);\n int quantityColumnIndex = cursor.getColumnIndex(ItemEntry.COLUMN_ITEM_QUANTITY);\n int priceColumnIndex = cursor.getColumnIndex(ItemEntry.COLUMN_ITEM_PRICE);\n int supplierColumnIndex = cursor.getColumnIndex(ItemEntry.COLUMN_ITEM_SUPPLIER);\n int phoneColumnIndex = cursor.getColumnIndex(ItemEntry.COLUMN_ITEM_PHONE);\n int emailColumnIndex = cursor.getColumnIndex(ItemEntry.COLUMN_ITEM_EMAIL);\n\n //Extract out the value from the Cursor for the given column index\n String name = cursor.getString(nameColumnIndex);\n final int quantity = cursor.getInt(quantityColumnIndex);\n double price = cursor.getDouble(priceColumnIndex);\n String supplier = cursor.getString(supplierColumnIndex);\n final String phone = cursor.getString(phoneColumnIndex);\n final String email = cursor.getString(emailColumnIndex);\n\n //Update the views on the screen with values from the database\n mNameTextView.setText(name);\n mQuantityTextView.setText(Integer.toString(quantity));\n mPriceTextView.setText(Double.toString(price));\n mSupplierTextView.setText(supplier);\n mPhoneTextView.setText(phone);\n mEmailTextView.setText(email);\n mImageView.setImageURI(Uri.parse(cursor.getString(cursor.getColumnIndex(ItemEntry.COLUMN_ITEM_IMAGE))));\n\n //Decreases quantity by one\n mDecreaseButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n adjustAvailability(mCurrentItemUri, quantity - 1);\n }\n });\n\n //Increases quantity by one\n mIncreaseButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n adjustAvailability(mCurrentItemUri, quantity + 1);\n }\n });\n\n //Intent to call to supplier\n mCallSupplier.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + phone));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n });\n\n //Intent to send an email to supplier\n mEmailOrder.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:\" + email)); // only email apps should handle this\n intent.putExtra(Intent.EXTRA_EMAIL, email);\n intent.putExtra(Intent.EXTRA_SUBJECT, \"New Order\");\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n });\n }\n }", "private void setUserDetailsToView() {\n\t\tdetailDisplay.getFirstName().setValue(currentDetails.getFirstName());\n\t\tdetailDisplay.getLastName().setValue(currentDetails.getLastName());\n\t\tdetailDisplay.getMiddleInitial().setValue(currentDetails.getMiddleInitial());\n\t\tdetailDisplay.getLoginId().setText(currentDetails.getLoginId());\n\t\tdetailDisplay.getTitle().setValue(currentDetails.getTitle());\n\t\tdetailDisplay.getEmailAddress().setValue(currentDetails.getEmailAddress());\n\t\tdetailDisplay.getPhoneNumber().setValue(currentDetails.getPhoneNumber());\n\t\tdetailDisplay.getOrganizationListBox().setValue(currentDetails.getOrganizationId());\n\t\tdetailDisplay.getIsActive().setValue(currentDetails.isActive());\n\t\tif (!currentDetails.isActive()) {\n\t\t\tdetailDisplay.getIsRevoked().setValue(true);\n\t\t} else { // added else to fix default Revoked radio check in Mozilla (User Story 755)\n\t\t\tdetailDisplay.getIsRevoked().setValue(false);\n\t\t}\n\t\t\n\t\tdetailDisplay.setUserLocked(currentDetails.isLocked());\n\t\tif (currentDetails.isExistingUser()) {\n\t\t\tdetailDisplay.setShowRevokedStatus(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\t\t// detailDisplay.setUserIsDeletable(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\t} else {\n\t\t\tdetailDisplay.setShowRevokedStatus(false);\n\t\t\t//detailDisplay.setUserIsDeletable(false);\n\t\t}\n\t\tdetailDisplay.setUserIsActiveEditable(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\tdetailDisplay.setShowUnlockOption(currentDetails.isCurrentUserCanUnlock() && currentDetails.isActive());\n\t\tdetailDisplay.getRole().setValue(currentDetails.getRole());\n\t\tdetailDisplay.getOid().setValue(currentDetails.getOid());\n\t\tdetailDisplay.getOid().setTitle(currentDetails.getOid());\n\t\t//detailDisplay.getRootOid().setValue(currentDetails.getRootOid());\n\t}", "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n TextView txtTitle = (TextView) view.findViewById(R.id.schoolTitle);\n TextView txtSchoolNo = (TextView) view.findViewById(R.id.schoolNo);\n TextView txtMajor = (TextView) view.findViewById(R.id.schoolMajor);\n TextView txtStartDate = (TextView) view.findViewById(R.id.schoolStartDate);\n TextView txtEndDate = (TextView) view.findViewById(R.id.schoolEndDate);\n TextView txtLocation = (TextView) view.findViewById(R.id.schoolLocation);\n TextView txtStatus = (TextView) view.findViewById(R.id.schoolStatus);\n\n // Extract properties from cursor\n String mTitle = cursor.getString(cursor.getColumnIndexOrThrow(\"school_title\"));\n String mSchoolNo = cursor.getString(cursor.getColumnIndexOrThrow(\"school_cardno\"));\n String mMajor = cursor.getString(cursor.getColumnIndexOrThrow(\"school_major\"));\n String mStartDate = cursor.getString(cursor.getColumnIndexOrThrow(\"start_date\"));\n String mEndDate = cursor.getString(cursor.getColumnIndexOrThrow(\"end_date\"));\n String mLocation = cursor.getString(cursor.getColumnIndexOrThrow(\"school_location\"));\n String mStatus = cursor.getString(cursor.getColumnIndexOrThrow(\"status\"));\n // Populate fields with extracted properties\n txtTitle.setText(mTitle);\n txtSchoolNo.setText(mSchoolNo);\n txtMajor.setText(mMajor);\n txtStartDate.setText(mStartDate);\n txtEndDate.setText(mEndDate);\n txtLocation.setText(mLocation);\n txtStatus.setText(mStatus);\n }", "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {\n if (cursor == null || cursor.getCount() < 1) {\n return;\n }\n\n // Proceed with moving to the first row of the cursor and reading data from it\n // (This should be the only row in the cursor)\n if (cursor.moveToFirst()) {\n // Find the columns of pet attributes that we're interested in\n int webTitleColumnIndex = cursor.getColumnIndex( Contract.Entry.COLUMN_WEB_TITLE);\n int webDateColumnIndex = cursor.getColumnIndex(Contract.Entry.COLUMN_WEB_PUBLICATION_DATE);\n int sectionColumnIndex = cursor.getColumnIndex(Contract.Entry.COLUMN_SECTION);\n int AutherColumnIndex = cursor.getColumnIndex(Contract.Entry.COLUMN_AUTHOR);\n\n // Extract out the value from the Cursor for the given column index\n String webTitle = cursor.getString(webTitleColumnIndex);\n int webDate = cursor.getInt(webDateColumnIndex);\n int section = cursor.getInt(sectionColumnIndex);\n String auther = cursor.getString(AutherColumnIndex);\n\n // Update the views on the screen with the values from the database\n titleTextView.setText(webTitle);\n sectionTextView.setText(section);\n authorTextView.setText(auther);\n dateTextView.setText(webDate);\n }\n }", "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n TextView textViewListName = view.findViewById(R.id.textView_list_name);\n TextView textViewListNumber = view.findViewById(R.id.textView_list_Number);\n TextView textViewListDescription = view.findViewById(R.id.textView_sub_name);\n\n // Extract properties from cursor\n int getID = cursor.getInt(cursor.getColumnIndexOrThrow(\"food_calories\"));\n String getName = cursor.getString(cursor.getColumnIndexOrThrow(\"food_name\"));\n String getDescription = cursor.getString(cursor.getColumnIndexOrThrow(\"food_description\"));\n\n // Populate fields with extracted properties\n textViewListName.setText(getName);\n textViewListNumber.setText(String.valueOf(getID));\n textViewListDescription.setText(String.valueOf(getDescription));\n }", "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n TextView subcode = (TextView) view.findViewById(R.id.subjectCodeListView);\n TextView subname = (TextView) view.findViewById(R.id.subjectNameListView);\n // Extract properties from cursor\n String subjectcode = cursor.getString(0);\n String subjectname = cursor.getString(1);\n // Populate fields with extracted properties\n subcode.setText(subjectcode);\n subname.setText(subjectname);\n }", "public void finalizeContents(NavigationContext nc)\n {\n super.finalizeContents(nc);\n \n if(getSchema() == null)\n setSchema(nc.getSqlManager().getSchema(getSchemaName()));\n \n if(getTable() == null && getSchema() != null)\n setTable(getSchema().getTables().getByName(getTableName()));\n \n String pkColName = primaryKeyColumn.getName();\n DialogFields fields = getFields();\n for(int i = 0; i < fields.size(); i++)\n {\n DialogField field = fields.get(i);\n if(pkColName.equals(field.getName()))\n {\n field.getFlags().setFlag(DialogField.Flags.PRIMARY_KEY);\n break;\n }\n }\n }", "public void setWaitCursor(Cursor waitCursor) {\r\n this.waitCursor = waitCursor;\r\n }", "private void paintCursor() {\r\n }" ]
[ "0.65676224", "0.65415794", "0.63413894", "0.6261086", "0.62299895", "0.6145822", "0.59444404", "0.5934996", "0.58672214", "0.58638746", "0.5818234", "0.5806449", "0.5799551", "0.5779997", "0.57772386", "0.57647544", "0.57628363", "0.57464135", "0.57225925", "0.56933653", "0.5663637", "0.5639175", "0.5628339", "0.5604644", "0.5585785", "0.5585014", "0.55711913", "0.556874", "0.5561113", "0.5561035", "0.5556273", "0.55540574", "0.5545159", "0.55409443", "0.55385995", "0.5522246", "0.54891247", "0.5477652", "0.54750776", "0.54744947", "0.5447434", "0.5445753", "0.54424053", "0.5440583", "0.54367685", "0.5431676", "0.5423724", "0.542325", "0.54196715", "0.5415875", "0.5403343", "0.5402592", "0.5402488", "0.53982246", "0.5391671", "0.5384007", "0.53761107", "0.5374441", "0.535987", "0.5354173", "0.53538233", "0.5352508", "0.5351562", "0.5351528", "0.53370225", "0.5324922", "0.5318953", "0.5310269", "0.5308626", "0.53062856", "0.5303319", "0.53017473", "0.5300894", "0.52969", "0.52940273", "0.52937245", "0.52899206", "0.52893853", "0.52794755", "0.5276646", "0.5276385", "0.52761", "0.52757907", "0.5268821", "0.5265583", "0.52595824", "0.52577573", "0.5255573", "0.5227229", "0.5225795", "0.522532", "0.5219724", "0.52147067", "0.5203826", "0.5194688", "0.51937187", "0.51930547", "0.51838917", "0.51820993", "0.5178356" ]
0.6733179
0
User user = (User) request.getSession().getAttribute("user");
@RequestMapping("/updateResume") public void updateResume(@RequestParam("file")MultipartFile fileaot, Resume resume, Social social, Aducational aducational, HttpServletRequest request, HttpServletResponse response) { int uid = (Integer)request.getSession().getAttribute("uid"); List<Social> social3 = (List<Social>) request.getSession().getAttribute("socials"); List<Aducational> aducational3 = (List<Aducational>) request.getSession().getAttribute("aducationals"); System.out.println("resume=" + resume); System.out.println("social=" + social + "aducational=" + aducational); System.out.println(social.getCompany().split(",")[0]); System.out.println(aducational.getSname().split(",")[0]); if (fileaot.getOriginalFilename() != null && !"".equals(fileaot.getOriginalFilename().trim())) { String filename = null; // 设置上传图片的保存路径 String savePath = request.getServletContext().getRealPath("/images/"); File file = new File(savePath); // 判断上传文件的保存目录是否存在 if (!file.exists() && !file.isDirectory()) { System.out.println(savePath + "目录不存在,需要创建"); // 创建目录 file.mkdir(); } DiskFileItemFactory factory = new DiskFileItemFactory(); // 2、创建一个文件上传解析器 ServletFileUpload upload = new ServletFileUpload(factory); upload.setHeaderEncoding("UTF-8"); // 3、判断提交上来的数据是否是上传表单的数据 if (!ServletFileUpload.isMultipartContent(request)) { // 按照传统方式获取数据 return; } try { // 報錯 需要過濾文件名稱 java.io.FileNotFoundException: // G:\测试02\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\FaceUp\WEB-INF\images\C:\Users\Ray\Pictures\2.jpeg // (文件名、目录名或卷标语法不正确。) filename = fileaot.getOriginalFilename(); // System.out.print(filename); if (fileaot.getOriginalFilename().split("\\.")[1].equals("png") || fileaot.getOriginalFilename().split("\\.")[1].equals("jpg") || fileaot.getOriginalFilename().split("\\.")[1].equals("jpeg")) { resume.setRepic("images/" + fileaot.getOriginalFilename()); InputStream in = fileaot.getInputStream();// 獲得上傳的輸入流 FileOutputStream out = new FileOutputStream(savePath + filename);// 指定web-inf目錄下的images文件 request.setAttribute("path", "images" + "/" + filename); int len = 0; byte buffer[] = new byte[1024]; while ((len = in.read(buffer)) > 0)// 每次讀取 { out.write(buffer, 0, len); } in.close(); out.close(); } else { //必须是图片才能上传否则失败 ResponseUtils.outJson(response, "上传必须是图片"); return; } } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } if (social3.size() != 0) { //社会关系更新 social1.setCompany(social.getCompany().split(",")[0]); social1.setContent(social.getContent().split(",")[0]); social1.setSocialtime(social.getSocialtime().split(",")[0]); String s = (social.getSocialid() + "").split(",")[0]; int socialid1 = Integer.valueOf(s); social1.setUid(uid); social1.setSocialid(socialid1); schoolService.updateSocial(social1); if (social3.size() > 1) { social2.setCompany(social.getCompany().split(",")[1]); social2.setContent(social.getContent().split(",")[1]); social2.setSocialtime(social.getSocialtime().split(",")[1]); social2.setUid(uid); String s1 = (social.getSocialid() + "").split(",")[1]; int socialid2 = Integer.valueOf(s); social1.setSocialid(socialid2); schoolService.updateSocial(social2); } if (social3.size() == 1 && social.getCompany().split(",").length > 1) { social2.setCompany(social.getCompany().split(",")[1]); social2.setContent(social.getContent().split(",")[1]); social2.setSocialtime(social.getSocialtime().split(",")[1]); social2.setUid(uid); schoolService.insertSocial(social2); } } else { //插入 social1.setCompany(social.getCompany().split(",")[0]); social1.setContent(social.getContent().split(",")[0]); social1.setSocialtime(social.getSocialtime().split(",")[0]); social1.setUid(uid); schoolService.insertSocial(social1); if (social3.size() == 1 && social.getCompany().split(",")[1].length() > 1) { social2.setCompany(social.getCompany().split(",")[1]); social2.setContent(social.getContent().split(",")[1]); social2.setSocialtime(social.getSocialtime().split(",")[1]); social2.setUid(uid); schoolService.insertSocial(social2); } } if (aducational3.size() != 0) { //学校更新 aducational1.setAdtime(aducational.getAdtime().split(",")[0]); aducational1.setSname(aducational.getSname().split(",")[0]); aducational1.setProfession(aducational.getProfession().split(",")[0]); aducational1.setUid(uid); String s = (aducational.getAducationid() + "").split(",")[0]; int aducationid1 = Integer.valueOf(s); aducational1.setAducationid(aducationid1); schoolService.updateAducation(aducational1); if (aducational3.size() > 1) { aducational2.setAdtime(aducational.getAdtime().split(",")[1]); aducational2.setSname(aducational.getSname().split(",")[1]); aducational2.setProfession(aducational.getProfession().split(",")[1]); aducational2.setUid(uid); String s1 = (aducational.getAducationid() + "").split(",")[1]; int aducationid2 = Integer.valueOf(s1); aducational1.setAducationid(aducationid2); schoolService.updateAducation(aducational2); } if (aducational3.size() == 1 && aducational.getAdtime().split(",").length > 1) { aducational2.setAdtime(aducational.getAdtime().split(",")[1]); aducational2.setSname(aducational.getSname().split(",")[1]); aducational2.setProfession(aducational.getProfession().split(",")[1]); aducational2.setUid(uid); schoolService.insertAducation(aducational2); } } else { //插入 aducational1.setAdtime(aducational.getAdtime().split(",")[0]); aducational1.setSname(aducational.getSname().split(",")[0]); aducational1.setProfession(aducational.getProfession().split(",")[0]); aducational1.setUid(uid); schoolService.insertAducation(aducational1); if (aducational3.size() == 1 && aducational.getAdtime().split(",")[1].length() > 1) { aducational2.setAdtime(aducational.getAdtime().split(",")[1]); aducational2.setSname(aducational.getSname().split(",")[1]); aducational2.setProfession(aducational.getProfession().split(",")[1]); aducational2.setUid(uid); schoolService.insertAducation(aducational2); } } Resume resume1=schoolService.findResumeByUid(uid); if(resume1==null){ //插入简历表 //简历就更新就行 Degree degreeid = schoolService.findDegreeidByDegreeName(resume); if(degreeid==null){ schoolService.insertDegreeName(resume); degreeid = schoolService.findDegreeidByDegreeName(resume); } Profession professid = schoolService.findProfessidByProfessName(resume); if(professid==null){ //先插入专业表再查 schoolService.insertProfessname(resume); professid = schoolService.findProfessidByProfessName(resume); } int sid = schoolService.findSidBySchoolName(resume); resume.setDegreeid(degreeid.getDegreeid()); resume.setSid(sid); resume.setProfessid(professid.getProfessid()); resume.setUid(uid); schoolService.insertUserResume(resume); }else{ //简历就更新就行 Degree degreeid = schoolService.findDegreeidByDegreeName(resume); Profession professid = schoolService.findProfessidByProfessName(resume); if(degreeid==null){ schoolService.insertDegreeName(resume); degreeid = schoolService.findDegreeidByDegreeName(resume); } if(professid==null){ //先插入专业表再查 schoolService.insertProfessname(resume); professid = schoolService.findProfessidByProfessName(resume); } int sid = schoolService.findSidBySchoolName(resume); resume.setDegreeid(degreeid.getDegreeid()); resume.setSid(sid); resume.setProfessid(professid.getProfessid()); resume.setUid(uid); schoolService.updateUserresume(resume); } ResponseUtils.outJson(response, "保存成功"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected User getUser(HttpSession session) {\r\n\t\t// get the user form from the session\r\n\t\treturn (User) session.getAttribute(Constants.USER_KEY);\r\n\t}", "@Override\n\tpublic UtenteBase getSessionUser() {\n\t\tUtenteBase user = (UtenteBase) getThreadLocalRequest().getSession().getAttribute(\"user\");\n\t\treturn user;\n\t}", "public User getSession(){\n\t\treturn this.session;\n\t}", "User getBySession(String session);", "private UserID getCurrentUser()\n\t{\n\t return (UserID)request.getSession().getAttribute(\"userID\");\n\t}", "Session getSession();", "Session getSession();", "public User getUser(){return this.user;}", "public static UserSession getUserSession(HttpServletRequest request) {\n return (UserSession) request.getSession().getAttribute(Constants.USER_SESSION_KEY);\n }", "public PSUserSession getSession();", "UserDetails getCurrentUser();", "public User getLoggedUser();", "Session getCurrentSession();", "Session getCurrentSession();", "public UserSession(User user) {\n\n }", "@RequestMapping(value=\"get_current_user.do\",method= RequestMethod.POST)\r\n @ResponseBody\r\n public ServerResponse<User> getCurrentUser(HttpSession session){\r\n User user = (User) session.getAttribute(Constant.CURRENT_USER);\r\n if(user != null){\r\n return ServerResponse.createBySuccessData(user);\r\n }\r\n return ServerResponse.createByErrorMsg(\"User has not logged in.\");\r\n }", "public Session getSession();", "@RequestMapping(value = \"get_user_info.do\",method = RequestMethod.POST)\r\n @ResponseBody\r\n public ServerResponse<User> getInfo(HttpSession session){\r\n User currentUser = (User)session.getAttribute(Constant.CURRENT_USER);\r\n if(currentUser == null){\r\n return ServerResponse.createByErrorCodeAndMsg(ResponseCode.NEED_LOGIN.getCode(),\"User has not logged in.\");\r\n }\r\n return iUserService.getUserInfoById(currentUser.getId());\r\n }", "User getCurrentLoggedInUser();", "public Session getSession() { return session; }", "LoggedUser getLoggedUser();", "@Override\n\tprotected void doGet (HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {\n\t\t\t\t\n\t\t// Gets attribute from session \n\t\tUser user = (User) req.getSession().getAttribute(\"user\");\n\n\t\t// Using Object Mapper to turn Java Objects into JSON\n\t\tObjectMapper om = new ObjectMapper();\n\t\t\t\t\n\t\t// Proactively checks to see if user is null\n\t\t// If not stringfy the object User as a String jsonRepUser\n\t\tString jsonRepUser = user == null ? \"\" : om.writeValueAsString(user);\n\t\t\n\t\tlog.trace(\"JSON \" + jsonRepUser);\n\t\tSystem.out.println(\"JSON \" + jsonRepUser);\n\t\t\n\t\t// setting content type tells browser what to expect in body of response\n\t\tresp.setContentType(\"application/json\");\n\t\tresp.getWriter().write(jsonRepUser);\n\t\t\n\t\t// Commits response\n\t\tresp.flushBuffer();\t\t\n\t}", "private void setSessionAttribs(HttpServletRequest req, BlogUser user) {\n\t\treq.getSession().setAttribute(\"current.user.id\", user.getId());\n\t\treq.getSession().setAttribute(\"current.user.fn\", user.getFirstName());\n\t\treq.getSession().setAttribute(\"current.user.ln\", user.getLastName());\n\t\treq.getSession().setAttribute(\"current.user.nick\", user.getNick());\n\t}", "public String getUser()\n {\n return _user;\n }", "protected Session getSession() { return session; }", "public Object getObjFromSession(String key)\n\t{\n\t\treturn context.getSession().get(key);\n\t}", "User getPassedUser();", "public User getUser();", "public abstract User getLoggedInUser();", "public User getUser() { return this.user; }", "public Object getUserObject();", "@Override\r\n\tpublic Blog getSession(HttpSession session) {\n\t\treturn (Blog)session.getAttribute(\"blog\");\r\n\t}", "User getUser();", "User getUser();", "String registerUserWithGetCurrentSession(User user);", "public interface SessionAccess\n{\n /**\n * Returns the current session identifier.\n */\n String getSessionId();\n\n /**\n * Retrieves named attribute from the session\n *\n * @param name an attribute name\n * @return an attribute value stored in the session\n */\n Object getAttribute(String name);\n\n /**\n * Stores named attribute into the session\n *\n * @param name an attribute name\n * @param value an attribute value\n */\n void setAttribute(String name, Object value);\n}", "public Object getSession(String attibuteName) {\n return servletRequest.getSession(true).getAttribute(attibuteName);\n }", "public User getUser() {\n\treturn user;\n }", "public Session getSession() {\n return session;\n }", "public String getSession() {\n return this.session;\n }", "public Object getUserObject()\n\t{\n\t\treturn userObject;\n\t}", "public User getUser(){\n\t\treturn user;\n\t}", "public static String getCurrentUser(HttpServletRequest req) {\n HttpSession session = req.getSession();\n Cookie[] cookies = req.getCookies();\n //TODO: Make a decent check\n String user = (String)session.getAttribute(\"user\");\n if(user == null){\n for(Cookie c : cookies) {\n if(c.getName().equals(\"user\")) {\n user = c.getValue();\n session.setAttribute(\"user\", c.getValue());\n break;\n }\n }\n }\n return user;\n }", "public User getLoggedUser(){\n\t\treturn loggedUser;\n\t}", "public static KmUserMstr getUserDetails(HttpServletRequest request)\r\n\t{\r\n\t\tKmUserMstr userBean = new KmUserMstr();\r\n\t\tif(request.getSession().getAttribute(\"USER_INFO\")!=null)\r\n\t\t{\r\n\t\t\tuserBean = (KmUserMstr)request.getSession().getAttribute(\"USER_INFO\");\r\n\t\t}\r\n\t\treturn userBean;\r\n\t}", "public User getUser() {\r\n return user;\r\n }", "public Session getSession()\n {\n return session;\n }", "@Override\n // Update user\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n HttpSession session = request.getSession();\n User user = new User();\n user.setUserGroup(Integer.parseInt(request.getParameter(\"user_group\")));\n //user.setUpdatedBy= session.getAttribute(\"username\");\n String userid = request.getParameter(\"id\");\n user.setId(Integer.parseInt(userid));\n dao.updateUser(user);\n RequestDispatcher view = request.getRequestDispatcher(LIST_USER);\n request.setAttribute(\"users\", dao.getAllUsers());\n view.forward(request, response);\n }", "public Usuario getUser() {\n return user;\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(req.getSession().getAttribute(\"attr\"));\n\t\treq.getSession().setAttribute(\"attr\", req.getParameter(\"session\"));\n\t\tSystem.out.println(req.getSession().getAttribute(\"attr\"));\n\t}", "public User getUser(){\r\n\t\treturn this.user;\r\n\t}", "public static UserAccount getLoginedUser(HttpSession session) {\n UserAccount loginedUser = (UserAccount) session.getAttribute(\"loginedUser\");\n return loginedUser;\n }", "public User getUser(){\n\t\treturn this.user;\n\t}", "@RequestMapping(\"/test\")\n public void test(){\n User user = (User) SecurityUtils.getCurrentUser();\n System.out.println(\"user>>>\"+user.getId());\n }", "@Override\n public User getUser() {\n return user;\n }", "@Override\n public User getUser() {\n return user;\n }", "ApplicationUser getUser();", "@GetMapping(\"/me\")\n public UserDetails me(HttpServletRequest request) {\n return (UserDetails) request.getAttribute(\"user\");\n }", "Session get(int id);", "private Session getSession() {\n\t\treturn factory.getCurrentSession();\n\t}", "public void setSession(Session session) {\n\tthis.session = session; \r\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\r\n PrintWriter writer = response.getWriter();\r\n String userName = request.getParameter(\"userName\");\r\n HttpSession session = request.getSession();\r\n if (userName != \"\" && userName != null){\r\n \r\n session.setAttribute(\"savedUserName\", userName);\r\n }\r\n \r\n writer.println(\" Request parameter has username as \" + userName);\r\n writer.println(\" Session parameter has username \" + (String) session.getAttribute(\"savedUserName\"));\r\n //out.println(\"Hello \" + userName);\r\n \r\n }", "public static User get() {\n User currentUser = (User) getCurrentRequest().getWrappedSession()\n .getAttribute(CURRENT_USER_DETAILS_ATTRIBUTE_KEY);\n if (currentUser == null) {\n return null;\n } else {\n return currentUser;\n }\n }", "public String getUser(){\n \treturn user;\n }", "public static void getSession (HttpServletRequest request, HttpServletResponse response) throws IOException {\n PrintWriter out = response.getWriter();\n ObjectMapper objM = new ObjectMapper();\n HttpSession session = request.getSession();\n Response<LoginData> res = new Response<>();\n LoginData loginData = new LoginData();\n String r;\n\n if (session.isNew()){\n System.out.println(\"Session not started!\");\n res.setMessage(\"Session not started!\");\n loginData.setAdmin(true);\n res.setStatus(403);\n loginData.setName(\"\");\n res.setData(loginData);\n session.invalidate();\n\n } else {\n System.out.println(\"Session started\");\n res.setMessage(\"Session started\");\n res.setStatus(200);\n loginData.setAdmin(true);\n loginData.setName((String) session.getAttribute(\"name\"));\n res.setData(loginData);\n }\n\n r = objM.writeValueAsString(res);\n System.out.println(r);\n out.print(r);\n }", "DefaultSession getSession(String id);", "public User getUser() {\n return user;\n }", "public User getUser() {\n return user;\n }", "public User getUser() {\n return user;\n }", "public User getUser() {\n return user;\n }", "public String getUser()\n {\n return this.user;\n }", "public String getUser()\n {\n return this.user;\n }", "public String getUser()\n {\n return this.user;\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tServletOutputStream out=resp.getOutputStream();\n\t\tHttpSession session=req.getSession();\n\t\tUserInfo info=(UserInfo) session.getAttribute(Constants.SESSION_USER_KEY);\n\t\tif(info==null) {\n\t\t\tresp.sendRedirect(this.getServletContext().getContextPath()+\"/login\");\n\t\t\t\n\t\t}\n\t\tout.println(\"<html>\");\n out.println(\"<head><title>Session example</title></head>\");\n \n out.println(\"<body>\");\n \n out.println(\"<h3>User Info:</h3>\");\n \n out.println(\"<p>User Name:\" + info.getUserName() + \"</p>\");\n out.println(\"<p>Country:\" + info.getCountry() + \"</p>\");\n out.println(\"<p>Post:\" + info.getPost() + \"</p>\");\n \n out.println(\"</body>\");\n out.println(\"<html>\");\n\t}", "void setUser(OSecurityUser user);", "public interface HttpSession {\n String getId();\n void setAttribute(String name, Object value);\n Object getAttribute(String name);\n void removeAttribute(String name);\n void invalidate();\n}", "@RequestMapping(value = \"/sessionPage\",method = RequestMethod.GET)\n public String getSessionPage(HttpSession session, Model model){\n MySessionObject sessionObject = (MySessionObject) session.getAttribute(\"mySession\");\n if (sessionObject==null)\n sessionObject = new MySessionObject();\n session.setAttribute(\"mySession\",sessionObject);\n model.addAttribute(\"mySessionModel\",sessionObject);\n return \"views-training-sessions\";\n }", "private static void getFromCache(Session session) {\n\t\tCacheManager cm=CacheManager.getInstance();\n\t\tCache cache=cm.getCache(\"namanCache\");\n\t\tfor(int i=0;i<2;i++){\n\t\t\tif(cache.get(i)!=null){\n\t\t\t\tSystem.out.println(((UserDetails)cache.get(1).getObjectValue()).getName());\n\t\t\t}else{\n\t\t\t\tUserDetails user1=(UserDetails)session.get(UserDetails.class, i);\n\t\t\t\tSystem.out.println(user1.getName());\n\t\t\t\tcache.put(new Element(i+1,user1));\n\t\t\t}\n\t\t}\n\t\tcm.shutdown();\n\t}", "public ManagedBeanSession() {\r\n this.facesContext = FacesContext.getCurrentInstance();\r\n this.httpServletRequest = (HttpServletRequest) this.facesContext.getExternalContext().getRequest();\r\n if (this.httpServletRequest.getSession().getAttribute(\"sessionUsuario\") != null) {\r\n this.usuario = this.httpServletRequest.getSession().getAttribute(\"sessionUsuario\").toString();\r\n }\r\n }", "public String getUserId(){return userID;}", "public String getSession() {\n return session;\n }", "User getUser(User user) ;", "public User getUserData();", "public CustomEmployee getLoggedUser() {\n return loggedUser;\n }", "public User getUser(String username) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\tUser user=(User)session.get(User.class,username);\n\t\treturn user;\n\t}", "@Override\n\tpublic User getCurrentUser() {\n\t\tint id = sessionService.getCurrentUserId();\n\t\treturn userDao.findById(id);\n\t}", "public Session getSession() {\n return session;\n }", "public User getUser(){\n\t\treturn currentUser;\n\t}", "protected Session getSession() {\n return sessionUtility.getSession();\n }", "public UserData getUser() {\n return user;\n }", "public User getUser() {\r\n\t\treturn user;\r\n\t}", "public User getUser() {\r\n\t\treturn user;\r\n\t}", "public User getUser() {\r\n\t\treturn user;\r\n\t}", "@Override\n\tpublic UserModel getUser(String username) throws Exception {\n\t\treturn (UserModel) sf.getCurrentSession().get(UserModel.class, username);\n\t}", "private User getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String username = auth.getName();\n return userService.findByUsername(username);\n }", "public static Session getSession() {\n return session;\n }", "private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }", "@GetMapping(\"/getSession\")\n\tpublic ResponseEntity<?> getUserSesssion(HttpSession session) {\n\t\t//ProductOwner loggedInOwner = productOwnerService.authenticateProductOwner(\"owner\", \"owner\", session);\n\t\t\n\t\tHashMap<String, String> sessionMap = new HashMap<>();\n\t\tif(session.getAttribute(\"userType\") != null) {\n\t\t\tString userType = (String)session.getAttribute(\"userType\"); \n\t\t\t\n\t\t\tswitch (userType) {\n\t\t\tcase \"ProductOwner\":\n\t\t\t\tsessionMap.put(\"userType\", \"ProductOwner\");\n\t\t\t\tsessionMap.put(\"loginName\", (String) session.getAttribute(\"loginName\"));\n\t\t\t\tbreak;\n\t\n\t\t\tcase \"TeamLeader\":\n\t\t\t\tsessionMap.put(\"userType\", \"TeamLeader\");\n\t\t\t\tsessionMap.put(\"loginName\", (String) session.getAttribute(\"teamLeaderLoginName\"));\n\t\t\t\tbreak;\n\t\n\t\t\tcase \"Developer\":\n\t\t\t\tsessionMap.put(\"userType\", \"Developer\");\n\t\t\t\tsessionMap.put(\"loginName\", (String) session.getAttribute(\"developerLoginName\"));\n\t\t\t\tbreak;\n\t\n\t\t\tcase \"Client\":\n\t\t\t\tsessionMap.put(\"userType\", \"Client\");\n\t\t\t\tsessionMap.put(\"loginName\", (String) session.getAttribute(\"loginName\"));\n\t\t\t\tbreak;\n\t\n\n\t\t\tdefault:\n\t\t\t\tsessionMap.put(\"userType\", \"notLoggedIn\");\n\t\t\t\tsessionMap.put(\"loginName\",\"notLoggedIn\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\treturn new ResponseEntity<HashMap<String, String>>(sessionMap, HttpStatus.OK);\t\n\t\t}\n\t\telse {\n\t\t\tsessionMap.put(\"userType\", \"notLoggedIn\");\n\t\t\tsessionMap.put(\"loginName\",\"notLoggedIn\");\n\t\t\treturn new ResponseEntity<HashMap<String, String>>(sessionMap, HttpStatus.OK);\n\t\t}\n\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n HttpSession session = new HttpSession() {\n public long getCreationTime() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public String getId() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public long getLastAccessedTime() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public ServletContext getServletContext() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void setMaxInactiveInterval(int interval) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public int getMaxInactiveInterval() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public HttpSessionContext getSessionContext() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Object getAttribute(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Object getValue(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Enumeration<String> getAttributeNames() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public String[] getValueNames() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void setAttribute(String name, Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void putValue(String name, Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void removeAttribute(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void removeValue(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void invalidate() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public boolean isNew() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n };\n try {\n String bsubmit = request.getParameter(\"submit\");\n String inUsername = request.getParameter(\"username\");\n String inPassword = request.getParameter(\"password\");\n if (bsubmit != null) {\n UserDAO userDAO = new UserDAO();\n User user = userDAO.findUserByNameAndPassword(inUsername, inPassword);\n if (user == null) {\n out.write(\"<script type='text/javascript'>\\n\");\n out.write(\"alert(' Sorry, invalid username or password\");\n out.write(\".');\\n\");\n out.write(\"setTimeout(function(){window.location.href='login.jsp'},1000);\");\n out.write(\"</script>\\n\");\n } else {\n if (user.getUserName().equals(inUsername) && user.getPassword().equals(inPassword)) {\n session = request.getSession();\n session.setAttribute(\"userId\", String.valueOf(user.getId()));\n session.setAttribute(\"userName\", user.getUserName());\n out.write(\"<script type='text/javascript'>\\n\");\n out.write(\"alert(' Thank you! You are login with \");\n out.write(user.getUserName());\n out.write(\" account.');\\n\");\n out.write(\"setTimeout(function(){window.location.href='index.jsp'},1000);\");\n out.write(\"</script>\\n\");\n }\n }\n\n }\n\n } finally {\n out.close();\n }\n }", "public User getUser (String userName);", "public static Object getObject(HttpSession session, String key) {\n return session.getAttribute(key);\n }" ]
[ "0.7421838", "0.7331702", "0.7316157", "0.71932584", "0.7148684", "0.71363527", "0.71363527", "0.6950816", "0.69420314", "0.6900219", "0.6851415", "0.68376166", "0.6793294", "0.6793294", "0.67172617", "0.67160916", "0.66970915", "0.6681403", "0.666193", "0.6655597", "0.663624", "0.6621562", "0.66201645", "0.6611073", "0.6565273", "0.65334296", "0.6515497", "0.65116745", "0.6504735", "0.6502466", "0.65002203", "0.64958036", "0.6495412", "0.6495412", "0.6467138", "0.64628506", "0.64588606", "0.6428893", "0.6427394", "0.63792074", "0.6376266", "0.6375628", "0.637529", "0.63741004", "0.6367862", "0.63659334", "0.63546926", "0.6350075", "0.63433003", "0.63347304", "0.6325446", "0.63240695", "0.6318647", "0.6314967", "0.63135886", "0.63135886", "0.63090384", "0.6292659", "0.6287198", "0.62777853", "0.6271966", "0.6267859", "0.62657785", "0.6265607", "0.62653804", "0.6260485", "0.62557554", "0.62557554", "0.62557554", "0.62557554", "0.6226038", "0.6226038", "0.6226038", "0.6220352", "0.620204", "0.61972535", "0.618515", "0.614073", "0.6139422", "0.61261195", "0.6118793", "0.6117357", "0.6116183", "0.609943", "0.6092037", "0.60801643", "0.60705733", "0.6052126", "0.6048151", "0.60464704", "0.60412794", "0.60412794", "0.60412794", "0.6036199", "0.6029153", "0.6028895", "0.6028888", "0.60219055", "0.6014335", "0.6010252", "0.6004467" ]
0.0
-1
String[] split = path.split(""); minioClient.getObject()
@Override public void fileDownLoad(HttpServletResponse response, String path) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Object getObj(String path){\n int index = Integer.parseInt(path.substring(6).split(\"\\\\.\")[0]) % maxBufferSize;\n if (buffer[index] != null && buffer[index].getPath().equals(path)) {\n return buffer[index];\n }\n return deserialize(path);\n }", "String[] getParts();", "private void readHttpPath(String line) {\n\t\tString[] parts = line.split(\" \");\n\t\tif (parts.length != 3) {\n\t\t\tchannel.close();\n\t\t} else {\n\t\t\trequest = new Request(parts[1].trim());\n\t\t}\n\t}", "private void readJaggrabPath(String line) {\n\t\tfinal String START = \"JAGGRAB \";\n\t\tif (line.startsWith(START)) {\n\t\t\trequest = new Request(line.substring(START.length()).trim());\n\t\t} else {\n\t\t\tchannel.close();\n\t\t}\n\t\tserve();\n\t}", "public static String[] splitPath(String path){\n if(org.apache.commons.lang3.StringUtils.isEmpty(path)){\n return new String[0];\n }\n\n int first = path.indexOf('.');\n\n if(first >=0 ){\n String firstPart = path.substring(0,first);\n if(path.length() > (first+1)) {\n String restPart = path.substring(first + 1, path.length());\n return new String[]{firstPart,restPart};\n }else{\n return new String[]{firstPart};\n }\n }else{\n return new String[]{path};\n }\n }", "protected static String getObjectPath(URI resource) {\n String objectPath = resource.getPath().isEmpty() ? \"/\" : resource.getPath();\n return String.format(\"%s%s\", resource.getAuthority(),\n objectPath.charAt(0) == '/' ? objectPath : \"/\" + objectPath);\n }", "public abstract List<T> readObj(String path);", "public Object getPart(String partName);", "public static void main(String[] args){\n\n String fileName = \"abc.jpeg\";\n String[] parts = fileName.split(\"\\\\.\");\n\n System.out.println(parts[1]);\n\n\n\n }", "private String getFilePath(String sHTTPRequest) {\n return sHTTPRequest.replaceFirst(\"/\", \"\");\n\n }", "private ArrayList<PathItem> parsePath(String path) {\n\t\tArrayList<PathItem> pathItems = new ArrayList<PathItem>();\n\t\tString[] items = path.split(\"~\\\\\\\\\");\n\t\tString[] item;\n\t\tfor (int i = 0; i < items.length; i++) {\n\t\t\titem = items[i].split(\"~\");\n\t\t\tif (item.length >= 2)\n\t\t\t\tpathItems.add(new PathItem(item[0], item[1]));\n\t\t}\n\t\treturn pathItems;\n\t}", "private String extractFileName(Part part) {\n\t String contentDisp = part.getHeader(\"content-disposition\");\r\n\t String[] items = contentDisp.split(\";\");\r\n\t for (String s : items) {\r\n\t if (s.trim().startsWith(\"filename\")) {\r\n\t // C:\\file1.zip\r\n\t // C:\\Note\\file2.zip\r\n\t String clientFileName = s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\r\n\t clientFileName = clientFileName.replace(\"\\\\\", \"/\");\r\n\t int i = clientFileName.lastIndexOf('/');\r\n\t // file1.zip\r\n\t // file2.zip\r\n\t return clientFileName.substring(i + 1);\r\n\t }\r\n\t }\r\n\t return null;\r\n\t }", "private String getJsonPath(final String path) {\n final int dotPos = path.indexOf('.');\n final String jsonPath = path.substring(dotPos + 1);\n return jsonPath;\n }", "String objectRead();", "@Test\n public void an_array_path_followed_by_object_followed_by_array_created_and_value_set() {\n\n String path = \"$.shipment.extensionFields.drivers[0].extensions.homePhones[1]\";\n JsonPath compiledPath = JsonPath.compile(path);\n Object output = compiledPath.set(pathConfiguration.jsonProvider().parse(inputObject),\n 99999,pathConfiguration);\n Integer result = parse(output).read(path);\n assertThat(result).isEqualTo(99999);\n }", "private String[] splitResource(String resource, String delimiter)\r\n {\r\n String[] retval = new String[2];\r\n String head, tail;\r\n\r\n int delLen = (delimiter.equals(TIGHT_BINDING)) ? TIGHT_BINDING_LEN :\r\n LOOSE_BINDING_LEN ;\r\n // find the first delimiter\r\n int index = resource.indexOf(delimiter);\r\n\r\n if (index != -1)\r\n {\r\n // split into head and tail\r\n head = resource.substring(0, index);\r\n tail = resource.substring(index+delLen);\r\n }\r\n else\r\n {\r\n // there is no tail, only a head\r\n head = resource;\r\n tail = null;\r\n }\r\n\r\n retval[0] = head;\r\n retval[1] = tail;\r\n\r\n return retval;\r\n }", "@Test\r\n public void testToPath() {\r\n System.out.println(\"toPath\");\r\n String id = \"c_58__47_Dojo_32_Workshop_47_test_46_txt\";\r\n String expResult = \"c:/Dojo Workshop/test.txt\";\r\n String result = FileRestHelper.toPath(id);\r\n assertEquals(expResult, result);\r\n }", "private List<String> getStringList(JsonSimple json, Object... path) {\r\n List<String> list = json.getStringList(path);\r\n if (list == null) {\r\n list = Collections.emptyList();\r\n }\r\n return list;\r\n }", "public abstract List<String> path();", "private static StringPair getPath(BufferedReader in) throws IOException {\n StringPair sp = null;\n String line = in.readLine();\n WVM.out.println(\"\\n + + + request is: \" + line);\n String path = \"\";\n String wid = null;\n // extract class from GET line\n if (line.startsWith(\"GET /\")) {\n line = line.substring(5, line.length()-1).trim();\n int index = line.indexOf(\".class\");\n if (index != -1) {\n path = line.substring(0, index).replace('/', '.');\n } else {\n path = new StringTokenizer(line, \" \").nextToken();\n }\n if (WVM.DEBUG(3)) WVM.out.println(\"path is: \" + path);\n //see if the worklet id is supplied\n int i = line.indexOf(\"?\");\n if(i!= -1 ){\n\t //have worklet id\n\t wid = line.substring(i+1,line.length()-8);\t \n }\n } else {\n throw new IOException(\"Malformed Header in Class request\");\n }\n\n // eat the rest of header\n do {\n line = in.readLine();\n // WVM.out.println (\" + + + \" + line);\n } while ((line.length() != 0) && (line.charAt(0) != '\\r') && (line.charAt(0) != '\\n'));\n if (path.length() != 0) {\n\tsp = new StringPair(path,wid);\n // WVM.out.println(\"Edited: gskc, 19Feb01 --- returning path: \" + path);\n return sp;\n } else {\n throw new IOException(\"Malformed Header\");\n }\n }", "@Override\n\tpublic Object getObjectNameByPath(String path) throws Exception {\n\t\treturn null;\n\t}", "public static String[] slashPartition(String str) {\n return partition(str, '/');\n }", "List<DownloadInfo> mo54404a(String str);", "private Object deserializeObjectFromRequest(String mimeInputFormat,\n\t\tIWebSerialDeserial serialDeserial)\n\t{\n\t\tWebRequest servletRequest = AbstractRestResource.getCurrentWebRequest();\n\n\t\treturn serialDeserial.requestToObject(servletRequest, parameterClass, mimeInputFormat);\n\t}", "private List<String> getStringList(JsonSimple json, Object... path) {\n\t\tList<String> list = json.getStringList(path);\n\t\tif (list == null) {\n\t\t\tlist = Collections.emptyList();\n\t\t}\n\t\treturn list;\n\t}", "private String extractFileName(Part part) {\n\nString contentDisp = part.getHeader(\"content-disposition\");\n\nString[] items = contentDisp.split(\";\");\n\nfor (String s : items) {\n\nif (s.trim().startsWith(\"filename\")) {\n\nreturn s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\n\n}\n\n}\n\nreturn \"\";\n\n}", "List<DownloadInfo> mo54430c(String str);", "public void testExtractDetailsUsingPath() {\n\t\t\n\t\tString href = when().\n\t\t\t\t\t\tget(\"http://jsonplaceholder.typicode.com/photos/1\").\n\t\t\t\t\t then().\n\t\t\t\t\t contentType(ContentType.JSON).\n\t\t\t\t\t body(\"albumId\", equalTo(1)).\n\t\t\t\t\t extract().\n\t\t\t\t\t path(\"url\");\n\t\tSystem.out.println(\"href : \" + href);\n\t\t\n\t\twhen().get(href).then().statusCode(200);\n\t}", "@RequestMapping(\"test\")\n public JSONResult test(){ int i =1;\n// String a = String.valueOf(i);\n// System.out.println(Md5Utils.hash(\"qjhemail\"));\n// System.out.println(StringUtils.getFileName(\"c:/a/b/c/tts.txt\", \"/\"));\n//\n// System.out.println(StringUtils.getSeparatorBefore(\"abc.pic\", \".\"));\n// System.out.println(StringUtils.getSeparatorAfter(\"abc.pic\", \".\"));\n//\n\n return JSONResult.ok();\n }", "@Test\n public void test003() {\n String name = response.extract().path(\"data[4].name\");\n\n\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.printf(\"The 5th sore name is: %s%n\", name);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "public static String getFirstChunk( String line )\r\n\t{\r\n\t\tif( line.indexOf(\"@\") == 0 )\r\n\t\t\treturn \"APLUS\";\r\n\t\tif( line.indexOf(\"@\") == -1 )\r\n\t\t\treturn \"aplus\";\r\n\t\treturn line.substring(0,line.indexOf(\"@\"));\r\n\t}", "protected CIMObjectPath getObjectPathfromCIMArgument(List<Object> args, Map<String, Object> keyMap) {\n Object[] arguments = (Object[]) args.get(0);\n Boolean using80Delimiters = (Boolean) keyMap.get(Constants.USING_SMIS80_DELIMITERS);\n if (null != using80Delimiters && using80Delimiters) {\n return (CIMObjectPath) Util.normalizedWriteArgs(keyMap, arguments)[0];\n }\n return (CIMObjectPath) arguments[0];\n }", "public MavenDataObject createMavenDataObject(String line) {\n\n System.out.println(\"Processing Line: \" + line);\n\n line = line.substring(1);//Remove first slash.\n\n String[] pathLayouts = line.split(\"/\");\n String jarName = pathLayouts[pathLayouts.length - 1];\n String version = pathLayouts[pathLayouts.length - 2];\n String artifactID = pathLayouts[pathLayouts.length - 3];\n\n String groupID = \"\";\n for (int i = 0; i < pathLayouts.length - 3; i++) {\n groupID += pathLayouts[i] + \".\";\n }\n\n groupID = groupID.substring(0, groupID.length() - 1);\n\n System.out.println(\"jarName: \" + jarName);\n System.out.println(\"version: \" + version);\n System.out.println(\"artifactID: \" + artifactID);\n System.out.println(\"groupID: \" + groupID);\n\n return new MavenDataObject(groupID, artifactID, jarName, version, new ArrayList());\n }", "private static Object deserialize(String path) {\n Object e = null;\n try {\n discAccesses++;\n FileInputStream fileIn = new FileInputStream(path);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n e = in.readObject();\n in.close();\n fileIn.close();\n } catch (IOException | ClassNotFoundException i) {\n throw new Error(\"No serialized object for path \" + path);\n }\n return e;\n }", "public static void main(String[] args) throws JsonProcessingException {\n\t\tString txt= \"5C:A8:6A:ED:65:2D,B4:82:C5:00:22:DB,B4:82:C5:51:C2:30,\\\"UREC\\\",2097154,4,14,-59,6,2,Deauth by Inactivity or Many Retries,1517391829738\";\n\t\tString[] spliturl = txt.split(\",\");\n\t\tSystem.out.println(spliturl[0]);\n\t\tSystem.out.println(spliturl[4]);\n\t\tSystem.out.println(spliturl[5]);\n\t}", "Path getRequestListFilePath();", "public static Object[] parse(final String path) {\r\n\t\tfinal boolean allowWildcards = false;\r\n\t\treturn parse(path, allowWildcards);\r\n\t}", "@Test\r\n public void testToId() {\r\n System.out.println(\"toId\");\r\n String path = \"c:/Dojo Workshop\\\\test.txt\";\r\n String expResult = \"c_58__47_Dojo_32_Workshop_47_test_46_txt\";\r\n String result = FileRestHelper.toId(path);\r\n assertEquals(expResult, result);\r\n }", "private void parseUrlsPaths(String localPath) {\n String[] pathArray = localPath.split(\"/\");\n // Geometry_305_v6_fb_coupe_frontlightbulb1_a001.b3d.dflr\n this.fileName = pathArray[pathArray.length - 1];\n // /cars/mustang2015/geometry/\n this.subDirectory = localPath.replace(\"/\" + this.fileName, \"\");\n }", "public String[] listObjectNames(String path);", "List<DownloadInfo> mo54423b(String str);", "protected CIMObjectPath getObjectPathfromCIMArgument(List<Object> args) {\n Object[] arguments = (Object[]) args.get(0);\n return (CIMObjectPath) arguments[0];\n }", "public static List<String> getPathParameters(String pathInfo) {\n List<String> pathParams = new ArrayList<>();\n if (pathInfo == null) {\n return pathParams;\n }\n String[] pathParts = pathInfo.split(\"/\");\n for (String pathSegement : pathParts) {\n if (pathSegement.startsWith(\"{\") && pathSegement.endsWith(\"}\")) {\n pathParams.add(pathSegement.substring(1, pathSegement.length() - 1));\n }\n }\n return pathParams;\n }", "@Test\n public void test_slash_string_returns_null()\n {\n InputStream inputStream = ResourceUtil.getInputStream(\"/\");\n assertNull(\"Should be null\", inputStream);\n }", "public String path(String path1, String path2);", "public Path getPath(String path,String nombreArchivo);", "public List<String> getImagesFromModel(String path) {\n List<String> res = (Arrays.asList(path.split(\",\")));\n res.forEach(x -> x += uploadpath);\n return res;\n }", "@Test\n\tpublic void testJsonPath() {\n\tString responseAsString=\n\t\twhen().\n\t\t\tget(\"http://jsonplaceholder.typicode.com/photos\").\n\t\tthen().\n\t\textract().asString();\n\t\t\n\tList<Integer> albumIds = from(responseAsString).get(\"id\");\n\tSystem.out.println(albumIds.size());\n\t}", "private String toCompletePath(String fullRequest) {\n \n///Parse request for file path\nString requestLine[] = new String[] {\" \", \" \", \" \"};\n requestLine = fullRequest.split(\" \");\nString partialPath = requestLine[1];\n \n//If requested path is just \"/\" or \"\", don't return any path\n if(partialPath.length() <= 1) {\n noFileRequested = true;\n return null;\n }\n \nString completePath;\n//If using my Windows machine, the path is different than the school Linux machines\nif (Windows)\n completePath = \"C:/Users/Michelle/eclipse-workspace/P1\" + partialPath;\nelse\n completePath = \".\" + partialPath;\n \n return completePath;\n}", "public Path resolve(String part) {\n return Paths.get(part);\n }", "static String[] getChunksOfTemplate(String template) {\n int p = template.indexOf(DELIM);\n if (p >= 0) {\n String[] result = new String[2];\n result[0] = template.substring(0, p);\n result[1] = template.substring(p + DELIM.length());\n return result;\n } else {\n String[] result = new String[1];\n result[0] = template;\n return result;\n }\n\n }", "List<DownloadInfo> mo54434d(String str);", "public String getUserPart(String key);", "private String extractFileName(Part part) {\n\t\tString contentDisp = part.getHeader(\"content-disposition\");\n\t\tString[] items = contentDisp.split(\";\");\n\t\tfor (String s : items) {\n\t\t\tif (s.trim().startsWith(\"filename\")) {\n\t\t\t\t// C:\\file1.zip\n\t\t\t\t// C:\\Note\\file2.zip\n\t\t\t\tString clientFileName = s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\n\t\t\t\tclientFileName = clientFileName.replace(\"\\\\\", \"/\");\n\t\t\t\tint i = clientFileName.lastIndexOf('/');\n\t\t\t\t// file1.zip\n\t\t\t\t// file2.zip\n\t\t\t\treturn clientFileName.substring(i + 1);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private String extractFileName(Part part) {\n\t\tString contentDisp = part.getHeader(\"content-disposition\");\n\t\tString[] items = contentDisp.split(\";\");\n\t\tfor (String s : items) {\n\t\t\tif (s.trim().startsWith(\"filename\")) {\n\t\t\t\t// C:\\file1.zip\n\t\t\t\t// C:\\Note\\file2.zip\n\t\t\t\tString clientFileName = s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\n\t\t\t\tclientFileName = clientFileName.replace(\"\\\\\", \"/\");\n\t\t\t\tint i = clientFileName.lastIndexOf('/');\n\t\t\t\t// file1.zip\n\t\t\t\t// file2.zip\n\t\t\t\treturn clientFileName.substring(i + 1);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "abstract String getFileRoute() throws IOException;", "private String getJsonDocumentName(final String path) {\n final int dotPos = path.indexOf('.');\n final String jsonName = path.substring(0, dotPos);\n return jsonName;\n }", "private Object getFile(String path) throws Exception {\t\t\t\n\t\t \n\t\t FileInputStream fileIn = new FileInputStream(path);\n ObjectInputStream objectIn = new ObjectInputStream(fileIn);\n\n Object obj = objectIn.readObject();\n objectIn.close();\n \n return obj;\t\t\n\t}", "private void sendGetObjectsResponse(final HttpTransaction tx, final Console console, final String path) throws IOException\r\n {\r\n String[] params = path.split(\"/\");\r\n if (params.length == 1)\r\n { // With one parameter we call getObjects(className)\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(console.getObjects(params[0])));\r\n }\r\n else if (params.length == 2)\r\n { // With two parameters we call getObjects(packageName, className)\r\n //System.out.println(\"params = \" + params[0] + \", \" + params[1]);\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(console.getObjects(params[0], params[1])));\r\n }\r\n else if (params.length == 3)\r\n { // TODO With three parameters we call getObjects(packageName, className, agent)\r\n //System.out.println(\"params = \" + params[0] + \", \" + params[1] + \", \" + params[2]);\r\n tx.sendResponse(HTTP_NOT_FOUND, \"text/plain\", \"404 Too many parameters for objects GET request.\");\r\n } else {\r\n tx.sendResponse(HTTP_NOT_FOUND, \"text/plain\", \"404 Too many parameters for objects GET request.\");\r\n }\r\n }", "@Test public void testObjectsList() throws Exception {\n \t\tdeleteAll();\n \t\tStorage ss=makeServicesStorage(base+\"/cspace-services/\");\n \t\tString p1=ss.autocreateJSON(\"collection-object/\",getJSON(\"obj3.json\"));\n \t\tString p2=ss.autocreateJSON(\"collection-object/\",getJSON(\"obj4.json\"));\n \t\tString p3=ss.autocreateJSON(\"collection-object/\",getJSON(\"obj4.json\"));\n \t\tString[] names=ss.getPaths(\"collection-object\",null);\n \t\tassertArrayContainsString(names,p1);\n \t\tassertArrayContainsString(names,p2);\n \t\tassertArrayContainsString(names,p3);\n \t}", "String getFilepath();", "public static void main(String[] args) throws IOException {\n OSS client = new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);\n\n\n// String objectName = \"community/c14deaec-7827-4fb1-bac9-eeba7a5ba59b.png\";\n//\n//// 创建OSSClient实例。\n// OSSClient ossClient = new OSSClient(endpoint, accessKeyId, accessKeySecret);\n//\n//// 删除文件。\n// ossClient.deleteObject(bucketName, objectName);\n//\n//// 关闭OSSClient。\n// ossClient.shutdown();\n\n try {\n /*\n * Batch put objects into the bucket\n */\n final String content = \"Thank you for using Aliyun Object Storage Service\";\n final String keyPrefix = \"MyObjectKey\";\n String objects = \"community/01378488-592b-443c-984f-4cbc12c8cd82.png\" +\n \",community/01394c05-3bc8-41ee-b47f-2caddfbf27f2.png\" +\n \",community/0139e96b-97a7-4270-9bad-3cc25c335184_1080x1430.png\" +\n \",community/013a938c-6486-4abb-bf96-aa5d066472cc.png\" +\n \",community/013b2de1-ef57-4204-92f8-9a2fdf1ab1c0.png\" +\n \",community/013cd7e5-ab1f-4058-a2b6-4e33c283c9b3.png\" +\n \",community/01426305-b2ef-430c-9cfe-8daf4e382b72.png\" +\n \",community/01426539-5fda-44b1-8aca-eb2c744b67ee_1080x1923.png\" +\n \",community/014c400c-e516-4c9e-adf8-a26b63729db5.png\" +\n \",community/014d3126-4b61-499e-b2a4-060d5c565ee3.png\" +\n \",community/014d4e83-9c56-4470-ae54-57387896139b.png\" +\n \",community/02038488-3867-475f-9c05-6e552ca4da70_1080x1439.png\" +\n \",community/0205bd60-49bf-412f-b04a-6c8c00b19f6c.png\" +\n \",community/02084b3b-7acb-4be0-a40c-a1245e805c85_1080x1448.png\" +\n \",community/02099953-c48c-4f22-ab5c-87449d449502_348x464.png\" +\n \",community/020d48bd-9745-4087-8ab5-7298f57a1f30_1080x1563.png\" +\n \",community/0212046c-3167-42a9-850c-788eed176526.png\" +\n \",community/0213caf3-0866-426e-8fea-797c8d533451.png\" +\n \",community/021480ff-4dcd-4b56-95e3-46a094baa742.png\" +\n \",community/01f015d8-1358-48da-bb37-07e270a27667.png\" +\n \",community/01f0a3ca-f0fa-41e5-8126-e0c5e4346d8e.png\" +\n \",community/01f0ed1c-9472-4002-b896-216c95dc214b_720x950.png\" +\n \",community/01f143c2-f8ba-4ee3-8fec-de9b0c106fd2.png\" +\n \",community/01f15f7d-6bee-41e1-9bc9-85409087f5bf.png\" +\n \",community/01f1742c-20b6-4f85-9847-2a4d85801165.png\" +\n \",community/01f32f3f-b0ce-4d9d-aef8-a75be07b655a.png\" +\n \",community/01f42d98-1994-4e3f-b025-d94a849a33a8.png\" +\n \",community/01f7c1e4-5b80-400d-8dd7-0df9a1c88601.png\" +\n \",community/01f8cd29-f527-43c6-a438-d3751663ec37.png\" +\n \",community/01fa914a-66cc-471e-af15-2bd10d34a45e_348x464.png\" +\n \",community/01fad182-2290-4b47-ab3c-ee10dff2fb86.png\" +\n \",community/0201c344-c893-4da6-a564-b4ef70ae38d6_1080x1749.png\" +\n \",community/01d7e8e6-0336-4d18-ae98-2cd2f407c46f.png\" +\n \",community/01d7ecfb-9feb-4db6-8d55-4c87cb050b4d.png\" +\n \",community/01d86f24-8589-4e60-b797-6b4b2f4330b5.png\" +\n \",community/01d96558-4bb2-4763-a7c4-ca2910f73ab1.png\" +\n \",community/01d9f15d-3555-4831-bc18-95cbe4634873_1440x2019.png\" +\n \",community/01daaccc-a3b5-4ef9-a5ce-57dfa803006b_315x420.png\" +\n \",community/01dbcbb8-dd5e-4911-8094-467ae90cf414.png\" +\n \",community/01de101b-e7f0-4d44-8a0c-6b6eb8e86e21.png\" +\n \",community/01e82423-a17b-439b-a804-5e6f898906b2.png\" +\n \",community/01be382c-4447-416c-8905-449a5d2f66a8.png\" +\n \",community/01bfb933-afd3-4529-944d-2e432731b6f8.png\" +\n \",community/01c07f89-8fab-481b-a497-ff5ea1013f5c_1080x1922.png\" +\n \",community/01c965cb-d991-4424-bdec-89634240dd51.png\" +\n \",community/01ca2e7c-f4be-40d7-a05a-7e20a02c14ac.png\" +\n \",community/01ca99ef-c34e-4a8f-a823-82c70eb96f81_720x1025.png\" +\n \",community/01d22b53-b451-4cbe-8555-0c6ea02eb255.png\" +\n \",community/01d40f28-dfdb-4972-869b-75e154817ba4.png\" +\n \",community/01d4d7a4-ffeb-4743-90b5-a4a7d5249d27_1080x1439.png\" +\n \",community/01a8cca4-eb88-4660-9404-ebb7f16d82a6_315x420.png\" +\n \",community/01aaa39a-a562-43de-97cd-d48c7fd28fdd.png\" +\n \",community/01b16c8c-14f3-4357-8c30-2638565141c9.png\" +\n \",community/01b1bc11-09fd-49b0-96ed-ed47e743faf0.png\" +\n \",community/01b35a88-e0c6-4221-8aa5-32d96069fbc3_348x464.png\" +\n \",community/01b634d1-8199-4915-aa47-947a0af5466b.png\" +\n \",community/01b841df-1bb4-44b3-af79-142c4834fd46.png\" +\n \",community/01b9660f-b57f-415c-a619-f10bd76cd860.png\" +\n \",community/01ba2a69-db78-4b4b-ad6b-31a2e715182f.png\" +\n \",community/0190b32e-60be-4a49-8cf7-e0d9ce039997.png\" +\n \",community/0191665a-67c0-4ed8-bf01-7b26f5ba1248_1080x1439.png\" +\n \",community/01972534-37fa-433e-ac22-bcceadd2a3fe.png\" +\n \",community/01981657-5340-4cf9-8c90-176c5d465173_348x464.png\" +\n \",community/019f7fdf-f8b0-4086-b2cc-9cd7d7e199b1.png\" +\n \",community/01a0bcc9-d351-4200-be1a-e9c8f322deb1.png\" +\n \",community/01a2a06d-0b31-419d-8d31-66d6e842b806.png\" +\n \",community/017dfb30-469e-401f-becb-e23c647059f1_315x420.png\" +\n \",community/01834f9a-0596-47e1-80b3-ccfd19d12127.png\" +\n \",community/01856873-80bf-4780-9ead-9968aedd8e15_1080x1563.png\" +\n \",community/0186d337-215d-478f-a657-4c0a04f6d028.png\" +\n \",community/0187db31-4c8f-4689-9f6e-500b5f39f6c3.png\" +\n \",community/018c8d90-35a3-4010-9ecc-c943e72a0745_1080x1657.png\" +\n \",community/018cb9ce-756a-4c23-8a7c-aeb85e393ec8.png\" +\n \",community/016a0bfc-3abf-46e9-b4ee-4b6c73562524.png\" +\n \",community/016be936-bca6-4827-bb7e-84b0c496b7e7_1080x1426.png\" +\n \",community/016c40f3-fb9b-49b7-ad93-bc84f4875d6c.png\" +\n \",community/016c51c6-e3dd-4903-962a-8f24c33e6547_348x464.png\" +\n \",community/016e417e-760b-4e3e-bc9b-7db6fe77d5a2_315x420.png\" +\n \",community/01731219-8bdf-4a10-9982-fe347622d877.png\" +\n \",community/0173e603-5a5f-4c2d-a3e7-f92c1b2fa50c.png\" +\n \",community/0177c179-402f-4ff7-8032-e6e4ae21431f.png\" +\n \",community/01785d9d-d5cc-4e38-b990-395ef92c13c0.png\" +\n \",community/0179b793-b92a-4926-ab88-04dd4f434b15.png\" +\n \",community/017afe9f-02d2-4004-ad9e-8afed066e99c.png\" +\n \",community/017b74df-8b8a-440a-9938-9c8b7e43bb8c_348x464.png\" +\n \",community/017d0cbb-e918-466b-a1e7-633d54c7d5b2.png\" +\n \",community/014e9713-3027-4040-b07a-9d6827e527c1_1080x1439.png\" +\n \",community/014eaafd-0702-47ff-87a1-c3cac9a1769a.png\" +\n \",community/0152e9e6-fcde-404e-9fb6-d75a5b265008.png\" +\n \",community/0154b399-ca4d-4c36-98d3-22aed2e28ed9.png\" +\n \",community/0154f316-3833-4c4b-a406-8f54c01ed121.png\" +\n \",community/01559349-89d4-4010-84da-9f3892f21b27.png\" +\n \",community/01575492-8b54-4729-9be5-ade62bb6be54.png\" +\n \",community/0157e449-b041-404c-b05c-442174c33ca1.png\" +\n \",community/015843a0-d566-42b4-b72c-b51901b4da65.png\" +\n \",community/015a1183-c580-4241-8e03-08b6b7e36703.png\" +\n \",community/015addf7-d725-4a32-bc14-12f6526bf1f6.png\" +\n \",community/015b6646-1359-4ca1-a5a1-914db80285f4.png\" +\n \",community/01641ba3-504f-4dfe-aa33-3e4a689eaa0b.png\" +\n \",community/0166b12a-9e1c-4b4e-a527-8f473faddb43_1080x1774.png\" +\n \",community/0167ec5d-b7c9-4d06-a2c8-819682546723_1080x1563.png\";\n String[] arr = objects.split(\",\");\n List<String> keys = Arrays.asList(arr);\n// for (int i = 0; i < 100; i++) {\n// String key = keyPrefix + i;\n// InputStream instream = new ByteArrayInputStream(content.getBytes());\n// client.putObject(bucketName, key, instream);\n// System.out.println(\"Succeed to put object \" + key);\n// keys.add(key);\n// }\n System.out.println();\n\n /*\n * Delete all objects uploaded recently under the bucket\n */\n System.out.println(\"\\nDeleting all objects:\");\n DeleteObjectsResult deleteObjectsResult = client.deleteObjects(\n new DeleteObjectsRequest(bucketName).withKeys(keys));\n List<String> deletedObjects = deleteObjectsResult.getDeletedObjects();\n for (String object : deletedObjects) {\n System.out.println(\"\\t\" + object);\n }\n System.out.println();\n\n } catch (OSSException oe) {\n System.out.println(\"Caught an OSSException, which means your request made it to OSS, \"\n + \"but was rejected with an error response for some reason.\");\n System.out.println(\"Error Message: \" + oe.getErrorCode());\n System.out.println(\"Error Code: \" + oe.getErrorCode());\n System.out.println(\"Request ID: \" + oe.getRequestId());\n System.out.println(\"Host ID: \" + oe.getHostId());\n } catch (ClientException ce) {\n System.out.println(\"Caught an ClientException, which means the client encountered \"\n + \"a serious internal problem while trying to communicate with OSS, \"\n + \"such as not being able to access the network.\");\n System.out.println(\"Error Message: \" + ce.getMessage());\n } finally {\n /*\n * Do not forget to shut down the client finally to release all allocated resources.\n */\n client.shutdown();\n }\n }", "static String validateObjectName(String objectName, boolean allowEmptyObjectName) {\n logger.atFiner().log(\"validateObjectName('%s', %s)\", objectName, allowEmptyObjectName);\n\n if (isNullOrEmpty(objectName) || objectName.equals(PATH_DELIMITER)) {\n if (allowEmptyObjectName) {\n objectName = \"\";\n } else {\n throw new IllegalArgumentException(\n String.format(\n \"GCS path must include non-empty object name [objectName='%s',\"\n + \" allowEmptyObjectName=%s]\",\n objectName, allowEmptyObjectName));\n }\n }\n\n // We want objectName to look like a traditional file system path,\n // therefore, disallow objectName with consecutive '/' chars.\n for (int i = 0; i < (objectName.length() - 1); i++) {\n if (objectName.charAt(i) == '/' && objectName.charAt(i + 1) == '/') {\n throw new IllegalArgumentException(\n String.format(\"GCS path must not have consecutive '/' characters: '%s'\", objectName));\n }\n }\n\n // Remove leading '/' if it exists.\n if (objectName.startsWith(PATH_DELIMITER)) {\n objectName = objectName.substring(1);\n }\n\n logger.atFiner().log(\"validateObjectName -> '%s'\", objectName);\n return objectName;\n }", "@Test\n public void testRedis() {\n\n String str = \"1\";\n\n String[] strings = StrUtil.splitToArray(str, ',');\n\n System.out.println(strings[0]);\n }", "IStorageService subFolder(String path);", "private String [] splitString(String name) {\r\n String [] parts = {\"\", \"\"};\r\n if (name != null) {\r\n String [] t = StringExtend.toArray(name, \".\", false);\r\n if (t.length == 3) {\r\n parts [0] = t [0] + \".\" + t [1];\r\n parts [1] = t [2];\r\n }\r\n else if (t.length == 2) {\r\n parts [0] = t [0]; parts [1] = t [1];\r\n }\r\n else if (t.length == 1) {\r\n parts [1] = t [0];\r\n }\r\n }\r\n\r\n return parts;\r\n }", "public List<String> putObject(MultipartRequest request, String id)\n {\n List<String> keyNameList = new ArrayList<String>();\n try\n {\n Map<String, MultipartFile> filesMap = request.getFileMap();\n Set<String> nameSet = filesMap.keySet();\n Iterator<String> it = nameSet.iterator();\n while (it.hasNext())\n {\n MultipartFile file = filesMap.get(it.next());\n ObjectMetadata ObjectMetadata = new ObjectMetadata();\n Map<String, String> userMetadata = new HashMap<String, String>();\n userMetadata.put(\"Name\", file.getOriginalFilename());\n userMetadata.put(\"Content-Type\", file.getContentType());\n String keyName = CommonUtil.getKeyName(bucketName, id, file.getOriginalFilename());\n userMetadata.put(\"key_name\", keyName);\n userMetadata.put(\"user\", id);\n ObjectMetadata.setUserMetadata(userMetadata);\n InputStream in = file.getInputStream();\n s3.putObject(bucketName, keyName, in, ObjectMetadata);\n keyNameList.add(keyName);\n }\n }\n catch (AmazonS3Exception e)\n {\n logger.error(e.getMessage());\n }\n catch (IOException e)\n {\n logger.error(e.getMessage());\n }\n return keyNameList;\n }", "@Test\n public void test17() {\n List<String> list = response.extract().path(\"data.zip\");\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The storeId of the all stores are:: \" + list);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "public interface GetPath {\n //path是svn中的地址,realpath是class的路径\n public void copyFileAndFloder(String[] paths, String realPath);\n}", "@Test\n public void test005() {\n\n List<String> storeid = response.extract().path(\"data.services.storeservices.storeId\");\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The storeId of the all stores are:: \" + storeid);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "private static String extractVolumeIDFromFilePath(String path) {\n\t\tString prefix = \"loc\";\r\n\r\n\t\tString filename = \"ark+=13960=t9765kx0j.mets.xml\";\r\n\r\n\t\t// the full filename sans the extension is the cleaned headless ID\r\n\t\tString cleanedHeadlessID = filename.substring(0, filename.length()\r\n\t\t\t\t- \".mets.xml\".length());\r\n\r\n\t\t// must unclean this token using Pairtree\r\n\t\tPairtree pairtree = new Pairtree();\r\n\t\tString uncleanedHeadlessID = pairtree.uncleanId(cleanedHeadlessID);\r\n\r\n\t\tString str = prefix + \".\" + uncleanedHeadlessID;\r\n\r\n\t\treturn prefix + \".\" + uncleanedHeadlessID;\r\n\r\n\t}", "public static String[] splitArcName( String pathName )\n \t{\n \t\tString[] res = new String[2];\n \t\tint arcSeparatorPos = pathName.indexOf(ARC_SEPARATOR);\n \t\tif ( arcSeparatorPos>=0 ) {\n \t\t\t// from archive\n \t\t\tres[1] = pathName.substring(0, arcSeparatorPos);\n \t\t\tres[0] = pathName.substring(arcSeparatorPos + ARC_SEPARATOR.length());\n \t\t} else {\n \t\t\tres[0] = pathName;\n \t\t}\n \t\treturn res;\n \t}", "PathSegments getPath();", "public interface FileSegment {\n\n /**\n * 分割文件\n *\n */\n void split();\n\n\n\n\n}", "@Test\n public void test_dot_string_returns_null()\n {\n InputStream inputStream = ResourceUtil.getInputStream(\".\");\n assertNull(\"Should be null\", inputStream);\n }", "CMSObject getFirstNodeByPath(String path, ConnectionInfo connectionInfo) throws RepositoryAccessException;", "@Test\n public void test004() {\n\n List<String> names = response.extract().path(\"data.name\");\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The names of the all stores are:: \" + names);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "String getBeginSplited();", "private char[] getPath() {\n\t\treturn null;\n\t}", "public abstract String getRequestPathInfo();", "public abstract String getFullPath();", "String getPartWithPort();", "public Storage(String s){\n this.path=s;\n }", "String getFile();", "String getFile();", "String getFile();", "int retrieve(FileInputSplit fileInputSplit);", "@Test\n public void test010() {\n List<String> storeServices = response.extract().path(\"data.services[9].storeservices\");\n\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"get storeservices of the store where service name = Sony Experience:\" + storeServices);\n System.out.println(\"------------------End of Test---------------------------\");\n }", "public String[] getFileName();", "public interface JsonPath {\n\n JsonPath parent();\n\n Optional<JsonObject> getJsonObject(JsonObject jsonObject);\n\n Optional<JsonArray> getJsonArray(JsonObject jsonObject);\n\n static JsonPath root() {\n return new JsonPathImpl(ImmutableList.of());\n }\n\n boolean isRoot();\n\n JsonPath concat(JsonObjectPathSpecImpl jsonObjectPathSpec);\n\n JsonPath concat(JsonArrayPathSpecImpl jsonArrayPathSpec);\n\n JsonPath concat(JsonPath jsonPath);\n\n List<PathSpec> parts();\n\n JsonPath subpath(int start, int end);\n\n int size();\n\n static JsonPath parse(final String pathStr) {\n\n Objects.requireNonNull(pathStr);\n\n ImmutableList.Builder<PathSpec> listBuilder = ImmutableList.builder();\n\n String[] split = pathStr.split(\"\\\\.\");\n for (int i = 0; i < split.length; i++) {\n String strPart = split[i];\n\n if (strPart.isEmpty()) {\n continue;\n }\n\n int start = strPart.indexOf('[');\n\n if (start > 0) {\n int end = strPart.indexOf(']');\n\n listBuilder.add(\n new JsonArrayPathSpecImpl(\n strPart.substring(0, start),\n Integer.parseInt(strPart.substring(start + 1, end))\n )\n );\n continue;\n }\n\n listBuilder.add(\n new JsonObjectPathSpecImpl(\n strPart\n )\n );\n }\n return new JsonPathImpl(\n listBuilder.build()\n );\n }\n\n static void main(String[] asdf) {\n\n String[] ss = {};\n JsonPath parse = JsonPath.parse(\"departments[0].department.department.employee.departments[0].name\");\n System.out.println(\"path: [\" + parse + \"] size: \" + parse.size());\n }\n}", "public Object readObject(String path) throws Exception{\n FileInputStream fis = new FileInputStream(path);\n ObjectInputStream ois = new ObjectInputStream(fis);\n\n return ois.readObject();\n }", "@Test\n public void a_hierarchical_non_existent_path_can_be_created_and_value_set() {\n\n String path = \"$.shipment.extensionFields.carrier\";\n JsonPath compiledPath = JsonPath.compile(path);\n Object output = compiledPath.set(pathConfiguration.jsonProvider().parse(inputObject),\n \"Alpha Transports\",pathConfiguration);\n String result = parse(output).read(path);\n assertThat(result).matches(\"Alpha Transports\");\n\n }", "@Test\n public void testSetFolderNamePath() {\n System.out.println(\"setFolderNamePath\");\n String folderNamePath = \"c:\\\\relytest\\\\test\\\\test\";\n CharterDto instance = new CharterDto(\"Test name\");\n instance.setFolderNamePath(folderNamePath);\n\n String expResult = folderNamePath;\n String result = instance.getFolderNamePath();\n assertEquals(expResult, result);\n }", "@Override\n protected String parseURI()\n throws IOException {\n command = parseCommand();\n\n System.out.println(\"Command parsed as: \" + command.toString());\n\n // 2. Parse the modified URI.\n switch (command) {\n case GET_ALL_BUCKETS:\n // A. If we get all buckets we need the user path\n // User path == /root/user/\n modifiedURI = s3HdfsPath.getHdfsRootUserPath();\n break;\n case LIST_PARTS:\n // B. If we get all the parts we need the root upload path\n // Upload path == /root/user/bucket/object/version/upload/\n modifiedURI = s3HdfsPath.getHdfsRootUploadPath();\n break;\n case LIST_VERSIONS:\n // B. If we get all the parts we need the root upload path\n // Upload path == /root/user/bucket/object/version/upload/\n modifiedURI = s3HdfsPath.getHdfsRootBucketPath();\n break;\n case GET_VERSIONING:\n // C. If we get versioning configuration we need bucket meta path\n // Bucket meta path == /root/user/bucket/\"bucketmeta\"\n modifiedURI = s3HdfsPath.getFullHdfsBucketMetaPath();\n break;\n case GET_BUCKET:\n // D. If we get a bucket we need the bucket path\n // Bucket path == /root/user/bucket/\n modifiedURI = s3HdfsPath.getHdfsRootBucketPath();\n break;\n case GET_OBJECT:\n // E. If we get an object we need the full path\n // Full path == /root/user/bucket/object/version/\"file\"\n modifiedURI = s3HdfsPath.getFullHdfsObjPath();\n break;\n default:\n throw new IOException(\"Unknown command: \" + command);\n }\n\n // 3. Set the modified URI.\n modifiedURI = ADD_WEBHDFS(modifiedURI);\n return modifiedURI;\n }", "public String getStringJson(alisa.json.Object obj, String name){\n try{\n alisa.json.Data text = obj.findData(name);\n if (text == null || !text.isString()){\n this._error = \"Error on <ClientFileThread> \" + name; \n return null;\n }\n return text.getString();\n } catch(NullPointerException e){\n return null;\n }\n }", "@Test\n public void testSplitURL_String() throws Exception {\n System.out.println(\"splitURL\");\n String URLString = \"http://user:[email protected]:8080/to/path/document?arg1=val1&arg2=val2#part\";\n Map<URLParser.URLParts, String> expResult = new HashMap<>();\n expResult.put(URLParser.URLParts.PROTOCOL, \"http\");\n expResult.put(URLParser.URLParts.PATH, \"/to/path/document\");\n expResult.put(URLParser.URLParts.HOST, \"www.example.com\");\n expResult.put(URLParser.URLParts.PORT, \"8080\");\n expResult.put(URLParser.URLParts.USERINFO, \"user:password\");\n expResult.put(URLParser.URLParts.FILENAME, \"/to/path/document?arg1=val1&arg2=val2\");\n expResult.put(URLParser.URLParts.QUERY, \"arg1=val1&arg2=val2\");\n expResult.put(URLParser.URLParts.AUTHORITY, \"user:[email protected]:8080\");\n expResult.put(URLParser.URLParts.REF, \"part\");\n \n Map<URLParser.URLParts, String> result = URLParser.splitURL(URLString);\n assertEquals(expResult, result);\n }", "void toJSON(Path path);", "private static List<String[]> readInput(String filePath) {\n List<String[]> result = new ArrayList<>();\n int numOfObject = 0;\n\n try {\n Scanner sc = new Scanner(new File(filePath));\n sc.useDelimiter(\"\");\n if (sc.hasNext()) {\n numOfObject = Integer.parseInt(sc.nextLine());\n }\n for (int i=0;i<numOfObject;i++) {\n if (sc.hasNext()) {\n String s = sc.nextLine();\n if (s.trim().isEmpty()) {\n continue;\n }\n result.add(s.split(\" \"));\n }\n }\n sc.close();\n }\n catch (FileNotFoundException e) {\n System.out.println(\"FileNotFoundException\");\n }\n return result;\n }", "public void salvaPartita(String file) {\n\r\n }", "public void fileInfo(String info);", "public static void main(String[] args) {\n\t\t\r\n\t\tString str =\"D:\\\\jboss-4.2.2.GA\\\\server\\\\default\\\\deploy\\\\shen3spnet.war\\\\aa\\\\bb\";\r\n\t\tint i = str.indexOf(\"shen3spnet\");\r\n\t\tint j = str.substring(i).indexOf(\"\\\\\")+1;\r\n\t\tSystem.out.println(str.substring(i).substring(j));\r\n\t\t\r\n\t}" ]
[ "0.54949576", "0.54014146", "0.5305074", "0.5288626", "0.52228695", "0.5167949", "0.50973994", "0.5047029", "0.50458825", "0.5022054", "0.49716818", "0.494663", "0.4932123", "0.49263373", "0.49082804", "0.48710483", "0.4842746", "0.48298737", "0.4801136", "0.47705236", "0.47670382", "0.47254992", "0.47131163", "0.47020993", "0.4699477", "0.4698133", "0.46677372", "0.46676436", "0.46556973", "0.4655608", "0.46271056", "0.46252093", "0.46190038", "0.46145132", "0.46081927", "0.4599254", "0.45968172", "0.45853657", "0.45850372", "0.4580179", "0.45739752", "0.45729843", "0.45692503", "0.45643824", "0.45587412", "0.4541658", "0.45402375", "0.45368287", "0.4534295", "0.45332193", "0.4532491", "0.45293677", "0.452153", "0.45157662", "0.45157662", "0.45082688", "0.4503943", "0.44978717", "0.4481381", "0.4476478", "0.4474468", "0.446949", "0.44595945", "0.4453107", "0.44426587", "0.4442216", "0.44347784", "0.4434253", "0.44187793", "0.44155577", "0.44129652", "0.44043732", "0.44006035", "0.4397116", "0.439455", "0.4392455", "0.4390801", "0.43903726", "0.43896", "0.4388883", "0.43839788", "0.4383868", "0.43730095", "0.43628147", "0.43628147", "0.43628147", "0.4361876", "0.43616325", "0.43603325", "0.4359236", "0.43482617", "0.43443212", "0.43406472", "0.4340338", "0.4336844", "0.43274242", "0.43244916", "0.43180144", "0.43122348", "0.43060046", "0.43057168" ]
0.0
-1
Creates new form Window
public Window() { initComponents(); SetIcon(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createWindow();", "public void newWindow() {\n\t\tJMenuTest frame1 = new JMenuTest();\n\t\tframe1.setBounds(100, 100, 400, 400);\n\t\tframe1.setVisible(true);\n\t}", "private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \n }", "public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private JFrame buildWindow() {\n frame = WindowFactory.mainFrame()\n .title(\"VISNode\")\n .menu(VISNode.get().getActions().buildMenuBar())\n .size(1024, 768)\n .maximized()\n .interceptClose(() -> {\n new UserPreferencesPersistor().persist(model.getUserPreferences());\n int result = JOptionPane.showConfirmDialog(panel, Messages.get().singleMessage(\"app.closing\"), null, JOptionPane.YES_NO_OPTION);\n return result == JOptionPane.YES_OPTION;\n })\n .create((container) -> {\n panel = new MainPanel(model);\n container.add(panel);\n });\n return frame;\n }", "public NewJFrame() {\n Connect();\n initComponents();\n }", "private void createWindow() {\r\n\t\t// Create the picture frame and initializes it.\r\n\t\tthis.createAndInitPictureFrame();\r\n\r\n\t\t// Set up the menu bar.\r\n\t\tthis.setUpMenuBar();\r\n\r\n\t\t// Create the information panel.\r\n\t\t//this.createInfoPanel();\r\n\r\n\t\t// Create the scrollpane for the picture.\r\n\t\tthis.createAndInitScrollingImage();\r\n\r\n\t\t// Show the picture in the frame at the size it needs to be.\r\n\t\tthis.pictureFrame.pack();\r\n\t\tthis.pictureFrame.setVisible(true);\r\n\t\tpictureFrame.setSize(728,560);\r\n\t}", "private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}", "public void createPopupWindow() {\r\n \t//\r\n }", "public void open() {\n popupWindow = new Window(getTypeCaption());\n popupWindow.addStyleName(\"e-export-form-window\");\n popupWindow.addStyleName(\"opaque\");\n VerticalLayout layout = (VerticalLayout) popupWindow.getContent();\n layout.setMargin(true);\n layout.setSpacing(true);\n layout.setSizeUndefined();\n popupWindow.setSizeUndefined();\n popupWindow.setModal(false);\n popupWindow.setClosable(true);\n\n popupWindow.addComponent(this);\n getMainApplication().getMainWindow().addWindow(popupWindow);\n\n onDisplay();\n }", "public NewJFrame() {\r\n initComponents();\r\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n \n }", "public NewJFrame() {\n initComponents();\n // HidenLable.setVisible(false);\n }", "public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }", "public NewJFrame()\r\n {\r\n initComponents();\r\n }", "@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}", "private static void createWindow(final Serializable object) {\n\t\tDIALOG.setVisible(false);\n\t\tFrameFactory.createFrame(object);\n\t}", "private void makeGUI()\n {\n mainFrame = new JFrame();\n mainFrame.setPreferredSize(new Dimension(750,400));\n aw = new AccountWindow();\n mainFrame.add(aw);\n mainFrame.setVisible(true);\n mainFrame.pack();\n }", "private static void createAndShowGUI() {\n\n frame = new JFrame(messages.getString(\"towers.of.hanoi\"));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n addComponentsToPane(frame.getContentPane());\n frame.pack();\n frame.setSize(800, 600);\n frame.setVisible(true);\n }", "void buildWindow()\n { main.gui.gralMng.selectPanel(\"primaryWindow\");\n main.gui.gralMng.setPosition(-30, 0, -47, 0, 'r'); //right buttom, about half less display width and hight.\n int windProps = GralWindow.windConcurrently;\n GralWindow window = main.gui.gralMng.createWindow(\"windStatus\", \"Status - The.file.Commander\", windProps);\n windStatus = window; \n main.gui.gralMng.setPosition(3.5f, GralPos.size -3, 1, GralPos.size +5, 'd');\n widgCopy = main.gui.gralMng.addButton(\"sCopy\", main.copyCmd.actionConfirmCopy, \"copy\");\n widgEsc = main.gui.gralMng.addButton(\"dirBytes\", actionButton, \"esc\");\n }", "public static void showNew() {\n\t\tif (DIALOG == null) {\n\t\t\tDIALOG = new NewDialog();\n\t\t}\n\t\tDIALOG.setVisible(true);\n\t\tDIALOG.toFront();\n\t}", "public void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n\tif(open==0)\n\t\tframe = new JFrame(\"Open a file\");\n\telse if(open ==1)\n\t\tframe = new JFrame(\"Save file as\");\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane =this ;\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n // frame.setSize(500,500);\n//\tvalidate();\n }", "private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }", "NativeWindow createWindow(CreationParams p);", "public REGISTER_WINDOW() {\n initComponents();\n }", "private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tframe = new JFrame(\"Captura 977R\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Set up the content pane.\r\n\t\taddComponentsToPane(frame.getContentPane());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tDimension windowSize = frame.getSize();\r\n\r\n\t\tint windowX = Math.max(0, (screenSize.width - windowSize.width) / 2);\r\n\t\tint windowY = Math.max(0, (screenSize.height - windowSize.height) / 2);\r\n\r\n\t\tframe.setLocation(windowX, windowY); // Don't use \"f.\" inside\r\n\t\t// constructor.\r\n\t\tframe.setVisible(true);\r\n\t}", "static public void make() {\n\t\tif (window != null)\n\t\t\treturn;\n\n\t\twindow = new JFrame();\n\t\twindow.setTitle(\"Finecraft\");\n\t\twindow.setMinimumSize(new Dimension(500, 300));\n\t\twindow.setSize(asInteger(WINDOW_WIDTH), asInteger(WINDOW_HEIGHT));\n\t\twindow.setResizable(asBoolean(WINDOW_RESIZE));\n\t\twindow.setLocationRelativeTo(null);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "public void createWindow() throws IOException {\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"adminEditorWindow.fxml\"));\n AnchorPane root = (AnchorPane) loader.load();\n Scene scene = new Scene(root);\n Stage stage = new Stage();\n stage.setResizable(false);\n stage.setScene(scene);\n stage.setTitle(\"Administrative Password Editor\");\n stage.getIcons().add(new Image(\"resources/usm seal icon.png\"));\n stage.show();\n\t}", "public NewJFrame() {\n initComponents();\n\n }", "public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }", "private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new SplitPaneDemo2();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "public NewJFrame1(NewJFrame n) {\n main = n;\n initComponents();\n winOpen();\n setLocationFrame();\n this.setVisible(true);\n }", "private static void createAndShowGUI() {\n //\n // Use the normal window decorations as defined by the look-and-feel\n // schema\n //\n JFrame.setDefaultLookAndFeelDecorated(true);\n //\n // Create the main application window\n //\n mainWindow = new MainWindow();\n //\n // Show the application window\n //\n mainWindow.pack();\n mainWindow.setVisible(true);\n }", "private void buildWindow(){\r\n\t\tthis.setSize(new Dimension(600, 400));\r\n\t\tFunctions.setDebug(true);\r\n\t\tbackendConnector = new BackendConnector(this);\r\n\t\tguiManager = new GUIManager(this);\r\n\t\tmainCanvas = new MainCanvas(this);\r\n\t\tadd(mainCanvas);\r\n\t}", "private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tJFrame frame = new JFrame(\"MapReverse Data Collector\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Add content to the window.\r\n\t\tframe.add(new MapReverseDataCollector());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setVisible(true);\r\n\t}", "public NewJFrame1() {\n initComponents();\n\n dip();\n sh();\n }", "private void createWindow() throws Exception {\r\n Display.setFullscreen(false);\r\n Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT));\r\n Display.setTitle(\"Program 2\");\r\n Display.create();\r\n }", "@Override\n\tprotected Window createMainWindow(String[] args) {\n\t\ttry {\n\t\t\tinitialize();\n\t\t} catch (BackingStoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tLOG.info(\"End of the Run method\");\n\t\tif (frmBlueAhuizote == null) {\n\t\t\tLOG.error(\"frame still not available\"); ///!!\n\t\t}\n\t\treturn frmBlueAhuizote;\n\t}", "FORM createFORM();", "public NewJFrame1() {\n initComponents();\n }", "private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"MRALD Color Chooser\");\n\n //Create and set up the content pane.\n JComponent newContentPane = new MraldColorChooser(coloringItems);\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "public void createNewWindow(String winType) {\n if (!SwingUtilities.isEventDispatchThread()) {\n throw new RuntimeException(\"createNewWindow: called on non-event thread\");\n }\n\n final Parameters params = (Parameters)parameters.clone();\n if (!windowName.equals(\"\")) params.setWindowName(windowName);\n if (!winType.equals(\"\")) params.setWindowName(winType);\n\n manager.showDisplayUI(params);\n }", "private void createAndShowGUI()\r\n {\r\n //Create and set up the window.\r\n frame = new JFrame();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(this);\r\n frame.addKeyListener(this);\r\n\r\n //Display the window.\r\n this.setPreferredSize(new Dimension(\r\n BLOCKSIZE * ( board.getNumCols() + 3 + nextUp.getNumCols() ),\r\n BLOCKSIZE * ( board.getNumRows() + 2 )\r\n ));\r\n\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "public static void createAndShowGUI() {\n windowContent.add(\"Center\",p1);\n\n //Create the frame and set its content pane\n JFrame frame = new JFrame(\"GridBagLayoutCalculator\");\n frame.setContentPane(windowContent);\n\n // Set the size of the window to be big enough to accommodate all controls\n frame.pack();\n\n // Display the window\n frame.setVisible(true);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "public JInternalFrame createAndShow() {\r\n /** Create and set up the window. */\r\n JInternalFrame frame = new JInternalFrame(\"About\");\r\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n \r\n frame.putClientProperty(\"JInternalFrame.isPallete\", Boolean.TRUE);\r\n\r\n /** Add content to the window. */\r\n frame.add(new About());\r\n \r\n frame.setClosable(true);\r\n\r\n /** Display the window. */\r\n frame.pack();\r\n frame.setVisible(true);\r\n \r\n return frame;\r\n }", "public void createAndShowGUI() {\n\t\tcontroller = new ControllerClass(); \r\n\r\n\t\t// Create and set up the window\r\n\t\twindowLookAndFeel();\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetTitle(\"Media Works - Add Screen\");\r\n\t\tsetResizable(false);\r\n\t\tadd(componentSetup());\r\n\t\tpack();\r\n\t\tsetSize(720,540);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t}", "public static void createAndShowStartWindow() {\n\n\t\t// Create and set up the window.\n\n\t\tstartMenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t// panel will hold the buttons and text\n\t\tJPanel panel = new JPanel() {\n\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t// Fills the panel with a red/black gradient\n\t\t\tprotected void paintComponent(Graphics grphcs) {\n\t\t\t\tGraphics2D g2d = (Graphics2D) grphcs;\n\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n\t\t\t\tColor color1 = new Color(119, 29, 29);\n\t\t\t\tColor color2 = Color.BLACK;\n\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, color1, 0, getHeight() - 100, color2);\n\t\t\t\tg2d.setPaint(gp);\n\t\t\t\tg2d.fillRect(0, 0, getWidth(), getHeight());\n\n\t\t\t\tsuper.paintComponent(grphcs);\n\t\t\t}\n\t\t};\n\n\t\tpanel.setOpaque(false);\n\n\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n\n\t Font customFont = null;\n\t \n\n\t\ttry {\n\t\t customFont = Font.createFont(Font.TRUETYPE_FONT, ClassLoader.getSystemClassLoader().getResourceAsStream(\"data/AlegreyaSC-Medium.ttf\")).deriveFont(32f);\n\n\t\t GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\t ge.registerFont(Font.createFont(Font.TRUETYPE_FONT, ClassLoader.getSystemClassLoader().getResourceAsStream(\"data/AlegreyaSC-Medium.ttf\")));\n\t\t\n\n\t\t} catch (IOException|FontFormatException e) {\n\t\t //Handle exception\n\t\t}\n\t\t\n\n\t\t\n\t\t// Some info text at the top of the window\n\t\tJLabel welcome = new JLabel(\"<html><center><font color='white'> Welcome to <br> Ultimate Checkers! </font></html>\",\n\t\t\t\tSwingConstants.CENTER);\n\t\twelcome.setFont(customFont);\n\t\n\n\t\twelcome.setPreferredSize(new Dimension(200, 25));\n\t\twelcome.setAlignmentX(Component.CENTER_ALIGNMENT);\n\n\n\t\t// \"Rigid Area\" is used to align everything\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 40)));\n\t\tpanel.add(welcome);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 50)));\n\t\t//panel.add(choose);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\n\t\t// The start Window will have four buttons\n\t\t// Button1 will open a new window with a standard checkers board\n\t\tJButton button1 = new JButton(\"New Game (Standard Setup)\");\n\n\t\tbutton1.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\tNewGameSettings.createAndShowGameSettings();\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\t\t// Setting up button1\n\t\tbutton1.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton1.setMaximumSize(new Dimension(250, 40));\n\n\t\t// Button2 will open a new window where a custom setup can be created\n\t\tJButton button2 = new JButton(\"New Game (Custom Setup)\");\n\t\tbutton2.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// Begin creating custom game board setup for checkers\n\t\t\t\t\t\tNewCustomWindow.createAndShowCustomGame();\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Setting up button2\n\t\tbutton2.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton2.setMaximumSize(new Dimension(250, 40));\n\n\t\t// Button3 is not implemented yet, it will be used to load a saved game\n\t\tJButton button3 = new JButton(\"Load A Saved Game\");\n\t\tbutton3.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton3.setMaximumSize(new Dimension(250, 40));\n\t\tbutton3.addActionListener(new ActionListener() {\n\n\t\t\tfinal JFrame popupWrongFormat = new PopupFrame(\n\t\t\t\t\t\"Wrong Format!\",\n\t\t\t\t\t\"<html><center>\"\n\t\t\t\t\t\t\t+ \"The save file is in the wrong format! <br><br>\"\n\t\t\t\t\t\t\t+ \"Please make sure the load file is in csv format with an 8x8 table, \"\n\t\t\t\t\t\t\t+ \"followed by whose turn it is, \"\n\t\t\t\t\t\t\t+ \"the white player type and the black player type.\"\n\t\t\t\t\t\t\t+ \"</center></html>\");\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// This will create the file chooser\n\t\t\t\t\t\tJFileChooser chooser = new JFileChooser();\n\n\t\t\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\"CSV Files\", \"csv\");\n\t\t\t\t\t\tchooser.setFileFilter(filter);\n\n\t\t\t\t\t\tint returnVal = chooser.showOpenDialog(startMenu);\n\t\t\t\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t\t\tFile file = chooser.getSelectedFile();\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tcheckAndPlay(file);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tpopupWrongFormat.setVisible(true);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Do nothing. Load cancelled by user.\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Button4 closes the game\n\t\tJButton button4 = new JButton(\"Exit Ultimate Checkers\");\n\t\tbutton4.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Setting up button4\n\t\tbutton4.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton4.setMaximumSize(new Dimension(250, 40));\n\n\t\t// The four buttons are added to the panel and aligned\n\t\tpanel.add(button1);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tpanel.add(button2);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tpanel.add(button3);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 80)));\n\t\tpanel.add(button4);\n\n\t\t// Setting up the start Menu\n\t\tstartMenu.setSize(400, 600);\n\t\tstartMenu.setResizable(false);\n\n\t\t// Centers the window with respect to the user's screen resolution\n\t\tDimension dimension = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint x = (int) ((dimension.getWidth() - startMenu.getWidth()) / 2);\n\t\tint y = (int) ((dimension.getHeight() - startMenu.getHeight()) / 2);\n\t\tstartMenu.setLocation(x, y);\n\n\t\tstartMenu.add(panel, BorderLayout.CENTER);\n\t\tstartMenu.setVisible(true);\n\n\t}", "private static void createAndShowGUI() {\r\n //Disable boldface controls.\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Exertion Scripting\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n NetletEditor newContentPane = new NetletEditor(null);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private void createAndShowGUI() {\n //Create and set up the window.\n frame = new JFrame();\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.getContentPane().add(this);\n frame.addKeyListener(this);\n frame.addMouseListener(this);\n\n //Display the window.\n this.setPreferredSize(new Dimension(288, 512));\n this.addMouseListener(this);\n\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame();\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(500, 500);\n\t\tframe.setLocationRelativeTo(null);\n\n\t\tResultLeftView view = new ResultLeftView();\n\t\tframe.setContentPane(view);\n\t\t//Display the window.\n\t\tframe.setVisible(true);\n\t}", "private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"SplitPaneDemo\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n SplitPaneDemo splitPaneDemo = new SplitPaneDemo();\r\n frame.getContentPane().add(splitPaneDemo.getSplitPane());\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private static void createAndShowGUI() {\n\t\t/*\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorldSwing\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the ubiquitous \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World\");\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n */\n\t\tfinal AC_GUI currentGUI = new AC_GUI();\n\t\t//currentGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tcurrentGUI.setSize(900, 800);\n\t\t// make the frame full screen\n\t\t// currentGUI.setExtendedState(JFrame.MAXIMIZED_BOTH);\n }", "void doNew() {\r\n\t\t\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, true);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\tsetTitle(TITLE);\r\n\t\t\tcreatePlanetSurface(dlg.width, dlg.height);\r\n\t\t\trenderer.repaint();\r\n\t\t\tsaveSettings = null;\r\n\t\t\tundoManager.discardAllEdits();\r\n\t\t\tsetUndoRedoMenu();\r\n\t\t}\r\n\t}", "private static ISInspectorGui createNewInstance(ISInspectorController controller) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ISInspectorGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n Holder<ISInspectorGui> result = new Holder();\n try {\n /* Create and display the form */\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n @Override\n public void run() {\n result.setValue(new ISInspectorGui(controller));\n result.getValue().setVisible(true);\n }\n });\n } catch (InterruptedException | InvocationTargetException ex) {\n Logger.getLogger(ISInspectorGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n return result.getValue();\n }", "public xinxiNewJFrame() {\n initComponents();\n }", "public void makeWindow(Container pane)\r\n\t{\r\n\t\tboard.display(pane, fieldArray);\r\n\t}", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"CsvPickerPane\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n CsvPickerPane demopane = new CsvPickerPane(frame);\n frame.getContentPane().add(demopane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private void initialize() {\r\n\r\n\t\tfrmHistoriasDeZagas = new JFrame();\r\n\t\tfrmHistoriasDeZagas.getContentPane().setBackground(Color.BLACK);\r\n\t\tfrmHistoriasDeZagas.setTitle(\"Historias de Zagas\");\r\n\t\tfrmHistoriasDeZagas.setBackground(Color.WHITE);\r\n\t\tfrmHistoriasDeZagas\r\n\t\t\t\t.setIconImage(Toolkit\r\n\t\t\t\t\t\t.getDefaultToolkit()\r\n\t\t\t\t\t\t.getImage(\r\n\t\t\t\t\t\t\t\tArmas.class\r\n\t\t\t\t\t\t\t\t\t\t.getResource(\"/images/Historias de Zagas, logo.png\")));\r\n\t\tfrmHistoriasDeZagas.setBounds(100, 100, 439, 462);\r\n\t\tfrmHistoriasDeZagas.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n\t\tfrmHistoriasDeZagas.getContentPane().setLayout(null);\r\n\t\tfrmHistoriasDeZagas.setLocationRelativeTo(null);\r\n\t\tfrmHistoriasDeZagas.setResizable(false);\r\n\r\n\t\tfinal JButton btnNewButton = new JButton(\"JUGAR\");\r\n\t\tif (Loader.usuario.equals(\"\")) {\r\n\t\t\tbtnNewButton.setEnabled(false);\r\n\r\n\t\t}\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tJugar window = new Jugar();\r\n\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbtnNewButton.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnNewButton.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\t\t\t\tnull, null));\r\n\t\tbtnNewButton.setForeground(Color.WHITE);\r\n\t\tbtnNewButton.setBackground(new Color(139, 69, 19));\r\n\t\tbtnNewButton.setFont(mf.MyFont(0, 17));\r\n\t\tbtnNewButton.setBounds(10, 51, 414, 34);\r\n\t\tbtnNewButton.setBorderPainted(false);\r\n\t\tbtnNewButton.setContentAreaFilled(false);\r\n\t\tbtnNewButton.setFocusPainted(false);\r\n\t\tbtnNewButton.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnNewButton);\r\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\t\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal JButton btnCreadorDeNpcs = new JButton(\"CREADOR DE NPCs\");\r\n\t\tbtnCreadorDeNpcs.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tStartNPC.atrpoints = new AtributePoints();\r\n\t\t\t\tStartNPC.skpoints = new SkillPoints();\r\n\t\t\t\tStartNPC.atributos = new Atributes(StartNPC.atrpoints);\r\n\t\t\t\tStartNPC.combatSkills = new CombatSkills(StartNPC.skpoints);\r\n\t\t\t\tStartNPC.knowledgeSkills = new KnowledgeSkills(\r\n\t\t\t\t\t\tStartNPC.skpoints);\r\n\t\t\t\tStartNPC.magicSkills = new MagicSkills(StartNPC.skpoints);\r\n\t\t\t\tStartNPC.knowhowSkills = new KnowHowSkills(StartNPC.skpoints);\r\n\t\t\t\tBlessing blessing = new Blessing(\"\");\r\n\t\t\t\tSetbacks setbacks = new Setbacks();\r\n\t\t\t\tPrivileges privileges = new Privileges();\r\n\t\t\t\tRace race = new Race(\"\");\r\n\t\t\t\tEquipment equipment = new Equipment();\r\n\t\t\t\tArrayList<String> posarm = new ArrayList<String>();\r\n\t\t\t\tPossesions posss = new Possesions(posarm);\r\n\t\t\t\tArmor armor = new Armor(\"\", \"\", false,false, posss);\r\n\t\t\t\tStartNPC.character = new Characters(null, race, \"\", 0, 2, 10,\r\n\t\t\t\t\t\t20, 20, StartNPC.atributos, StartNPC.combatSkills,\r\n\t\t\t\t\t\tStartNPC.knowledgeSkills, StartNPC.magicSkills,\r\n\t\t\t\t\t\tStartNPC.knowhowSkills, blessing, privileges, setbacks,\r\n\t\t\t\t\t\tfalse, armor, equipment,null,null,null,null,null,null,null,null,null,null,null,null, 0, 1,0,\"\",\"\",\"\");\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\tStartNPC window;\r\n\t\t\t\ttry {\r\n\t\t\t\t\twindow = new StartNPC();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDeNpcs.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDeNpcs.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\r\n\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreadorDeNpcs.setBorder(new BevelBorder(BevelBorder.RAISED, null,\r\n\t\t\t\tnull, null, null));\r\n\t\tbtnCreadorDeNpcs.setForeground(Color.WHITE);\r\n\t\tbtnCreadorDeNpcs.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreadorDeNpcs.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreadorDeNpcs.setBounds(10, 141, 414, 34);\r\n\t\tbtnCreadorDeNpcs.setBorderPainted(false);\r\n\t\tbtnCreadorDeNpcs.setContentAreaFilled(false);\r\n\t\tbtnCreadorDeNpcs.setFocusPainted(false);\r\n\t\tbtnCreadorDeNpcs.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreadorDeNpcs);\r\n\r\n\t\tfinal JButton btnCreadorDePersonajes = new JButton(\r\n\t\t\t\t\"CREADOR DE PERSONAJES\");\r\n\t\tbtnCreadorDePersonajes.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDePersonajes.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreadorDePersonajes.setBorder(new BevelBorder(BevelBorder.RAISED,\r\n\t\t\t\tnull, null, null, null));\r\n\t\tbtnCreadorDePersonajes.setForeground(Color.WHITE);\r\n\t\tbtnCreadorDePersonajes.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreadorDePersonajes.setBorderPainted(false);\r\n\t\tbtnCreadorDePersonajes.setContentAreaFilled(false);\r\n\t\tbtnCreadorDePersonajes.setFocusPainted(false);\r\n\t\tbtnCreadorDePersonajes.setOpaque(false);\r\n\t\tbtnCreadorDePersonajes.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tcrear = \"pj\";\r\n\t\t\t\tStart.atrpoints = new AtributePoints();\r\n\t\t\t\tStart.skpoints = new SkillPoints();\r\n\t\t\t\tStart.atributos = new Atributes(Start.atrpoints);\r\n\t\t\t\tStart.combatSkills = new CombatSkills(Start.skpoints);\r\n\t\t\t\tStart.knowledgeSkills = new KnowledgeSkills(Start.skpoints);\r\n\t\t\t\tStart.magicSkills = new MagicSkills(Start.skpoints);\r\n\t\t\t\tStart.knowhowSkills = new KnowHowSkills(Start.skpoints);\r\n\t\t\t\tBlessing blessing = new Blessing(\"\");\r\n\t\t\t\tSetbacks setbacks = new Setbacks();\r\n\t\t\t\tPrivileges privileges = new Privileges();\r\n\t\t\t\tRace race = new Race(\"\");\r\n\t\t\t\tEquipment equipment = new Equipment();\r\n\t\t\t\tArrayList<String> posarm = new ArrayList<String>();\r\n\t\t\t\tPossesions posss = new Possesions(posarm);\r\n\t\t\t\tArmor armor = new Armor(\"\", \"\", false,false, posss);\r\n\t\t\t\tStart.character = new Characters(null, race, \"\", 0, 2, 10, 20,\r\n\t\t\t\t\t\t20, Start.atributos, Start.combatSkills,\r\n\t\t\t\t\t\tStart.knowledgeSkills, Start.magicSkills,\r\n\t\t\t\t\t\tStart.knowhowSkills, blessing, privileges, setbacks,\r\n\t\t\t\t\t\tfalse, armor, equipment,null,null,null,null,null,null,null,null,null,null,null,null, 0, 1,0,\"\",\"\",\"\");\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\tStart window;\r\n\t\t\t\ttry {\r\n\t\t\t\t\twindow = new Start();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDePersonajes.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreadorDePersonajes.setBounds(10, 186, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreadorDePersonajes);\r\n\r\n\t\tfinal JButton btnCreditos = new JButton(\"CRÉDITOS\");\r\n\t\tbtnCreditos.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreditos.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreditos.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tCreditos window = new Creditos();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tfinal JButton btnHistoria = new JButton(\"GESTOR DE PARTIDAS\");\r\n\t\tbtnHistoria.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tGestorMain window = new GestorMain();\r\n\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\r\n\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnHistoria.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\r\n\t\t\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnHistoria.setOpaque(false);\r\n\t\tbtnHistoria.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnHistoria.setForeground(Color.WHITE);\r\n\t\tbtnHistoria.setFont(mf.MyFont(0, 17));\r\n\t\tbtnHistoria.setFocusPainted(false);\r\n\t\tbtnHistoria.setContentAreaFilled(false);\r\n\t\tbtnHistoria.setBorderPainted(false);\r\n\t\tbtnHistoria.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnHistoria.setBackground(new Color(139, 69, 19));\r\n\t\tbtnHistoria.setBounds(10, 96, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnHistoria);\r\n\t\tbtnCreditos.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\t\t\t\tnull, null));\r\n\t\tbtnCreditos.setForeground(Color.WHITE);\r\n\t\tbtnCreditos.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreditos.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreditos.setBounds(10, 321, 414, 34);\r\n\t\tbtnCreditos.setBorderPainted(false);\r\n\t\tbtnCreditos.setContentAreaFilled(false);\r\n\t\tbtnCreditos.setFocusPainted(false);\r\n\t\tbtnCreditos.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreditos);\r\n\r\n\t\tfinal JButton button = new JButton(\"SALIR\");\r\n\t\tbutton.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbutton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tint seleccion = JOptionPane.showOptionDialog(\r\n\t\t\t\t\t\tfrmHistoriasDeZagas,\r\n\t\t\t\t\t\t\"¿Estás seguro de querer cerrar el programa?.\",\r\n\t\t\t\t\t\t\"¡Atención!\", JOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, new Object[] { \"Si\",\r\n\t\t\t\t\t\t\t\t\"No\" }, // null para YES, NO y CANCEL\r\n\t\t\t\t\t\t\"opcion 1\");\r\n\t\t\t\tif (JOptionPane.YES_OPTION == seleccion) {\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\ttxtBienvenidoSeleccioneA = new JLabel();\r\n\t\ttxtBienvenidoSeleccioneA.setOpaque(false);\r\n\t\ttxtBienvenidoSeleccioneA.setForeground(Color.WHITE);\r\n\t\ttxtBienvenidoSeleccioneA.setBackground(new Color(205, 133, 63));\r\n\t\ttxtBienvenidoSeleccioneA.setBorder(null);\r\n\t\ttxtBienvenidoSeleccioneA.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttxtBienvenidoSeleccioneA.setFont(mf.MyFont(0, 13));\r\n\t\ttxtBienvenidoSeleccioneA\r\n\t\t\t\t.setText(\"Bienvenido, seleccione a qué servicio desea acceder.\");\r\n\t\ttxtBienvenidoSeleccioneA.setBounds(0, 0, 444, 40);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(txtBienvenidoSeleccioneA);\r\n\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbutton.setOpaque(false);\r\n\t\tbutton.setForeground(Color.WHITE);\r\n\t\tbutton.setFont(mf.MyFont(0, 17));\r\n\t\tbutton.setFocusPainted(false);\r\n\t\tbutton.setContentAreaFilled(false);\r\n\t\tbutton.setBorderPainted(false);\r\n\t\tbutton.setBorder(new BevelBorder(BevelBorder.RAISED, null, null, null,\r\n\t\t\t\tnull));\r\n\t\tbutton.setBackground(new Color(139, 69, 19));\r\n\t\tbutton.setBounds(10, 366, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(button);\r\n\r\n\t\tfinal JButton btnAyuda = new JButton(\"AYUDA\");\r\n\t\tbtnAyuda.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tAyudaPrincipal window = new AyudaPrincipal();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAyuda.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\r\n\t\t\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnAyuda.setOpaque(false);\r\n\t\tbtnAyuda.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnAyuda.setForeground(Color.WHITE);\r\n\t\tbtnAyuda.setFont(mf.MyFont(0, 17));\r\n\t\tbtnAyuda.setFocusPainted(false);\r\n\t\tbtnAyuda.setContentAreaFilled(false);\r\n\t\tbtnAyuda.setBorderPainted(false);\r\n\t\tbtnAyuda.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnAyuda.setBackground(new Color(139, 69, 19));\r\n\t\tbtnAyuda.setBounds(10, 276, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnAyuda);\r\n\r\n\t\tfinal JButton btnPerfil = new JButton(\"PERFIL\");\r\n\t\tif (Loader.usuario.equals(\"\")) {\r\n\t\t\tbtnPerfil.setEnabled(false);\r\n\r\n\t\t}\r\n\t\tbtnPerfil.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPerfil.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\tPerfil window = new Perfil();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (ClassNotFoundException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (InstantiationException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (IllegalAccessException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnPerfil.setOpaque(false);\r\n\t\tbtnPerfil.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnPerfil.setForeground(Color.WHITE);\r\n\t\tbtnPerfil.setFont(mf.MyFont(0, 17));\r\n\t\tbtnPerfil.setFocusPainted(false);\r\n\t\tbtnPerfil.setContentAreaFilled(false);\r\n\t\tbtnPerfil.setBorderPainted(false);\r\n\t\tbtnPerfil.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnPerfil.setBackground(new Color(139, 69, 19));\r\n\t\tbtnPerfil.setBounds(10, 231, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnPerfil);\r\n\r\n\t\tfinal JButton btnAdministracin = new JButton(\"ADMINISTRACI\\u00D3N\");\r\n\t\tbtnAdministracin.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tAdministracionPrinc window = new AdministracionPrinc();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAdministracin.setVisible(false);\r\n\t\tbtnAdministracin.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnAdministracin.setOpaque(false);\r\n\t\tbtnAdministracin.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnAdministracin.setForeground(Color.WHITE);\r\n\t\tbtnAdministracin.setFont(mf.MyFont(0, 17));\r\n\t\tbtnAdministracin.setFocusPainted(false);\r\n\t\tbtnAdministracin.setContentAreaFilled(false);\r\n\t\tbtnAdministracin.setBorderPainted(false);\r\n\t\tbtnAdministracin.setBorder(new BevelBorder(BevelBorder.RAISED, null,\r\n\t\t\t\tnull,\r\n\r\n\t\t\t\tnull, null));\r\n\t\tbtnAdministracin.setBackground(new Color(139, 69, 19));\r\n\t\tbtnAdministracin.setBounds(10, 321, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnAdministracin);\r\n\t\r\n\r\n\t\tfinal JButton btnNewButton_1 = new JButton(\"(Desconectar)\");\r\n\t\t\r\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\r\n\t\t\t\tint seleccion = JOptionPane.showOptionDialog(\r\n\t\t\t\t\t\tfrmHistoriasDeZagas,\r\n\t\t\t\t\t\t\"¿Estás seguro de querer desconectarte?.\",\r\n\t\t\t\t\t\t\"¡Atención!\", JOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, new Object[] { \"Si\",\r\n\t\t\t\t\t\t\t\t\"No\" }, // null para YES, NO y CANCEL\r\n\t\t\t\t\t\t\"opcion 1\");\r\n\t\t\t\tif (JOptionPane.YES_OPTION == seleccion) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif (Loader.usuario.length() == 0) {\r\n\t\t\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\t\t\tLoader window = new Loader();\r\n\t\t\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\r\n\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\tLoader.usuario = \"\";\r\n\t\t\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\t\t\tLoader window = new Loader();\r\n\t\t\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (InstantiationException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnNewButton_1.setForeground(Color.BLUE);\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnNewButton_1.setForeground(Color.WHITE);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.setFont(mf.MyFont(3, 11));\r\n\t\tbtnNewButton_1.setFocusPainted(false);\r\n\t\tbtnNewButton_1.setContentAreaFilled(false);\r\n\t\tbtnNewButton_1.setBorderPainted(false);\r\n\t\tbtnNewButton_1.setForeground(Color.WHITE);\r\n\t\tbtnNewButton_1.setBounds(-10, 416, 125, 17);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnNewButton_1);\r\n\r\n\t\tJLabel lblNewLabel_1 = new JLabel(Loader.usuario);\r\n\t\tlblNewLabel_1.setForeground(Color.WHITE);\r\n\t\tlblNewLabel_1.setFont(mf.MyFont(0, 11));\r\n\t\tlblNewLabel_1.setBounds(104, 416, 86, 17);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(lblNewLabel_1);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel(\"\");\r\n\t\tlblNewLabel.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/background-inicio.jpg\")));\r\n\t\tlblNewLabel.setBackground(Color.BLACK);\r\n\t\tlblNewLabel.setBounds(0, 0, 444, 472);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(lblNewLabel);\r\n\t\tif (Loader.admin==1) {\r\n\t\t\tfrmHistoriasDeZagas.setBounds(100, 100, 439, 500);\r\n\t\t\tfrmHistoriasDeZagas.setLocationRelativeTo(null);\r\n\t\t\tbtnCreditos.setBounds(10, 365, 414, 34);\r\n\t\t\tbutton.setBounds(10, 410, 414, 34);\r\n\t\t\tlblNewLabel_1.setBounds(104, 455, 86, 17);\r\n\t\t\tbtnNewButton_1.setBounds(-10, 455, 125, 17);\r\n\t\t\tbtnAdministracin.setVisible(true);\r\n\t\t}\r\n\t}", "private static void createAndShowGUI() {\n frame = new JFrame(\"Shopping Cart\");\n frame.setLocation(600,300);\n frame.setPreferredSize(new Dimension(800,700));\n frame.setResizable(false);\n //frame.setLayout(new GridLayout(2,2,5,5));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new shoppingCartTableGui();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n //Display the window.\n frame.pack();\n \n // inserting the login dialogPane here\n loginPane newLoginPane = new loginPane(frame);\n clientID = newLoginPane.getClientID();\n }", "public static JDialog createDialog(JFrame owner) {\n PlatformInfoPanel panel = new PlatformInfoPanel();\n JDialog dialog = new JDialog(owner, ResourceManager.getResource(PlatformInfoPanel.class, \"Dialog_title\"));\n dialog.getContentPane().add(panel);\n dialog.setSize(panel.getWidth() + 10, panel.getHeight() + 30);\n return dialog;\n}", "private static void createAndShowGUI() {\r\n\t\tlogger.info(\"Creating and showing the GUI\");\r\n\t\tJFrame frame = new JFrame(\"BowlingSwing\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.add(new BowlingSwing());\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "private static void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"WAR OF MINE\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new Gameframe();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.setSize(800,1000);\n frame.setVisible(true);\n }", "private static void createGUI(){\r\n\t\tframe = new JFrame(\"Untitled\");\r\n\r\n\t\tBibtexImport bib = new BibtexImport();\r\n\t\tbib.setOpaque(true);\r\n\r\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tframe.setContentPane(bib);\r\n\t\tframe.setJMenuBar(bib.menu);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "private JFrame showNewFrame(String title) {\n\t\tJFrame f = new JFrame();\n\t\tf.setTitle(title);\n\t\tf.setSize(400, 500);\n\t\tf.setLocationRelativeTo(null);\n\t\tf.setVisible(true);\n\t\treturn f;\n\t}", "private void createAndShowGUI() {\n setSize(300, 200);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n addContent(getContentPane());\n\n //pack();\n setVisible(true);\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"FEEx v. \"+VERSION);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n Main p = new Main();\n p.addComponentToPane(frame.getContentPane());\n\n frame.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n \tstopPolling();\n \tstopMPP();\n p.port.close();\n Utils.storeSizeAndPosition(frame);\n }\n });\n \n //Display the window.\n frame.pack();\n Utils.restoreSizeAndPosition(frame);\n frame.setVisible(true);\n }", "@Override\n\tpublic Window createWindow() {\n\t\tLightVisualThemeWindow lightVisualThemeWindow = new LightVisualThemeWindow();\n\t\treturn lightVisualThemeWindow;\n\t}", "private static void createAndShowGUI() {\n\t\tJFrame frame = new JFrame(\"ComboBox2\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);;\n\t\t\n\t\t//create and set up the content pane\n\t\tJComponent content = new ComboboxDemo2();\n\t\tcontent.setOpaque(true);\n\t\tframe.setContentPane(content);\n\t\t\n\t\t//display the window\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}", "@Override\n\tprotected JPanel renderForm(AddWindow window) {\n\n\t\tthis.panel = new JPanel(new FlowLayout(FlowLayout.LEADING));\n\n\t\tthis.nameLabel = new JLabel(\"Nom de la catégorie\");\n\t\tthis.nameInput = new TabbedTextField(null, \"name\", 19);\n\t\tthis.components.add(this.nameInput);\n\n\t\tthis.gameLabel = new JLabel(\"Jeu parent\");\n\t\tthis.gamesList = new TabbedComboBox(\"game\", this.getGamesList());\n\t\tthis.components.add(this.gamesList);\n\n\t\tTabbedButton cancel = new TabbedButton(\"Annuler\", \"cancel\");\n\t\tcancel.addActionListener(window);\n\n\t\tTabbedButton submit = new TabbedButton(\"Enregistrer\", \"submit\");\n\t\tsubmit.addActionListener(window);\n\n\t\tthis.panel.add(this.nameLabel);\n\t\tthis.panel.add(this.nameInput);\n\t\tthis.panel.add(this.gameLabel);\n\t\tthis.panel.add(this.gamesList);\n\t\tthis.panel.add(cancel);\n\t\tthis.panel.add(submit);\n\n\t\tthis.panel.validate();\n\n\t\treturn panel;\n\n\t}", "private JFrame createFrame() {\n\t\tJFrame frmProfessorgui = new JFrame();\n\t\tfrmProfessorgui.getContentPane().setBackground(new Color(153, 204, 204));\n\t\tfrmProfessorgui.getContentPane().setForeground(SystemColor.desktop);\n\t\tfrmProfessorgui.setTitle(\"ProfessorGUI\");\n\t\tfrmProfessorgui.setBounds(100, 100, 600, 475);\n\t\tfrmProfessorgui.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmProfessorgui.getContentPane().setLayout(null);\n\n\n\t\t//List, ScrollPane and Button Components\n\t\tmodel = new DefaultListModel();\n\t\tsetList();\n\t\tlist = new JList(model);\n\t\tlist.setBackground(new Color(255, 245, 238));\n\t\tJScrollPane scrollPane = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tscrollPane.setBounds(10, 46, 293, 365);\n\t\tfrmProfessorgui.getContentPane().add(scrollPane);\n\n\t\tlist.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tlist.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\n\t\tcourse = new JButton(\"View Course\");\n\t\tcourse.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcourse.addActionListener(new profMainListener());\n\n\t\tcourse.setBounds(390, 207, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(course);\n\n\t\tcreate = new JButton(\"Create Course\");\n\t\tcreate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcreate.setBounds(390, 250, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(create);\n\t\tcreate.addActionListener(new profMainListener());\n\n\t\tactivate = new JButton(\"Activate\");\n\t\tactivate.addActionListener(new profMainListener()); \n\t\tactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tactivate.setBounds(390, 296, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(activate);\n\n\t\tdeactivate = new JButton(\"Deactivate\");\n\t\tdeactivate.addActionListener(new profMainListener());\n\n\t\tdeactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tdeactivate.setBounds(390, 340, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(deactivate);\n\n\n\t\t//Aesthetic Pieces\n\t\tJLabel lblCourseList = new JLabel(\"Course List\");\n\t\tlblCourseList.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblCourseList.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblCourseList.setBounds(21, 11, 261, 24);\n\t\tfrmProfessorgui.getContentPane().add(lblCourseList);\n\n\t\tJLabel lblWelcome = new JLabel(\"Welcome\");\n\t\tlblWelcome.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblWelcome.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblWelcome.setBounds(357, 49, 191, 46);\n\t\tfrmProfessorgui.getContentPane().add(lblWelcome);\n\n\t\tJLabel lblNewLabel = new JLabel(prof.getFirstName() + \" \" + prof.getLastName());\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.ITALIC, 16));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(335, 82, 239, 40);\n\t\tfrmProfessorgui.getContentPane().add(lblNewLabel);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\t\tpanel.setBackground(new Color(204, 255, 255));\n\t\tpanel.setBounds(367, 178, 174, 213);\n\t\tfrmProfessorgui.getContentPane().add(panel);\n\n\t\treturn frmProfessorgui;\n\t}", "public void createWindow(int x, int y, int width, int height, int bgColor, String title, int n) {\r\n\t\tWindow winnie = new Window(x, y, width, height, bgColor, title);\r\n\t\twinnie.type = n;\r\n\t\twindows.add(winnie);\r\n\t}", "public void makeNew() {\n\t\towner.switchMode(WindowMode.ITEMCREATE);\n\t}", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Enter Character Name\");\r\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.addWindowListener(new WindowListener()\r\n\t\t {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosing(WindowEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowDeactivated(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowOpened(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t } ) ;\r\n\r\n //Set up the content pane.\r\n addComponentsToPane(frame.getContentPane());\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setSize(new Dimension(390,90)) ;\r\n frame.setVisible(true);\r\n frame.setResizable(false) ;\r\n }", "private static void createAndShowGUI() {\n \n JFrame frame = new HandleActionEventsForJButton();\n \n //Display the window.\n \n frame.pack();\n \n frame.setVisible(true);\n \n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n }", "public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }", "protected abstract JDialog createDialog();", "public NewJFrame17() {\n initComponents();\n }", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }", "private void formWindowOpened(java.awt.event.WindowEvent evt) {\n LayDuLieu();\n \n }", "private static void createAndShowGUI() {\n\t\tgui = new GUI();\n\t}", "private void buildAndShowWindow() {\n SwingUtilities.invokeLater(() -> {\n buildWindow().setVisible(true);\n });\n }", "public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(icon.getImage());\n\t\t\n\t\tGui gui = new Gui();\n\t\t\n\t\tgui.setOpaque(true);\n\t\tfoodFrame.setContentPane(gui);\n\t\t\n\t\tfoodFrame.setVisible(true);\n\t}", "@Override\r\n\tprotected final void createAppWindows() {\r\n \t//Instantiate only DD-specific windows. SFDC-scope windows (such as mainWindow) are static\r\n \t// objects in the EISTestBase class\r\n \tmyDocumentsPopUp = createWindow(\"WINDOW_MY_DOCUMENTS_POPUP_PROPERTIES_FILE\");\r\n }", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent e) {\r\n\t\t\t\tgetParent().setEnabled(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tshell.setImage(SWTResourceManager.getImage(LoginInfo.class, \"/javax/swing/plaf/metal/icons/ocean/warning.png\"));\r\n\r\n\t\tsetMidden(397, 197);\r\n\r\n\t\tshell.setText(this.windows_name);\r\n\t\tshell.setLayout(null);\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 11, SWT.NORMAL));\r\n\t\tlabel.setBounds(79, 45, 226, 30);\r\n\t\tlabel.setAlignment(SWT.CENTER);\r\n\t\tlabel.setText(this.label_show);\r\n\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(150, 107, 86, 30);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\r\n\t}", "private static void createAndShowGUI() {\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"ButtonDemo\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n ButtonDemo newContentPane = new ButtonDemo();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Combo box editabel\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //2. kreirati kontrole i pobacati kako nam kaže neki manager LayoutManager\n JComponent comboBoxPanel = new ComboBoxPanel2();\n comboBoxPanel.setOpaque(true);\n frame.setContentPane(comboBoxPanel);\n\n //3. prikazati prozor\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowMainWindow() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorld - Swing\");\n frame.setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World!\");\n frame.getContentPane().setBackground(new Color(240, 240, 240));\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.setVisible(true);\n }", "public abstract void newWindow(ReFrame newFrame);", "private static void createAndShowGUI() {\n DragDropFiles test = new DragDropFiles();\n test.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\n //Display the window.\n test.pack();\n test.setVisible(true);\n }", "private static void createAndShowGUI()\r\n {\r\n JFrame frame = new JFrame(\"ChangingTitleFrame Application\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(new FramePanel(frame).getPanel());\r\n frame.pack();\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n }", "public void createWindow(){\n JFrame frame = new JFrame(\"Baser Aps sick leave prototype\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(screenSize.width,screenSize.height);\n frame.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\n /**\n * Setting up the main layout\n */\n Container allContent = frame.getContentPane();\n allContent.setLayout(new BorderLayout()); //main layout is BorderLayout\n\n /**\n * Stuff in the content pane\n */\n JButton button = new JButton(\"Press\");\n JTextPane text = new JTextPane();\n text.setText(\"POTATO TEST\");\n text.setEditable(false);\n JMenuBar menuBar = new JMenuBar();\n JMenu file = new JMenu(\"File\");\n JMenu help = new JMenu(\"Help\");\n JMenuItem open = new JMenuItem(\"Open...\");\n JMenuItem saveAs = new JMenuItem(\"Save as\");\n open.addMouseListener(new MouseListener() {\n @Override\n public void mouseClicked(MouseEvent e) {\n fileChooser.showOpenDialog(frame);\n }\n\n @Override\n public void mousePressed(MouseEvent e) {\n\n }\n\n @Override\n public void mouseReleased(MouseEvent e) {\n\n }\n\n @Override\n public void mouseEntered(MouseEvent e) {\n\n }\n\n @Override\n public void mouseExited(MouseEvent e) {\n\n }\n });\n file.add(open);\n file.add(saveAs);\n menuBar.add(file);\n menuBar.add(help);\n\n allContent.add(button, LINE_START); // Adds Button to content pane of frame at position LINE_START\n allContent.add(text, LINE_END); // Adds the text to the frame, at position LINE_END\n allContent.add(menuBar, PAGE_START);\n\n\n\n frame.setVisible(true);\n }", "public void createAndShowGUI() {\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n super.windowClosing(e);\n System.out.println(\"closing server...\");\n }\n });\n this.addComponentsToPane(this.getContentPane());\n this.pack();\n this.centreFrameInScreen();\n this.setVisible(true);\n }", "private JFrame makeFrame(String title, int width, int height, int close) {\r\n JFrame frame = new JFrame();\r\n frame.setTitle(title);\r\n frame.setLocation(700, 150);\r\n frame.setMinimumSize(new Dimension(width, height));\r\n frame.setResizable(false);\r\n frame.setDefaultCloseOperation(close);\r\n frame.setLayout(new BorderLayout());\r\n return frame;\r\n }" ]
[ "0.76198024", "0.7517328", "0.73977953", "0.7240202", "0.70983535", "0.70254546", "0.7003951", "0.6976393", "0.6953768", "0.68953913", "0.68945086", "0.6880178", "0.68609554", "0.68609554", "0.68609554", "0.68609554", "0.68609554", "0.68609554", "0.68609554", "0.6826463", "0.6825221", "0.68185556", "0.6818194", "0.6798512", "0.67856514", "0.6778116", "0.67763555", "0.67677146", "0.67672485", "0.67333674", "0.6729079", "0.6716905", "0.6707863", "0.6700916", "0.6698407", "0.6693072", "0.66920006", "0.668982", "0.6682968", "0.6676833", "0.6658015", "0.66558707", "0.6652291", "0.6644337", "0.66213024", "0.6617297", "0.6615658", "0.65807754", "0.6563174", "0.6562654", "0.65557826", "0.6546281", "0.65256566", "0.6521946", "0.65184635", "0.6501143", "0.6499604", "0.6488968", "0.64815074", "0.64797276", "0.6478348", "0.6475903", "0.6468271", "0.64673066", "0.6461796", "0.6458547", "0.64578164", "0.64552397", "0.64469343", "0.6445837", "0.6443433", "0.64330953", "0.6429982", "0.6427569", "0.6416976", "0.640988", "0.64012367", "0.6381135", "0.6374841", "0.63728946", "0.63683724", "0.63631576", "0.63612884", "0.6355492", "0.6350437", "0.63445973", "0.6344361", "0.63358575", "0.63347673", "0.63269323", "0.632024", "0.6311116", "0.63050586", "0.6304644", "0.6302624", "0.62979716", "0.62942255", "0.629132", "0.629038", "0.6285927", "0.62834847" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jButton2 = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); Apos = new javax.swing.JTextField(); Bneg = new javax.swing.JTextField(); Oneg = new javax.swing.JTextField(); Opos = new javax.swing.JTextField(); ABneg = new javax.swing.JTextField(); Aneg = new javax.swing.JTextField(); Bpos = new javax.swing.JTextField(); ABpos = new javax.swing.JTextField(); jLabel9 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); jTextField9 = new javax.swing.JTextField(); jTextField10 = new javax.swing.JTextField(); jLabel14 = new javax.swing.JLabel(); jComboBox1 = new javax.swing.JComboBox<>(); jButton3 = new javax.swing.JButton(); jLabel15 = new javax.swing.JLabel(); jTextField11 = new javax.swing.JTextField(); jButton4 = new javax.swing.JButton(); jButton2.setText("jButton2"); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Blood Logistics Manager"); setBackground(new java.awt.Color(102, 102, 255)); setBounds(new java.awt.Rectangle(0, 0, 0, 0)); setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); setForeground(new java.awt.Color(255, 102, 102)); setIconImage(getIconImage()); setResizable(false); jLabel1.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N jLabel1.setText("A Positive"); jLabel2.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N jLabel2.setText("B Positive"); jLabel3.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N jLabel3.setText("A Negative"); jLabel4.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N jLabel4.setText("B Negative"); jLabel5.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N jLabel5.setText("O Negative"); jLabel6.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N jLabel6.setText("AB Positive"); jLabel7.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N jLabel7.setText("AB Negative"); jLabel8.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N jLabel8.setText("O Positive"); jButton1.setFont(new java.awt.Font("Corbel", 0, 14)); // NOI18N jButton1.setText("Submit"); jButton1.setToolTipText(""); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sendPintNumber(evt); } }); Apos.setBackground(new java.awt.Color(255, 204, 204)); Apos.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N Apos.setHorizontalAlignment(javax.swing.JTextField.CENTER); Bneg.setBackground(new java.awt.Color(255, 204, 204)); Bneg.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N Bneg.setHorizontalAlignment(javax.swing.JTextField.CENTER); Oneg.setBackground(new java.awt.Color(255, 204, 204)); Oneg.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N Oneg.setHorizontalAlignment(javax.swing.JTextField.CENTER); Opos.setBackground(new java.awt.Color(255, 204, 204)); Opos.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N Opos.setHorizontalAlignment(javax.swing.JTextField.CENTER); ABneg.setBackground(new java.awt.Color(255, 204, 204)); ABneg.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N ABneg.setHorizontalAlignment(javax.swing.JTextField.CENTER); Aneg.setBackground(new java.awt.Color(255, 204, 204)); Aneg.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N Aneg.setHorizontalAlignment(javax.swing.JTextField.CENTER); Bpos.setBackground(new java.awt.Color(255, 204, 204)); Bpos.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N Bpos.setHorizontalAlignment(javax.swing.JTextField.CENTER); ABpos.setBackground(new java.awt.Color(255, 204, 204)); ABpos.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N ABpos.setHorizontalAlignment(javax.swing.JTextField.CENTER); jLabel9.setFont(new java.awt.Font("Corbel", 1, 18)); // NOI18N jLabel9.setText("Number of Pints"); jLabel10.setFont(new java.awt.Font("Corbel", 1, 18)); // NOI18N jLabel10.setText("Blood Types"); jLabel11.setFont(new java.awt.Font("Corbel", 1, 18)); // NOI18N jLabel11.setText("Set City and State"); jLabel12.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N jLabel12.setText("City"); jLabel13.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N jLabel13.setText("State"); jTextField9.setBackground(new java.awt.Color(255, 204, 204)); jTextField9.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N jTextField9.setHorizontalAlignment(javax.swing.JTextField.CENTER); jTextField10.setBackground(new java.awt.Color(255, 204, 204)); jTextField10.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N jTextField10.setHorizontalAlignment(javax.swing.JTextField.CENTER); jLabel14.setFont(new java.awt.Font("Corbel", 1, 18)); // NOI18N jLabel14.setText("Set Radius From Location to Search"); jComboBox1.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "10 Miles", "20 Miles", "50 Miles", "100 Miles", "200 Miles", "500 Miles", "Unlimited Miles" })); jButton3.setFont(new java.awt.Font("Corbel", 0, 14)); // NOI18N jButton3.setText("Submit"); jButton3.setToolTipText(""); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { setRadiusAway(evt); } }); jLabel15.setFont(new java.awt.Font("Corbel", 1, 18)); // NOI18N jLabel15.setText("Set Number of Injured"); jTextField11.setBackground(new java.awt.Color(255, 204, 204)); jTextField11.setFont(new java.awt.Font("Corbel", 0, 16)); // NOI18N jTextField11.setHorizontalAlignment(javax.swing.JTextField.CENTER); jButton4.setFont(new java.awt.Font("Corbel", 0, 14)); // NOI18N jButton4.setText("Submit"); jButton4.setToolTipText(""); jButton4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { setInjuryNumber(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 191, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel10)) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(43, 43, 43)) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(96, 96, 96) .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addGap(76, 76, 76) .addComponent(jLabel11)) .addGroup(layout.createSequentialGroup() .addGap(100, 100, 100) .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jLabel14))) .addGap(18, 18, 18)) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(39, 39, 39) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField9)))) .addGroup(layout.createSequentialGroup() .addGap(53, 53, 53) .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(52, 52, 52) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE) .addComponent(Apos) .addComponent(Oneg) .addComponent(Opos, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(ABneg) .addComponent(Aneg, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(Bpos, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(Bneg, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(ABpos, javax.swing.GroupLayout.Alignment.LEADING))) .addGroup(layout.createSequentialGroup() .addGap(29, 29, 29) .addComponent(jLabel9))) .addGap(51, 51, 51)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(14, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Apos, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Aneg, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Bpos, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Bneg, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(ABpos, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(ABneg, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Opos, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Oneg, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(27, 27, 27) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(20, 20, 20) .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(20, 20, 20)) ); Apos.getAccessibleContext().setAccessibleName(""); Opos.getAccessibleContext().setAccessibleName(""); getAccessibleContext().setAccessibleName("Blood Logistics Manager"); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public Soru1() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public kunde() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "public sinavlar2() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public CovidGUI(){\n initComponents();\n }" ]
[ "0.7319545", "0.7290502", "0.7290502", "0.7290502", "0.72860676", "0.7248135", "0.72132677", "0.7208833", "0.7195503", "0.71899074", "0.71839535", "0.7159182", "0.71478266", "0.7092896", "0.7081379", "0.70575553", "0.6987028", "0.69771224", "0.69548094", "0.6954804", "0.6944984", "0.69433", "0.6935649", "0.6931387", "0.69282216", "0.69249195", "0.692455", "0.69117403", "0.6911153", "0.6893859", "0.68920463", "0.68919104", "0.6891608", "0.68891317", "0.68831974", "0.6883143", "0.6881249", "0.68787843", "0.6876025", "0.687342", "0.6871333", "0.68591744", "0.6856189", "0.6856037", "0.6855238", "0.68541014", "0.6853768", "0.68520343", "0.68520343", "0.6844646", "0.6836612", "0.68363905", "0.6829627", "0.6829148", "0.6827062", "0.6824523", "0.682284", "0.6817001", "0.6816606", "0.681108", "0.68091875", "0.6808922", "0.68088245", "0.6808036", "0.68024796", "0.67942286", "0.6793646", "0.67930925", "0.6791919", "0.6789854", "0.67891467", "0.6787902", "0.6781361", "0.67667276", "0.6766539", "0.67650723", "0.67572254", "0.67562306", "0.6753446", "0.6752014", "0.6741438", "0.67400557", "0.6737919", "0.6736807", "0.6733911", "0.6727176", "0.67266273", "0.67207855", "0.67158854", "0.67158085", "0.67151874", "0.67088103", "0.6707628", "0.67036915", "0.67019117", "0.6701068", "0.66991204", "0.66989684", "0.6695414", "0.66907936", "0.6689225" ]
0.0
-1
Constructor for a NodeTypeImplementation
IANodeTypeImplCandidate(AbstractNodeTypeImplementation impl) { this.nodeImpl = impl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node(){}", "public Node() {}", "public Node() {}", "public Node() {}", "public Node() {}", "public Node(){\n\n\t\t}", "public Node() {\r\n\t}", "public Node() {\r\n\t}", "public Node() {\n\t}", "public Node() {\n }", "public Node(){\n }", "public Node(double x, double y, NodeType type) {\n this(new Coordinates(x, y), type);\n }", "public Node() {\n\n }", "private Node() {\n\n }", "private NodeType(int type, java.lang.String value) {\n super();\n this.type = type;\n this.stringValue = value;\n }", "protected GraphNode() {\n }", "protected GraphNode() {\n }", "public CWLNodeFactory() {\n super(true);\n }", "public Node(){\n this(9);\n }", "public Node()\n {\n this.name=\"/\";\n this.type=0;\n this.stage=0;\n children=new ArrayList<Node>();\n }", "public PortComponentTypeImpl(T t, String nodeName, Node node)\n {\n this.t = t;\n this.node = node;\n this.childNode = node.create(nodeName);\n }", "public NodeInfo() {\n }", "public Node()\n {\n \n name = new String();\n type = new String(\"internal\"); //Initial Node type set to internal\n length = new Double(0); //Set initial branch length to zero\n children = new ArrayList<Node>();\n level = 0;\n treesize = new Double(0);\n depth = 0;\n newicklength = 0;\n startycoord = -1;\n startxcoord = -1;\n endxcoord = -1;\n endycoord = -1;\n standardy = -1;\n selected = false;\n xmultiplier = 0;\n ymultiplier = 0;\n }", "public SecurityIdentityTypeImpl(T t, String nodeName, Node node)\n {\n this.t = t;\n this.node = node;\n this.childNode = node.create(nodeName);\n }", "public RunAsTypeImpl(T t, String nodeName, Node node)\n {\n this.t = t;\n this.node = node;\n this.childNode = node.create(nodeName);\n }", "public Node()\r\n {\r\n initialize(null);\r\n lbl = id;\r\n }", "public CassandraNode() {\r\n\t\tthis(null, 0);\r\n\t}", "public FlowNodeInstance() {\n\t}", "protected AST_Node() {\r\n\t}", "TNode createTNode();", "public Node() {\n name = null;\n missionDescription = null;\n roles = null;\n stateValueBindings = null;\n nodeRuntime = null;\n isNetworkSingleton = false;\n }", "private Node(K keyPortion, V valuePortion)\n {\n this(keyPortion, valuePortion, null);\n }", "KramdownNode(KramdownNodeType type) {\n this.type = type;\n }", "DOMType() {\n // Constructs an empty type node\n }", "public Node(T value) {\n this.value = value;\n }", "Node(E value) {\n this.value = value;\n this.childen = new ArrayList<>();\n }", "public Node() \r\n\t{\r\n\t\tincludedNode = new ArrayList<Node>();\r\n\t\tin = false; \r\n\t\tout = false;\r\n\t}", "public Jode(Node n) {\n this.node = n;\n this.v = node.getTextContent();\n this.n = node.getNodeName();\n }", "public ItsNatImpl()\r\n {\r\n }", "public Node(T value) {\n\t\tthis.value = value;\n\t}", "public LoginConfigTypeImpl(T t, String nodeName, Node node)\n {\n this.t = t;\n this.node = node;\n this.childNode = node.create(nodeName);\n }", "public Node(T data) {this.data = data;}", "public SNode(T data) {\n this(data, null);\n }", "public TreeNode() {\n }", "public Node() {\n this.nodeMap = new HashMap<>();\n }", "private Node(T value) {\n\t\t\tthis.value = value;\n\t\t}", "public Node(Node< ? > node)\n {\n id = node.getId();\n name = node.getName();\n idVirtualAppliance = node.getIdVirtualAppliance();\n nodeType = node.getNodeType();\n posX = node.getPosX();\n posY = node.getPosY();\n modified = node.getModified();\n }", "public TreeNode(){ this(null, null, 0);}", "public Node(T val) {\r\n\t\tthis.val = val;\r\n\t}", "public TrieNode(){}", "public Regular(Node t) {\n }", "private SceneGraphObject createNode( String className, Class[] parameterTypes, Object[] parameters ) {\n SceneGraphObject ret;\n Constructor constructor;\n\n try {\n Class state = Class.forName( className );\n constructor = state.getConstructor( parameterTypes );\n ret = (SceneGraphObject)constructor.newInstance( parameters );\n\t} catch(ClassNotFoundException e1) {\n if (control.useSuperClassIfNoChildClass())\n ret = createNodeFromSuper( className, parameterTypes, parameters );\n else\n throw new SGIORuntimeException( \"No State class for \"+\n\t\t\t\t\t\tclassName );\n\t} catch( IllegalAccessException e2 ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tclassName+\" - IllegalAccess\" );\n\t} catch( InstantiationException e3 ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tclassName );\n } catch( java.lang.reflect.InvocationTargetException e4 ) {\n\t throw new SGIORuntimeException( \"InvocationTargetException for \"+\n\t\t\t\t\t\tclassName );\n } catch( NoSuchMethodException e5 ) {\n for(int i=0; i<parameterTypes.length; i++)\n System.err.println( parameterTypes[i].getName() );\n System.err.println(\"------\");\n\t throw new SGIORuntimeException( \"Invalid constructor for \"+\n\t\t\t\t\t\tclassName );\n }\n\n return ret;\n }", "public SystemNode(SystemInfo sys) {\n\t\tsuper(sys);\n\t}", "public Node(State state) {\r\n\t\t\tthis.state=state;\r\n\t\t}", "Node(T data) {\n\t\t\tthis(data, null);\n\t\t}", "public TreeRootNode() {\n super(\"root\");\n }", "public UnaryExpNode() {\n }", "public TreeNode() {\n // do nothing\n }", "Node(String e){\r\n this.element = e;\r\n }", "public Node(SimacogoBoard board) {\n nodeType = MAXNODE;\n bestScore = Integer.MIN_VALUE;\n limit = board.getAvailableSlotArray();\n parent = null;\n depth = 0;\n }", "protected CreateMachineNodeModel() {\r\n super(0,1);\r\n }", "private NodeTypeHolder(Attributes a)\r\n\t{\r\n\t this.attributes = a;\r\n\t}", "public Node(T data) {\n this(data, null, null, null);\n }", "public Node(T data) {\n\n this.data = data;\n\n\n }", "public VISNode() {\n this.model = new VISNodeModel();\n }", "public TrieNode() {\n \n }", "public NodeTest(String name) {\n\t\tsuper(name);\n\t}", "protected SceneGraphObject createNode( Class state ) {\n\tSceneGraphObject ret;\n\n\ttry {\n\t ret = (SceneGraphObject)state.newInstance();\n\n\t //System.err.println(\"Created J3D node for \"+className );\n\t} catch( IllegalAccessException exce ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tstate.getClass().getName()+\" - IllegalAccess\" );\n\t} catch( InstantiationException excep ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tstate.getClass().getName() );\n\t}\n\n\treturn ret;\n }", "public Node(String value)\n\t{\n\t\tthis.children = new ArrayList<Node>();\n\t\tthis.value = value;\n\t}", "public Node(T ele) {\r\n\t\t\tthis.ele = ele;\r\n\t\t}", "public abstract int getNodeType();", "public Node(T data){\n this.data = data;\n }", "public Node(T value) {\n this.value = value;\n this.height = 0;\n this.leftChild = null;\n this.rightChild = null;\n this.parent = null;\n }", "Node(int value, String name) {\n this.value = value;\n this.name = name;\n }", "protected SceneGraphObject createNode() {\n\tthrow new SGIORuntimeException(\"createNode() not implemented in class \"+this.getClass().getName());\n }", "public Node(String name) {\n this.name = name;\n }", "public InterceptorTypeImpl(T t, String nodeName, Node node)\n {\n this.t = t;\n this.node = node;\n this.childNode = node.create(nodeName);\n }", "protected IndigoValenceCheckerNodeModel()\r\n {\r\n super(1, 3);\r\n }", "public BoxNode() {\n initProperties();\n }", "public NetscapeV3Factory() {\r\n }", "private Node(int c) {\n this.childNo = c; // Construct a node with c children.\n }", "protected NodeProperties() {\r\n }", "public Node(Node parentNode, Position position, int g, int h) {\n this.parentNode = parentNode;\n this.position = position;\n this.g = g;\n this.h = h;\n this.f = g + h;\n\n }", "public abstract GraphNode<N, E> createNode(N value);", "@Test\n\tpublic void testNodeInit() {\n\t\tNode<Integer> node = new Node<Integer>(3);\n\t\tassertTrue(node.getData() == 3);\n\t\tassertTrue(node.getParent() == null);\n\t\tassertTrue(node.countChildren() == 0);\n\t}", "@Override\r\n\t\tpublic short getNodeType()\r\n\t\t\t{\n\t\t\t\treturn 0;\r\n\t\t\t}", "public Tree()\n\t{\n\t\tsuper(\"Tree\", \"tree\", 0);\n\t}", "public Node(T value) \n\t\t//PRE: T is initialized\n\t\t//POST: A node is created with value T \n\t\t{\n\t\t\tthis.value = value;\t\n\t\t\tnext = null;\n\t\t\tisCurrent = false;\n\t\t}", "public HIRTree(){\r\n\t\t\r\n\t}", "public Node(T data) {\r\n this.data = data;\r\n }", "public DefaultRouterNode() {\n }", "public ClassNode(Ontology o) {\n\t\tname = o.getName();\n\t}", "public ComponentNode(Hierarchy hierarchy) {\n super(null, true);\n this.hierarchy = hierarchy;\n map = new WeakHashMap();\n }", "public Tree(E value) {\n this.root = new Node<E>(value);\n this.length = 0;\n }", "public void setNodeType(String nodeType)\n {\n this.nodeType = nodeType;\n }", "public Node(T value) {\n\t\t\tthis.value = value; // initializing\n\t\t\tnext = null;\n\t\t}", "public FileNode() {\n\t}", "public BinaryNode(String dataPortion) {\n\t\tthis(dataPortion, null, null);\t\t\t// Call next constructor\n\t}", "public Node(E data) {\r\n\t\tthis.data = data;\r\n\t}", "public NodeInfo(Name name, Name nodeTypeName, Name[] mixinNames,\n NodeId id) {\n this.name = name;\n this.nodeTypeName = nodeTypeName;\n this.mixinNames = mixinNames;\n this.id = id;\n }" ]
[ "0.6954874", "0.69016105", "0.69016105", "0.69016105", "0.69016105", "0.6857321", "0.68010265", "0.68010265", "0.6762083", "0.6735048", "0.6645813", "0.66360617", "0.66259307", "0.66203827", "0.6576276", "0.6444296", "0.6444296", "0.63344187", "0.63323325", "0.62889344", "0.6259303", "0.62588775", "0.62320095", "0.6226901", "0.62224156", "0.6171162", "0.6113609", "0.61121774", "0.60751617", "0.60310775", "0.60172665", "0.6006906", "0.5999502", "0.59904057", "0.59902835", "0.5983612", "0.5959686", "0.59570885", "0.59443855", "0.59418255", "0.593085", "0.5888105", "0.58779335", "0.58648026", "0.5857296", "0.585665", "0.5835514", "0.5819969", "0.581884", "0.5818339", "0.58067805", "0.5803842", "0.5799741", "0.57857054", "0.57826203", "0.5776624", "0.5776277", "0.5763041", "0.5762851", "0.5762383", "0.57589805", "0.5757414", "0.5755188", "0.57503974", "0.57484907", "0.57478124", "0.57476646", "0.5740594", "0.57392067", "0.5738533", "0.57383686", "0.57338387", "0.5724118", "0.5714647", "0.57051885", "0.5701759", "0.57007784", "0.5698059", "0.5693251", "0.5685358", "0.5683675", "0.56769216", "0.5665379", "0.56600004", "0.56564623", "0.56534946", "0.56519824", "0.5638526", "0.563649", "0.5619757", "0.5618237", "0.5616241", "0.56119454", "0.5605794", "0.5605594", "0.56034744", "0.5597904", "0.5592658", "0.55912733", "0.55882347" ]
0.6375628
17